@font-face { font-family: "Playfair Display"; src: url("fonts/PlayfairDisplay-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/PlayfairDisplay-MediumItalic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/Jost-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
    --ink: #151515;
    --text: #242424;
    --muted: #6f6a61;
    --cream: #f7f2e8;
    --ivory: #fbfaf7;
    --line: #e8e0d2;
    --gold: #c9a961;
    --gold-dark: #9c7f3c;
    --wa: #1faa59;
    --wa-dark: #178a47;
    --danger: #a8443c;
    --display: "Playfair Display", Georgia, serif;
    --body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --top-h: 60px;
    --pad: 20px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--text); font: 400 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
a { color: inherit; }
svg { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.lead { color: var(--muted); margin-top: 10px; max-width: 46ch; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px;
    font: 600 1rem var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .1s ease, background-color .15s ease;
    -webkit-appearance: none; appearance: none;
}
.btn:active { transform: scale(.97); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(31, 170, 89, .28); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); padding: 0 14px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; box-shadow: none; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.06rem; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .gallery:focus-visible {
    outline: 3px solid rgba(201, 169, 97, .7); outline-offset: 2px;
}

/* ---------- Encabezado ---------- */
.top {
    position: sticky; top: 0; z-index: 30; height: var(--top-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left));
    background: var(--ink);
}
.top-logo img { height: 44px; width: auto; }

/* ---------- Portada ---------- */
.hero { position: relative; background: var(--ink); color: #fff; display: grid; }
.hero-img, .hero-body { grid-area: 1 / 1; }
.hero-img img { width: 100%; height: 100%; min-height: calc(100svh - var(--top-h) - 70px); max-height: 780px; object-fit: cover; object-position: 50% 30%; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 21, 21, 0) 28%, rgba(21, 21, 21, .55) 58%, rgba(21, 21, 21, .94) 100%); }
.hero-body { position: relative; z-index: 1; align-self: end; padding: 0 var(--pad) 28px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2rem, 8.6vw, 3.4rem); }
.hero h1 em { color: #f0dcae; }
.hero-lead { margin: 14px 0 22px; color: rgba(255, 255, 255, .88); max-width: 40ch; }
.hero-note { margin-top: 12px; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.hero .btn-lg { width: 100%; }

.trust { list-style: none; margin: 0; padding: 18px var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: var(--cream); border-bottom: 1px solid var(--line); text-align: center; }
.trust strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.02rem; color: var(--ink); line-height: 1.2; }
.trust span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; margin-top: 3px; }

/* ---------- Secciones ---------- */
.section { padding: 52px var(--pad); max-width: 1120px; margin: 0 auto; }
.section-dark { max-width: none; background: var(--ink); color: rgba(255, 255, 255, .8); padding-right: 0; }
.section-dark h2 { color: #fff; padding-right: var(--pad); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .lead { color: rgba(255, 255, 255, .65); padding-right: var(--pad); }

.spaces { display: grid; gap: 14px; margin-top: 26px; }
.space { position: relative; display: block; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff; aspect-ratio: 4 / 3; }
.space img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.space:hover img { transform: scale(1.04); }
.space::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 21, 21, 0) 45%, rgba(21, 21, 21, .85) 100%); }
.space span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.space b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: #fff; }
.also { margin-top: 22px; padding: 16px 18px; background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; }

/* ---------- Galería ---------- */
.gallery { display: flex; gap: 12px; margin-top: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 8px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; width: 68%; max-width: 300px; margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: #262626; }
.gallery figcaption { margin-top: 10px; font-size: .88rem; color: rgba(255, 255, 255, .7); }

/* ---------- Pasos y precios ---------- */
.steps { list-style: none; counter-reset: paso; margin: 26px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: paso; position: relative; padding-left: 58px; }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-dark); font: 500 1.25rem/42px var(--display); text-align: center; }
.steps b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.2rem; color: var(--ink); }
.steps span { color: var(--muted); }

.prices { margin-top: 32px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.prices div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.prices strong { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.prices p { padding: 12px 18px; font-size: .84rem; color: var(--muted); background: var(--cream); }

/* ---------- Formulario ---------- */
.section-form { max-width: none; background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-left: 14px; padding-right: 14px; }
.form-card { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 26px 20px 22px; box-shadow: 0 18px 55px rgba(25, 20, 13, .1); }
.form-card h2 { font-size: 1.55rem; }

.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 20px; }
.progress i { height: 4px; border-radius: 4px; background: var(--line); transition: background-color .25s ease; }
.progress i.on { background: var(--gold); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font: 500 1.2rem var(--display); color: var(--ink); margin-bottom: 14px; }
.hint { font-size: .88rem; color: var(--muted); margin: -8px 0 12px; }
.q { font-weight: 600; margin: 22px 0 10px; color: var(--ink); }

.chips { display: grid; gap: 9px; }
.chips-inline { grid-template-columns: 1fr 1fr; }
.chips label { position: relative; display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span { display: flex; align-items: center; min-height: 52px; padding: 10px 44px 10px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--ivory); font-weight: 500; line-height: 1.25; transition: border-color .15s ease, background-color .15s ease; }
.chips span::after { content: ""; position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid #cfc6b6; background: #fff; }
.chips input[type=checkbox] + span::after { border-radius: 6px; }
.chips input:checked + span { border-color: var(--gold-dark); background: #fbf6e9; }
.chips input:checked + span::after { border-color: var(--gold-dark); background: var(--gold-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7.500' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.chips input:focus-visible + span { outline: 3px solid rgba(201, 169, 97, .7); outline-offset: 2px; }

.field { display: block; font-weight: 600; font-size: .94rem; color: var(--ink); margin-top: 16px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    display: block; width: 100%; margin-top: 7px; min-height: 52px; padding: 12px 14px;
    border: 1.5px solid var(--line); border-radius: 12px; background: var(--ivory); color: var(--text);
    font: 400 16px var(--body); /* 16px evita el zoom automático de iOS */
    -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; line-height: 1.4; }
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236f6a61' stroke-width='2.500' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field input:disabled { opacity: .45; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: .94rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold-dark); margin: 0; }
.error { color: var(--danger); font-size: .88rem; font-weight: 500; margin-top: 8px; }

.form-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.form-nav .btn-dark, .form-nav .btn-wa { flex: 1; }
.form-nav .btn-ghost { flex: none; }
.legal { margin-top: 14px; font-size: .82rem; color: var(--muted); text-align: center; }
.done { text-align: center; padding: 10px 0 6px; }
.done p { margin: 10px 0 20px; color: var(--muted); }
.direct { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: .92rem; color: var(--muted); }
.direct a { color: var(--wa-dark); font-weight: 600; }

/* ---------- Preguntas ---------- */
.faq { margin-top: 22px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 34px 18px 0; position: relative; font: 500 1.1rem var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.5rem var(--body); color: var(--gold-dark); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 18px; color: var(--muted); max-width: 60ch; }
.closing { margin-top: 34px; text-align: center; }
.closing .btn { width: 100%; max-width: 380px; }

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: rgba(255, 255, 255, .7); text-align: center; padding: 40px var(--pad) calc(110px + env(safe-area-inset-bottom)); font-size: .92rem; }
.foot img { height: 84px; width: auto; margin: 0 auto 16px; }
.foot p + p { margin-top: 8px; }
.foot a { color: var(--gold); }
.foot .copy { margin-top: 18px; font-size: .8rem; color: rgba(255, 255, 255, .45); }

/* ---------- Barra fija en celular ---------- */
.sticky-cta {
    position: fixed; z-index: 25; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
    border-radius: 999px; background: var(--wa); color: #fff; font-weight: 600; text-decoration: none;
    box-shadow: 0 12px 30px rgba(21, 21, 21, .3); transition: transform .25s ease, opacity .25s ease;
}
.sticky-cta.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- Tablet y escritorio ---------- */
@media (min-width: 640px) {
    :root { --pad: 32px; }
    h2 { font-size: 2.1rem; }
    .spaces { grid-template-columns: repeat(3, 1fr); }
    .space { aspect-ratio: 3 / 4; }
    .gallery figure { width: 260px; }
    .chips { grid-template-columns: 1fr 1fr; }
    .form-card { padding: 34px 32px 28px; }
    .trust { padding: 22px var(--pad); }
    .trust strong { font-size: 1.2rem; }
    .trust span { font-size: .9rem; }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .steps li { padding: 56px 0 0; }
    .hero .btn-lg { width: auto; }
}

@media (min-width: 860px) {
    :root { --top-h: 68px; --pad: 40px; }
    .top-logo img { height: 50px; }
    .hero-img img { min-height: 0; height: min(78vh, 720px); max-height: none; object-position: 50% 55%; }
    .hero-img::after { background: linear-gradient(90deg, rgba(21, 21, 21, .88) 0%, rgba(21, 21, 21, .6) 38%, rgba(21, 21, 21, 0) 68%); }
    .hero-body { align-self: center; padding: 0 var(--pad); max-width: 1120px; width: 100%; margin: 0 auto; }
    .hero h1 { max-width: 13ch; }
    .section { padding-top: 84px; padding-bottom: 84px; }
    .section-dark { padding-left: max(var(--pad), calc((100vw - 1120px) / 2 + var(--pad))); }
    .gallery figure { width: 280px; }
    .sticky-cta { display: none; }
    .foot { padding-bottom: 44px; }
    .prices { max-width: 620px; }
}

@media (max-width: 359px) {
    :root { --pad: 16px; }
    body { font-size: 16px; }
    h2 { font-size: 1.5rem; }
    .trust { gap: 6px; padding-left: 10px; padding-right: 10px; }
    .trust strong { font-size: .92rem; }
    .trust span { font-size: .72rem; }
    .form-card { padding: 22px 14px 18px; }
    .btn { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* ---------- Acceso a la tienda ---------- */
.top-nav { display: flex; align-items: center; gap: 14px; }
.top-link { color: var(--gold); font-weight: 600; font-size: .95rem; text-decoration: none; padding: 8px 2px; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px rgba(201, 169, 97, .3); }
.btn-gold:hover { background: #d8bb78; }
.catalog { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px var(--pad); text-align: center; }
.catalog-in { max-width: 620px; margin: 0 auto; }
.catalog p:not(.eyebrow) { color: var(--muted); margin: 10px 0 22px; }
.catalog .btn { width: 100%; max-width: 380px; }
.foot .btn-gold { margin: 6px 0 4px; color: var(--ink); }
