/* ==========================================================================
   Real Dog Gandía — blanco cálido, verde natural y detalles dorados
   ========================================================================== */

@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces-latin.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces-italic-latin.woff2') format('woff2');
    font-weight: 300 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Figtree';
    src: url('../fonts/figtree-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    --cream: #fbf7ef;
    --white: #fffdf8;
    --paper: #f4eddd;
    --sage-100: #edf2e4;
    --sage-200: #dde7d1;

    --forest-900: #14281d;
    --forest-800: #1c382a;
    --forest-700: #264a36;
    --leaf: #4f7b3b;

    --gold-300: #e3c878;
    --gold-400: #cfa94b;
    --gold-600: #9a7419;
    --gold-700: #8a6a1a;

    --ink: #1e2b23;
    --muted: #58665d;
    --line: rgba(30, 43, 35, 0.14);
    --line-soft: rgba(30, 43, 35, 0.08);
    --whatsapp: #0f7b4f;

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r-md: 20px;
    --r-lg: 30px;
    --shadow-lg: 0 30px 60px -30px rgba(20, 40, 29, 0.35);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    --gutter: clamp(1.25rem, 4vw, 2rem);
    --header-h: 4.25rem;
    --cta-h: 4.75rem;
    --section-y: clamp(4rem, 9vw, 7.5rem);
    --overlap: clamp(2rem, 4vw, 3.25rem);

    --contour: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='180' viewBox='0 0 360 180' fill='none' stroke='%23ffffff' stroke-opacity='.09'%3E%3Cpath d='M0 15c60-30 120 30 180 0s120-30 180 0'/%3E%3Cpath d='M0 45c60-30 120 30 180 0s120-30 180 0'/%3E%3Cpath d='M0 75c60-30 120 30 180 0s120-30 180 0'/%3E%3Cpath d='M0 105c60-30 120 30 180 0s120-30 180 0'/%3E%3Cpath d='M0 135c60-30 120 30 180 0s120-30 180 0'/%3E%3Cpath d='M0 165c60-30 120 30 180 0s120-30 180 0'/%3E%3C/svg%3E");
}

@media (min-width: 1040px) {
    :root { --header-h: 4.75rem; }
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

[id] { scroll-margin-top: calc(var(--header-h) + 0.75rem); }
[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.container {
    width: min(1200px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.7rem 1.1rem;
    background: var(--forest-900);
    color: var(--cream);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Tipografía ---------- */
.display,
.h2,
.h3,
.member__name,
.stats strong,
.space strong,
.care strong {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--forest-800);
}

.display {
    font-size: clamp(2.6rem, 6.2vw, 4.85rem);
    line-height: 1.02;
    letter-spacing: -0.028em;
}
.h2 {
    font-size: clamp(2.05rem, 4.6vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -0.022em;
    margin: 0.75rem 0 1.4rem;
}
.h3 {
    font-size: clamp(1.55rem, 2.6vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.display em,
.h2 em {
    font-style: italic;
    font-weight: 300;
    color: var(--gold-600);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-700);
}
.eyebrow::before {
    content: '';
    width: 2.25rem;
    height: 1.5px;
    background: var(--gold-400);
}

.lead {
    font-size: clamp(1.08rem, 1.5vw, 1.22rem);
    line-height: 1.65;
    color: var(--muted);
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.65rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--primary { background: var(--forest-800); color: var(--cream); }
.btn--gold { background: var(--gold-400); color: var(--forest-900); }
.btn--ghost { background: transparent; color: var(--forest-800); border-color: var(--forest-800); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--light { background: var(--cream); color: var(--forest-900); }

@media (hover: hover) {
    .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -14px rgba(20, 40, 29, 0.55); }
    .btn--primary:hover { background: var(--forest-700); }
    .btn--gold:hover { background: var(--gold-300); }
    .btn--ghost:hover { background: var(--forest-800); color: var(--cream); }
    .btn--whatsapp:hover { background: #0b6a42; }
    .btn--light:hover { background: #fff; }
}

/* ---------- Logotipo provisional ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand__badge {
    flex: none;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 0.8rem;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(207, 169, 75, 0.6);
}
.brand--light .brand__badge { width: 3.6rem; height: 3.6rem; border-radius: 1rem; }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark__main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--forest-800);
}
.wordmark__main i {
    width: 0.42rem;
    height: 0.42rem;
    background: var(--gold-400);
    transform: rotate(45deg);
}
.wordmark__sub {
    margin-top: 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.46em;
    text-transform: uppercase;
    color: var(--gold-700);
}
.brand--light .wordmark__main { color: var(--cream); }
.brand--light .wordmark__sub { color: var(--gold-300); }

/* ---------- Cabecera ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header-h);
}
.site-header.is-scrolled,
.site-header.is-solid {
    background: rgba(251, 247, 239, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line-soft);
}

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav__list { display: flex; gap: 1.75rem; list-style: none; }
.nav__list a {
    position: relative;
    display: block;
    padding: 0.4rem 0;
    font-size: 0.97rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
}
.nav__list a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold-400);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav__list a:hover::after,
.nav__list a[aria-current='true']::after { transform: scaleX(1); }
.nav__actions .btn { padding: 0.7rem 1.3rem; font-size: 0.95rem; }

.nav-toggle {
    display: none;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; grid-area: 1 / 1; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__close { display: block; }

@media (min-width: 1040px) {
    .nav__wa { display: none; }
}

@media (max-width: 1039px) {
    .nav-toggle { display: inline-grid; }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 2rem;
        padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
        overflow-y: auto;
        background: var(--forest-900);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
    }
    .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }

    .nav__list { flex-direction: column; gap: 0; }
    .nav__list a {
        padding: 1.05rem 0;
        font-family: var(--font-display);
        font-size: 1.75rem;
        font-weight: 400;
        color: var(--cream);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    .nav__list a::after { display: none; }
    .nav__list a[aria-current='true'] { color: var(--gold-300); }
    .nav__actions { display: grid; gap: 0.75rem; }
    .nav__actions .btn { width: 100%; padding: 1rem; font-size: 1rem; }

    html.nav-open { overflow: hidden; }
    html.nav-open .site-header { background: var(--forest-900); box-shadow: none; }
    html.nav-open .wordmark__main { color: var(--cream); }
    html.nav-open .wordmark__sub { color: var(--gold-300); }
    html.nav-open .nav-toggle { color: var(--cream); border-color: rgba(255, 255, 255, 0.3); }
    html.nav-open .cta-bar { transform: translateY(110%); }

    html:not(.js) .site-header { position: relative; background: var(--cream); }
    html:not(.js) .site-header__inner { height: auto; flex-wrap: wrap; padding-block: 0.75rem; }
    html:not(.js) .nav { position: static; visibility: visible; opacity: 1; transform: none; background: none; padding: 0; width: 100%; }
    html:not(.js) .nav__list a { color: var(--ink); font-size: 1.1rem; border-color: var(--line); }
    html:not(.js) .nav-toggle { display: none; }
}

/* ---------- Secciones ---------- */
.section {
    --bg: var(--cream);
    position: relative;
    padding-block: var(--section-y);
    background: var(--bg);
}
.section--sage { --bg: var(--sage-100); }
.section--white { --bg: var(--white); }
.section--paper { --bg: var(--paper); }
.section--forest {
    --bg: var(--forest-900);
    color: rgba(251, 247, 239, 0.82);
    isolation: isolate;
}
.section--forest::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--contour);
    opacity: 0.8;
}
.hero + .section { padding-top: calc(var(--section-y) + var(--overlap)); }

.section-head { max-width: 780px; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
.section-head .lead { max-width: 62ch; }
.section-head--light .h2 { color: var(--cream); }
.section-head--light .h2 em { color: var(--gold-300); }
.section-head--light .lead { color: rgba(251, 247, 239, 0.78); }
.section-head--light .eyebrow { color: var(--gold-300); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(1.75rem, 5vw, 4.5rem)) 0 0;
    background:
        radial-gradient(55% 55% at 88% 22%, rgba(221, 231, 209, 0.95), transparent 72%),
        radial-gradient(45% 40% at 0% 95%, rgba(227, 200, 120, 0.2), transparent 72%),
        var(--cream);
}
.hero__grid { display: grid; gap: 2.75rem; align-items: center; }
.hero__copy .eyebrow { margin-bottom: 1.4rem; }
.hero__copy .lead { max-width: 54ch; margin-top: 1.6rem; }
.hero__actions { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2.2rem; }
.hero__actions .btn { width: 100%; }

.hero__media { position: relative; width: min(100%, 440px); margin-inline: auto; }
.hero__ring {
    position: absolute;
    inset: 0;
    border: 1.5px solid var(--gold-400);
    border-radius: 999px 999px var(--r-md) var(--r-md);
    transform: translate(14px, 16px);
}
.hero__photo {
    position: relative;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-lg);
}

.arch {
    overflow: hidden;
    border-radius: 999px 999px var(--r-md) var(--r-md);
    background: var(--sage-200);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.seal {
    position: absolute;
    left: -0.5rem;
    bottom: 1.5rem;
    width: clamp(6.25rem, 26vw, 9.5rem);
    height: auto;
    filter: drop-shadow(0 12px 18px rgba(20, 40, 29, 0.3));
}
.seal__bg { fill: var(--forest-800); }
.seal__core { fill: var(--gold-400); }
.seal__icon { stroke: var(--forest-900); }
.seal__ring { transform-origin: 80px 80px; animation: spin 48s linear infinite; }
.seal__ring text {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    fill: var(--gold-300);
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 640px) {
    .hero__actions { flex-direction: row; flex-wrap: wrap; }
    .hero__actions .btn { width: auto; }
}
@media (min-width: 960px) {
    .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(2rem, 5vw, 5rem); }
    .hero__media { width: 100%; max-width: 500px; margin-inline: 0 0; justify-self: end; }
    .seal { left: -3.25rem; bottom: 2.5rem; }
}

/* ---------- Franja de ventajas ---------- */
.stats {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1rem;
    margin: 2.5rem 0 calc(var(--overlap) * -1);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    list-style: none;
    border-radius: var(--r-lg);
    background: var(--forest-800);
    isolation: isolate;
    overflow: hidden;
    box-shadow: 0 30px 50px -28px rgba(20, 40, 29, 0.6);
}
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--contour);
}
.stats__item { display: grid; align-content: start; gap: 0.2rem; }
.stats__item:last-child { grid-column: 1 / -1; }
.stats .icon { width: 1.6rem; height: 1.6rem; margin-bottom: 0.45rem; color: var(--gold-300); }
.stats strong {
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--cream);
}
.stats span { font-size: 0.93rem; line-height: 1.4; color: rgba(251, 247, 239, 0.78); }

@media (max-width: 959px) {
    .stats__item:last-child {
        grid-template-columns: auto 1fr;
        grid-template-areas: 'ico val' 'ico lbl';
        column-gap: 1rem;
        align-items: center;
        padding-top: 1.35rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }
    .stats__item:last-child .icon { grid-area: ico; margin: 0; }
    .stats__item:last-child strong { grid-area: val; align-self: end; }
    .stats__item:last-child span { grid-area: lbl; align-self: start; }
}

@media (min-width: 960px) {
    .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: clamp(2rem, 4vw, 3.5rem); }
    .stats__item { padding-inline: clamp(0.75rem, 2vw, 1.75rem); border-left: 1px solid rgba(255, 255, 255, 0.14); }
    .stats__item:first-child { border-left: 0; padding-left: 0; }
    .stats__item:last-child { grid-column: auto; }
}

/* ---------- Bloques de texto + fotos ---------- */
.split { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split__copy p:not(.eyebrow) { max-width: 54ch; color: var(--muted); }
.split__copy p + p { margin-top: 1.1rem; }

.duo {
    position: relative;
    width: min(100%, 440px);
    aspect-ratio: 5 / 6;
    margin-inline: auto;
}
.duo__a, .duo__b { position: absolute; }
.duo__a {
    right: 0;
    top: 0;
    width: 72%;
    aspect-ratio: 4 / 5.4;
    box-shadow: var(--shadow-lg);
}
.duo__b {
    left: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 3 / 4;
    box-shadow: 0 0 0 8px var(--bg), var(--shadow-lg);
}
.duo--flip .duo__a { right: auto; left: 0; }
.duo--flip .duo__b { left: auto; right: 0; }

@media (min-width: 960px) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
    .split--reverse { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
    .split--reverse .duo { order: -1; }
    .duo { width: 100%; max-width: 480px; }
}

.features { display: grid; gap: 0.85rem; margin-top: 2rem; list-style: none; }
.features li { display: flex; align-items: center; gap: 0.95rem; font-weight: 500; color: var(--forest-800); }
.features .icon {
    box-sizing: content-box;
    width: 1.3rem;
    height: 1.3rem;
    padding: 0.6rem;
    border-radius: 50%;
    background: rgba(207, 169, 75, 0.22);
    color: var(--gold-700);
}

/* ---------- Formulario de guardería ---------- */
.form-card {
    display: grid;
    margin-top: clamp(3.5rem, 7vw, 5.5rem);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}
.form-card__aside {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: clamp(1.75rem, 4vw, 3rem);
    background: var(--forest-800);
    color: rgba(251, 247, 239, 0.85);
}
.form-card__aside::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--contour);
}
.form-card__aside .h3 { color: var(--cream); }

.steps { display: grid; gap: 1.1rem; margin-block: 1.75rem auto; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.9rem; align-items: center; counter-increment: step; }
.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--gold-400);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--gold-300);
}
.form-card__note {
    margin-top: 1.9rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.93rem;
    color: var(--gold-300);
}
.form-card__main { padding: clamp(1.5rem, 4vw, 3rem); }

@media (min-width: 960px) {
    .form-card { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
}

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.15rem 1rem; }
.field--full { grid-column: 1 / -1; }
@media (min-width: 640px) {
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field label,
.field legend {
    display: block;
    margin-bottom: 0.4rem;
    padding: 0;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--forest-800);
}
.field__hint { display: block; margin-top: 0.1rem; font-weight: 400; color: var(--muted); }
.req { color: var(--gold-700); }

.field input[type='text'],
.field input[type='tel'],
.field input[type='email'],
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--cream);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder { color: #8a948d; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--leaf);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(207, 169, 75, 0.28);
}
.field [aria-invalid='true'] { border-color: #b3402b; }
.field__error { margin-top: 0.4rem; font-size: 0.88rem; font-weight: 500; color: #a63a26; }

.chips { min-width: 0; margin: 0; padding: 0; border: 0; }
.chips__list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; margin: 0; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span {
    display: inline-flex;
    padding: 0.65rem 1.15rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--cream);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip input:checked + span { border-color: var(--forest-800); background: var(--forest-800); color: var(--cream); }
.chip input:focus-visible + span { outline: 3px solid var(--gold-400); outline-offset: 2px; }

.field label.check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    cursor: pointer;
}
.check input { flex: none; width: 1.3rem; height: 1.3rem; margin: 0.1rem 0 0; accent-color: var(--forest-700); }
.check a { color: var(--forest-800); text-decoration-color: var(--gold-400); text-underline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.6rem; }
.form-actions__legal { font-size: 0.88rem; color: var(--muted); }
.form-error {
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    color: #8a2f1e;
    background: #f9e3dd;
}
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; box-shadow: none; }

.form-success { display: flex; gap: 1rem; align-items: flex-start; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-md); background: var(--sage-100); }
.form-success:focus { outline: none; }
.form-success .icon {
    box-sizing: content-box;
    width: 1.3rem;
    height: 1.3rem;
    padding: 0.7rem;
    border-radius: 50%;
    background: var(--leaf);
    color: #fff;
}
.form-success p { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; color: var(--forest-800); }

/* ---------- Reservas (iframe Gespet) ---------- */
.booking-card {
    --pad: 0.75rem;
    margin-top: clamp(3.5rem, 7vw, 5.5rem);
    padding: var(--pad);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}
.booking-card__head { padding: 1rem 0.5rem 1.25rem; text-align: center; }
.booking-card__head .eyebrow { justify-content: center; margin-bottom: 0.6rem; }
.booking-card__head .eyebrow::after { content: ''; width: 2.25rem; height: 1.5px; background: var(--gold-400); }

.booking-frame { position: relative; overflow: hidden; border-radius: var(--r-md); background: #fff; }
.booking-frame__loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: start center;
    padding-top: 5rem;
    color: var(--muted);
}
.booking-frame.is-loaded .booking-frame__loading { display: none; }
.booking-frame iframe {
    position: relative;
    display: block;
    width: 100%;
    height: 1700px;
    border: 0;
    background: transparent;
}
.booking-card__foot { padding: 1.25rem 0.5rem 0.75rem; text-align: center; }
.booking-card__foot a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.15rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--forest-800);
    border-bottom: 1.5px solid var(--gold-400);
}

@media (min-width: 481px) { .booking-frame iframe { height: 1580px; } }
@media (min-width: 769px) {
    .booking-card { --pad: clamp(1.25rem, 3vw, 2.5rem); }
    .booking-frame iframe { height: 1500px; }
}
@media (min-width: 1101px) { .booking-frame iframe { height: 1290px; } }

/* ---------- Equipo ---------- */
.team { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.member {
    display: grid;
    gap: 1.75rem;
    align-content: start;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    background: var(--cream);
}
.member__photo {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    background: var(--sage-200);
}
.member__photo img { object-position: 45% 50%; }
.member__monogram { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 8rem); font-style: italic; font-weight: 300; line-height: 1; color: var(--leaf); }
.member__role {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest-800);
    background: var(--sage-200);
}
.member__name { margin-bottom: 1rem; font-size: clamp(1.7rem, 2.8vw, 2.2rem); line-height: 1.1; letter-spacing: -0.015em; }
.member__body p:not(.member__role) { color: var(--muted); }
.member__body p + p { margin-top: 0.9rem; }

.member--lead { background: var(--forest-800); }
.member--lead .member__photo { background: var(--forest-700); }
.member--lead .member__monogram { color: var(--gold-300); }
.member--lead .member__role { color: var(--forest-900); background: var(--gold-300); }
.member--lead .member__name { color: var(--cream); font-size: clamp(2.1rem, 3.8vw, 3rem); }
.member--lead .member__body p:not(.member__role) { color: rgba(251, 247, 239, 0.82); }

.member:not(.member--lead) .member__photo { width: min(100%, 17.5rem); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; list-style: none; }
.tags li {
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(227, 200, 120, 0.55);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--gold-300);
}

@media (min-width: 640px) {
    .member--lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; align-content: center; }
}
@media (min-width: 960px) {
    .team { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: stretch; }
}

/* ---------- Instalaciones ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.space {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-md);
    background: var(--forest-800);
}
.space:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
.space img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.space:first-child img { object-position: 50% 62%; }
.space figcaption {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    gap: 0.15rem;
    padding: 3rem 1.1rem 1.1rem;
    background: linear-gradient(to top, rgba(10, 24, 16, 0.9), rgba(10, 24, 16, 0.55) 60%, transparent);
    color: var(--cream);
}
.space .icon { margin-bottom: 0.4rem; color: var(--gold-300); }
.space strong { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.2; color: var(--cream); }
.space figcaption span { font-size: 0.9rem; line-height: 1.45; color: rgba(251, 247, 239, 0.82); }

.gallery__care { grid-column: 1 / -1; display: grid; gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.care {
    display: grid;
    align-content: center;
    gap: 0.3rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.05);
}
.care .icon { width: 1.9rem; height: 1.9rem; margin-bottom: 0.5rem; color: var(--gold-300); }
.care strong { font-size: 1.45rem; color: var(--cream); }
.care span { color: rgba(251, 247, 239, 0.8); }

@media (min-width: 640px) {
    .gallery__care { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .space:first-child { grid-column: auto; aspect-ratio: 4 / 5; }
    .space:first-child img { object-position: 50% 50%; }
    .gallery__care { grid-column: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
    .space:hover img { transform: scale(1.05); }
}

/* ---------- Contacto y mapa ---------- */
.contact { display: grid; gap: clamp(2.25rem, 5vw, 4rem); }
.contact__copy .lead { max-width: 46ch; }
.contact-list { display: grid; gap: 0.75rem; margin-top: 2rem; list-style: none; }
.contact-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    text-decoration: none;
    background: var(--white);
    transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.contact-list__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    background: var(--forest-800);
    color: var(--gold-300);
}
.contact-list__text { display: grid; min-width: 0; }
.contact-list small { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-list strong { font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; color: var(--forest-800); }
.contact-list__arrow { margin-left: auto; color: var(--gold-700); transition: transform 0.25s var(--ease); }
@media (hover: hover) {
    .contact-list a:hover { transform: translateY(-2px); border-color: var(--gold-400); box-shadow: 0 16px 28px -20px rgba(20, 40, 29, 0.5); }
    .contact-list a:hover .contact-list__arrow { transform: translateX(4px); }
}

.map-card {
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}
.map-card__view { position: relative; aspect-ratio: 4 / 3.5; min-height: 20rem; background: var(--sage-200); }
.map-card__view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card__placeholder { position: absolute; inset: 0; }
.map-card__placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.map-card__cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.3rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--cream);
    background: rgba(14, 32, 22, 0.66);
}
.map-card__cover .icon { width: 2rem; height: 2rem; margin-bottom: 0.4rem; color: var(--gold-300); }
.map-card__cover strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; }
.map-card__cover .btn { margin-top: 1rem; }
.map-card__cover small { margin-top: 0.7rem; font-size: 0.8rem; opacity: 0.8; }
.map-card__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; }
.map-card__bar p { display: grid; line-height: 1.35; }
.map-card__bar p strong { color: var(--forest-800); }
.map-card__bar p span { font-size: 0.9rem; color: var(--muted); }

@media (min-width: 960px) {
    .contact { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
    .map-card__view { aspect-ratio: 4 / 3.4; }
}

/* ---------- Pie ---------- */
.site-footer {
    position: relative;
    isolation: isolate;
    padding-top: clamp(3rem, 6vw, 5rem);
    background: var(--forest-900);
    color: rgba(251, 247, 239, 0.74);
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--contour);
    opacity: 0.6;
}
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer__brand p { max-width: 30ch; margin: 1.1rem 0 1.25rem; }
.site-footer__social { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; text-decoration: none; color: var(--cream); }
.site-footer__title { margin-bottom: 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-300); }
.site-footer__col ul { display: grid; gap: 0.6rem; list-style: none; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer__col a:hover,
.site-footer__social:hover,
.link-button:hover { color: var(--gold-300); }
.link-button { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.site-footer__bottom {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-block: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
}

@media (min-width: 760px) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (max-width: 1039px) {
    .site-footer { padding-bottom: calc(var(--cta-h) + env(safe-area-inset-bottom)); }
}

/* ---------- Barra fija móvil ---------- */
.cta-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: flex;
    gap: 0.6rem;
    padding: 0.65rem max(1rem, env(safe-area-inset-right)) calc(0.65rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: rgba(251, 247, 239, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transition: transform 0.35s var(--ease);
}
.cta-bar .btn { flex: 1; padding: 0.9rem 0.75rem; font-size: 0.98rem; }
.cta-bar.is-hidden { transform: translateY(110%); }
@media (min-width: 1040px) {
    .cta-bar { display: none; }
}

/* ---------- Cookies ---------- */
.cookie-banner {
    position: fixed;
    z-index: 70;
    left: 1rem;
    right: 1rem;
    bottom: calc(var(--cta-h) + 0.75rem + env(safe-area-inset-bottom));
    max-width: 28rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--white);
    box-shadow: 0 24px 50px -20px rgba(20, 40, 29, 0.5);
}
.cookie-banner__title { margin-bottom: 0.3rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--forest-800); }
.cookie-banner__text { font-size: 0.93rem; line-height: 1.5; color: var(--muted); }
.cookie-banner__text a { color: var(--forest-800); }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
.cookie-banner__actions .btn { padding: 0.75rem 1rem; font-size: 0.95rem; }
@media (min-width: 1040px) {
    .cookie-banner { bottom: 1.25rem; left: 1.25rem; right: auto; }
}

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)) 0 clamp(4rem, 8vw, 6rem); background: var(--cream); }
.legal__inner { max-width: 780px; }
.legal__inner .h2 { margin-bottom: 0.5rem; }
.legal__updated { margin-bottom: 1.5rem; font-size: 0.93rem; color: var(--muted); }
.legal h2 { margin: 2.5rem 0 0.75rem; font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; line-height: 1.2; color: var(--forest-800); }
.legal h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1rem; font-weight: 700; color: var(--forest-800); }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 0.9rem; }
.legal ul { display: grid; gap: 0.4rem; padding-left: 1.25rem; }
.legal a { color: var(--forest-800); text-decoration-color: var(--gold-400); text-underline-offset: 3px; }
.table-wrap { margin-top: 0.75rem; overflow-x: auto; }
.legal table { width: 100%; min-width: 34rem; border-collapse: collapse; }
.legal th, .legal td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 0.95rem; }
.legal th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-700); }
.legal code { padding: 0.1rem 0.35rem; border-radius: 6px; background: var(--paper); font-size: 0.9em; }

/* ---------- Animación de entrada ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
