/* Playfair Display - same as logo text */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --color-marron-oscuro: #6B3B1A;
  --color-marron-claro: #B97A3A;
  --color-verde-oscuro: #39362F;
  --color-negro: #231F20;
  --color-beige: #F5E9DE;
}

html {
  scroll-behavior: smooth;
}

/* Evitar que el header tape el título al hacer scroll a la sección */
section[id] {
  scroll-margin-top: 85px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-negro);
    background: var(--color-beige);
}

/* Header and Navigation */
header {
    background-color: rgba(245, 233, 222, 0.7); /* var(--color-beige) with 80% opacity */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1.5rem;
    max-width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 70px;
    width: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-marron-claro);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-negro);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    display: block;
}

.nav-links a:hover {
    color: var(--color-marron-claro);
    background-color: rgba(185, 122, 58, 0.1);
    border-radius: 5px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-marron-oscuro);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section - padding-top so fixed navbar doesn't cover content on load */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 1rem 0;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-bg-video {
    position: absolute;
    top: 0rem;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: blur(4px) brightness(0.7);
    transform: scale(1.03);
}

/* Dark gradient overlay (bottom) for dramatic text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 35%,
        rgba(0, 0, 0, 0.2) 55%,
        transparent 75%
    );
}

.hero-split,
.hero-stats {
    position: relative;
    z-index: 2;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-split-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    border-right: 2px solid rgba(245, 233, 222, 0.6);
}

.hero-split-right {
    flex: 1.2;
    text-align: left;
    padding-left: 2rem;
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 1;
}

/* Hero stats counter bar */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
}

.hero-stat {
    text-align: center;
    min-width: 120px;
}

.hero-stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    display: inline-block;
    line-height: 1.2;
}

.hero-stat-suffix {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    opacity: 0.95;
}

.hero-stat-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
    opacity: 0.9;
}

/* Trust badges: WorkSafeBC · Insured · BC Licensed */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.6rem;
    max-width: 640px;
    margin: 1rem auto 0;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.trust-badge i {
    color: rgba(200, 230, 180, 0.95);
    font-size: 0.75rem;
}

.trust-badge-sep {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    user-select: none;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: var(--color-marron-claro);
    color: var(--color-beige);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    opacity: 1;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    background-color: var(--color-marron-oscuro);
}

.schedule-cta {
    background-color: var(--color-marron-claro);
    color: var(--color-beige);
}

.schedule-cta i {
    margin-right: 0.5rem;
}

.hero-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-cta-subtext {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta-subtext::before {
    content: "✓ ";
    opacity: 0.9;
}

.schedule-submit {
    width: 100%;
}

/* Appointment Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 2000;
}

.modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    color: var(--color-negro);
    border-radius: 12px;
    padding: 1.2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.modal-card h2 {
    color: var(--color-marron-oscuro);
    font-size: 1.2rem;
    text-align: center;
}

.modal-card p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--color-negro);
}

.appointment-intro {
    font-size: 0.85rem;
    color: var(--color-marron-oscuro);
    background: rgba(245, 233, 222, 0.7);
    padding: 0 0.8rem;
    border-radius: 8px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: var(--color-marron-oscuro);
    cursor: pointer;
}

/* Exit intent modal */
.exit-intent-card {
    max-width: 380px;
    text-align: center;
}

.exit-intent-card .modal-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.exit-intent-text {
    margin-bottom: 1.25rem !important;
    line-height: 1.5;
}

.exit-intent-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.exit-intent-actions .cta-button {
    width: 100%;
    justify-content: center;
}

.exit-intent-link {
    font-size: 0.9rem;
    color: var(--color-marron-claro);
    text-decoration: underline;
}

.exit-intent-link:hover {
    color: var(--color-marron-oscuro);
}

.appointment-message {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 0.5rem;
}

.appointment-message--success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.appointment-message--error {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.contact-message {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    width: 100%;
    flex: 0 0 100%;
    order: -1;
    text-align: center;
}

.contact-message--success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.contact-message--error {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.appointment-form {
    display: grid;
    gap: 0.6rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row.inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-row.inline > div {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row label {
    font-weight: 600;
    color: var(--color-marron-oscuro);
    font-size: 0.9rem;
}

.form-row input,
.form-row select {
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--color-marron-claro);
    box-shadow: 0 0 0 2px rgba(185, 122, 58, 0.15);
}

.schedule-submit {
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
}

/* Services Section */
.services {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
}

.service-card {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    transform-origin: center bottom;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: auto;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid transparent;
}

/* Project number badge */
.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-beige, #f5e9de);
    background: var(--color-marron-oscuro, #5c4033);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 3;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-content {
    transition: all 0.3s ease;
}

.service-image {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease, margin-top 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    margin-top: 0;
}

/* Parallax wrapper: clips image when it moves on scroll */
.service-image-parallax {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2;
    opacity: 0;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(92, 64, 51, 0.15);
    z-index: 2;
    text-decoration: none;
    color: inherit;
    border-color: rgba(92, 64, 51, 0.2);
}

.service-card:hover .service-badge {
    transform: scale(1.1);
    background: var(--color-marron-claro, #8b6914);
}

.service-card:hover .service-image {
    height: 200px;
    margin-top: 1rem;
    opacity: 1;
}

.service-card:hover .carousel-container {
    height: 200px;
}

.service-card:hover .carousel-button {
    opacity: 1;
}

.service-card:hover .service-content {
    margin-bottom: 1rem;
}

/* Ensure other cards are not affected */
.service-card:not(:hover) {
    z-index: 1;
}

.service-card h3 i {
    margin-right: 10px;
    color: var(--color-marron-claro);
}

.service-card h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--color-marron-oscuro);  
}

.service-details {
    font-size: 0.9rem;
    color: var(--color-marron-oscuro);
    margin-top: 1rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 100px;
    overflow: hidden;
}

.service-card:hover .service-details {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
}

/* About Section - two columns: content left, photo mosaic right */
.about {
    padding: 2rem 1.5rem;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
    background-color: var(--color-beige);
    background-image:
        linear-gradient(rgba(245, 233, 222, 0.82) 0%, rgba(245, 233, 222, 0.88) 100%),
        url('/img/IMG_8462.jpg');
    background-size: 100% 100%, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about h2 {
    margin-bottom: 1.25rem;
    font-size: 2.25rem;
    color: var(--color-marron-oscuro);
    text-align: left;
}

.about-intro {
    margin-bottom: 1.75rem;
    color: var(--color-negro);
    line-height: 1.7;
    font-size: 1.05rem;
    text-align: left;
}

/* Two columns: Mission/Vision left, Points right */
.about-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-mission-vision {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-points-wrap {
    min-width: 0;
}

.about-block {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 1.25rem 1.35rem;
    border-left: 4px solid var(--color-marron-claro);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.about-block-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-marron-oscuro);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-block-title i {
    color: var(--color-marron-claro);
    font-size: 1.1rem;
}

.about-block p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-negro);
}

.about-points-title {
    margin-bottom: 0.85rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-marron-oscuro);
    text-align: left;
}

.about-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-points li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--color-verde-oscuro);
    font-weight: 500;
}

.about-points li i {
    color: var(--color-marron-claro);
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Photo mosaic: 1=medium, 2&3=big, 4=small. Equal gap, logo on cross. */
.about-mosaic {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    grid-template-rows: 1fr 0.85fr;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 1;
}

.about-mosaic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Cell sizes: (1,1)=1*1 medium, (2,1)=0.85*1, (1,2)=1*0.85, (2,2)=0.85*0.85 small */
.about-mosaic-1 { border-radius: 12px 8px 8px 8px; }
.about-mosaic-2 { border-radius: 8px 12px 8px 8px; }
.about-mosaic-3 { border-radius: 8px 8px 8px 12px; }
.about-mosaic-4 { border-radius: 8px 8px 12px 8px; }

/* Logo centered on the cross of the 4 photos (intersection of grid lines) */
.about-mosaic-logo {
    position: absolute;
    /* Intersection = end of first track + half gap (1/(1+0.85) of (100% - 0.5rem) + 0.25rem) */
    left: calc((100% - 0.5rem) / 1.85 + 0.25rem);
    top: calc((95% - 0.5rem) / 1.85 + 0.25rem);
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: var(--color-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 2;
}

.about-mosaic-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 900px) {
    .about {
        padding: 4.5rem 1.5rem;
        min-height: auto;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-mosaic {
        max-width: 320px;
    }

    .about h2,
    .about-intro,
    .about-points-title {
        text-align: center;
    }

    .about-two-cols {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .about-block {
        padding: 1.1rem 1.2rem;
    }

    .about-points {
        max-width: 420px;
        margin: 0 auto;
    }

    .about-stats {
        margin-top: 1.5rem;
        gap: 1.5rem;
    }
}

/* Building Codes & Regulations */
.building-codes {
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 3rem auto;
    background: #f8f9fa;
}

.building-codes h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--color-marron-oscuro);
    margin-bottom: 0.75rem;
}

.codes-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    color: var(--color-negro);
    line-height: 1.6;
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.code-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid var(--card-accent, var(--color-marron-claro));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.code-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.code-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 105, 20, 0.1);
    color: var(--card-accent, var(--color-marron-claro));
    border-radius: 8px;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.code-card-jurisdiction {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--card-accent, var(--color-marron-claro));
    margin-bottom: 0.35rem;
}

.code-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--color-marron-oscuro);
}

.code-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-negro);
    margin: 0 0 auto;
    flex: 1;
}

.code-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--card-accent, var(--color-marron-claro));
    margin-top: 1rem;
}

.code-card-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.code-card:hover .code-card-link i {
    transform: translateX(4px);
}

.codes-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 640px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--color-marron-oscuro);
    background: rgba(245, 233, 222, 0.6);
    border-radius: 8px;
}

.codes-disclaimer i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--color-marron-claro);
}

@media (max-width: 600px) {
    .building-codes {
        padding: 3rem 1rem;
    }
    .building-codes h2 {
        font-size: 1.5rem;
    }
}

/* Contact Section */
.contact {
    padding: 2rem 1rem 2rem;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    width: 80%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 35%;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-logo {
    text-align: center;
}

.contact-logo img {
    width: 150px;
    height: auto;
}

.contact-logo h3 {
    color: var(--color-marron-oscuro);
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--color-marron-claro);
    font-size: 1.2rem;
    width: 25px;
}

.contact-item p {
    color: var(--color-negro);
    font-size: 1rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--color-marron-claro);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--color-marron-oscuro);
    transform: translateY(-3px);
}

#contact-form {
    flex: 3;
    min-width: 45%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    position: relative;
    width: 100%;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--color-marron-claro);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    color: var(--color-negro);
    box-sizing: border-box;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--color-marron-oscuro);
    box-shadow: 0 0 0 3px rgba(185, 122, 58, 0.1);
    background-color: white;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #999;
    font-size: 0.95rem;
}

#contact-form textarea {
    width: 100%;
    height: 150px;
    resize: none;
    min-height: 150px;
    max-height: 300px;
    line-height: 1.5;
    padding: 1rem 1.2rem;
    border: 2px solid var(--color-marron-claro);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    color: var(--color-negro);
    box-sizing: border-box;
}

#contact-form button {
    padding: 1rem 2rem;
    background-color: var(--color-marron-claro);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#contact-form button:hover {
    background-color: var(--color-marron-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 59, 26, 0.2);
}

#contact-form button:active {
    transform: translateY(0);
}

/* Estilo para inputs con error */
#contact-form input:invalid:not(:placeholder-shown),
#contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #ff6b6b;
    background-color: #fff5f5;
}

#contact-form input:invalid:not(:placeholder-shown):focus,
#contact-form textarea:invalid:not(:placeholder-shown):focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Estilo para el label flotante */
.form-group label {
    position: absolute;
    left: 1.2rem;
    top: 1.4rem;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.95rem;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background-color: white;
    padding: 0 0.5rem;
    color: var(--color-marron-claro);
}

/* Footer Styles */
footer {
    background-color: var(--color-marron-oscuro);
    color: var(--color-beige);
    padding: 2rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--color-marron-claro);
    font-size: 1.2rem;
}

.footer-section p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer-logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(236, 240, 241, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(236, 240, 241, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-split-left {
        padding: 0 1rem 1.5rem;
        border-right: none;
        border-bottom: 2px solid rgba(245, 233, 222, 0.6);
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-cta-wrap {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-split-right {
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    .nav-links {
        display: none;
    }
    
    .hero h1,
    .hero .hero-title {
        font-size: 2rem;
    }
    
    .hero p,
    .hero .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-stats {
        gap: 1.5rem;
        padding-top: 1rem;
    }

    .trust-badges {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        gap: 0.25rem 0.4rem;
    }
}

/* Hamburger Menu */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 76px;
        width: 40%;
        background-color: var(--color-beige);
        flex-direction: column;
        align-items: center;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
        height: auto;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        width: 100%;
        border-radius: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo-title {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
        margin: 1rem auto;
    }
}

/* Responsive design para la sección de contacto */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        padding: 1rem;
        align-items: center;
    }

    .contact-info {
        order: -1;
        flex: 1;
        width: 100%;
        max-width: 400px;
        align-self: center;
        text-align: center;
    }

    .contact-info .contact-details {
        align-items: center;
    }

    .contact-info .contact-item {
        justify-content: center;
    }

    #contact-form {
        flex: 1;
        width: 100%;
    }

    .contact-logo img {
        width: 120px;
    }
}

/* Mobile landscape / short viewport – phone held horizontally */
@media (max-width: 768px) and (orientation: landscape),
       (max-height: 500px) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 60px 0.75rem 1.5rem;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .hero-split {
        flex-direction: row;
        gap: 1rem;
        padding: 0 0.5rem;
        margin-bottom: 0;
    }

    .hero-split-left {
        padding: 0.5rem 1rem;
        border-right: 2px solid rgba(245, 233, 222, 0.6);
        border-bottom: none;
    }

    .hero-split-right {
        padding: 0 0 0 0.75rem;
    }

    .hero h1,
    .hero .hero-title {
        font-size: 1.35rem;
        margin-bottom: 0.25rem;
    }

    .hero p,
    .hero .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .hero-cta-wrap {
        gap: 0.35rem;
    }

    .hero-cta-subtext {
        font-size: 0.7rem;
    }

    .cta-button.schedule-cta.hero-cta {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 0.75rem 1rem;
        padding: 0.5rem 0.5rem 0;
    }

    .hero-stat-number {
        font-size: 1.35rem;
    }

    .hero-stat-suffix {
        font-size: 1rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
        margin-top: 0.1rem;
    }

    .trust-badges {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
        gap: 0.2rem 0.35rem;
        margin-top: 0.5rem;
    }

    .trust-badge i {
        font-size: 0.6rem;
    }
}

@media (max-height: 500px) {
    header nav {
        padding: 0.35rem 1rem;
    }

    .logo-img {
        height: 48px;
    }

    .hero {
        padding-top: 56px;
    }

    .modal-backdrop {
        align-items: flex-start;
        padding: 0.5rem;
        overflow-y: auto;
    }

    .modal-card {
        max-height: 95vh;
        overflow-y: auto;
    }

    section.contact,
    section.services {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .contact h2,
    .services h2 {
        margin-bottom: 1rem;
    }
}

/* Service Pages Styles */
.service-hero {
    height: 50vh;
    min-height: 280px;
    background: linear-gradient(135deg, var(--color-marron-oscuro) 0%, #5a3216 100%);
    color: var(--color-beige);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    margin-top: 90px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.service-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.service-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 480px;
}

/* Contenido principal: texto centrado en toda la pantalla, cuadros abajo */
.service-page .service-details {
    padding: 2rem 1.5rem;
    max-width: 100%;
    margin: 0;
    max-height: none;
    overflow: visible;
    margin-top: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-page .service-details-intro {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.service-page .service-details-intro h2 {
    margin-bottom: .25rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--color-marron-oscuro);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.service-page .service-details-intro p {
    font-size: 1.05rem;
    color: var(--color-negro);
    margin: 0;
    text-align: center;
    letter-spacing: 0.01em;
}

/* Cuadros abajo del texto, en línea (columna) y centrados */
.service-page .service-details-features {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

.service-page .service-details-features .service-features {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0;
    max-width: 100%;
    width: 100%;
    justify-content: center;
}

.service-page .service-details-features .feature {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    flex: 1 1 260px;
    min-width: 220px;
}

.service-page .service-details-features .feature i {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.service-page .service-details-features .feature h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.service-page .service-details-features .feature p {
    font-size: 0.88rem;
    line-height: 1.45;
}

.service-details-bg {
    background-image: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)), url("img/residential-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-video-section {
    padding: 2rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.service-video-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--color-marron-oscuro);
    margin-bottom: 0.5rem;
}

.service-video-section p {
    margin: 0 0 1.5rem 0;
    color: var(--color-negro);
}

.service-video-wrapper {
    width: 100%;
}

.service-video {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .service-page .service-details-intro {
        max-width: 100%;
    }
    .service-page .service-details-features .service-features {
        flex-direction: column;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        gap: 0.75rem;
    }
    .service-page .service-details-features .feature {
        flex: none;
        min-width: 0;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    .service-page .service-details-features .feature i {
        margin-bottom: 0.2rem;
    }
    .service-page .service-details-features .feature h3 {
        margin-bottom: 0.15rem;
    }
    .service-page .service-details-features .feature p {
        line-height: 1.35;
    }
}

.service-content {
    text-align: center;
}

.service-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--color-marron-oscuro);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(107, 59, 26, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature i {
    color: var(--color-marron-claro);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-family: 'Playfair Display', serif;
    color: var(--color-marron-oscuro);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature p {
    font-size: 0.95rem;
    color: var(--color-verde-oscuro);
    line-height: 1.5;
    margin: 0;
}

.service-gallery {
    padding: 2rem 1.5rem 4rem;
    background: linear-gradient(180deg, #f8f9fa 0%, rgba(245, 233, 222, 0.4) 100%);
    position: relative;
    z-index: 0;
}

/* Espacio y capa por encima del carrusel para que Contact no quede tapado */
.service-gallery + section#contact {
    position: relative;
    z-index: 2;
    margin-top: 30rem;
    padding-top: 3rem;
    background: var(--color-beige);
    min-height: 300px;
}

/* Only on concrete-formwork (body.service-page): contact without padding-top */
.service-page .service-gallery + section#contact {
    padding-top: 0;
}

@media (max-width: 768px) {
    .service-gallery + section#contact {
        margin-top: 0;
        padding-top: 0;
    }
}

.service-gallery h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: var(--color-marron-oscuro);
    margin-bottom: 2.5rem;
    font-size: 1.85rem;
    font-weight: 600;
}

/* Carrusel grande en página de servicio */
.service-gallery-carousel.carousel-container {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 0;
}

.service-gallery-carousel .carousel-main {
    position: relative;
    height: 75vh;
    min-height: 420px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.service-gallery-carousel .carousel-wrapper {
    height: 100%;
}

.service-gallery-carousel .carousel-slide {
    height: 100%;
}

.service-gallery-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-gallery-carousel .carousel-button {
    opacity: 1;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.service-gallery-carousel .carousel-button:hover {
    background: rgba(0,0,0,0.75);
}

/* Miniaturas del carrusel (como puntos) en línea abajo */
.service-gallery-carousel .carousel-thumbnails {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0,0,0,0.04);
    border-radius: 0 0 12px 12px;
}

.service-gallery-carousel .carousel-thumb {
    padding: 0;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.service-gallery-carousel .carousel-thumb img {
    display: block;
    width: 80px;
    height: 56px;
    object-fit: cover;
}

.service-gallery-carousel .carousel-thumb:hover {
    opacity: 0.9;
}

.service-gallery-carousel .carousel-thumb.active {
    border-color: var(--color-marron-claro);
}

/* Mobile: franja de todas las miniaturas, más pequeñas a los lados */
@media (max-width: 768px) {
    .service-gallery-carousel .carousel-thumbnails {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-padding-inline: 50%;
    }
    .service-gallery-carousel .carousel-thumb {
        flex: 0 0 auto;
        scroll-snap-align: center;
        transform: scale(0.82);
        transition: transform 0.25s ease, border-color 0.2s ease;
    }
    .service-gallery-carousel .carousel-thumb.active {
        transform: scale(1);
    }
    .service-gallery-carousel .carousel-thumbnails .carousel-thumb img {
        width: 64px;
        height: 48px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Renovations: masonry grid + lightbox */
.renovation-gallery .renovation-masonry {
    column-count: 3;
    column-gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.renovation-gallery .masonry-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    cursor: pointer;
}

.renovation-gallery .masonry-item-inner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.renovation-gallery .masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.renovation-gallery .masonry-item--tall img { min-height: 320px; object-position: center; }
.renovation-gallery .masonry-item--medium img { min-height: 260px; object-position: center; }
.renovation-gallery .masonry-item--short img { min-height: 200px; object-position: center; }

.renovation-gallery .masonry-item:hover img {
    transform: scale(1.06);
}

.renovation-gallery .masonry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.renovation-gallery .masonry-overlay i {
    font-size: 2rem;
    color: #fff;
}

.renovation-gallery .masonry-item:hover .masonry-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

@media (max-width: 900px) {
    .renovation-gallery .renovation-masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .renovation-gallery .renovation-masonry {
        column-count: 1;
        column-gap: 1rem;
    }
    .renovation-gallery .masonry-item--tall img { min-height: 280px; }
    .renovation-gallery .masonry-item--medium img { min-height: 240px; }
    .renovation-gallery .masonry-item--short img { min-height: 200px; }
    .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 1.2rem; left: 0.75rem; right: 0.75rem; }
    .lightbox-close { top: 1rem; right: 1rem; width: 40px; height: 40px; }
}

@media (max-width: 768px) {
    .service-hero {
        min-height: 220px;
        padding: 1.5rem 1rem;
    }
    
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .service-hero p {
        font-size: 1.1rem;
    }
    
    .service-page .service-details {
        padding: 3rem 1rem;
    }
    
    .service-gallery-carousel.carousel-container {
        height: 55vh;
        min-height: 280px;
    }
    
    .service-gallery-carousel .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Botón flotante WhatsApp - fijo a la derecha, se mantiene visible al hacer scroll */
.whatsapp-float {
    position: fixed;
    right: 24px;
    top: 100px;
    height: 60px;
    padding: 0 30px 0 0;
    background-color: #25D366;
    color: #fff;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease, border-radius 0.25s ease;
    transform-origin: right center;
    width: 56px;
    box-sizing: content-box;
}

.whatsapp-float-label {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-width 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
    padding-left: 14px;
    padding-right: 18px;
    width: auto;
}

.whatsapp-float:hover .whatsapp-float-label {
    opacity: 1;
    max-width: 180px;
}

.whatsapp-float:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .whatsapp-float {
        top: auto;
        right: 16px;
        bottom: 16px;
        height: 48px;
        padding: 0 12px 0 0;
        border-radius: 24px;
        font-size: 24px;
    }
    .whatsapp-float:hover {
        padding-left: 12px;
        padding-right: 14px;
    }
    .whatsapp-float-label {
        font-size: 0.75rem;
    }
    .whatsapp-float:hover .whatsapp-float-label {
        max-width: 140px;
    }
}

/* ========== Reviews Section ========== */
#comments-container {
    min-height: 120px;
    position: relative;
}

.comments-section {
    padding: 2rem 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.comments-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comments-title-block {
    flex: 1;
    min-width: 0;
}

.comments-section h2 {
    text-align: left;
    margin-bottom: 0.25rem;
    font-size: 2.5rem;
    color: var(--color-marron-oscuro);
}

.comments-intro {
    text-align: left;
    color: var(--color-verde-oscuro);
    margin-bottom: 0;
    font-size: 1rem;
}

.comments-actions {
    flex-shrink: 0;
    margin-left: auto;
}

.review-success-msg {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.review-success-msg.review-success-msg-visible {
    display: flex;
}

.review-success-msg i {
    font-size: 1.1rem;
}

.add-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background-color: var(--color-marron-claro);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-review-btn:hover {
    background-color: var(--color-marron-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 59, 26, 0.2);
}

.comments-form-wrapper {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.comments-form-wrapper:not(.comments-form-hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.comments-form-wrapper .comments-form-box {
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
}

.comments-form-wrapper .comments-form-box .modal-close {
    top: 1rem;
    right: 1rem;
}

.google-signin-area {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.google-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.google-user-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

#google-user-name {
    font-weight: 600;
    color: var(--color-negro);
}

.google-signout-btn {
    margin-left: auto;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid var(--color-marron-claro);
    color: var(--color-marron-oscuro);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.google-signout-btn:hover {
    background: var(--color-beige);
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.comment-form .form-row.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 560px) {
    .comment-form .form-row,
    .comment-form .form-row.form-row-3 {
        grid-template-columns: 1fr;
    }
}

.comment-form .form-group {
    position: relative;
    width: 100%;
    margin-bottom: 0.6rem;
}

.comment-form input[type="text"],
.comment-form input[type="date"],
.comment-form textarea,
.comment-form select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-marron-claro);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: var(--color-negro);
    box-sizing: border-box;
}

.comment-form input[type="text"]:not(:focus),
.comment-form input[type="date"]:not(:focus),
.comment-form textarea:not(:focus),
.comment-form select:not(:focus) {
    background-color: #f8f9fa;
}

.comment-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-color: #f8f9fa;
    background-image: none;
}

.comment-form input:focus,
.comment-form textarea:focus,
.comment-form select:focus {
    outline: none;
    border-color: var(--color-marron-oscuro);
    box-shadow: 0 0 0 2px rgba(185, 122, 58, 0.15);
    background-color: white;
}

.comment-form .form-group label:not(.file-label) {
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
    color: #999;
    transition: all 0.2s ease;
    pointer-events: none;
    font-size: 0.85rem;
}

/* Label flotante: arriba cuando hay foco o valor (JS añade .label-floated) */
.comment-form .form-group.label-floated label:not(.file-label),
.comment-form select ~ label,
.comment-form select:focus ~ label,
.comment-form select:valid ~ label,
.comment-form input:focus ~ label,
.comment-form input:not(:placeholder-shown) ~ label,
.comment-form input[type="date"]:valid ~ label,
.comment-form textarea:focus ~ label,
.comment-form textarea:not(:placeholder-shown) ~ label {
    top: -0.4rem;
    left: 0.5rem;
    font-size: 0.7rem;
    background-color: #f8f9fa;
    padding: 0 0.35rem;
    color: var(--color-marron-claro);
}

.rating-group {
    margin-bottom: 0.4rem;
}

.rating-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.35rem;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
}

.rating-stars .star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.2rem;
    color: #ddd;
    transition: color 0.2s ease, transform 0.15s ease;
}

.rating-stars .star:hover {
    transform: scale(1.15);
}

.rating-stars .star i {
    display: block;
}

.rating-stars .star.active i,
.rating-stars .star:hover i {
    color: #e6b800;
}

.rating-stars .star.active i {
    font-weight: 900;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--color-marron-oscuro);
    cursor: pointer;
    margin-bottom: 0.35rem;
}

#comment-photos {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.25rem 0;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.file-preview-item {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-submit {
    margin-top: 0.35rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-marron-claro);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.comment-form-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.6rem;
    align-items: center;
}

.comment-cancel-btn {
    padding: 0.5rem 0.9rem;
    background: transparent;
    border: 1px solid var(--color-marron-claro);
    color: var(--color-marron-oscuro);
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-cancel-btn:hover {
    background: var(--color-beige);
}

.comment-submit:hover {
    background-color: var(--color-marron-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 59, 26, 0.2);
}

/* Reviews carousel */
.reviews-carousel-wrapper {
    margin-top: 1rem;
}

.reviews-carousel-wrapper h3 {
    font-size: 1.25rem;
    color: var(--color-marron-oscuro);
    margin-bottom: 1rem;
    text-align: center;
}

.reviews-carousel-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.reviews-carousel-container {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    order: 2;
}

.reviews-carousel-container.reviews-carousel-empty .reviews-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
}

.reviews-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.reviews-carousel-slide {
    flex: 0 0 calc(100% / var(--slides-count, 3));
    width: calc(100% / var(--slides-count, 3));
    min-width: 0;
    min-height: 280px;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.reviews-carousel-prev {
    flex: 0 0 44px;
    order: 1;
}

.reviews-carousel-next {
    flex: 0 0 44px;
    order: 3;
}

.reviews-carousel-btn,
.reviews-carousel-prev,
.reviews-carousel-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--color-marron-claro);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.reviews-carousel-btn:hover {
    background: var(--color-marron-oscuro);
    transform: scale(1.05);
}

.reviews-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.reviews-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.reviews-carousel-dot:hover {
    background: var(--color-marron-claro);
}

.reviews-carousel-dot.active {
    background: var(--color-marron-oscuro);
    transform: scale(1.2);
}

.reviews-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px dashed #ddd;
    color: #666;
    font-size: 1.05rem;
}

.reviews-empty-link {
    background: none;
    border: none;
    color: var(--color-marron-claro);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
}

.reviews-empty-link:hover {
    color: var(--color-marron-oscuro);
}

.comment-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.comment-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-avatar-initials {
    background: var(--color-marron-claro);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.comment-meta {
    flex: 1;
    min-width: 0;
}

.comment-author {
    display: block;
    font-weight: 600;
    color: var(--color-negro);
    margin-bottom: 0.15rem;
}

.comment-province {
    font-size: 0.85rem;
    color: #666;
}

.comment-rating {
    margin-top: 0.35rem;
}

.comment-rating .comment-star {
    font-size: 0.9rem;
    color: #ddd;
}

.comment-rating .comment-star.filled {
    color: #e6b800;
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-negro);
    margin: 0 0 0.5rem 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.comment-attached-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}
