/* ==========================================================
   Sevilla Tarjetas Plásticas — Sistema de diseño (v4)
   Colores corporativos: carbón #272727 · crema #e4e2dd · oro #d4af37
   ========================================================== */

:root {
    /* Marca */
    --ink: #272727;
    --ink-deep: #1b1b1b;
    --ink-soft: #343434;
    --cream: #e4e2dd;
    --cream-soft: #f2f0eb;
    --paper: #faf9f6;
    --gold: #d4af37;
    --gold-light: #e6c967;
    --gold-text: #8a6d14;          /* oro legible sobre fondos claros (AA) */

    /* Neutros */
    --text: #272727;
    --text-muted: #5f5c56;
    --text-on-dark: #e4e2dd;
    --text-on-dark-muted: #a9a69f;
    --line: rgba(39, 39, 39, .12);
    --line-dark: rgba(228, 226, 221, .12);

    /* Tipografía */
    --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fs-xs: .78rem;
    --fs-sm: .9rem;
    --fs-base: 1.0625rem;
    --fs-lg: clamp(1.1rem, 1rem + .4vw, 1.25rem);
    --fs-h3: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
    --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
    --fs-h1: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem);

    /* Espaciado y forma */
    --gutter: clamp(1rem, 4vw, 2rem);
    --section: clamp(4rem, 3rem + 5vw, 7.5rem);
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.06), 0 24px 60px rgba(0,0,0,.14);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 750; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); }
p { text-wrap: pretty; }
strong { font-weight: 650; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold); }

.text-gold { color: var(--gold); }
.lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 60ch; }
.on-dark .lead { color: var(--text-on-dark-muted); }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--cream-soft); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 { margin-top: .9rem; }
.section-head p { margin-top: 1rem; color: var(--text-muted); font-size: var(--fs-lg); }
.section-dark .section-head p { color: var(--text-on-dark-muted); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head-row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: end; justify-content: space-between; max-width: none; }
.section-head-row > div { max-width: 640px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 52px; padding: .85rem 1.6rem;
    border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
    transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 24px rgba(212, 175, 55, .28); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 12px 30px rgba(212, 175, 55, .38); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-deep); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.on-dark .btn-outline, .btn-outline.on-dark { border-color: rgba(228, 226, 221, .3); color: var(--cream); }
.on-dark .btn-outline:hover, .btn-outline.on-dark:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { min-height: 58px; padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--ink);
    border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================
   Header
   ========================================================== */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--ink);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
/* El blur solo en escritorio: en móvil convertiría a la cabecera en
   bloque contenedor del panel fijo del menú y lo recortaría */
@media (min-width: 901px) {
    .header { background: rgba(39, 39, 39, .94); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }
}
.header.is-scrolled { border-bottom-color: var(--line-dark); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 48px; width: auto; }

.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: .35rem;
    padding: .6rem .9rem; border-radius: 999px;
    color: var(--text-on-dark); font-weight: 550; font-size: .97rem;
    transition: color .2s, background-color .2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link[aria-current="page"] { color: var(--gold); }
.nav-link .chev { width: 14px; height: 14px; opacity: .7; transition: transform .25s; }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
    min-width: 270px; padding: .5rem;
    background: var(--ink-deep); border: 1px solid var(--line-dark); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.dropdown a {
    display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 10px;
    color: var(--text-on-dark); font-size: .95rem;
}
.dropdown a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .55; }
.dropdown a:hover { background: rgba(255,255,255,.06); color: #fff; }
.dropdown a:hover::before { opacity: 1; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .chev { transform: rotate(180deg); }

.header-cta { display: flex; align-items: center; gap: .75rem; }
.header-phone {
    display: inline-flex; align-items: center; gap: .5rem;
    min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px;
    background: var(--gold); color: var(--ink); font-weight: 750; font-size: .95rem; white-space: nowrap;
    transition: background-color .2s, transform .2s var(--ease);
}
.header-phone:hover { background: var(--gold-light); transform: translateY(-1px); }
.header-phone svg { width: 18px; height: 18px; }

.nav-toggle {
    display: none; width: 46px; height: 46px; border-radius: 12px;
    align-items: center; justify-content: center; color: var(--cream);
    border: 1px solid var(--line-dark);
}
.nav-toggle-bars { position: relative; width: 20px; height: 14px; }
.nav-toggle-bars span {
    position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-panel-extra { display: none; }

@media (max-width: 1020px) {
    .header-phone span { display: none; }
    .header-phone { width: 46px; height: 46px; padding: 0; justify-content: center; }
}

@media (max-width: 900px) {
    :root { --header-h: 68px; }
    .brand img { height: 42px; }
    .nav-toggle { display: inline-flex; }
    .nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 999;
        background: var(--ink); overflow-y: auto;
        padding: 1.25rem var(--gutter) 2rem;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s, transform .3s var(--ease), visibility .25s;
    }
    .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open { overflow: hidden; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list > li { border-bottom: 1px solid var(--line-dark); }
    .nav-link { width: 100%; padding: 1.05rem .25rem; font-size: 1.2rem; border-radius: 0; }
    .nav-link:hover { background: none; }
    .nav-link .chev { display: none; }
    .dropdown {
        position: static; translate: none; transform: none; opacity: 1; visibility: visible;
        min-width: 0; padding: 0 0 .9rem .25rem; background: none; border: 0; box-shadow: none;
    }
    .dropdown a { padding: .55rem 0; color: var(--text-on-dark-muted); }
    .nav-panel-extra { display: grid; gap: .75rem; margin-top: 2rem; }
    .nav-panel-extra .btn { width: 100%; }
}

/* ==========================================================
   Hero (inicio)
   ========================================================== */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--ink); color: var(--text-on-dark);
    padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(4rem, 3rem + 5vw, 7rem);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgba(212, 175, 55, .16), transparent 60%),
        radial-gradient(40rem 30rem at -10% 110%, rgba(228, 226, 221, .07), transparent 60%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-top: 1.25rem; color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-top: 1.4rem; }
.hero .btn-row { margin-top: 2.25rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2.25rem; color: var(--text-on-dark-muted); font-size: var(--fs-sm); }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-points svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* Tarjeta PVC dibujada — elemento firma */
.card-stage { position: relative; perspective: 1400px; display: grid; place-items: center; min-height: 420px; }
.pvc-card {
    --rx: 8deg; --ry: -16deg;
    position: relative; width: min(440px, 88%); aspect-ratio: 85.6 / 54; border-radius: 22px;
    padding: 7% 7.5%;
    color: var(--cream);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(212, 175, 55, .28), transparent 50%),
        linear-gradient(135deg, #3a3a3a 0%, #262626 45%, #1a1a1a 100%);
    border: 1px solid rgba(228, 226, 221, .14);
    box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform .6s var(--ease);
    display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden;
}
.pvc-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.10) 45%, transparent 60%);
    background-size: 250% 100%; background-position: var(--shine, 100%) 0;
    transition: background-position .6s var(--ease);
}
.pvc-card-top { display: flex; align-items: center; justify-content: space-between; }
.pvc-card-brand { font-size: clamp(.7rem, .6rem + .4vw, .9rem); font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.pvc-card-brand small { display: block; font-size: .72em; font-weight: 500; letter-spacing: .14em; color: var(--text-on-dark-muted); margin-top: .2rem; }
.pvc-card-nfc { width: 30px; height: 30px; color: var(--gold); opacity: .9; }
.pvc-chip {
    width: 17%; aspect-ratio: 1.3; border-radius: 8px;
    background: linear-gradient(135deg, #f0d77a, #c9a22e 55%, #a8871f);
    position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.pvc-chip::before, .pvc-chip::after { content: ""; position: absolute; background: rgba(0,0,0,.22); }
.pvc-chip::before { left: 33%; right: 33%; top: 0; bottom: 0; border-inline: 1px solid rgba(0,0,0,.18); background: transparent; }
.pvc-chip::after { top: 50%; left: 0; right: 0; height: 1px; }
.pvc-card-number { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(.85rem, .7rem + .7vw, 1.2rem); letter-spacing: .14em; color: var(--cream); }
.pvc-card-bottom { display: flex; align-items: end; justify-content: space-between; font-size: clamp(.6rem, .55rem + .25vw, .75rem); letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.pvc-card-bottom strong { display: block; color: var(--cream); font-size: 1.15em; letter-spacing: .1em; }
.pvc-card-back {
    position: absolute; width: min(440px, 88%); aspect-ratio: 85.6 / 54; border-radius: 22px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, #b8921f);
    transform: rotateX(var(--rx, 8deg)) rotateY(-16deg) translate3d(14%, -18%, -60px) rotate(8deg);
    box-shadow: 0 30px 60px rgba(0,0,0,.35);
    opacity: .95;
}
.pvc-card-back::before {
    content: ""; position: absolute; left: 0; right: 0; top: 18%; height: 18%; background: #1b1b1b;
}
.card-badge {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: .7rem;
    background: var(--paper); color: var(--ink);
    padding: .75rem 1rem; border-radius: 14px; box-shadow: var(--shadow-lg);
    font-size: .85rem; line-height: 1.25;
}
.card-badge strong { display: block; font-size: 1.05rem; }
.card-badge-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--gold); display: grid; place-items: center; flex: none; }
.card-badge-icon svg { width: 20px; height: 20px; }
.card-badge.b1 { left: 0; bottom: 8%; }
.card-badge.b2 { right: 2%; top: 4%; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .card-stage { min-height: 300px; margin-top: 1rem; }
    .card-badge.b1 { left: 2%; bottom: 0; }
    .card-badge.b2 { right: 2%; top: 0; }
}
@media (max-width: 480px) {
    .card-badge { padding: .55rem .75rem; font-size: .75rem; }
    .card-badge-icon { width: 32px; height: 32px; }
    .hero .btn-row .btn { width: 100%; }
}

/* ---------- Cabecera de páginas internas ---------- */
.page-hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--ink); color: var(--text-on-dark);
    padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(50rem 24rem at 90% 0%, rgba(212, 175, 55, .16), transparent 60%);
}
.page-hero::after {
    content: ""; position: absolute; right: -6rem; bottom: -9rem; z-index: -1;
    width: 26rem; aspect-ratio: 85.6 / 54; border-radius: 28px; rotate: -14deg;
    border: 1px solid rgba(212, 175, 55, .25);
    background: linear-gradient(135deg, rgba(255,255,255,.04), transparent);
}
@media (max-width: 700px) { .page-hero::after { display: none; } }
.page-hero h1 { margin-top: 1rem; color: #fff; max-width: 18ch; }
.page-hero .lead { margin-top: 1.1rem; }
.breadcrumb { display: flex; gap: .5rem; font-size: var(--fs-sm); color: var(--text-on-dark-muted); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ==========================================================
   Logos de clientes (marquesina)
   ========================================================== */
.clients { padding-block: 2.75rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.clients-title { text-align: center; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: clamp(2.5rem, 5vw, 4.5rem); width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 48px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(1.25rem, 2.5vw, 2.25rem))); } }

.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.clients-grid li {
    display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 1.25rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.clients-grid li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.clients-grid img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.clients-grid li:hover img { filter: none; opacity: 1; }

/* ==========================================================
   Servicios (tarjetas con imagen)
   ========================================================== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.4rem 1.6rem; flex: 1; }
.service-card-num { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .14em; color: var(--gold-text); }
.service-card p { color: var(--text-muted); font-size: .97rem; }
.service-card .link-arrow { margin-top: auto; padding-top: .6rem; align-self: flex-start; border: 0; }
.service-card .link-arrow span { border-bottom: 2px solid var(--gold); }

@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   Cifras
   ========================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: 2.25rem 1.5rem 0 0; }
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
.stat-value { font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--gold); }
.stat-label { margin-top: .75rem; color: var(--text-on-dark-muted); font-size: .97rem; max-width: 22ch; }
.section-alt .stats, .section:not(.section-dark) .stats { border-top-color: var(--line); }
.section:not(.section-dark) .stat + .stat { border-left-color: var(--line); }
.section:not(.section-dark) .stat-value { color: var(--ink); }
.section:not(.section-dark) .stat-label { color: var(--text-muted); }

@media (max-width: 820px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ==========================================================
   Ventajas / Valores
   ========================================================== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.features.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature {
    position: relative; padding: 1.9rem 1.6rem; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--ink); color: var(--gold); margin-bottom: 1.4rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: .55rem; }
.feature p { color: var(--text-muted); font-size: .97rem; }
.feature-num { position: absolute; top: 1.5rem; right: 1.6rem; font-size: var(--fs-xs); font-weight: 750; letter-spacing: .12em; color: var(--text-muted); opacity: .6; }

@media (max-width: 1080px) { .features, .features.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features, .features.cols-3 { grid-template-columns: 1fr; } }

/* ==========================================================
   Galería (preview + página)
   ========================================================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.bento a { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); }
.bento a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.bento a:hover img { transform: scale(1.05); }
.bento figcaption, .tile-caption {
    position: absolute; left: .85rem; bottom: .85rem; right: .85rem;
    display: inline-flex; width: fit-content; max-width: calc(100% - 1.7rem);
    padding: .45rem .8rem; border-radius: 999px;
    background: rgba(27, 27, 27, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: var(--cream); font-size: .85rem; font-weight: 600;
}
@media (max-width: 900px) {
    .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
    min-height: 44px; padding: .55rem 1.15rem; border-radius: 999px;
    border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .95rem;
    transition: background-color .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.filter-btn .count { margin-left: .35rem; opacity: .55; font-weight: 500; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery-item {
    position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0;
    border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); text-align: left;
}
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .tile-caption { flex-direction: column; border-radius: 12px; gap: .1rem; }
.gallery-item .tile-caption small { font-weight: 500; color: var(--gold); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.gallery-zoom {
    position: absolute; top: .85rem; right: .85rem; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(250, 249, 246, .92); color: var(--ink);
    opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s var(--ease);
}
.gallery-zoom svg { width: 18px; height: 18px; }
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: none; }

/* Lightbox (dialog nativo) */
.lightbox {
    width: min(1000px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
    margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg);
    background: var(--ink-deep); color: var(--cream); overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 10, 10, .85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: calc(100dvh - 8rem); object-fit: contain; background: #111; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.lightbox-bar h3 { font-size: 1.05rem; }
.lightbox-bar p { color: var(--gold); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.lightbox-controls { display: flex; gap: .5rem; }
.icon-btn {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line-dark); color: var(--cream); transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; }

/* ==========================================================
   Proceso
   ========================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding-top: 1.25rem; }
.step::before {
    counter-increment: step; content: "0" counter(step);
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--gold); color: var(--ink); font-weight: 800; font-size: 1.05rem; margin-bottom: 1.4rem;
    position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--ink);
}
.step::after {
    content: ""; position: absolute; top: calc(1.25rem + 28px); left: 56px; right: -1.25rem; height: 1px;
    background: repeating-linear-gradient(90deg, rgba(212,175,55,.5) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.step h3 { color: #fff; margin-bottom: .5rem; }
.step p { color: var(--text-on-dark-muted); font-size: .97rem; }
@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
    .step:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.25rem; padding-top: 0; }
    .step::before { grid-row: span 2; margin: 0; }
    .step::after { display: none; }
    .step h3 { align-self: end; }
}

/* ==========================================================
   FAQ (details nativo)
   ========================================================== */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.faq-layout .section-head .btn { margin-top: 2rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.4rem 0; cursor: pointer; list-style: none;
    font-weight: 650; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid var(--line);
    background:
        linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
    transition: transform .3s var(--ease), background-color .3s, border-color .3s;
}
.faq details[open] summary::after {
    transform: rotate(45deg); border-color: var(--gold);
    background-color: var(--gold);
}
.faq summary:hover { color: var(--gold-text); }
.faq details p { padding: 0 3.5rem 1.5rem 0; color: var(--text-muted); }
@media (max-width: 900px) {
    .faq-layout { grid-template-columns: 1fr; }
    .faq-layout .section-head { position: static; }
}

/* ==========================================================
   CTA
   ========================================================== */
.cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: 1.4fr auto; gap: 2rem 3rem; align-items: center;
    padding: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-radius: 28px;
    background: var(--ink); color: var(--text-on-dark);
}
.cta::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(40rem 20rem at 100% 100%, rgba(212, 175, 55, .22), transparent 60%);
}
.cta h2 { color: #fff; }
.cta p { margin-top: .9rem; color: var(--text-on-dark-muted); font-size: var(--fs-lg); max-width: 50ch; }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 860px) {
    .cta { grid-template-columns: 1fr; }
    .cta .btn-row { justify-content: flex-start; }
}
@media (max-width: 480px) { .cta .btn-row .btn { width: 100%; } }

/* ==========================================================
   Servicios — página de detalle
   ========================================================== */
.subnav {
    position: sticky; top: var(--header-h); z-index: 50;
    background: rgba(250, 249, 246, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
/* Las anclas de servicios quedan justo bajo cabecera + subnav (40px enlace + padding + borde) */
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 40px + 1.5rem + 1px); }
.subnav ul { display: flex; gap: .4rem; overflow-x: auto; padding-block: .75rem; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
    display: inline-flex; align-items: center; min-height: 40px; padding: .45rem 1rem; border-radius: 999px;
    font-size: .92rem; font-weight: 600; white-space: nowrap; color: var(--text-muted);
    transition: background-color .2s, color .2s;
}
.subnav a:hover { color: var(--ink); background: var(--cream-soft); }
.subnav a.is-active { background: var(--ink); color: var(--cream); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split-media::before {
    content: ""; position: absolute; z-index: -1; inset: auto -1rem -1rem auto; width: 60%; height: 60%;
    border-radius: var(--radius-lg); background: var(--gold); opacity: .9;
}
.split.reverse .split-media::before { inset: auto auto -1rem -1rem; }
.split-body h2 { margin-top: .9rem; }
.split-body > p { margin-top: 1.1rem; color: var(--text-muted); font-size: var(--fs-lg); }
.split-body h3 { margin-top: 2rem; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.split-body .btn-row { margin-top: 2.25rem; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; margin-top: 1rem; }
.checklist li { display: flex; align-items: flex-start; gap: .65rem; font-weight: 550; }
.checklist li::before {
    content: ""; flex: none; width: 22px; height: 22px; margin-top: .15rem; border-radius: 50%;
    background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23272727' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section-dark .checklist li { color: var(--cream); }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .split-media { margin-right: 1rem; }
    .split.reverse .split-media { margin: 0 0 0 1rem; }
}
@media (max-width: 480px) { .checklist { grid-template-columns: 1fr; } }

/* ==========================================================
   Quiénes somos
   ========================================================== */
.prose { font-size: var(--fs-lg); color: var(--text-muted); }
.prose p + p { margin-top: 1.2rem; }
.prose strong { color: var(--ink); }

.timeline { position: relative; display: grid; gap: 1.25rem; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold), rgba(212,175,55,.1)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 56px 1fr 220px; gap: 1.5rem; align-items: center; }
.timeline-year {
    position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; background: var(--ink); color: var(--gold);
    font-weight: 800; font-size: .82rem; box-shadow: 0 0 0 6px var(--cream-soft);
}
.timeline-body { padding: 1.5rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.timeline-body h3 { margin-bottom: .45rem; }
.timeline-body p { color: var(--text-muted); font-size: .97rem; }
.timeline-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 760px) {
    .timeline-item { grid-template-columns: 56px 1fr; }
    .timeline-item img { grid-column: 2; }
}

.callout {
    display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
    padding: clamp(1.75rem, 1.5rem + 2vw, 3rem); border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
}
.callout-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--gold); }
.callout-icon svg { width: 24px; height: 24px; }
@media (max-width: 560px) { .callout { grid-template-columns: 1fr; } }

/* ==========================================================
   Contacto
   ========================================================== */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.35rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: border-color .25s, transform .25s var(--ease);
}
a.contact-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.contact-card-icon { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--gold); }
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); font-weight: 700; }
.contact-card p { font-weight: 650; font-size: 1.05rem; margin-top: .15rem; word-break: break-word; }
.contact-card small { display: block; color: var(--text-muted); font-size: .88rem; margin-top: .15rem; }

.schedule { padding: 1.6rem 1.5rem; border-radius: var(--radius-lg); background: var(--ink); color: var(--text-on-dark); }
.schedule h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; color: #fff; margin-bottom: 1rem; }
.schedule h3 svg { width: 20px; height: 20px; color: var(--gold); }
.schedule dl { display: grid; grid-template-columns: auto 1fr; gap: .65rem 1rem; font-size: .95rem; }
.schedule dt { color: var(--text-on-dark-muted); }
.schedule dd { text-align: right; font-weight: 600; }
.schedule p { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); font-size: .85rem; color: var(--text-on-dark-muted); }

.form-card { padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-card > h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.form-card > p { color: var(--text-muted); margin-top: .5rem; margin-bottom: 1.75rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 650; }
.field label .req { color: var(--gold-text); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: .75rem .95rem;
    background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
    font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
    appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23272727' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(39,39,39,.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .18); }
.field-error { display: none; font-size: .85rem; color: #b42318; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #d92d20; }
.field.has-error .field-error { display: block; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.consent { align-items: flex-start; line-height: 1.5; }
.field .consent input[type="checkbox"] {
    -webkit-appearance: none; appearance: none;
    flex: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0;
    border: 1.5px solid rgba(39, 39, 39, .35); border-radius: 6px; background: #fff;
    display: grid; place-items: center; cursor: pointer;
    transition: background-color .2s, border-color .2s;
}
.field .consent input[type="checkbox"]::after {
    content: ""; width: 6px; height: 11px; margin-top: -2px;
    border: solid var(--ink); border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0); transition: transform .15s var(--ease);
}
.field .consent input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
.field .consent input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.field .consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; box-shadow: none; }
.consent a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--gold); }
.legal-note { margin-top: .6rem; font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.form-actions small { color: var(--text-muted); font-size: .85rem; }
.form-status { display: none; margin-bottom: 1.25rem; padding: 1rem 1.15rem; border-radius: 12px; font-size: .95rem; }
.form-status.is-success { display: block; background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.form-status.is-error { display: block; background: #fef3f2; color: #912018; border: 1px solid #fecdca; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

.map-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    margin-top: 1.5rem; padding: 1.5rem 1.75rem; border-radius: var(--radius-lg);
    background: var(--cream);
}
.map-band h3 { display: flex; align-items: center; gap: .6rem; }
.map-band h3 svg { width: 22px; height: 22px; color: var(--gold-text); }
.map-band p { color: var(--text-muted); margin-top: .2rem; }

/* ---------- Texto legal ---------- */
.legal h2 { font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: .75rem; }
.legal p { color: var(--text-muted); }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; }
.legal .updated { font-size: var(--fs-sm); color: var(--text-on-dark-muted); margin-top: 1rem; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-code { font-size: clamp(6rem, 4rem + 12vw, 12rem); font-weight: 850; line-height: 1; letter-spacing: -.06em; color: var(--gold); }
.error-page h1 { color: #fff; font-size: var(--fs-h2); margin-top: .5rem; }
.error-page .lead { margin: 1rem auto 0; }
.error-page .btn-row { justify-content: center; margin-top: 2.25rem; }

/* ==========================================================
   Footer
   ========================================================== */
.footer { background: var(--ink-deep); color: var(--text-on-dark-muted); padding-top: clamp(3.5rem, 3rem + 3vw, 5.5rem); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 34ch; }
.footer h4 { color: #fff; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1.1rem; }
.footer-links { display: grid; gap: .6rem; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { display: grid; gap: .85rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--gold); }
.footer-contact a { word-break: break-word; }
.footer-contact a:hover { color: var(--gold); }
.socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.socials a {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--line-dark); color: var(--cream); transition: background-color .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
    padding-block: 1.5rem; border-top: 1px solid var(--line-dark); font-size: .85rem;
}
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25);
    transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.nav-open .wa-float { display: none; }

/* ---------- Banner de cookies (js/consent.js) ---------- */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1100;
    max-width: 560px; padding: 1.4rem 1.5rem; border-radius: var(--radius-lg);
    background: var(--ink); color: var(--text-on-dark); box-shadow: var(--shadow-lg);
    border: 1px solid rgba(228, 226, 221, .22); font-size: .92rem;
}
.cookie-banner h2 { font-size: 1.1rem; color: var(--cream); margin-bottom: .5rem; }
.cookie-banner p { margin-bottom: 1rem; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-settings { display: grid; gap: .6rem; margin-bottom: 1rem; }
.cookie-option { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.cookie-option input { width: 18px; height: 18px; margin-top: .15rem; flex: none; accent-color: var(--gold); }
.cookie-option input:disabled { cursor: not-allowed; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions .btn { flex: 1 1 auto; min-height: 44px; padding: .6rem 1.1rem; font-size: .92rem; }
.cookie-actions .btn-outline { color: var(--cream); border-color: rgba(228, 226, 221, .35); }
.cookie-actions .btn-outline:hover { border-color: var(--cream); }
.cookie-banner [hidden] { display: none; }

/* ==========================================================
   Animaciones de entrada (solo con JS y sin reduced-motion)
   ========================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .marquee { -webkit-mask-image: none; mask-image: none; }
}

@media print {
    .header, .wa-float, .nav-toggle, .footer { display: none; }
    body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track .dup { display: none; }
}

/* ---------- Páginas legales ---------- */
.legal-tabs a { text-decoration: none; }
.legal .legal-list { list-style: disc; padding-left: 1.25rem; margin: .5rem 0 1rem; color: var(--text-muted); }
.legal .legal-list li + li { margin-top: .35rem; }
.legal p + p { margin-top: .9rem; }
.table-scroll { overflow-x: auto; margin: 1rem 0 1.25rem; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; color: var(--text-muted); }
.legal-table th, .legal-table td { padding: .65rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--ink); background: var(--cream-soft); font-weight: 700; }
mark.todo { background: #fff3c4; color: #7a5b00; padding: .05rem .35rem; border-radius: 4px; font-weight: 600; font-size: .92em; }
.footer-bottom nav { flex-wrap: wrap; gap: .5rem 1.5rem; }
