:root {
    --danger: #c45c5c;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    --header: 86px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--cream);
    line-height: 1.65;
    min-height: 100vh;
    transition: background 0.25s ease, color 0.25s ease;
}

body.page-inner { padding-top: var(--header); }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.container-wide { width: min(1320px, calc(100% - 32px)); margin-inline: auto; }

h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: 0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.15; }
h3 { font-size: 1.45rem; }

.eyebrow {
    display: inline-block;
    color: var(--gold);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 500;
    margin-bottom: 14px;
}

.lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; }
.gold { color: var(--gold); }

.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--btn-radius);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn-gold {
    background: var(--gold);
    color: var(--btn-ink);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--gold) 22%, transparent);
}
.btn-gold:hover {
    background: var(--gold-2);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px color-mix(in srgb, var(--gold) 38%, transparent);
}
.btn-gold:active { transform: translateY(-1px); }
.btn-ghost {
    border-color: var(--gold);
    color: var(--gold-2);
    background: transparent;
    z-index: 0;
}
.btn-ghost::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}
.btn-ghost:hover {
    color: var(--btn-ink);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--gold) 22%, transparent);
}
.btn-ghost:hover::before { transform: scaleX(1); }
.btn-ghost:active { transform: translateY(-1px); }
.btn-nav { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: background 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.page-inner .site-header {
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
}
.header-inner {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    min-height: var(--header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand img { height: 46px; width: auto; }
.brand { display: flex; align-items: center; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > ul { display: flex; gap: 8px; }
.nav > ul > li { position: relative; }
.nav a { display: block; padding: 10px 12px; color: var(--cream); font-size: 0.95rem; }
.nav > ul > li > a {
    position: relative;
    transition: color 0.25s ease;
}
.nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.nav > ul > li > a:hover::after,
.nav .is-current > a::after { transform: scaleX(1); }
.nav > ul > li > a:hover,
.nav .is-current > a { color: var(--gold-2); }
.nav .has-sub > ul {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    min-width: 220px;
    background: var(--nav-drop);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}
.nav .has-sub:hover > ul,
.nav .has-sub:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.nav .has-sub > ul a { border-radius: 8px; color: var(--muted); }
.nav .has-sub > ul a:hover { background: var(--gold-soft); color: var(--cream); }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: none;
    border: 0;
    position: relative;
}
.nav-toggle span {
    position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cream);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}
.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 58%, var(--hero-fade) 100%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 40px));
    padding: 0 8px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.hero-content p {
    color: var(--cream);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    margin: 0;
    text-shadow: 0 4px 16px rgba(0,0,0,0.6);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section { padding: 92px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .lead { margin: 12px auto 0; }

.about {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}
.about-logo { width: min(360px, 100%); margin: 0 auto; filter: var(--logo-mark); }
.stat-row { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-serif); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.stat span { color: var(--muted); font-size: 0.9rem; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.card {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--radius);
    isolation: isolate;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card:hover img { transform: scale(1.06); }
.card-copy {
    position: absolute;
    inset: auto 0 0;
    padding: 28px 22px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.card-copy span { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.card-copy h3 { font-size: 2rem; }

.quote-band {
    background: var(--bg-2);
    border-block: 1px solid var(--line);
    text-align: center;
}
.quote-band blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-style: italic;
    max-width: 860px;
    margin: 0 auto 28px;
    line-height: 1.35;
}
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.split a {
    display: grid;
    place-items: end start;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    min-height: 360px;
    padding: 36px;
}
.split img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    transition: transform 0.6s ease;
}
.split-orla {
    background: var(--orla-mat);
}
.split-orla img {
    object-fit: contain;
    object-position: center;
    transform: none;
}
.split-orla:hover img { transform: scale(1.02); }
.split-contact img { object-position: center 18%; }
.split a:hover img { transform: scale(1.04); }
.split .copy { position: relative; z-index: 1; max-width: 18ch; }
.split a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,0.58) 100%);
}

.page-hero {
    position: relative;
    min-height: 42vh;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    padding: 72px 20px;
}
.page-hero img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45);
}
.page-hero .copy { position: relative; z-index: 1; }

.page-hero-orla {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 0;
    overflow: visible;
    background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    padding: 48px 20px 36px;
}
.page-hero-orla img {
    position: static;
    width: min(1120px, 100%);
    height: auto;
    max-height: none;
    object-fit: contain;
    filter: none;
    margin-top: 28px;
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.page-hero-orla .copy { max-width: 720px; }

.hero-page {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.2fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 12px;
}
.hero-page-copy h1 {
    margin: 0 0 16px;
    max-width: 13ch;
    line-height: 1.08;
}
.hero-page-copy p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 38ch;
    margin: 0 0 28px;
}
.hero-page-copy .hero-actions {
    justify-content: flex-start;
}
.hero-page-media {
    background: var(--media-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.hero-page-media img {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: none;
}

.feature {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    margin: 28px 0 72px;
}
.feature.reverse { grid-template-columns: 0.95fr 1.05fr; }
.feature.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-media img, .feature-media video { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.gallery {
    columns: 3;
    column-gap: 14px;
}
.gallery a {
    display: block;
    margin-bottom: 14px;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
}
.gallery img { width: 100%; transition: transform 0.45s ease; }
.gallery a:hover img { transform: scale(1.03); }

.video-wrap {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.demo-frame {
    width: 100%;
    min-height: 640px;
    border: 0;
    border-radius: var(--radius);
    background: #000;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}
.contact-card, .form {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}
.contact-card p { margin: 10px 0; color: var(--muted); }
.contact-card a { color: var(--gold-2); }
.map {
    margin-top: 18px;
    border: 0;
    width: 100%;
    min-height: 220px;
    border-radius: 12px;
    filter: grayscale(0.4) contrast(1.05);
}
.form label { display: block; font-size: 0.85rem; color: var(--muted); margin: 14px 0 6px; }
.form input, .form select, .form textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-line);
    border-radius: 10px;
    padding: 12px 14px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; min-height: 1.4em; }
.form-msg.ok { color: #9dcca8; }
.form-msg.err { color: var(--danger); }

.legal { max-width: 820px; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 1.5rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 18px; list-style: disc; }

.pack { display: grid; place-items: center; margin-top: 48px; }
.pack img { max-width: 420px; border-radius: 12px; box-shadow: var(--shadow); }

.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--line);
    padding: 64px 0 0;
    color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; }
.footer-logo { height: 42px; width: auto; margin-bottom: 16px; }
.site-footer h3 { color: var(--cream); font-size: 1.15rem; margin-bottom: 14px; }
.site-footer li { margin: 8px 0; }
.site-footer a:hover { color: var(--gold); }
.social { display: flex; gap: 14px; margin-top: 16px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 18px 7vw 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.footer-bottom a { margin-right: 14px; }

.wa-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #06280f;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}
.wa-fab svg { width: 22px; height: 22px; }

.lightbox {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(0,0,0,0.92);
    display: none;
    place-items: center;
    pointer-events: none;
}
.lightbox.is-open {
    display: grid;
    pointer-events: auto;
}
.lightbox img { max-width: min(92vw, 1400px); max-height: 90vh; object-fit: contain; }
.lightbox button {
    position: absolute;
    background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 8px 16px;
}
.lightbox-close { top: 12px; right: 16px; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.cookie-bar {
    position: fixed; left: 16px; right: 16px; bottom: 78px; z-index: 70;
    background: var(--cookie-bg); border: 1px solid var(--line);
    border-radius: 16px; padding: 16px 18px;
    display: none;
    gap: 16px; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
}
.cookie-bar.is-open {
    display: flex;
}
.cookie-bar p { color: var(--muted); font-size: 0.92rem; }
.cookie-bar a { color: var(--gold); text-decoration: underline; }

.reveal { opacity: 0; transform: translateY(18px); animation: up 0.7s ease forwards; }
@keyframes up { to { opacity: 1; transform: none; } }

.will-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.will-reveal.is-in {
    opacity: 1;
    transform: none;
}

html.theme-switching body {
    animation: themeSoft 0.45s ease;
}
@keyframes themeSoft {
    0% { filter: saturate(0.85) brightness(1.05); }
    100% { filter: none; }
}

.wa-fab {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-fab:hover {
    transform: translateY(-3px) scale(1.03);
}

/* ---------- Efectos de scroll ---------- */
.scroll-progress {
    position: fixed; inset: 0 0 auto; height: 3px; z-index: 90;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    transform-origin: left; transform: scaleX(var(--p, 0));
}

.hero video { transform: scale(var(--hero-zoom, 1)); will-change: transform; }
.hero-content { transform: translateY(var(--hero-shift, 0)); opacity: var(--hero-fade-o, 1); }
.hero-title {
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    color: #fff;
    text-shadow: 0 6px 30px rgba(0,0,0,0.45);
}
.hero-title em { font-style: italic; color: var(--gold-2); }
.scroll-cue {
    position: absolute; left: 50%; bottom: 18px; z-index: 1;
    width: 24px; height: 38px; margin-left: -12px;
    border: 1.5px solid rgba(255,255,255,0.7); border-radius: 14px;
    opacity: var(--hero-fade-o, 1);
}
.scroll-cue span {
    position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px;
    background: #fff; border-radius: 2px; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.has-hero .hero-content { padding-bottom: 84px; }

/* Cinta de servicios */
.marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--bg-2);
    padding: 22px 0;
}
.marquee-track {
    display: flex; gap: 36px; width: max-content; align-items: center;
    font-family: var(--font-serif); font-size: clamp(1.6rem, 4vw, 3rem);
    white-space: nowrap;
    transform: translateX(var(--mx, 0));
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 0.6em; }

/* Titulares palabra a palabra */
.split-words .w {
    display: inline-block; overflow: hidden; vertical-align: top;
    padding-bottom: 0.12em; margin-bottom: -0.12em;
}
.split-words .w > span {
    display: inline-block; transform: translateY(105%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i) * 60ms);
}
.split-words.is-in .w > span { transform: none; }

/* Tarjetas: se destapan de abajo arriba */
.card.will-reveal { opacity: 1; transform: none; }
.card.will-reveal::after {
    content: ""; position: absolute; inset: 0; z-index: 2;
    background: var(--bg);
    transform-origin: top;
    transition: transform 1.1s cubic-bezier(0.77, 0, 0.18, 1);
    transition-delay: inherit;
}
.card.will-reveal.is-in::after { transform: scaleY(0); }
.card.will-reveal img { transform: scale(1.3); transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: inherit; }
.card.will-reveal.is-in img { transform: scale(1); }
.card.will-reveal.is-in:hover img { transform: scale(1.06); transition-duration: 0.7s; }

/* Galerías: subir con zoom suave */
.gallery a.will-reveal { transform: translateY(40px) scale(0.96); }
.gallery a.will-reveal.is-in { transform: none; }

/* Parallax */
[data-parallax] { transform: translateY(var(--py, 0)) scale(1.15) !important; will-change: transform; }

/* Frase que se ilumina al hacer scroll */
[data-scrub-text] .sw { opacity: 0.18; transition: opacity 0.25s linear; }
[data-scrub-text] .sw.on { opacity: 1; }

/* Entradas desde los lados */
.will-reveal[data-from="left"] { transform: translateX(-60px); }
.will-reveal[data-from="right"] { transform: translateX(60px); }
.will-reveal[data-from].is-in { transform: none; }
.video-wrap.will-reveal { transform: translateY(50px) scale(0.94); }
.video-wrap.will-reveal.is-in { transform: none; }

/* Cortina que destapa las fotos de portada y de los bloques */
.curtain { position: relative; }
.curtain.will-reveal { opacity: 1; transform: none; }
.curtain.will-reveal::after {
    content: ""; position: absolute; inset: 0; z-index: 2;
    background: var(--gold);
    transform-origin: right;
    transition: transform 1.1s cubic-bezier(0.77, 0, 0.18, 1) 0.15s;
}
.curtain.will-reveal[data-from="right"]::after { transform-origin: left; }
.curtain.will-reveal.is-in::after { transform: scaleX(0); }
.curtain.will-reveal > img:not([data-parallax]) { transform: scale(1.25); transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.curtain.will-reveal.is-in > img:not([data-parallax]) { transform: none; }

/* ---------- Aspecto ---------- */
.eyebrow::before {
    content: ""; display: inline-block; width: 28px; height: 1px;
    background: currentColor; vertical-align: middle; margin-right: 12px; opacity: 0.7;
}
.section-head .eyebrow::after {
    content: ""; display: inline-block; width: 28px; height: 1px;
    background: currentColor; vertical-align: middle; margin-left: 12px; opacity: 0.7;
}
.section-head h2::after {
    content: ""; display: block; width: 56px; height: 2px; margin: 18px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-inner .hero-page { position: relative; isolation: isolate;padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); }
html { overflow-x: clip; }
.hero-page::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 60vmax; height: 60vmax; right: -20vmax; top: -30vmax;
    background: radial-gradient(circle, color-mix(in srgb, var(--gold) 16%, transparent), transparent 65%);
}
.hero-page-copy h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.hero-page-media { position: relative; overflow: visible; background: none; box-shadow: none; }
.hero-page-media img { border-radius: var(--radius); box-shadow: var(--shadow); background: var(--media-bg); position: relative; z-index: 1; }
.hero-page-media::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px;
    border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
    border-radius: var(--radius);
}
.hero-page-media.curtain::after { border-radius: var(--radius); }

.feature { margin: 40px 0 110px; }
.feature-media { position: relative; }
.feature-media img[src$=".png"] { object-fit: contain; background: var(--media-bg); }
.feature > div:not(.feature-media) h2 { margin-bottom: 14px; }
.feature > div:not(.feature-media) {
    padding-left: 28px; border-left: 1px solid var(--line);
}

.gallery a { position: relative; }
.gallery a::after {
    content: "+"; position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 2.6rem; font-weight: 300; color: #fff;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55));
    opacity: 0; transition: opacity 0.4s ease;
}
.gallery a:hover::after { opacity: 1; }
.gallery a:hover img { transform: scale(1.07); }

.video-wrap { outline: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); outline-offset: 10px; }
.pack img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease; }
.pack img:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 40px 80px rgba(0,0,0,0.35); }

.contact-card, .form {
    background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 6%, var(--bg-2)), var(--bg-2));
    box-shadow: var(--shadow);
}
.form input, .form select, .form textarea { transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent);
}

.site-footer { position: relative; }
.site-footer::before {
    content: ""; position: absolute; inset: -1px 0 auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

@media (max-width: 980px) {
    .feature > div:not(.feature-media) { padding-left: 18px; }
    .hero-page-media::before { inset: 12px -10px -12px 10px; }
    .will-reveal[data-from="left"], .will-reveal[data-from="right"] { transform: translateY(30px); }
}

@media (prefers-reduced-motion: reduce) {
    .curtain.will-reveal::after { display: none; }
    .split-words .w > span, .card.will-reveal img { transform: none; }
    .card.will-reveal::after { display: none; }
    [data-scrub-text] .sw { opacity: 1; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .will-reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
    .about, .feature, .feature.reverse, .contact-grid, .split, .service-grid, .footer-grid, .video-grid, .hero-page {
        grid-template-columns: 1fr;
    }
    .feature.reverse .feature-media { order: 0; }
    .split a { aspect-ratio: auto; min-width: 0; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .gallery { columns: 2; }
    .nav-toggle { display: block; }
    .nav {
        position: absolute;
        top: var(--header);
        left: 0; right: 0;
        background: var(--nav-mobile);
        border-bottom: 1px solid var(--line);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 24px;
        gap: 8px;
    }
    .nav.is-open { display: flex; }
    .nav > ul { flex-direction: column; }
    .nav .has-sub > ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        background: transparent;
        padding: 0 0 0 12px;
    }
    .btn-nav { width: fit-content; }
}

@media (max-width: 640px) {
    .service-grid { grid-template-columns: 1fr; }
    .gallery { columns: 1; }
    .wa-fab span { display: none; }
    .brand img { height: 38px; }
}

/* =========================================================
   PORTADA (index.php)
   ========================================================= */
.h-hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: calc(var(--header) + 48px) 0 60px;
}
.h-hero::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 70vmax; height: 70vmax; left: -30vmax; top: -25vmax;
    background: radial-gradient(circle, color-mix(in srgb, var(--gold) 14%, transparent), transparent 62%);
}
.h-hero-title { font-size: clamp(2.3rem, 4.2vw, 4rem); line-height: 1.04; margin-bottom: 22px; }
.h-hero-title em { font-style: italic; color: var(--gold-2); }
.h-hero-lead { color: var(--muted); font-size: 1.12rem; max-width: 46ch; margin-bottom: 30px; }
.h-hero .hero-actions { justify-content: flex-start; }
.h-hero-facts { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.h-hero-facts strong { display: block; font-family: var(--font-serif); font-size: 1.7rem; color: var(--gold); line-height: 1.1; font-weight: 500; }
.h-hero-facts span { color: var(--muted); font-size: 0.86rem; }

.h-hero-media { position: relative; height: min(78vh, 680px); }
.h-hero-video {
    position: absolute; inset: 0 31% 0 0;
    border-radius: 200px 200px var(--radius) var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.h-hero-video video { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--hero-zoom, 1)); }
.h-hero-float {
    position: absolute; width: 34%; aspect-ratio: 3 / 4; object-fit: cover;
    border-radius: 14px; border: 6px solid var(--bg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transform: translateY(var(--fy, 0)) rotate(var(--rot));
}
.h-hero-float-1 { right: 0; bottom: 0; width: 28%; --rot: 3deg; }
.h-hero-float-2 { right: 0; top: 4%; width: 28%; --rot: -3deg; }

/* Dos caminos */
.h-paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.h-path {
    position: relative; overflow: hidden; border-radius: var(--radius);
    min-height: 620px; display: flex; align-items: flex-end; isolation: isolate;
}
.h-path > img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; z-index: -2;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.h-path::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.88) 85%);
}
.h-path:hover > img { transform: scale(1.06); }
.h-path-copy { padding: clamp(26px, 4vw, 44px); color: #fff; }
.h-path-tag {
    display: inline-block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
    padding: 6px 12px; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; margin-bottom: 16px;
    backdrop-filter: blur(6px);
}
.h-path h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 10px; }
.h-path p { color: rgba(255,255,255,0.8); max-width: 44ch; }
.h-path ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.h-path ul a {
    display: inline-block; padding: 7px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.12); font-size: 0.9rem; transition: background 0.3s ease, color 0.3s ease;
}
.h-path ul a:hover { background: var(--gold); color: var(--btn-ink); }

/* Galería horizontal fijada */
.h-reel { position: relative; height: 320vh; background: var(--bg-2); border-block: 1px solid var(--line); }
.h-reel-sticky {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; gap: 36px;
}
.h-reel-head { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
.h-reel-track {
    display: flex; align-items: center; gap: 22px;
    padding-left: max(20px, calc((100vw - 1320px) / 2));
    width: max-content;
    transform: translateX(var(--hx, 0));
    will-change: transform;
}
.h-reel-item {
    position: relative; flex: none; width: clamp(260px, 34vw, 480px); aspect-ratio: 4 / 3;
    border-radius: 16px; overflow: hidden;
}
.h-reel-item.tall { width: clamp(200px, 22vw, 320px); aspect-ratio: 3 / 4; }
.h-reel-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.h-reel-item:hover img { transform: scale(1.06); }
.h-reel-item span {
    position: absolute; left: 14px; bottom: 14px; color: #fff;
    font-family: var(--font-serif); font-size: 1.4rem;
    text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}

/* Pasos */
.h-steps-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.h-steps-list li {
    position: relative; padding: 30px 24px 28px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 6%, var(--bg-2)), var(--bg-2));
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}
.h-steps-list li:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.h-steps-list b {
    display: block; font-family: var(--font-serif); font-size: 3rem; font-weight: 500; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 18px;
}
.h-steps-list h3 { font-size: 1.4rem; margin-bottom: 8px; }
.h-steps-list p { color: var(--muted); font-size: 0.95rem; }

/* Orla interactiva */
.h-feature { padding: 40px 0 100px; }
.h-feature-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.h-feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--orla-mat, var(--bg-2)); }
.h-feature-media img { width: 100%; }
.h-badge {
    position: absolute; top: 18px; left: 18px; z-index: 1;
    background: var(--gold); color: var(--btn-ink);
    font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
    padding: 6px 12px; border-radius: 999px;
}
.h-feature-copy .hero-actions { justify-content: flex-start; margin-top: 26px; }
.h-feature-copy h2 { margin-bottom: 14px; }

/* CTA final */
.h-cta {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 80px 20px;
}
.h-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: -2; }
.h-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,0.6); }
.h-cta-copy { color: #fff; max-width: 760px; }
.h-cta-copy h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 30px; }

@media (max-width: 980px) {
    .h-hero { grid-template-columns: 1fr; min-height: 0; padding-top: calc(var(--header) + 24px); }
    .h-hero-media { height: 70vh; max-height: 560px; }
    .h-paths-grid, .h-feature-grid { grid-template-columns: 1fr; }
    .h-path { min-height: 540px; }
    .h-steps-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .h-steps-list { grid-template-columns: 1fr; }
    .h-hero-facts { gap: 22px; }
    .h-hero .hero-actions .btn { width: 100%; }
    .h-reel { height: 260vh; }
}
@media (prefers-reduced-motion: reduce) {
    .h-reel { height: auto; }
    .h-reel-sticky { position: static; height: auto; padding: 80px 0; }
    .h-reel-track { width: auto; overflow-x: auto; padding-right: 20px; }
}

/* =========================================================
   Ajustes: vídeo sin recortes y transiciones suaves "de revelado"
   ========================================================= */
.h-hero { grid-template-columns: 0.95fr 1.05fr; }
.h-hero-media { height: auto; }
.h-hero-media::before {
    content: ""; position: absolute; inset: 20px -20px -20px 20px;
    border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
    border-radius: var(--radius);
}
.h-hero-video {
    position: relative; inset: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    background: #000;
}
.h-hero-video video { object-fit: contain; transform: none; }

/* Revelado: aparece desenfocado y se enfoca mientras sube un poco */
.will-reveal,
.will-reveal[data-from="left"],
.will-reveal[data-from="right"],
.video-wrap.will-reveal,
.gallery a.will-reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
    transition: opacity 1.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 1.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                filter 1.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.will-reveal.is-in,
.will-reveal[data-from].is-in,
.video-wrap.will-reveal.is-in,
.gallery a.will-reveal.is-in { opacity: 1; transform: none; filter: none; }

/* Fotos: sin cortina; se alejan suavemente al aparecer */
.curtain.will-reveal::after,
.card.will-reveal::after { display: none; }
.curtain.will-reveal, .card.will-reveal { opacity: 0; transform: none; filter: blur(8px); }
.curtain.will-reveal.is-in, .card.will-reveal.is-in { opacity: 1; filter: none; }
.curtain.will-reveal > img:not([data-parallax]),
.card.will-reveal img { transform: scale(1.08); transition: transform 2s cubic-bezier(0.25, 0.8, 0.25, 1); }
.curtain.will-reveal.is-in > img:not([data-parallax]),
.card.will-reveal.is-in img { transform: none; }

/* Titulares: cada palabra se enfoca, sin máscara */
.split-words .w { overflow: visible; }
.split-words .w > span {
    opacity: 0;
    transform: translateY(0.35em);
    filter: blur(8px);
    transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.25, 0.8, 0.25, 1), filter 1.1s ease;
    transition-delay: calc(var(--i) * 80ms);
}
.split-words.is-in .w > span { opacity: 1; transform: none; filter: none; }

@media (max-width: 980px) {
    .h-hero-media::before { inset: 12px -10px -12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .will-reveal, .split-words .w > span { opacity: 1 !important; filter: none !important; transform: none !important; }
}

/* ---------- Más rápido ---------- */
.will-reveal,
.will-reveal[data-from="left"],
.will-reveal[data-from="right"],
.video-wrap.will-reveal,
.gallery a.will-reveal {
    transform: translateY(16px);
    filter: blur(5px);
    transition-duration: 0.6s;
}
.curtain.will-reveal, .card.will-reveal { filter: blur(5px); transition: opacity 0.6s ease, filter 0.6s ease; }
.curtain.will-reveal > img:not([data-parallax]),
.card.will-reveal img { transition-duration: 0.9s; }
.split-words .w > span {
    filter: blur(5px);
    transition-duration: 0.55s;
    transition-delay: calc(var(--i) * 35ms);
}

/* ---------- Botones de WhatsApp ---------- */
.btn-wa {
    background: #25d366; color: #fff; font-weight: 600;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}
.btn-wa svg { width: 18px; height: 18px; }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5); }

.wa-fab {
    right: 22px; bottom: 22px;
    gap: 12px; padding: 8px 20px 8px 8px;
    background: linear-gradient(135deg, #2fe077, #12a150);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 14px 34px rgba(18, 161, 80, 0.45);
}
.wa-fab svg {
    width: 44px; height: 44px; padding: 9px;
    background: #fff; color: #12a150; border-radius: 50%;
    position: relative;
}
.wa-fab::before {
    content: ""; position: absolute; left: 8px; top: 8px; width: 44px; height: 44px;
    border-radius: 50%; background: rgba(255,255,255,0.7);
    animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }
.wa-fab-text { display: flex; flex-direction: column; line-height: 1.15; font-size: 1rem; font-weight: 700; }
.wa-fab-text small { font-size: 0.72rem; font-weight: 500; opacity: 0.9; letter-spacing: 0.04em; }
.wa-fab:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(18, 161, 80, 0.6); }

@media (max-width: 640px) {
    .wa-fab { padding: 8px; right: 16px; bottom: 16px; }
    .wa-fab span { display: none; }
}

/* =========================================================
   Menú superior
   ========================================================= */
.site-header { transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease; }
.header-inner { transition: min-height 0.35s ease; }
.brand img { transition: height 0.35s ease; }
.site-header.is-solid { box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.site-header.is-solid .header-inner { min-height: 70px; }
.site-header.is-solid .brand img { height: 38px; }

.nav { gap: 14px; }
.nav > ul { gap: 4px; align-items: center; }
.nav > ul > li > a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 999px;
    font-size: 0.93rem; font-weight: 500; letter-spacing: 0.02em;
    transition: background 0.25s ease, color 0.25s ease;
}
.nav > ul > li > a::after { display: none; }
.nav > ul > li > a:hover,
.nav > ul > li:focus-within > a { background: var(--gold-soft); color: var(--cream); }
.nav .is-current > a { color: var(--gold-2); }
.nav .is-current > a::before {
    content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px;
    border-radius: 50%; background: var(--gold);
}
.nav .chev { width: 12px; height: 12px; opacity: 0.7; transition: transform 0.3s ease; }
.nav .has-sub:hover .chev, .nav .has-sub:focus-within .chev { transform: rotate(180deg); }

.nav .has-sub > ul {
    top: calc(100% + 8px);
    left: 50%;
    min-width: 230px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
    box-shadow: 0 24px 50px rgba(0,0,0,0.3);
    transform: translate(-50%, 10px) scale(0.97);
    transform-origin: top center;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.nav .has-sub > ul::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav .has-sub:hover > ul,
.nav .has-sub:focus-within > ul { transform: translate(-50%, 0) scale(1); }
.nav .has-sub > ul a { padding: 10px 14px; border-radius: 10px; font-size: 0.92rem; transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease; }
.nav .has-sub > ul a:hover { padding-left: 18px; }

/* Botón de temas: solo icono */
.theme-menu > a { width: 40px; height: 40px; padding: 0 !important; justify-content: center; }
.theme-menu > a .ico { width: 20px; height: 20px; }
.theme-menu > ul { left: auto !important; right: 0; transform: translate(0, 10px) scale(0.97) !important; transform-origin: top right !important; }
.theme-menu:hover > ul, .theme-menu:focus-within > ul { transform: none !important; }
.only-mobile { display: none; }

.btn-nav.btn-wa { min-height: 42px; padding: 0 18px; border-radius: 999px; }

/* Menú en móvil */
@media (max-width: 980px) {
    .nav { padding: 14px 16px 22px; gap: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
    .nav > ul { align-items: stretch; }
    .nav > ul > li > a { width: 100%; justify-content: space-between; border-radius: 12px; padding: 12px 14px; }
    .nav .chev { display: none; }
    .nav .is-current > a::before { display: none; }
    .nav .has-sub > ul, .theme-menu > ul {
        transform: none !important; border: 0; box-shadow: none; padding: 0 0 6px 12px; left: auto;
    }
    .nav .has-sub > ul::before { display: none; }
    .theme-menu > a { width: 100%; height: auto; padding: 12px 14px !important; justify-content: flex-start; gap: 10px; }
    .only-mobile { display: inline; }
    .btn-nav.btn-wa { width: 100%; }
}

/* =========================================================
   Botón flotante de WhatsApp (estilo original)
   ========================================================= */
.wa-fab {
    width: 60px; height: 60px; padding: 0;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    border: 0;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.wa-fab svg { width: 34px; height: 34px; padding: 0; background: none; color: #fff; border-radius: 0; }
.wa-fab::before {
    left: 0; top: 0; width: 60px; height: 60px;
    background: #25d366; z-index: -1;
    animation: waPulse 2.4s ease-out infinite;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
.wa-tip {
    position: absolute; right: 72px; top: 50%;
    white-space: nowrap;
    background: #fff; color: #111; font-size: 0.88rem; font-weight: 600;
    padding: 8px 14px; border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    opacity: 0; transform: translate(8px, -50%); pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.wa-fab:hover .wa-tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 640px) {
    .wa-fab { width: 56px; height: 56px; padding: 0; }
    .wa-fab::before { width: 56px; height: 56px; }
}
.nav .btn-nav { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 980px) {
    .nav > ul > li.theme-menu > a { justify-content: flex-start; }
}

/* Pasos con foto */
.h-steps-list li { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.h-step-img { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.h-step-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.h-steps-list li:hover .h-step-img img { transform: scale(1.06); }
.h-step-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.65)); }
.h-steps-list .h-step-img b {
    position: absolute; left: 18px; bottom: 10px; z-index: 1; margin: 0;
    color: #fff; -webkit-text-stroke: 0; font-size: 2.6rem;
    text-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.h-step-body { padding: 22px 24px 26px; }
.h-steps-list li:nth-child(1) .h-step-img img { object-position: center top; }

/* =========================================================
   Contacto
   ========================================================= */
.c-head { padding: 56px 0 28px; text-align: center; }
.c-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 10px; }
.c-head .lead { margin: 0 auto; }
.c-main { padding: 20px 0 90px; }
.c-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }

.c-info { display: flex; flex-direction: column; gap: 10px; }
.c-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 14px;
    background: var(--bg-2); border: 1px solid var(--line);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
a.c-item:hover { border-color: color-mix(in srgb, var(--gold) 60%, transparent); transform: translateX(4px); }
.c-item > span:last-child { display: flex; flex-direction: column; line-height: 1.35; font-weight: 500; word-break: break-word; font-size: 0.95rem; }
.c-item small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.c-ico {
    flex: none; width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold);
}
.c-ico svg { width: 20px; height: 20px; }
.c-item-wa .c-ico { background: #25d366; }
.c-item-wa .c-ico svg { width: 26px; height: 26px; }
.c-social { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.c-social a {
    flex: 1; text-align: center; padding: 9px 10px; border-radius: 999px; font-size: 0.85rem;
    border: 1px solid var(--line); color: var(--muted); transition: color 0.2s ease, border-color 0.2s ease;
}
.c-social a:hover { color: var(--gold); border-color: var(--gold); }

.c-form { padding: 28px 30px; }
.c-form h2 { font-size: 1.7rem; margin-bottom: 4px; }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c-form label { margin: 12px 0 6px; }
.c-form textarea { min-height: 120px; }
.c-send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.c-send .form-msg { margin: 0; }

.c-map { position: relative; margin-top: 24px; }
.c-map iframe {
    display: block; width: 100%; height: 380px; border: 0;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
html[data-theme="noche"] .c-map iframe,
html[data-theme="cine"] .c-map iframe,
html[data-theme="bosque"] .c-map iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.6) contrast(0.9); }
.c-map-card {
    position: absolute; right: 70px; bottom: 24px; max-width: 300px;
    padding: 20px 22px; border-radius: 16px;
    background: var(--header-bg); backdrop-filter: blur(12px);
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.c-map-card p { color: var(--cream); margin-bottom: 14px; font-size: 0.95rem; }

@media (max-width: 980px) {
    .c-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .c-row { grid-template-columns: 1fr; gap: 0; }
    .c-form { padding: 22px 18px; }
    .c-map iframe { height: 300px; }
    .c-map-card { position: static; max-width: none; margin-top: 12px; }
}

/* =========================================================
   Pie de página nuevo
   ========================================================= */
.f-new { padding: 0; font-size: 0.95rem; }
.f-new a { transition: color 0.2s ease; }
.f-cta, .f-grid, .f-bottom, .f-word { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.f-cta {
    display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
    padding: 72px 0 56px; border-bottom: 1px solid var(--line);
}
.f-cta-copy { flex: 1 1 520px; min-width: 0; }
.f-cta h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; color: var(--cream); }
.f-cta h2 em { color: var(--gold); }
.f-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.f-cta-actions .btn { min-height: 52px; padding: 0 26px; border-radius: 999px; }
.f-cta-actions .btn-wa svg { width: 20px; height: 20px; }

.f-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px;
    padding: 56px 0;
}
.f-grid nav, .f-contact { display: flex; flex-direction: column; gap: 10px; }
.f-new h3 { color: var(--cream); font-size: 1.35rem; font-weight: 600; margin: 0 0 6px; }
.f-new nav a:hover, .f-contact a:hover { color: var(--gold); }
.f-brand p { margin: 16px 0; max-width: 32ch; }
.f-social { display: flex; gap: 10px; }
.f-social a {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); color: var(--cream);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.f-social a:hover { background: var(--gold); color: var(--btn-ink); transform: translateY(-3px); }
.f-social svg { width: 18px; height: 18px; }
.f-contact a, .f-contact span { display: flex; gap: 10px; align-items: flex-start; word-break: break-word; }
.f-contact svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }

.f-word {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(4rem, 14vw, 11rem); line-height: 0.8; letter-spacing: 0.04em;
    text-align: center; white-space: nowrap; overflow: hidden;
    color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--gold) 30%, transparent);
    user-select: none;
}
.f-bottom {
    display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
    padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 0.82rem;
}
.f-bottom div { display: flex; flex-wrap: wrap; gap: 20px; }
.f-bottom a:hover { color: var(--gold); }

@media (max-width: 980px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
    .f-grid { grid-template-columns: 1fr; gap: 32px; }
    .f-cta { padding: 56px 0 40px; }
    .f-cta-actions .btn { flex: 1 1 auto; }
}

/* =========================================================
   Todos los botones con el estilo de "Soy un colegio / AMPA"
   ========================================================= */
.btn,
.btn-gold,
.btn-ghost,
.btn-nav,
.btn-wa,
.f-cta-actions .btn,
.btn-nav.btn-wa {
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--btn-radius);
    border: 1px solid transparent;
    background: var(--gold);
    color: var(--btn-ink);
    font-weight: 500;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--gold) 22%, transparent);
}
.btn-ghost::before { display: none; }
.btn:hover,
.btn-gold:hover,
.btn-ghost:hover,
.btn-wa:hover {
    background: var(--gold-2);
    color: var(--btn-ink);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px color-mix(in srgb, var(--gold) 38%, transparent);
}
.btn:active { transform: translateY(-1px); }
.btn-nav, .btn-nav.btn-wa { min-height: 42px; padding: 0 18px; }

/* WhatsApp en verde, con la misma forma y el mismo efecto */
.btn-wa, .btn-nav.btn-wa, .f-cta-actions .btn-wa {
    background: #25d366; color: #fff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
.btn-wa:hover, .site-footer .btn-wa:hover {
    background: #1ebe5b; color: #fff;
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.45);
}

/* El pie no debe pisar el efecto de los botones */
.site-footer a.btn {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.site-footer a.btn-gold:hover { color: var(--btn-ink); }

/* Orlas: se ven enteras, sin recorte ni parallax */
.feature-media img[src*="/orlas/"] {
    object-fit: contain; height: auto; min-height: 0;
    background: var(--orla-mat, var(--media-bg));
}

/* =========================================================
   Portada espectacular (bodas)
   ========================================================= */
.x-hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: calc(100vh - var(--header));
    display: flex; align-items: center;
    padding: 64px 0;
    color: #fff;
}
.x-hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
    object-fit: cover; object-position: center 25%;
    animation: xZoom 18s ease-out both;
}
@keyframes xZoom { from { transform: scale(1.15); } to { transform: scale(1); } }
.x-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.75) 45%, rgba(5,5,5,0.35) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.x-hero-inner {
    width: min(1280px, calc(100% - 40px)); margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.x-hero h1 {
    font-size: clamp(2.8rem, 6.5vw, 5.8rem); line-height: 1; margin-bottom: 24px; color: #fff;
}
.x-hero h1 em { color: var(--gold-2); font-style: italic; }
.x-hero-copy p { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 52ch; margin-bottom: 24px; }
.x-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.x-hero-tags li {
    padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; letter-spacing: 0.04em;
    border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); backdrop-filter: blur(6px);
}
.x-hero .hero-actions { justify-content: flex-start; }
.x-hero .btn-wa svg { width: 20px; height: 20px; }

.x-hero-collage { position: relative; height: min(70vh, 600px); }
.x-hero-collage img {
    position: absolute; object-fit: cover; border-radius: 16px;
    border: 6px solid rgba(255,255,255,0.92);
    box-shadow: 0 30px 70px rgba(0,0,0,0.55);
    animation: xIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.x-c1 { width: 62%; height: 58%; right: 0; top: 0; transform: rotate(3deg); animation-delay: 0.2s; }
.x-c2 { width: 44%; height: 56%; left: 0; top: 22%; transform: rotate(-4deg); z-index: 1; animation-delay: 0.35s; }
.x-c3 { width: 54%; height: 42%; right: 6%; bottom: 0; transform: rotate(2deg); animation-delay: 0.5s; }
@keyframes xIn { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 980px) {
    .x-hero-inner { grid-template-columns: 1fr; }
    .x-hero-collage { height: 420px; }
    .x-hero::before { background: linear-gradient(180deg, rgba(5,5,5,0.85), rgba(5,5,5,0.7) 60%, var(--bg)); }
}
@media (max-width: 640px) {
    .x-hero-collage { height: 320px; }
    .x-hero .hero-actions .btn { flex: 1 1 auto; }
}

/* Portada espectacular: variante con una sola imagen entera (orlas) */
.x-hero-blur .x-hero-bg { filter: blur(6px) brightness(0.8); transform: scale(1.1); animation: none; }
.x-hero-single { position: relative; }
.x-hero-single img {
    width: 100%; height: auto; display: block;
    border-radius: 16px; border: 6px solid rgba(255,255,255,0.92);
    box-shadow: 0 30px 70px rgba(0,0,0,0.55);
    transform: rotate(-2deg);
    animation: xIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.x-hero-copy .hero-actions { flex-wrap: wrap; }

/* =========================================================
   Portada principal: fondo con fotos que van cambiando
   ========================================================= */
.x-hero-home { min-height: 100vh; padding-top: calc(var(--header) + 40px); }
.x-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.x-slides img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 30%;
    opacity: 0;
    animation: xSlide 24s linear infinite;
}
.x-slides img:nth-child(2) { animation-delay: 6s; }
.x-slides img:nth-child(3) { animation-delay: 12s; }
.x-slides img:nth-child(4) { animation-delay: 18s; }
@keyframes xSlide {
    0%   { opacity: 0; transform: scale(1.12); }
    5%   { opacity: 1; }
    25%  { opacity: 1; }
    32%  { opacity: 0; transform: scale(1); }
    100% { opacity: 0; transform: scale(1); }
}
.x-hero-home h1 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); }
.x-seal {
    position: absolute; left: 6%; bottom: -2%; z-index: 2;
    width: 130px; height: 130px; border-radius: 50%;
    display: grid; place-content: center; text-align: center;
    background: var(--gold); color: var(--btn-ink);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: xIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both, xSpin 18s linear 1.7s infinite;
}
.x-seal::before {
    content: ""; position: absolute; inset: 7px; border-radius: 50%;
    border: 1px dashed color-mix(in srgb, var(--btn-ink) 45%, transparent);
}
.x-seal strong { font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; font-weight: 600; }
.x-seal span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.25; }
@keyframes xSpin { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
.x-hero-home .scroll-cue { opacity: 1; }
@media (max-width: 640px) {
    .x-seal { width: 104px; height: 104px; }
    .x-seal strong { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .x-slides img:first-child { opacity: 1; }
}

/* ---------- Ajustes de móvil ---------- */
.pack img { width: 100%; max-width: 420px; height: auto; }
.eyebrow { max-width: 100%; }
@media (max-width: 640px) {
    .eyebrow { letter-spacing: 0.18em; }
    .section-head .eyebrow::before, .section-head .eyebrow::after { width: 16px; }
}
.btn { text-align: center; line-height: 1.25; }
@media (max-width: 640px) {
    .h-path .btn, .x-hero .hero-actions .btn, .h-feature-copy .btn { width: 100%; padding-block: 12px; }
    .h-path { min-height: 500px; }
}
@media (max-width: 640px) {
    .f-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .f-brand, .f-contact { grid-column: 1 / -1; }
}

/* =========================================================
   Móvil tipo app: logo centrado, barra inferior y pie desplegable
   ========================================================= */
.m-tabbar, .m-backdrop, .f-sheet-head, .f-themes { display: none; }

@media (max-width: 820px) {
    /* Cabecera: solo el logo, centrado */
    .header-inner { justify-content: center; min-height: 64px; }
    .site-header.is-solid .header-inner { min-height: 58px; }
    .nav-toggle, .nav { display: none !important; }
    .brand img { height: 40px; }
    .site-header.is-solid .brand img { height: 34px; }
    body.page-inner { padding-top: 64px; }
    .x-hero { min-height: calc(100svh - 64px); }
    .x-hero-home { padding-top: 96px; }

    body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    .wa-fab { display: none; }
    .cookie-bar { bottom: calc(100px + env(safe-area-inset-bottom)); }

    /* Barra inferior */
    .m-tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
        position: fixed; z-index: 90;
        left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
        height: 68px; padding: 0 6px 8px;
        border-radius: 24px;
        background: var(--header-bg);
        backdrop-filter: blur(18px) saturate(1.4);
        -webkit-backdrop-filter: blur(18px) saturate(1.4);
        border: 1px solid var(--line);
        box-shadow: 0 18px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
        animation: tabIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    @keyframes tabIn { from { transform: translateY(120%); } to { transform: none; } }
    .m-tab {
        position: relative;
        display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
        min-height: 56px; padding: 0;
        background: none; border: 0; cursor: pointer;
        color: var(--muted); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.02em;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.25s ease;
    }
    .m-tab svg { width: 24px; height: 24px; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
    .m-tab:active svg { transform: scale(0.85); }
    .m-tab.is-current, .m-tab[aria-expanded="true"] { color: var(--gold); }
    .m-tab.is-current::before, .m-tab[aria-expanded="true"]::before {
        content: ""; position: absolute; top: 6px; width: 36px; height: 36px; border-radius: 12px;
        background: var(--gold-soft); z-index: -1;
    }
    .m-tab[aria-expanded="true"] svg { transform: translateY(-2px); }

    /* WhatsApp en el centro, elevado */
    .m-wa { justify-content: center; }
    .m-wa-btn {
        width: 60px; height: 60px; margin-top: -30px; border-radius: 50%;
        display: grid; place-items: center;
        background: #25d366;
        box-shadow: 0 0 0 6px var(--bg), 0 12px 26px rgba(37, 211, 102, 0.5);
        position: relative;
    }
    .m-wa-btn::after {
        content: ""; position: absolute; inset: 0; border-radius: 50%;
        background: #25d366; z-index: -1; animation: waPulse 2.4s ease-out infinite;
    }
    .m-wa-btn svg { width: 34px; height: 34px; }

    /* Submenús que salen hacia arriba */
    .m-pop {
        position: absolute; bottom: calc(100% + 12px); left: 0; width: min(300px, 86vw);
        padding: 8px; border-radius: 20px;
        background: var(--nav-drop); border: 1px solid var(--line);
        border-top: 2px solid var(--gold);
        box-shadow: 0 24px 50px rgba(0,0,0,0.4);
        opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.96); transform-origin: bottom left;
        transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.25s;
    }
    .m-pop-right { left: auto; right: 0; transform-origin: bottom right; }
    .m-pop.is-open { opacity: 1; visibility: visible; transform: none; }
    .m-pop a {
        display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px;
        transition: background 0.2s ease;
    }
    .m-pop a:active, .m-pop a:hover { background: var(--gold-soft); }
    .m-pop b { color: var(--cream); font-weight: 600; font-size: 0.98rem; }
    .m-pop small { color: var(--muted); font-size: 0.8rem; }

    /* Fondo oscuro detrás del panel */
    .m-backdrop {
        display: block; position: fixed; inset: 0; z-index: 92;
        background: rgba(0,0,0,0.55); backdrop-filter: blur(3px);
        opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
    }
    body.sheet-open .m-backdrop, body.pop-open .m-backdrop { opacity: 1; pointer-events: auto; }
    body.pop-open .m-backdrop { z-index: 89; background: rgba(0,0,0,0.35); }

    /* El pie se convierte en un panel desplegable */
    .site-footer.f-new {
        position: fixed; z-index: 95; left: 0; right: 0; bottom: 0;
        max-height: 88svh; overflow-y: auto; overscroll-behavior: contain;
        border-radius: 28px 28px 0 0;
        border-top: 1px solid var(--line);
        box-shadow: 0 -20px 60px rgba(0,0,0,0.45);
        transform: translateY(105%);
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    body.sheet-open .site-footer.f-new { transform: none; }
    body.sheet-open { overflow: hidden; }
    .site-footer.f-new::before { display: none; }

    .f-sheet-head {
        display: flex; justify-content: center; align-items: center;
        position: sticky; top: 0; z-index: 2;
        padding: 12px 16px 6px;
        background: var(--footer-bg);
        touch-action: none;
    }
    .f-grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line); background: color-mix(in srgb, var(--cream) 30%, transparent); }
    .f-close {
        position: absolute; right: 14px; top: 8px;
        width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
        display: grid; place-items: center;
        background: var(--gold-soft); color: var(--cream);
    }
    .f-close svg { width: 18px; height: 18px; }

    .f-themes { display: block; width: calc(100% - 40px); margin: 10px auto 0; }
    .f-themes-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
    .f-themes-list::-webkit-scrollbar { display: none; }
    .f-themes-list button {
        flex: none; display: flex; align-items: center; gap: 8px;
        padding: 8px 14px 8px 8px; border-radius: 999px; cursor: pointer;
        background: var(--bg-2); border: 1px solid var(--line); color: var(--cream);
        font-size: 0.85rem; white-space: nowrap;
    }
    .f-themes-list button i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
    .f-themes-list button.is-active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }

    .f-cta { padding: 20px 0 28px; }
    .f-cta h2 { font-size: 1.9rem; }
    .f-grid { padding: 28px 0; }
    .f-word { font-size: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .m-tabbar { animation: none; }
}

/* Sobre la foto de portada, siempre el logo blanco */
.has-hero .site-header:not(.is-solid) .brand .logo-on-dark { display: block !important; }
.has-hero .site-header:not(.is-solid) .brand .logo-on-light { display: none !important; }

/* ---------- Móvil: menos espacio entre secciones ---------- */
@media (max-width: 820px) {
    .section { padding: 52px 0; }
    .section-head { margin-bottom: 28px; }
    .section-head h2::after { margin-top: 12px; }
    .x-hero { padding: 40px 0 36px; }
    .x-hero-home { padding-top: 88px; }
    .x-hero-inner { gap: 28px; }
    .x-hero-collage { height: 340px; }
    .marquee { padding: 14px 0; }
    .h-reel { height: 220vh; }
    .h-reel-sticky { gap: 22px; }
    .h-feature { padding: 8px 0 52px; }
    .h-feature-grid { gap: 24px; }
    .feature { margin: 0 0 52px; gap: 22px; }
    .feature:last-child { margin-bottom: 0; }
    .quote-band { padding: 48px 0; }
    .quote-band blockquote { margin-bottom: 0; }
    .h-steps-list, .h-paths-grid { gap: 16px; }
    .pack { margin-top: 36px; }
    .c-head { padding: 32px 0 16px; }
    .c-main { padding: 12px 0 52px; }
    .video-grid { gap: 14px; }
}
@media (max-width: 820px) {
    .h-reel { height: auto; }
    .h-reel-sticky { position: static; height: auto; padding: 48px 0; gap: 20px; }
    .h-reel-track {
        width: auto; transform: none !important;
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        padding: 0 20px 4px; scroll-padding: 0 20px;
    }
    .h-reel-track::-webkit-scrollbar { display: none; }
    .h-reel-item { width: 78vw; scroll-snap-align: start; }
    .h-reel-item.tall { width: 56vw; }
}

/* =========================================================
   Temas: color de acento para usar encima de fotos oscuras
   ========================================================= */
:root { --on-dark: #c4a574; --on-dark-2: #e4d0aa; --on-dark-ink: #1a140c; }
html[data-theme="marfil"]       { --on-dark: #e2c9a0; --on-dark-2: #f0dfc2; --on-dark-ink: #2b241c; }
html[data-theme="estudio"]      { --on-dark: #ffffff; --on-dark-2: #e6e6e6; --on-dark-ink: #111111; }
html[data-theme="champagne"]    { --on-dark: #ebc3b3; --on-dark-2: #f5dcd2; --on-dark-ink: #3a271f; }
html[data-theme="editorial"]    { --on-dark: #e9b9c1; --on-dark-2: #f4d6db; --on-dark-ink: #241418; }
html[data-theme="nordico"]      { --on-dark: #a8cad7; --on-dark-2: #cfe3ea; --on-dark-ink: #1c2a31; }
html[data-theme="cine"]         { --on-dark: #cfd3dc; --on-dark-2: #f2f4f8; --on-dark-ink: #111318; }
html[data-theme="mediterraneo"] { --on-dark: #9fd2de; --on-dark-2: #cbe7ee; --on-dark-ink: #1d2c30; }
html[data-theme="bosque"]       { --on-dark: #a3c2a0; --on-dark-2: #cbe0c8; --on-dark-ink: #132017; }
html[data-theme="revista"]      { --on-dark: #ffffff; --on-dark-2: #e6e6e6; --on-dark-ink: #111111; }

/* Zonas con foto oscura detrás: siempre colores claros */
.x-hero, .h-path, .h-cta, .card-copy, .h-reel-item, .h-step-img {
    --gold: var(--on-dark);
    --gold-2: var(--on-dark-2);
    --btn-ink: var(--on-dark-ink);
    --gold-soft: rgba(255, 255, 255, 0.14);
}
.x-hero::before {
    background:
        linear-gradient(90deg, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.75) 45%, rgba(5,5,5,0.35) 100%),
        linear-gradient(0deg, rgba(5,5,5,0.6) 0%, transparent 30%);
}
@media (max-width: 980px) {
    .x-hero::before { background: linear-gradient(180deg, rgba(5,5,5,0.85), rgba(5,5,5,0.72) 60%, rgba(5,5,5,0.88)); }
}

/* Menú de arriba sobre la foto de portada (antes de bajar) */
.has-hero .site-header:not(.is-solid) {
    --gold: var(--on-dark);
    --gold-2: var(--on-dark-2);
    --gold-soft: rgba(255, 255, 255, 0.14);
}
.has-hero .site-header:not(.is-solid) .nav > ul > li > a { color: #fff; }
.has-hero .site-header:not(.is-solid) .nav .is-current > a { color: var(--on-dark-2); }
.has-hero .site-header:not(.is-solid) .nav-toggle span { background: #fff; }

/* Tema Revista: el pie es negro, así que todo en claro */
html[data-theme="revista"] .site-footer {
    --cream: #f3f3f3;
    --muted: #b5b5b5;
    --gold: #ffffff;
    --gold-2: #e6e6e6;
    --btn-ink: #111111;
    --gold-soft: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.16);
    --bg-2: #1c1c1c;
    --bg: #111111;
    color: var(--muted);
}

/* WhatsApp: verde un poco más oscuro en los botones con texto, para que se lea mejor */
.btn-wa, .btn-nav.btn-wa, .f-cta-actions .btn-wa { background: #168a40; font-weight: 600; }
.btn-wa:hover, .site-footer .btn-wa:hover { background: #12753a; }
