/* ==========================================================================
   ALG Reformas Integrales — sistema visual
   Azul marino y dorado sobre cemento pulido. Sin frameworks.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
    /* Color */
    --ink:          #061422;
    --navy:         #081B30;
    --navy-2:       #0F2B47;
    --navy-3:       #1B3E60;
    --gold:         #C29B4F;
    --gold-bright:  #D9B872;
    --gold-soft:    #E7D2A4;
    --plaster:      #E9ECEE;
    --plaster-2:    #F4F6F7;
    --white:        #FFFFFF;
    --grey:         #6B7480;
    --grey-2:       #A8B0B8;
    --line:         rgba(8, 27, 48, 0.12);
    --line-light:   rgba(255, 255, 255, 0.16);
    --whatsapp:     #25D366;

    /* Tipografía */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Archivo', system-ui, -apple-system, sans-serif;
    --font-mark:    'Cinzel', Georgia, serif;

    /* Escala tipográfica fluida */
    --fs-xs:   0.75rem;
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-md:   clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
    --fs-lg:   clamp(1.3rem, 0.8vw + 1.1rem, 1.6rem);
    --fs-xl:   clamp(1.7rem, 1.6vw + 1.3rem, 2.4rem);
    --fs-2xl:  clamp(2.2rem, 3vw + 1.4rem, 3.6rem);
    --fs-3xl:  clamp(2.8rem, 5vw + 1.2rem, 5.2rem);

    /* Ritmo */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.5rem;
    --space-5: 4rem;
    --space-6: 6rem;
    --space-7: 9rem;

    /* Estructura */
    --wrap: 1240px;
    --wrap-narrow: 780px;
    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --header-h: 84px;
    --radius: 2px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- 2. Base ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--navy);
    background: var(--plaster-2);
    overflow-x: hidden;
}

img, picture, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0 0 var(--space-2);
    text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-2); text-wrap: pretty; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--navy); }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: var(--radius);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 200;
    background: var(--navy);
    color: var(--white);
    padding: var(--space-2) var(--space-3);
}
.skip-link:focus { left: 0; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- 3. Utilidades de composición --------------------------------------- */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.band { padding-block: var(--space-6); }
.band-tight { padding-block: var(--space-5); }
.band-navy { background: var(--navy); color: var(--plaster); }
.band-navy h1, .band-navy h2, .band-navy h3 { color: var(--white); }
.band-plaster { background: var(--plaster); }
.band-white { background: var(--white); }

/* Etiqueta de sección: hilo dorado + versalitas. Sustituye a los títulos sueltos. */
.eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mark);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-3);
}
.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}
.eyebrow-center { justify-content: center; }

.lede {
    font-size: var(--fs-md);
    color: var(--grey);
    max-width: 58ch;
}
.band-navy .lede { color: var(--grey-2); }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}
@media (min-width: 900px) {
    .section-head-split {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: end;
        gap: var(--space-4);
    }
}

/* --- 4. Botones --------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1.05em 2.2em;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease),
                border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-bright); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); background: transparent; }

.btn-ghost-light {
    background: transparent;
    color: var(--white);
    border-color: var(--line-light);
}
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); }

.btn-wa { background: var(--whatsapp); color: #06331A; }
.btn-wa:hover { background: #1fbb5a; }

.btn-block { width: 100%; }

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* Enlace con subrayado que crece */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    font-weight: 600;
    font-size: var(--fs-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    padding-bottom: 3px;
    border-bottom: 1px solid var(--gold);
    transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow:hover { gap: 1em; color: var(--gold); }
.band-navy .link-arrow { color: var(--white); }
.band-navy .link-arrow:hover { color: var(--gold); }

/* --- 5. Cabecera -------------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: transparent;
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
                border-color 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}
.site-header.is-solid {
    background: var(--white);
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo {
    width: 52px; height: 52px;
    object-fit: contain;
    border-radius: var(--radius);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-family: var(--font-mark);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--navy);
    transition: color 0.35s var(--ease);
}
.brand-tag {
    font-family: var(--font-mark);
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-top: 4px;
}
.site-header.is-transparent .brand-name { color: var(--white); }

.nav-list { display: flex; align-items: center; gap: var(--space-3); }
.nav-link {
    position: relative;
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--navy);
    padding: 0.4em 0;
    transition: color 0.25s var(--ease);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }
.nav-link[aria-current="page"] { color: var(--gold); }
.site-header.is-transparent .nav-link { color: var(--white); }
.site-header.is-transparent .nav-link:hover { color: var(--gold); }

.header-cta { display: none; }
@media (min-width: 1100px) { .header-cta { display: inline-flex; } }

.nav-toggle {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}
.site-header.is-transparent .nav-toggle { border-color: var(--line-light); }
.nav-toggle span {
    display: block;
    width: 20px; height: 1.5px;
    background: var(--navy);
    position: relative;
    transition: background 0.2s var(--ease);
}
.site-header.is-transparent .nav-toggle span { background: var(--white); }
.nav-toggle span::before, .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px; height: 1.5px;
    background: inherit;
    transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); background: var(--navy); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); background: var(--navy); }

@media (min-width: 900px) {
    .nav-toggle { display: none; }
}

@media (max-width: 899px) {
    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: var(--space-3) var(--gutter) var(--space-4);
        transform: translateY(-120%);
        transition: transform 0.4s var(--ease);
        box-shadow: 0 24px 40px -24px rgba(6, 20, 34, 0.4);
    }
    .site-nav.is-open { transform: translateY(0); }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link {
        padding: var(--space-2) 0;
        border-bottom: 1px solid var(--line);
        font-size: var(--fs-md);
        color: var(--navy);
    }
    .nav-link::after { display: none; }
    .nav-cta-mobile { margin-top: var(--space-3); }
}

/* --- 6. Hero ------------------------------------------------------------ */

.hero {
    position: relative;
    min-height: min(92vh, 860px);
    display: flex;
    align-items: flex-end;
    padding-top: calc(var(--header-h) + var(--space-4));
    padding-bottom: 0;
    overflow: hidden;
    background: var(--navy);
}
.hero-media {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(6, 20, 34, 0.72) 0%,
        rgba(6, 20, 34, 0.42) 42%,
        rgba(6, 20, 34, 0.92) 100%);
}
.hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: var(--space-5);
}
.hero h1 {
    color: var(--white);
    max-width: 15ch;
    margin-bottom: var(--space-3);
}
.hero h1 em {
    font-style: italic;
    color: var(--gold-soft);
}
.hero-sub {
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--fs-md);
    max-width: 48ch;
    margin-bottom: var(--space-4);
}

/* Ficha técnica: la barra de datos al pie del hero */
.hero-facts {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line-light);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.fact {
    padding: var(--space-3) var(--space-3) var(--space-3) 0;
    border-right: 1px solid var(--line-light);
}
.fact:last-child { border-right: 0; }
.fact-num {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    color: var(--gold);
    line-height: 1;
    display: block;
}
.fact-label {
    font-size: var(--fs-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 0.5em;
    display: block;
}

/* Cabecera interior de páginas secundarias */
.page-head {
    background: var(--navy);
    color: var(--white);
    padding-top: calc(var(--header-h) + var(--space-5));
    padding-bottom: var(--space-5);
    position: relative;
    overflow: hidden;
}
.page-head::after {
    content: "";
    position: absolute;
    right: -80px; top: -80px;
    width: 320px; height: 320px;
    border: 1px solid var(--line-light);
    border-radius: 50%;
}
.page-head h1 { max-width: 18ch; position: relative; z-index: 1; }
.page-head .lede { color: var(--grey-2); position: relative; z-index: 1; }

.crumbs {
    display: flex;
    gap: 0.6em;
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-2);
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { color: var(--gold); }

/* --- 7. Tarjetas de servicio -------------------------------------------- */

.grid {
    display: grid;
    gap: var(--space-3);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.service {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--navy);
    min-height: 380px;
    border-radius: var(--radius);
}
.service img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease), opacity 0.5s var(--ease);
    opacity: 0.78;
}
.service:hover img { transform: scale(1.06); opacity: 0.55; }
.service-body {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-3);
    background: linear-gradient(180deg, transparent 30%, rgba(6, 20, 34, 0.9) 100%);
}
.service-index {
    font-family: var(--font-mark);
    font-size: var(--fs-xs);
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.6em;
}
.service h3 { color: var(--white); margin-bottom: 0.4em; }
.service p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--fs-sm);
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
}
.service:hover p, .service:focus-visible p { max-height: 7em; opacity: 1; }

/* Servicio destacado a doble ancho */
@media (min-width: 900px) {
    .service-wide { grid-column: span 2; }
}

/* --- 8. Bloque partido imagen / texto ----------------------------------- */

.split {
    display: grid;
    gap: var(--space-4);
    align-items: center;
}
@media (min-width: 900px) {
    .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
    .split-reverse .split-media { order: 2; }
}
.split-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-media::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

/* --- 9. Signature: comparador antes / después --------------------------- */

.compare {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy);
    touch-action: pan-y;
    cursor: ew-resize;
    user-select: none;
}
.compare img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.compare-after {
    clip-path: inset(0 0 0 var(--pos, 50%));
}
.compare-handle {
    position: absolute;
    top: 0; bottom: 0;
    left: var(--pos, 50%);
    width: 2px;
    background: var(--gold);
    transform: translateX(-1px);
    pointer-events: none;
    z-index: 3;
}
.compare-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    letter-spacing: -0.1em;
    box-shadow: 0 6px 22px rgba(6, 20, 34, 0.45);
}
.compare-tag {
    position: absolute;
    top: var(--space-2);
    z-index: 4;
    font-family: var(--font-mark);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 0.5em 1em;
    background: rgba(6, 20, 34, 0.72);
    color: var(--white);
    border: 1px solid var(--line-light);
}
.compare-tag-before { left: var(--space-2); }
.compare-tag-after { right: var(--space-2); color: var(--gold); }

.compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    margin: 0;
    cursor: ew-resize;
    z-index: 5;
}

.compare-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-3);
}
.compare-switcher button {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.7em 1.2em;
    background: transparent;
    border: 1px solid var(--line-light);
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.compare-switcher button:hover { color: var(--white); border-color: var(--gold); }
.compare-switcher button[aria-pressed="true"] {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

/* --- 10. Proceso (secuencia real, por eso va numerado) ------------------ */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
    counter-increment: step;
    display: grid;
    gap: var(--space-2);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.band-navy .step { border-top-color: var(--line-light); }
.step:last-child { border-bottom: 1px solid var(--line); }
.band-navy .step:last-child { border-bottom-color: var(--line-light); }
@media (min-width: 800px) {
    .step { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-4); }
}
.step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    color: var(--gold);
    line-height: 1;
}
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--grey); }
.band-navy .step p { color: var(--grey-2); }

/* --- 11. Galería de proyectos ------------------------------------------- */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-4);
}
.filter {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.75em 1.4em;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--navy);
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-2);
}
.shot {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy);
    border: 0;
    padding: 0;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    display: block;
    width: 100%;
}
.shot.is-tall { aspect-ratio: 3 / 4; }
@media (min-width: 900px) {
    .shot.is-feature { grid-column: span 2; aspect-ratio: 16 / 9; }
}
.shot img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease), opacity 0.4s var(--ease);
}
.shot:hover img { transform: scale(1.05); opacity: 0.7; }
.shot-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: var(--space-3) var(--space-2) var(--space-2);
    background: linear-gradient(180deg, transparent, rgba(6, 20, 34, 0.88));
    text-align: left;
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.35s var(--ease);
}
.shot:hover .shot-caption, .shot:focus-visible .shot-caption {
    transform: translateY(0);
    opacity: 1;
}
.shot-caption strong {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-base);
    font-weight: 400;
    color: var(--white);
}
.shot-caption span {
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}
.shot.is-hidden { display: none; }

/* Visor a pantalla completa */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(6, 20, 34, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-2);
}
.lightbox.is-open { display: flex; }
.lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 78vh;
    object-fit: contain;
    border-radius: var(--radius);
}
.lightbox-caption {
    position: absolute;
    bottom: var(--space-4);
    left: 0; right: 0;
    text-align: center;
    color: var(--grey-2);
    font-size: var(--fs-sm);
}
.lightbox-btn {
    position: absolute;
    background: transparent;
    border: 1px solid var(--line-light);
    color: var(--white);
    width: 52px; height: 52px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.25s var(--ease);
}
.lightbox-btn:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-close { top: var(--space-3); right: var(--space-3); }
.lightbox-prev { left: var(--space-2); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-2); top: 50%; transform: translateY(-50%); }

/* --- 12. Testimonios ---------------------------------------------------- */

.quotes {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.quote {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.band-navy .quote {
    background: var(--navy-2);
    border-color: var(--line-light);
}
.quote blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-md);
    line-height: 1.45;
}
.quote figcaption {
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey);
}
.band-navy .quote figcaption { color: var(--grey-2); }
.stars { color: var(--gold); letter-spacing: 0.2em; font-size: var(--fs-sm); }

/* --- 13. Formularios ---------------------------------------------------- */

.form-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-wide { grid-column: 1 / -1; }
.field label {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey);
}
.field input,
.field select,
.field textarea {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.9em 1em;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(194, 155, 79, 0.18);
}
.field-error {
    font-size: var(--fs-xs);
    color: #B3261E;
    min-height: 1.1em;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #B3261E; }

.check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: var(--fs-sm);
    color: var(--grey);
}
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--gold); }
.check a { color: var(--navy); text-decoration: underline; }

.form-status {
    padding: var(--space-2);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    display: none;
}
.form-status.is-ok { display: block; background: #E6F4EA; color: #17593A; }
.form-status.is-error { display: block; background: #FBE9E7; color: #9C2B22; }

/* --- 14. Calculadora de presupuesto ------------------------------------- */

.calc {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.calc-steps {
    display: flex;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}
.calc-tab {
    flex: 1 0 auto;
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey);
    border-right: 1px solid var(--line);
    white-space: nowrap;
}
.calc-tab:last-child { border-right: 0; }
.calc-tab.is-active { color: var(--navy); background: var(--plaster); font-weight: 600; }
.calc-tab.is-done { color: var(--gold); }

.calc-panel { padding: var(--space-4); display: none; }
.calc-panel.is-active { display: block; }

.choices {
    display: grid;
    gap: var(--space-2);
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.choice {
    position: relative;
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-3);
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.choice:hover { border-color: var(--navy-3); }
.choice input { position: absolute; opacity: 0; }
.choice input:focus-visible ~ .choice-title { outline: 2px solid var(--gold); outline-offset: 3px; }
.choice-title {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-base);
    margin-bottom: 0.25em;
}
.choice-note { font-size: var(--fs-xs); color: var(--grey); display: block; }
.choice:has(input:checked) {
    border-color: var(--gold);
    background: rgba(194, 155, 79, 0.07);
    box-shadow: inset 0 0 0 1px var(--gold);
}

.calc-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
}

.calc-result {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-4);
    text-align: center;
}
.calc-figure {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    color: var(--gold);
    line-height: 1.1;
    margin: var(--space-2) 0;
}
.calc-disclaimer {
    font-size: var(--fs-xs);
    color: var(--grey-2);
    max-width: 48ch;
    margin: var(--space-2) auto 0;
}
.calc-breakdown {
    list-style: none;
    margin: var(--space-3) 0 0;
    padding: 0;
    text-align: left;
    max-width: 420px;
    margin-inline: auto;
}
.calc-breakdown li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 0.6em 0;
    border-bottom: 1px solid var(--line-light);
    font-size: var(--fs-sm);
    color: var(--grey-2);
}
.calc-breakdown li span:last-child { color: var(--white); }

/* --- 15. FAQ ------------------------------------------------------------ */

.faq details {
    border-bottom: 1px solid var(--line);
    padding: var(--space-3) 0;
}
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--gold);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
    margin: var(--space-2) 0 0;
    color: var(--grey);
    max-width: 68ch;
}

/* --- 16. Contacto ------------------------------------------------------- */

.contact-list { display: grid; gap: var(--space-3); }
.contact-item {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line-light);
}
.contact-item:last-child { border-bottom: 0; }
.contact-icon {
    width: 42px; height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
}
.contact-item dt {
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey-2);
    margin-bottom: 0.2em;
}
.contact-item dd { margin: 0; font-size: var(--fs-md); }
.contact-item dd a:hover { color: var(--gold); }

.map-frame {
    border: 0;
    width: 100%;
    height: 420px;
    filter: grayscale(1) contrast(1.05);
    border-radius: var(--radius);
}

/* --- 17. Pie ------------------------------------------------------------ */

.site-footer {
    background: var(--ink);
    color: var(--grey-2);
    padding-top: var(--space-5);
    border-top: 3px solid var(--gold);
}
.footer-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    padding-bottom: var(--space-4);
}
.footer-grid h4 {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-2);
}
.footer-grid a:hover { color: var(--white); }
.footer-grid li { margin-bottom: 0.6em; font-size: var(--fs-sm); }

.socials { display: flex; gap: 0.75rem; }
.socials a {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-light);
    border-radius: 50%;
    transition: all 0.25s var(--ease);
}
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid var(--line-light);
    padding: var(--space-3) 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: space-between;
    font-size: var(--fs-xs);
}

/* --- 18. Acciones flotantes -------------------------------------------- */

.dock {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.dock a, .dock button {
    width: 54px; height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    font-size: 1.4rem;
    box-shadow: 0 10px 26px -8px rgba(6, 20, 34, 0.55);
    transition: transform 0.25s var(--ease);
}
.dock a:hover, .dock button:hover { transform: scale(1.08); }
.dock-wa { background: var(--whatsapp); color: #FFFFFF; }
.dock-top {
    background: var(--navy);
    color: var(--white);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.25s var(--ease);
}
.dock-top.is-visible { opacity: 1; pointer-events: auto; }

/* Barra inferior sólo en móvil */
.mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--navy);
    border-top: 1px solid var(--line-light);
}
.mobile-bar a {
    padding: 0.85rem 0.3rem;
    text-align: center;
    color: var(--white);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-right: 1px solid var(--line-light);
}
.mobile-bar a:last-child { border-right: 0; }
.mobile-bar i { display: block; font-size: 1.1rem; margin-bottom: 0.25rem; color: var(--gold); }
@media (min-width: 700px) { .mobile-bar { display: none; } }
@media (max-width: 699px) {
    body { padding-bottom: 62px; }
    .dock { bottom: 76px; right: 16px; }
    .dock a, .dock button { width: 48px; height: 48px; }
}

/* --- 19. Aviso de cookies ---------------------------------------------- */

.cookie-bar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translate(-50%, 200%);
    width: min(880px, calc(100vw - 32px));
    z-index: 150;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px -20px rgba(6, 20, 34, 0.5);
    padding: var(--space-3);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    transition: transform 0.5s var(--ease);
}
.cookie-bar.is-visible { transform: translate(-50%, 0); }
.cookie-bar p { margin: 0; flex: 1 1 320px; font-size: var(--fs-sm); color: var(--grey); }
.cookie-bar .btn { padding: 0.75em 1.5em; }
@media (max-width: 699px) { .cookie-bar { bottom: 74px; } }

/* --- 20. Revelado al hacer scroll -------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.09s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.27s; }

/* --- 21. Página legal --------------------------------------------------- */

.legal { max-width: 74ch; }
.legal h2 { font-size: var(--fs-xl); margin-top: var(--space-5); }
.legal h3 { font-size: var(--fs-md); margin-top: var(--space-3); }
.legal p, .legal li { color: var(--grey); }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: var(--space-2); }
.legal li { margin-bottom: 0.4em; }

/* --- 22. Detalles varios ------------------------------------------------ */

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-2);
}
.tag {
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45em 0.9em;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--grey);
}
.band-navy .tag { border-color: var(--line-light); color: var(--grey-2); }

.spec-list { border-top: 1px solid var(--line); }
.band-navy .spec-list { border-top-color: var(--line-light); }
.spec-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 0.85em 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-sm);
}
.band-navy .spec-list li { border-bottom-color: var(--line-light); }
.spec-list li span:first-child { color: var(--grey); }
.band-navy .spec-list li span:first-child { color: var(--grey-2); }
.spec-list li span:last-child { font-weight: 600; text-align: right; }

.cta-strip {
    background: var(--gold);
    color: var(--navy);
    padding-block: var(--space-5);
}
.cta-strip h2 { color: var(--navy); }
.cta-strip p { color: rgba(8, 27, 48, 0.78); }
.cta-strip .btn-navy:hover { background: var(--ink); }
