/* ============================================================
   CG LOS CABOS — Premium Landing Page
   Design: Cinematic · Minimal · Luxury
   Fonts: Cinzel (headings) + Josefin Sans (body)
   ============================================================ */


/* ──────────────────────────────────────────────────────────────
   1. CUSTOM PROPERTIES
────────────────────────────────────────────────────────────── */
:root {
    /* Palette — dark luxury */
    --c-bg:           #0A0A08;
    --c-bg-alt:       #111110;
    --c-bg-card:      #17170F; /* rich dark warm */
    --c-bg-light:     #F5F2EE;
    --c-text:         #E8E0D5;
    --c-text-muted:   #8C7E6E;
    --c-text-dark:    #1A1815;
    --c-gold:         #C9A96E;
    --c-gold-light:   #E8D5A8;
    --c-gold-dark:    #A07840;
    --c-white:        #FFFFFF;
    --c-border:       rgba(201,169,110,.18);
    --c-border-sub:   rgba(255,255,255,.055);
    --c-whatsapp:     #25D366;

    /* Typography */
    --ff-head:   'Cinzel', Georgia, serif;
    --ff-body:   'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;

    /* Spacing (8px grid) */
    --s-1:  .5rem;
    --s-2:  1rem;
    --s-3:  1.5rem;
    --s-4:  2rem;
    --s-5:  3rem;
    --s-6:  4.5rem;
    --s-7:  6rem;
    --s-8:  9rem;

    /* Layout */
    --max-w:  1200px;
    --max-w-x: 1420px;
    --hdr-h:  80px;

    /* Motion */
    --ease-out:  cubic-bezier(.16,1,.3,1);
    --ease-snap: cubic-bezier(.4,0,.2,1);
    --d-fast:    180ms;
    --d-base:    340ms;
    --d-slow:    600ms;
    --d-slower:  900ms;

    /* Radius */
    --r-sm: 3px;
    --r-md: 8px;

    /* Z-index */
    --z-above:  10;
    --z-hdr:    100;
    --z-float:  200;
}


/* ──────────────────────────────────────────────────────────────
   2. RESET & BASE
────────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--hdr-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
h1,h2,h3,h4 { font-family: var(--ff-head); font-weight: 400; line-height: 1.15; letter-spacing: .025em; }


/* ──────────────────────────────────────────────────────────────
   3. UTILITIES
────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--s-3);
}

.section {
    padding: var(--s-8) 0;
}

.section--dark   { background: var(--c-bg); }
.section--darker { background: var(--c-bg-alt); }

.section-label {
    font-family: var(--ff-body);
    font-size: .625rem;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: var(--s-2);
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 400;
    color: var(--c-text);
    margin-bottom: var(--s-3);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--c-text-muted);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: var(--s-6);
}

/* ──────────────────────────────────────────────────────────────
   4. BUTTONS
────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--ff-body);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding: .9rem 2rem;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    transition: background var(--d-base) var(--ease-out),
                color var(--d-base) var(--ease-out),
                border-color var(--d-base) var(--ease-out),
                transform var(--d-base) var(--ease-out),
                box-shadow var(--d-base) var(--ease-out);
    white-space: nowrap;
    min-height: 44px;
    cursor: pointer;
}

.btn-primary {
    background: var(--c-gold);
    color: var(--c-bg);
    border-color: var(--c-gold);
}
.btn-primary:hover {
    background: var(--c-gold-light);
    border-color: var(--c-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201,169,110,.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: transparent;
    color: var(--c-text);
    border-color: rgba(255,255,255,.25);
}
.btn-ghost:hover {
    border-color: var(--c-gold);
    color: var(--c-gold);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--c-gold);
    border-color: var(--c-gold);
}
.btn-outline:hover {
    background: var(--c-gold);
    color: var(--c-bg);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--c-whatsapp);
    color: var(--c-white);
    border-color: var(--c-whatsapp);
}
.btn-whatsapp:hover {
    background: #1DA851;
    border-color: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37,211,102,.3);
}
.btn-whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }


/* ──────────────────────────────────────────────────────────────
   5. HEADER
────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--z-hdr);
    height: var(--hdr-h);
    display: flex;
    align-items: center;
    transition: background var(--d-slow) var(--ease-out),
                backdrop-filter var(--d-slow) var(--ease-out),
                box-shadow var(--d-slow) var(--ease-out);
}

.site-header.scrolled {
    background: rgba(10,10,8,.93);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 rgba(255,255,255,.05);
}

.nav-container {
    width: 100%;
    max-width: var(--max-w-x);
    margin: 0 auto;
    padding: 0 var(--s-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-shrink: 0;
}

.logo-cg {
    font-family: var(--ff-head);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--c-gold);
    letter-spacing: .06em;
}

.logo-sep {
    color: rgba(201,169,110,.35);
    font-size: 1rem;
}

.logo-name {
    font-family: var(--ff-body);
    font-size: .5625rem;
    font-weight: 500;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: rgba(232,224,213,.75);
}

/* Nav links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--s-5);
}

.nav-link {
    font-size: .625rem;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(232,224,213,.65);
    position: relative;
    padding-bottom: 2px;
    transition: color var(--d-fast) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 1px;
    background: var(--c-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--d-base) var(--ease-out);
}

.nav-link:hover { color: var(--c-text); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-link.nav-cta {
    color: var(--c-gold);
    border: 1px solid rgba(201,169,110,.38);
    padding: .5rem 1.125rem;
    border-radius: var(--r-sm);
    letter-spacing: .16em;
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover {
    background: var(--c-gold);
    color: var(--c-bg);
    border-color: var(--c-gold);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--c-text);
    transition: transform var(--d-base) var(--ease-out),
                opacity var(--d-base) ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ──────────────────────────────────────────────────────────────
   6. HERO
────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100dvh;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: var(--c-bg);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    position: relative;
    z-index: 0; /* above ::before fallback, below overlay */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* Fallback gradient shown when no video */
.hero-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 60% 40%, rgba(201,169,110,.06) 0%, transparent 60%),
        linear-gradient(135deg, #0D0D0A 0%, #1A1612 50%, #0A0A08 100%);
    z-index: -1; /* behind video */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.3) 0%,
        rgba(0,0,0,.45) 55%,
        rgba(10,10,8,.88) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--s-3) clamp(4rem, 10vh, 7rem);
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    font-size: .5625rem;
    font-weight: 500;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: var(--s-3);
    opacity: 0;
    animation: aFadeUp var(--d-slow) var(--ease-out) .2s forwards;
}

.hero-title {
    font-size: clamp(1.875rem, 3.8vw, 3.25rem);
    font-weight: 400;
    letter-spacing: .22em;
    white-space: nowrap;
    color: var(--c-white);
    margin-bottom: var(--s-1);
    opacity: 0;
    animation: aFadeUp var(--d-slower) var(--ease-out) .4s forwards;
}

.hero-subtitle {
    font-family: var(--ff-body);
    font-size: clamp(.625rem, 1.8vw, .875rem);
    font-weight: 300;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: rgba(232,224,213,.55);
    margin-bottom: var(--s-4);
    opacity: 0;
    animation: aFadeUp var(--d-slow) var(--ease-out) .65s forwards;
}

.hero-desc {
    font-size: clamp(1rem, 2.3vw, 1.3125rem);
    font-weight: 300;
    color: rgba(232,224,213,.82);
    line-height: 1.65;
    margin-bottom: var(--s-5);
    opacity: 0;
    animation: aFadeUp var(--d-slow) var(--ease-out) .85s forwards;
}

.br-desk { display: none; }

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    flex-wrap: wrap;
    opacity: 0;
    animation: aFadeUp var(--d-slow) var(--ease-out) 1.05s forwards;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--s-4);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    opacity: 0;
    animation: aFadeIn var(--d-slow) ease 1.8s forwards;
}

.hero-scroll span {
    font-size: .5rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(232,224,213,.3);
}

.scroll-line {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, rgba(201,169,110,.7) 0%, transparent 100%);
    animation: aScrollPulse 2.2s ease-in-out infinite;
}


/* ──────────────────────────────────────────────────────────────
   7. CASA ALDORA
────────────────────────────────────────────────────────────── */
.aldora-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--s-8);
    align-items: start;
    padding-top: var(--s-4);
}

.aldora-content .section-title {
    font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.aldora-tagline {
    font-style: italic;
    font-size: 1.1875rem;
    color: var(--c-gold);
    font-weight: 300;
    letter-spacing: .02em;
    margin-bottom: var(--s-3);
}

.aldora-body {
    font-size: 1.0625rem;
    color: var(--c-text-muted);
    line-height: 1.85;
    margin-bottom: var(--s-5);
    max-width: 540px;
}

/* Specs panel */
.aldora-specs {
    border-left: 1px solid var(--c-border);
    padding-left: var(--s-5);
    padding-top: .25rem;
}

.spec-item {
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--c-border-sub);
    display: flex;
    flex-direction: column;
    gap: .375rem;
}
.spec-item:last-child { border-bottom: none; }

.spec-label {
    font-size: .5875rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--c-gold);
}

.spec-value {
    font-family: var(--ff-head);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--c-text);
}

/* ── Casa Aldora logo ── */
.aldora-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--s-4);
}
.aldora-logo img {
    width: 110px;
    height: auto;
    opacity: .92;
}

/* ── Brand strip (home technologies) ── */
.brand-strip {
    margin-top: var(--s-6);
    padding-top: var(--s-5);
    border-top: 1px solid var(--c-border-sub);
    text-align: center;
}
.brand-strip-label {
    font-size: .5rem;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: var(--s-3);
}
.brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s-4) var(--s-5);
}
.brand-item {
    opacity: .38;
    transition: opacity var(--d-fast) ease;
    display: flex;
    align-items: center;
}
.brand-item:hover { opacity: .70; }
.brand-item svg {
    height: 22px;
    width: auto;
    color: var(--c-text);
    fill: var(--c-text);
}


/* ──────────────────────────────────────────────────────────────
   8. GALLERY
────────────────────────────────────────────────────────────── */
.gallery .container { margin-bottom: var(--s-5); }

.gallery .section-title {
    font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
    padding: 0 var(--s-3);
    max-width: var(--max-w-x);
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 4/3;
    grid-column: span 4;
    background: var(--c-bg-card);
    position: relative;
}

/* Placeholder shimmer for missing images */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #141410 0%, #1E1C18 50%, #141410 100%);
    z-index: 0;
}

.gallery-item--large {
    grid-column: span 8;
    grid-row: span 2;
    aspect-ratio: unset;
}

.gallery-item--wide {
    grid-column: span 12;
    aspect-ratio: 21/9;
}

.gallery-img-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--d-slow) var(--ease-out),
                filter var(--d-slow) var(--ease-out);
    filter: brightness(.85) saturate(.95);
}

.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1);
}

/* Gold line accent on hover */
.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--c-gold);
    transform: scaleX(0);
    transition: transform var(--d-base) var(--ease-out);
    z-index: 2;
}
.gallery-item:hover::after { transform: scaleX(1); }


/* ──────────────────────────────────────────────────────────────
   9. SERVICES
────────────────────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--s-3);
    margin-top: var(--s-5);
}

.service-card {
    padding: var(--s-5) var(--s-4);
    border: 1px solid var(--c-border-sub);
    border-radius: var(--r-md);
    background: var(--c-bg-card);
    transition: border-color var(--d-base) ease,
                transform var(--d-base) var(--ease-out),
                box-shadow var(--d-base) var(--ease-out);
}

.service-card:hover {
    border-color: var(--c-border);
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,.35);
}

.service-icon {
    width: 40px;
    height: 40px;
    color: var(--c-gold);
    margin-bottom: var(--s-3);
}
.service-icon svg { width: 100%; height: 100%; }

.service-title {
    font-family: var(--ff-head);
    font-size: .9375rem;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: var(--s-2);
    letter-spacing: .04em;
    line-height: 1.4;
}

.service-body {
    font-size: .9375rem;
    color: var(--c-text-muted);
    line-height: 1.75;
}


/* ──────────────────────────────────────────────────────────────
   10. PROCESS
────────────────────────────────────────────────────────────── */
.process-list {
    margin-top: var(--s-6);
    list-style: none;
}

.process-step {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: var(--s-5);
    align-items: start;
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--c-border-sub);
}
.process-step:last-child { border-bottom: none; }

.process-step:hover .process-num { color: var(--c-gold); }

.process-num {
    font-family: var(--ff-head);
    font-size: 2.75rem;
    font-weight: 400;
    color: rgba(201,169,110,.2);
    line-height: 1;
    letter-spacing: -.01em;
    transition: color var(--d-base) var(--ease-out);
}

.process-content h3 {
    font-family: var(--ff-head);
    font-size: 1.1875rem;
    font-weight: 400;
    color: var(--c-text);
    margin-bottom: .625rem;
    letter-spacing: .03em;
}

.process-content p {
    font-size: .9375rem;
    color: var(--c-text-muted);
    line-height: 1.8;
    max-width: 520px;
}


/* ──────────────────────────────────────────────────────────────
   11. WHY
────────────────────────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: var(--s-8);
    align-items: start;
}

.why-left .section-title {
    font-size: clamp(1.875rem, 3.5vw, 2.875rem);
    margin-bottom: var(--s-5);
    line-height: 1.25;
}

.why-list { list-style: none; }

.why-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--s-3);
    align-items: start;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--c-border-sub);
}
.why-item:last-child { border-bottom: none; }

.why-num {
    font-family: var(--ff-head);
    font-size: .6875rem;
    font-weight: 600;
    color: var(--c-gold);
    letter-spacing: .12em;
    padding-top: .25rem;
}

.why-item h3 {
    font-family: var(--ff-head);
    font-size: 1rem;
    font-weight: 400;
    color: var(--c-text);
    margin-bottom: .5rem;
    letter-spacing: .03em;
}

.why-item p {
    font-size: .9375rem;
    color: var(--c-text-muted);
    line-height: 1.78;
}


/* ──────────────────────────────────────────────────────────────
   12. CONTACT
────────────────────────────────────────────────────────────── */
.contact-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    margin-bottom: var(--s-6);
    line-height: 1.22;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    align-items: start;
}

.contact-intro {
    font-size: 1.0625rem;
    color: var(--c-text-muted);
    line-height: 1.85;
    margin-bottom: var(--s-5);
    max-width: 420px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    margin-top: var(--s-4);
}

.contact-person {
    font-size: .625rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--c-gold);
}
.contact-details a {
    font-size: .875rem;
    color: var(--c-text-muted);
    transition: color var(--d-fast) ease;
}
.contact-details a:hover { color: var(--c-gold); }

/* ── Form ── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.form-group--full { grid-column: span 2; }

.form-group label {
    font-size: .5875rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.req { color: var(--c-gold); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,.038);
    border: 1px solid var(--c-border-sub);
    border-radius: var(--r-sm);
    color: var(--c-text);
    font-family: var(--ff-body);
    font-size: .9375rem;
    font-weight: 300;
    padding: .875rem 1rem;
    width: 100%;
    min-height: 44px;
    transition: border-color var(--d-fast) ease,
                background var(--d-fast) ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C7E6E' stroke-width='1.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.75rem;
    cursor: pointer;
}

.form-group select option {
    background: #17170F;
    color: var(--c-text);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.65;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(140,126,110,.42); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(201,169,110,.65);
    background: rgba(201,169,110,.04);
}

.form-group input:user-invalid,
.form-group textarea:user-invalid { border-color: rgba(210,70,70,.5); }

.btn-submit {
    align-self: flex-start;
}

.btn-sending { display: none; }
.btn-submit.is-loading .btn-label  { display: none; }
.btn-submit.is-loading .btn-sending { display: block; }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.form-banner {
    padding: .875rem 1.125rem;
    border-radius: var(--r-sm);
    font-size: .875rem;
    line-height: 1.5;
}

.form-banner--error {
    background: rgba(210,70,70,.08);
    border: 1px solid rgba(210,70,70,.3);
    color: rgba(240,140,140,.9);
}

/* Success message */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
    padding: var(--s-5);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    background: rgba(201,169,110,.05);
}

.form-success svg {
    width: 36px; height: 36px;
    color: var(--c-gold);
}

.form-success h3 {
    font-size: 1.25rem;
    color: var(--c-text);
}

.form-success p {
    font-size: .9375rem;
    color: var(--c-text-muted);
}


/* ──────────────────────────────────────────────────────────────
   13. FOOTER
────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--c-bg);
    border-top: 1px solid var(--c-border-sub);
    padding: var(--s-6) 0 var(--s-5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--s-6);
    align-items: start;
    padding-bottom: var(--s-5);
    border-bottom: 1px solid var(--c-border-sub);
    margin-bottom: var(--s-4);
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: var(--s-2);
}

.footer-brand p {
    font-size: .8125rem;
    color: var(--c-text-muted);
    line-height: 1.7;
}

.footer-nav,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.footer-nav a,
.footer-contact a {
    font-size: .8125rem;
    color: var(--c-text-muted);
    transition: color var(--d-fast) ease;
    letter-spacing: .04em;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--c-gold); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
}

.footer-bottom p {
    font-size: .75rem;
    color: rgba(140,126,110,.45);
    letter-spacing: .05em;
}

.footer-legal a {
    font-size: .75rem;
    color: rgba(140,126,110,.45);
    transition: color var(--d-fast) ease;
}
.footer-legal a:hover { color: var(--c-text-muted); }


/* ──────────────────────────────────────────────────────────────
   14. WHATSAPP FLOAT
────────────────────────────────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: var(--z-float);
    width: 56px;
    height: 56px;
    background: var(--c-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.32);
    transition: transform var(--d-base) var(--ease-out),
                box-shadow var(--d-base) ease;
    opacity: 0;
    animation: aScaleIn .45s var(--ease-out) 2.2s forwards;
}

.wa-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(37,211,102,.48);
}

.wa-float svg {
    width: 28px; height: 28px;
    color: var(--c-white);
}


/* ──────────────────────────────────────────────────────────────
   15. SCROLL ANIMATIONS
────────────────────────────────────────────────────────────── */
.animate-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--d-slow) var(--ease-out),
                transform var(--d-slow) var(--ease-out);
}

.animate-in.is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger: services */
.services-grid .service-card:nth-child(1) { transition-delay:   0ms; }
.services-grid .service-card:nth-child(2) { transition-delay:  80ms; }
.services-grid .service-card:nth-child(3) { transition-delay: 160ms; }
.services-grid .service-card:nth-child(4) { transition-delay: 240ms; }
.services-grid .service-card:nth-child(5) { transition-delay: 320ms; }
.services-grid .service-card:nth-child(6) { transition-delay: 400ms; }

/* Stagger: process */
.process-step:nth-child(1) { transition-delay:   0ms; }
.process-step:nth-child(2) { transition-delay:  80ms; }
.process-step:nth-child(3) { transition-delay: 160ms; }
.process-step:nth-child(4) { transition-delay: 240ms; }
.process-step:nth-child(5) { transition-delay: 320ms; }

/* Stagger: why */
.why-item:nth-child(1) { transition-delay:   0ms; }
.why-item:nth-child(2) { transition-delay:  80ms; }
.why-item:nth-child(3) { transition-delay: 160ms; }
.why-item:nth-child(4) { transition-delay: 240ms; }
.why-item:nth-child(5) { transition-delay: 320ms; }


/* ──────────────────────────────────────────────────────────────
   16. KEYFRAMES
────────────────────────────────────────────────────────────── */
@keyframes aFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

@keyframes aFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes aScrollPulse {
    0%, 100% { opacity: .35; transform: scaleY(.7) translateY(-4px); }
    50%       { opacity: 1;   transform: scaleY(1)  translateY(0);   }
}

@keyframes aScaleIn {
    from { opacity: 0; transform: scale(.78); }
    to   { opacity: 1; transform: scale(1);   }
}


/* ──────────────────────────────────────────────────────────────
   17. REDUCED MOTION
────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .hero-eyebrow, .hero-title, .hero-subtitle,
    .hero-desc, .hero-cta, .hero-scroll, .wa-float,
    .animate-in {
        opacity: 1;
        transform: none;
    }
}


/* ──────────────────────────────────────────────────────────────
   18. RESPONSIVE
────────────────────────────────────────────────────────────── */

/* Large desktop */
@media (min-width: 1280px) {
    .br-desk { display: inline; }
}

/* Tablet – 1024 */
@media (max-width: 1080px) {
    :root { --s-8: 6rem; }

    .aldora-grid  { grid-template-columns: 1fr; gap: var(--s-5); }
    .aldora-specs { border-left: none; border-top: 1px solid var(--c-border); padding-left: 0; padding-top: var(--s-4); }
    .aldora-body  { max-width: 100%; }

    .why-grid { grid-template-columns: 1fr; gap: var(--s-5); }
    .why-left { max-width: 480px; }

    .contact-grid { grid-template-columns: 1fr; gap: var(--s-5); }
    .contact-intro { max-width: 100%; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* Mobile – 768 */
@media (max-width: 768px) {
    :root {
        --hdr-h: 66px;
        --s-7: 4rem;
        --s-8: 4.5rem;
    }

    /* Header mobile */
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        inset: var(--hdr-h) 0 0 0;
        background: rgba(10,10,8,.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--s-5);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--d-base) ease;
    }

    .nav-menu.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: .8125rem;
        letter-spacing: .22em;
    }

    .nav-link.nav-cta { padding: .7rem 1.5rem; }

    /* Hero */
    .hero-title {
        font-size: clamp(1.75rem, 7.5vw, 2.5rem);
        letter-spacing: .13em;
        white-space: normal;
    }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }

    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .gallery-item,
    .gallery-item--large,
    .gallery-item--wide { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }

    /* Process */
    .process-step { grid-template-columns: 70px 1fr; gap: var(--s-3); }
    .process-num  { font-size: 2rem; }

    /* Why */
    .why-item { grid-template-columns: 48px 1fr; }

    /* Contact form */
    .form-row { grid-template-columns: 1fr; }
    .btn-submit { align-self: stretch; width: 100%; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: var(--s-4); }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--s-1); }

    /* Float WA */
    .wa-float { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
    .wa-float svg { width: 24px; height: 24px; }
}

/* Small mobile – 420 */
@media (max-width: 420px) {
    .hero-title { font-size: clamp(1.5rem, 7vw, 1.875rem); letter-spacing: .10em; }
    .section-title { font-size: 1.875rem; }
}
