/* ==========================================================================
   América Magaña · Propósito y Comunicación
   Hoja de estilos principal (sin compilación).
   1. Tokens · 2. Base · 3. Tipografía · 4. Layout · 5. Botones · 6. Fotos
   7. Encabezado · 8. Portada · 9. Secciones · 10. Formularios · 11. Chat
   12. Pie · 13. Utilidades · 14. Responsive · 15. Cuestionarios · 16. Contacto y agenda
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --bg:            #0D0D0D;
    --bg-alt:        #141414;
    --surface:       #161616;
    --border-1:      #262626;
    --border-2:      #2A2A2A;
    --border-3:      #333333;
    --text:          #F2EFEC;
    --text-2:        #BDB7B2;
    --text-3:        #A7A19C;
    --text-hero:     #CFC9C4;
    --btn-border:    #6B6560;
    --gold:          #D9A894;
    --gold-hover:    #F0C9B8;
    --error:         #E8A0A0;

    --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-sans:  "Montserrat", "Helvetica Neue", Arial, sans-serif;

    --container: 1240px;
    --gutter: 40px;
    --header-h: 84px;
    --section-y: clamp(72px, 10vw, 128px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--bg); }
main:focus { outline: none; }

/* 3. Tipografía ------------------------------------------------------------ */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 .5em;
    color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
p  { margin: 0 0 1.2em; }

.eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .36em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 22px;
}
.accent, em.accent {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
}
.quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    color: var(--gold);
}
.lead { font-size: 1.05rem; color: var(--text-2); max-width: 720px; }
.muted { color: var(--text-3); }

/* 4. Layout ---------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.section { padding: var(--section-y) 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--center { text-align: center; }
.section--center .lead { margin-left: auto; margin-right: auto; }
.section__title { max-width: 900px; }
.section--center .section__title { margin-left: auto; margin-right: auto; }

.card {
    background: var(--surface);
    border: 1px solid var(--border-1);
    padding: 32px;
}

/* 5. Botones --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
    text-align: center;
}
.btn--primary { background: var(--gold); color: var(--bg); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--gold-hover); color: var(--bg); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--btn-border); }
.btn--secondary:hover, .btn--secondary:focus-visible { border-color: var(--gold); color: var(--gold-hover); }
.btn--sm { padding: 12px 20px; font-size: 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.btn-row--center { justify-content: center; }

/* 6. Fotos (siempre en blanco y negro) ------------------------------------- */
.photo { margin: 0; position: relative; overflow: hidden; background: var(--surface); }
.photo picture { display: block; width: 100%; height: 100%; }
.photo img,
img.photo-bw {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(.9);
    transition: filter .6s var(--ease), transform .8s var(--ease);
}
.photo:hover img,
img.photo-bw:hover { filter: grayscale(1) brightness(1.05); }
.photo__placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(217,168,148,.06), transparent 60%),
        repeating-linear-gradient(45deg, #151515 0 12px, #181818 12px 24px);
    border: 1px solid var(--border-1);
    color: var(--text-3);
    font-size: 12px;
}

/* 7. Encabezado ------------------------------------------------------------ */
.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 200;
    background: var(--gold); color: var(--bg); padding: 10px 16px; font-size: 13px;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header-h);
    background: rgba(13,13,13,.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(13,13,13,.96); border-bottom-color: var(--border-1); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__brand { color: var(--text); flex-shrink: 0; }
.site-header__brand:hover { color: var(--text); }

/* Logo oficial: monograma caligráfico en oro rosado; nombre y lema también en oro rosado. */
.logo { display: inline-flex; align-items: center; gap: 16px; }
.logo__mark { width: 78px; height: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
}
.logo__tag {
    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .85;
    margin-top: 7px;
}
img.logo--stacked { display: block; width: 260px; height: auto; }

.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 34px; }
.site-nav__link {
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-2);
    position: relative;
    padding: 6px 0;
}
.site-nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
.site-nav__link:hover { color: var(--text); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__cta { margin-left: 6px; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px; padding: 12px 10px;
    background: none; border: 1px solid var(--border-3); cursor: pointer;
    flex-direction: column; justify-content: space-between;
}
.nav-toggle__bar { display: block; height: 1px; background: var(--text); transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* 8. Portada --------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 48px) 0 72px;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at 80% 30%, #1a1716 0%, var(--bg) 60%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero__title { font-weight: 400; margin-bottom: 0; }
.hero__line {
    display: block;
    font-style: italic;
    color: var(--text-hero);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.3;
}
.hero__accent {
    display: block;
    margin-top: 18px;
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text);
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    line-height: 1.05;
}
.hero__media { aspect-ratio: 4 / 5; }
.hero__media .photo__placeholder { min-height: 100%; }

/* 9. Secciones / mensajes -------------------------------------------------- */
.page-message { min-height: 70vh; display: flex; align-items: center; padding-top: calc(var(--header-h) + var(--section-y)); }

/* 10. Formularios ---------------------------------------------------------- */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-2);
}
.field__label .req { color: var(--gold); }
.field__help { font-size: 13px; color: var(--text-3); line-height: 1.6; margin: 0; }
.field__input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-3);
    border-radius: 0;
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.5;
    padding: 14px 16px;
    transition: border-color .25s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
textarea.field__input { resize: vertical; min-height: 120px; }
select.field__input {
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 44px;
}
.field__input:focus { outline: none; border-color: var(--gold); }
.field__input::placeholder { color: #6f6a66; }
.field.has-error .field__input { border-color: var(--error); }
.field__error { font-size: 13px; color: var(--error); margin: 0; }

.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; font-size: 13px; color: var(--text-2); }
.field--check input {
    width: 18px; height: 18px; margin: 3px 0 0;
    accent-color: var(--gold);
}

/* Honeypot: fuera de la vista, pero no display:none (algunos bots lo detectan) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 11. Chat flotante -------------------------------------------------------- */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 90; }
.chat__launcher {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px;
    background: var(--gold); color: var(--bg);
    border: 0; border-radius: 0; cursor: pointer;
    font-family: var(--font-sans); font-size: 11px; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.chat__launcher:hover { background: var(--gold-hover); transform: translateY(-2px); }
.chat__icon { flex-shrink: 0; }

.chat__panel {
    position: absolute; right: 0; bottom: calc(100% + 14px);
    width: min(370px, calc(100vw - 32px));
    max-height: min(640px, calc(100vh - 140px));
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-2);
    box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.chat__panel[hidden] { display: none; }
.chat__head {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-1);
    position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.chat__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; filter: grayscale(1); flex-shrink: 0; }
.chat__avatar--mark { display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--border-3); filter: none; }
.chat__avatar--mark img { width: 34px; }
.chat__title { margin: 0; font-family: var(--font-serif); font-size: 19px; font-weight: 500; line-height: 1.2; }
.chat__subtitle { margin: 0; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.chat__close {
    margin-left: auto; width: 36px; height: 36px;
    background: none; border: 1px solid var(--border-3); color: var(--text-2);
    font-size: 20px; line-height: 1; cursor: pointer;
}
.chat__close:hover { color: var(--text); border-color: var(--gold); }
.chat__body { padding: 20px; }
.chat__bubble {
    position: relative;
    background: var(--bg-alt);
    border: 1px solid var(--border-2);
    padding: 14px 16px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 20px;
}
.chat__form { gap: 16px; }
.chat__form textarea.field__input { min-height: 90px; }
.chat__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chat__wa { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border-1); font-size: 13px; display: grid; gap: 2px; }
.chat__wa span { color: var(--text-3); font-size: 12px; }

/* 12. Pie de página -------------------------------------------------------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border-1); padding: 72px 0 96px; text-align: center; }
.site-footer__inner { display: grid; justify-items: center; gap: 26px; }
.site-footer__brand, .site-footer__brand:hover { color: var(--text); }
.site-footer__motto { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 19px; color: var(--text-2); }
.site-footer__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.site-footer__social a, .site-footer__legal a {
    font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3);
}
.site-footer__social a:hover, .site-footer__legal a:hover { color: var(--gold); }
.site-footer__legal { margin: 0; }

/* ==========================================================================
   Etapa 2 · Secciones del inicio y páginas internas
   ========================================================================== */

.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section__head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 900px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }
.section__head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--split .section__title { margin-bottom: 0; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
a:hover .link-arrow::after { transform: translateX(4px); }

/* Portada · carrusel */
.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; }
.hero__slide[hidden] { display: none; }
.hero__slide.is-active { animation: heroIn .9s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__controls { display: flex; align-items: center; gap: 20px; margin-top: 48px; }
.hero__arrow {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--border-3); color: var(--text-2); cursor: pointer;
    transition: border-color .25s var(--ease), color .25s var(--ease);
}
.hero__arrow:hover { border-color: var(--gold); color: var(--gold); }
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
    width: 28px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; position: relative;
}
.hero__dot::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border-3);
    transition: background-color .3s var(--ease), height .3s var(--ease);
}
.hero__dot.is-active::before { background: var(--gold); height: 2px; }
.hero__media img { aspect-ratio: 4 / 5; }

/* Bienvenida y video */
.welcome__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px 72px; align-items: center; }
.welcome__close { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; text-align: center; }
.welcome__close .quote { margin: 0; }
.video-frame { position: relative; }
.video-frame::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px;
    border: 1px solid var(--gold); pointer-events: none;
}
.video-frame--flat::before { display: none; }
.video-frame__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; }
.video-frame__placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background: radial-gradient(circle at 50% 50%, #1c1a19 0%, #0b0b0b 70%);
    border: 1px solid var(--border-2);
}
.video-frame__play {
    width: 78px; height: 78px; border-radius: 50%; border: 1px solid var(--gold); position: relative;
}
.video-frame__play::after {
    content: ""; position: absolute; left: 32px; top: 25px;
    border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--gold);
}

/* Para personas · capítulos */
.chapters { gap: 24px; }
.chapter { display: flex; flex-direction: column; color: var(--text); }
.chapter:hover { color: var(--text); }
.chapter__photo { aspect-ratio: 3 / 4; margin-bottom: 22px; }
.chapter:hover .chapter__photo img { filter: grayscale(1) brightness(1.05); transform: scale(1.03); }
.chapter__stage { font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.chapter__name { font-size: 1.75rem; margin: 0 0 10px; }
.chapter__text { color: var(--text-2); font-size: 14.5px; line-height: 1.7; margin: 0 0 18px; flex: 1; }

/* Para empresas */
.business { display: grid; gap: 40px; }
.business__card { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--border-1); }
.business__card:nth-child(even) .business__photo { order: 2; }
.business__photo { min-height: 100%; aspect-ratio: 4 / 3; }
.business__body { padding: clamp(32px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.business__body p:not(.eyebrow) { color: var(--text-2); }
.business__name { font-size: clamp(2rem, 3.2vw, 2.75rem); }
.business__body .btn-row { margin-top: 20px; }

/* Quién soy */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__photo { aspect-ratio: 3 / 4; }
.about__body p:not(.eyebrow) { color: var(--text-2); }

/* El método */
.method { list-style: none; margin: 0; padding: 0; gap: 0; border-top: 1px solid var(--border-1); border-left: 1px solid var(--border-1); }
.method__step { padding: 40px 36px; border-right: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1); }
.method__num { display: block; font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: var(--gold); margin-bottom: 22px; }
.method__title { font-size: 1.65rem; margin-bottom: 6px; }
.method__question { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--gold); margin-bottom: 14px; }
.method__text { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* Noticias */
.news { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.news__featured, .news__item, .post-card { color: var(--text); display: block; }
.news__featured:hover, .news__item:hover, .post-card:hover { color: var(--text); }
.news__photo, .post-card__photo { aspect-ratio: 16 / 10; margin-bottom: 22px; }
.news__meta { font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.news__title { font-size: 1.45rem; line-height: 1.25; margin: 0 0 10px; transition: color .25s var(--ease); }
.news__title--lg { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
a:hover .news__title { color: var(--gold-hover); }
.news__excerpt { color: var(--text-2); margin: 0; }
.news__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; align-content: start; }
.news__list li + li { border-top: 1px solid var(--border-1); padding-top: 28px; }
.news__item { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.news__thumb { aspect-ratio: 4 / 3; }

/* Contacto */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__data { list-style: none; margin: 40px 0 0; padding: 32px 0 0; border-top: 1px solid var(--border-1); display: grid; gap: 18px; color: var(--text-2); font-size: 15px; }
.contact__data small { display: block; color: var(--text-3); font-size: 12.5px; }
.contact__label { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form__invite {
    margin: 0; padding: 16px 18px; border-left: 2px solid var(--gold); background: var(--bg-alt);
    font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--text);
}
.form__invite a { font-style: normal; font-family: var(--font-sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-left: 6px; }
.form__invite[hidden] { display: none; }
.form__invite--center { display: inline-block; margin-top: 8px; }

/* Páginas internas */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(40px, 5vw, 64px); background: radial-gradient(ellipse at 80% 0%, #1a1716 0%, var(--bg) 60%); border-bottom: 1px solid var(--border-1); }
.page-hero__title { max-width: 980px; margin-bottom: 14px; }
.page-hero__subtitle { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--gold); margin: 0; }
.page-hero .eyebrow a { color: inherit; }
.page-hero .eyebrow a:hover { color: var(--gold-hover); }

.prose { font-size: 1.05rem; color: var(--text-2); }
.prose p { margin-bottom: 1.35em; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 1.8em 0 .6em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.35em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose__lead { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.4; color: var(--text); margin-bottom: 1em; }
.pull-quote {
    margin: 2.2em 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--gold);
    font-family: var(--font-serif); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.45; color: var(--text);
}
.pull-quote em { color: var(--gold); }
.signature { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--gold); }

.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.story__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.story__photo { aspect-ratio: 3 / 4; }
.story__caption { margin: 18px 0 0; font-family: var(--font-serif); font-size: 1.3rem; color: var(--text); line-height: 1.3; }
.story__caption span { font-family: var(--font-sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }

.product { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.product__photo { aspect-ratio: 3 / 4; }
.product__photo--wide { aspect-ratio: 4 / 3; }
.product__price { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); }

.program-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 56px; border: 1px solid var(--border-1); }
.program-facts__item { padding: 28px; border-right: 1px solid var(--border-1); }
.program-facts__item:last-child { border-right: 0; }
.program-facts dt { font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.program-facts dd { margin: 0; font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.35; color: var(--text); }
.phases .method__question { margin: 0; font-size: 1.1rem; }
.program-quotes { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 56px; text-align: center; }
.program-quotes .quote { margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.filters__item { padding: 10px 18px; border: 1px solid var(--border-3); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.filters__item:hover { color: var(--text); border-color: var(--btn-border); }
.filters__item.is-active { border-color: var(--gold); color: var(--gold); }

.posts { gap: 48px 32px; }
.page-hero--article .page-hero__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.article__meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0; }
.article { padding-top: clamp(40px, 5vw, 64px); padding-bottom: var(--section-y); }
.article__photo { aspect-ratio: 16 / 10; margin-bottom: 48px; }
.article .video-frame { margin-bottom: 48px; }
.article__footer { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border-1); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.article__footer .quote { margin: 0; }

.legal h2 { font-size: 1.5rem; }
.notice { padding: 18px 22px; margin-bottom: 40px; background: rgba(229,192,123,.08); border: 1px solid rgba(229,192,123,.4); color: var(--text); font-size: 14.5px; }

.thanks__logo { display: flex; justify-content: center; margin-bottom: 40px; }
.thanks .signature { margin-top: -8px; }

/* Responsive · etapa 2 */
@media (max-width: 1100px) {
    .grid--5.chapters { grid-template-columns: repeat(3, 1fr); }
    .news { grid-template-columns: 1fr; }
    .program-facts { grid-template-columns: repeat(2, 1fr); }
    .program-facts__item:nth-child(2) { border-right: 0; }
    .program-facts__item:nth-child(-n+2) { border-bottom: 1px solid var(--border-1); }
}
@media (max-width: 1024px) {
    .welcome__inner, .about, .contact__inner, .story, .product { grid-template-columns: 1fr; }
    .about__photo, .story__photo, .product__photo { max-width: 460px; }
    .product__photo--wide { max-width: none; }
    .story__aside { position: static; }
    .business__card { grid-template-columns: 1fr; }
    .business__card:nth-child(even) .business__photo { order: 0; }
}
@media (max-width: 720px) {
    .grid--5.chapters { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .chapter__name { font-size: 1.4rem; }
    .chapter__text { font-size: 13.5px; }
    .method__step { padding: 32px 24px; }
    .news__item { grid-template-columns: 110px 1fr; gap: 16px; }
    .news__title { font-size: 1.25rem; }
    .form__row { grid-template-columns: 1fr; }
    .program-facts { grid-template-columns: 1fr; }
    .program-facts__item { border-right: 0; border-bottom: 1px solid var(--border-1); }
    .program-facts__item:last-child { border-bottom: 0; }
    .video-frame::before { inset: 10px -10px -10px 10px; }
    .hero__controls { margin-top: 32px; }
    .welcome__close { flex-direction: column; }
}
@media (max-width: 420px) {
    .grid--5.chapters { grid-template-columns: 1fr; }
}

/* 13. Utilidades ----------------------------------------------------------- */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pendiente {
    display: inline-block;
    font-family: var(--font-sans); font-style: normal; font-size: 11px; letter-spacing: .08em;
    color: #0D0D0D; background: #E5C07B; padding: 2px 8px;
}
body.nav-open { overflow: hidden; }
body.nav-open .chat { display: none; }

/* 14. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
    .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
    .site-nav__list { gap: 22px; }
}

@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .site-nav {
        /* absolute respecto al encabezado: su backdrop-filter rompe position:fixed en los hijos */
        position: absolute; top: 100%; left: 0; right: 0;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        background: var(--bg);
        border-top: 1px solid var(--border-1);
        padding: 32px var(--gutter);
        overflow-y: auto;
        opacity: 0; visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .site-nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
    .site-nav__list li { width: 100%; border-bottom: 1px solid var(--border-1); }
    .site-nav__list li:last-child { border-bottom: 0; padding-top: 28px; }
    .site-nav__link { display: block; padding: 18px 0; font-size: 13px; color: var(--text); }
    .site-nav__link::after { display: none; }
    .site-nav__cta { margin-left: 0; width: 100%; }
    .hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero__media { max-width: 460px; }
}

@media (max-width: 720px) {
    :root { --gutter: 20px; --header-h: 72px; }
    .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
    .logo { gap: 12px; }
    .logo__mark { width: 58px; }
    .logo__name { font-size: 14px; letter-spacing: .2em; }
    .logo__tag { font-size: 6.5px; letter-spacing: .3em; }
    img.logo--stacked { width: 210px; }
    .card { padding: 24px; }
    .btn-row .btn { flex: 1 1 100%; }
    .chat { right: 16px; bottom: 16px; }
    .chat__launcher { padding: 14px; }
    .chat__launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .chat__icon { width: 22px; height: 22px; }
}

@media (max-width: 380px) {
    .site-header__brand { min-width: 0; }
    .nav-toggle { flex-shrink: 0; }
    .logo { gap: 8px; }
    .logo__mark { width: 46px; }
    .logo__name { font-size: 12.5px; letter-spacing: .12em; }
    .logo__tag { font-size: 6px; letter-spacing: .2em; }
}

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

@media print {
    .site-header, .chat, .site-footer__social { display: none !important; }
    body { background: #fff; color: #111; }
}

/* 15. Cuestionarios multipaso (diagnóstico) -------------------------------- */
.diag { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 88px)); }
.diag__head { margin-bottom: 40px; }
.diag__head .section__title { margin-bottom: 0; }
.notice--error { background: rgba(232,160,160,.08); border-color: rgba(232,160,160,.45); }
.diag__form { gap: 0; }
.diag__form.is-js .diag__step[hidden] { display: none; }
.diag__form:not(.is-js) [data-go] { display: none; }
.diag__form:not(.is-js) .diag__step + .diag__step { margin-top: 72px; }

.diag__progress { position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); padding: 16px 0 18px; margin-bottom: 28px; border-bottom: 1px solid var(--border-1); }
.diag__progress[hidden] { display: none; }
.progress { height: 2px; background: var(--border-2); overflow: hidden; }
.progress__bar { display: block; height: 100%; width: 0; background: var(--gold); transition: width .5s var(--ease); }
.diag__progress-label { margin: 12px 0 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }

.diag__welcome p { color: var(--text-2); }
.diag__welcome .signature { margin: .4em 0 0; }
.diag__time { margin: 22px 0 0; font-size: 13px; color: var(--text-3); }

.diag__step-title { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 36px; outline: none; }
.diag__step-num { display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.diag__section { padding: 36px 0; border-top: 1px solid var(--border-1); }
.diag__section-title { font-size: clamp(1.45rem, 2.6vw, 1.8rem); margin: 0 0 18px; color: var(--text); }
.diag__intro { margin-bottom: 26px; color: var(--text-2); font-size: 15px; line-height: 1.75; }
.diag__intro p { margin: 0 0 1em; }
.diag__intro strong { color: var(--gold); font-weight: 500; }
.diag__intro em { font-family: var(--font-serif); font-size: 1.12em; color: var(--text); }
.diag__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; border-top: 1px solid var(--border-1); }
.diag__nav .btn--primary { margin-left: auto; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 22px; }
.form-grid > .field { grid-column: 1 / -1; }
.form-grid > .field--half { grid-column: auto; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.field__label { line-height: 1.7; }
.field__help p { margin: 0 0 .6em; }
.field__help p:last-child { margin-bottom: 0; }
.field__example { margin-top: 12px; padding: 14px 16px; background: var(--surface); border-left: 2px solid var(--gold); }
.field__example-tag { display: block; font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.field__example p { margin: 0; color: var(--text-2); font-style: italic; }
.field__error[hidden] { display: none; }
.field--consent { margin-top: 12px; font-size: 14px; }
.field--consent .field__error { grid-column: 1 / -1; }
.field--consent a { text-decoration: underline; text-underline-offset: 3px; }

/* Tarjetas de opción (radio / checkbox) */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices--cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__body { display: grid; gap: 6px; width: 100%; padding: 12px 18px; border: 1px solid var(--border-3); background: var(--bg); transition: border-color .2s var(--ease), background .2s var(--ease); }
.choice__label { font-size: 14px; color: var(--text); }
.choice__desc { font-size: 13px; color: var(--text-3); line-height: 1.6; }
.choices--cards .choice__body { padding: 20px 20px 20px 52px; position: relative; }
.choices--cards .choice__body::before { content: ""; position: absolute; left: 20px; top: 22px; width: 16px; height: 16px; border: 1px solid var(--btn-border); }
.choices--cards .choice__label { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.25; }
.choice:hover .choice__body { border-color: var(--btn-border); }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice input:checked + .choice__body { border-color: var(--gold); background: rgba(217,168,148,.07); }
.choice input:checked + .choice__body .choice__label { color: var(--gold-hover); }
.choices--cards .choice input:checked + .choice__body::before { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--bg); }
.field.has-error .choice__body { border-color: rgba(232,160,160,.55); }

/* Asistente de la fórmula de oferta */
.formula { margin: 6px 0 8px; padding: 20px; border: 1px dashed var(--border-3); display: grid; gap: 14px; }
.formula[hidden] { display: none; }
.formula__intro { margin: 0; font-size: 13px; color: var(--text-3); }
.formula__grid { display: grid; gap: 10px; }
.formula__part { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; }
.formula__prefix { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--gold); }
.formula .btn { justify-self: start; }

@media (max-width: 720px) {
    .form-grid, .choices--cards { grid-template-columns: 1fr; }
    .form-grid > .field--half { grid-column: 1 / -1; }
    .formula__part { grid-template-columns: 1fr; gap: 4px; }
    .diag__nav .btn { flex: 1 1 auto; }
}

/* 16. Contacto, chat y agenda ---------------------------------------------- */
.notice--form { margin-bottom: 4px; }
.chat__aviso { margin: 0; }
.chat__aviso[hidden], .chat__bubble[hidden], .chat__form[hidden] { display: none; }
.chat__bubble--reply { border-color: var(--gold); color: var(--text); }
.agenda__lead { margin: 18px 0 0; }
.agenda__form { gap: 0; }
.agenda .diag__nav { border-top: 0; padding-top: 12px; }
.agenda .diag__nav .btn--primary { margin-left: 0; }
.field__input[type=date] { color-scheme: dark; min-height: 52px; }
