/* ==========================================================================
   Centro de Belleza Virginia Guzmán · css/styles.css
   Índice:
   01 Tokens · 02 Base · 03 Utilidades y botones · 04 Cabecera · 05 Hero
   06 Manifiesto · 07 Encabezados de sección · 08 Nosotras · 09 Servicios
   10 Maderoterapia · 11 Equipo · 12 Galería · 13 FAQ · 14 Contacto
   15 Pie · 16 Diálogos · 17 Animaciones · 18 Responsive
   ========================================================================== */

/* 01 · Tokens ------------------------------------------------------------ */
:root {
    /* Morado extraído del logotipo (#6C4285) y su escala */
    --brand-950: #22132c;
    --brand-900: #2f1b3c;
    --brand-800: #42274f;
    --brand-700: #563368;
    --brand:     #6c4285;
    --brand-500: #8a65a2;
    --brand-300: #c2aed2;
    --brand-200: #ddd0e7;
    --brand-100: #efe8f4;
    --brand-50:  #f8f4fb;

    --cream: #fbf9f6;
    --white: #ffffff;
    --ink:   #2a2230;
    --muted: #625a69;          /* 6.4:1 sobre blanco */
    --gold:  #c9a35d;          /* solo acentos puntuales */
    --line:  #e7dfee;

    --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-script:  'Dancing Script', cursive;
    --font-body:    'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius-sm: 10px;
    --radius:    18px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(47, 27, 60, .06);
    --shadow:    0 14px 40px -12px rgba(47, 27, 60, .18);
    --shadow-lg: 0 30px 70px -20px rgba(47, 27, 60, .35);

    --header-h: 76px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --container: 1200px;
}

/* 02 · Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

h1, h2, h3 { font-variant-numeric: lining-nums; font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--brand-900); letter-spacing: -.01em; }

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

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 3000;
    background: var(--brand); color: var(--white); padding: 10px 18px; border-radius: 8px;
    text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* 03 · Utilidades y botones --------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.container.narrow { max-width: 860px; }
.section { padding-block: clamp(80px, 11vw, 140px); position: relative; overflow-x: clip; }

.script { font-family: var(--font-script); font-weight: 500; letter-spacing: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: .8rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow-light { color: var(--brand-200); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 12px 28px;
    border-radius: 999px; border: 1.5px solid transparent;
    font-size: .95rem; font-weight: 500; letter-spacing: .03em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 8px 22px; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 10px 24px -10px rgba(108, 66, 133, .7); }
.btn-primary:hover { background: var(--brand-700); color: var(--white); box-shadow: 0 16px 30px -12px rgba(108, 66, 133, .8); }

.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: var(--white); }

.btn-light { background: var(--white); color: var(--brand-800); box-shadow: 0 12px 30px -12px rgba(0,0,0,.4); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-900); }

.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; margin-top: 6px; }
.text-link .icon { transition: transform .3s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* 04 · Cabecera ---------------------------------------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    height: var(--header-h);
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
    transition: background-color .4s, box-shadow .4s;
}
/* Sobre el hero (lo activa JS): cabecera transparente */
.site-header.is-top:not(.menu-open) {
    background: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}

.header-inner {
    height: 100%;
    max-width: 1360px; margin-inline: auto; padding-inline: clamp(20px, 3vw, 40px);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}

.brand { justify-self: start; display: block; }
.brand-logo { height: 44px; width: auto; transition: filter .4s; }
.site-header.is-top:not(.menu-open) .brand-logo { filter: brightness(0) invert(1); }

.main-nav { justify-self: center; }
.nav-list { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav-list a {
    position: relative; display: block; padding: 8px 0;
    font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink); text-decoration: none;
    transition: color .3s;
}
.nav-list a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
    background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-list a:hover, .nav-list a.is-active { color: var(--brand); }
.site-header.is-top .nav-list a { color: var(--white); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.site-header.is-top:not(.menu-open) .header-cta { background: var(--white); color: var(--brand-800); }

.nav-mobile-cta { display: none; }

.menu-toggle {
    display: none; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: transparent; cursor: pointer; position: relative;
}
.menu-toggle span {
    pointer-events: none;
    position: absolute; left: 13px; width: 20px; height: 1.8px; border-radius: 2px;
    background: var(--brand-900); transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease), background-color .3s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.site-header.is-top:not(.menu-open) .menu-toggle span { background: var(--white); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* 05 · Hero -------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 40px) 0 90px;
    color: var(--white);
    background:
        radial-gradient(1200px 700px at 85% 10%, rgba(194,174,210,.35), transparent 60%),
        radial-gradient(900px 600px at 0% 100%, rgba(138,101,162,.45), transparent 60%),
        linear-gradient(150deg, var(--brand-800) 0%, var(--brand-900) 55%, var(--brand-950) 100%);
}
.hero::after { /* grano sutil */
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-lotus {
    position: absolute; width: min(62vw, 760px); right: -12vw; bottom: -14vw;
    opacity: .07; pointer-events: none; transform: rotate(-8deg);
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

.hero-title {
    font-size: clamp(2.8rem, 6.2vw, 5.4rem);
    color: var(--white);
    font-weight: 500;
    margin-bottom: 26px;
}
.hero-title .script {
    display: block;
    font-size: .62em;
    color: var(--brand-200);
    margin-bottom: .1em;
}
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 300; color: rgba(255,255,255,.86); max-width: 33em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 26px; max-width: 520px; }
.hero-badges li { flex: 1 1 0; min-width: 120px; padding-right: 20px; }
.hero-badges li + li { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.18); }
.hero-badges strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; color: var(--white); }
.hero-badges span { font-size: .85rem; color: rgba(255,255,255,.7); }

.hero-media { position: relative; justify-self: center; width: min(100%, 440px); }
.arch {
    position: relative;
    border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-lg);
    outline: 1px solid rgba(255,255,255,.25); outline-offset: 12px;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.hero-media:hover .arch img { transform: scale(1.08); }

.hero-card {
    position: absolute; left: -36px; bottom: 34px;
    display: flex; align-items: center; gap: 12px;
    max-width: 300px; padding: 16px 20px;
    background: rgba(255,255,255,.96); color: var(--ink);
    border-radius: var(--radius); box-shadow: var(--shadow);
    font-size: .9rem; line-height: 1.4;
    animation: floaty 6s ease-in-out infinite;
}
.hero-card .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--brand-100); color: var(--brand); }
.hero-card strong { color: var(--brand-800); }

.scroll-hint {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 20px; z-index: 1;
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: scrollDot 2s infinite; }

/* 06 · Manifiesto -------------------------------------------------------- */
.manifesto {
    background: var(--cream);
    padding-block: clamp(80px, 11vw, 140px);
    text-align: center;
}
.manifesto .eyebrow { justify-content: center; }
.manifesto .eyebrow::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.manifesto-quote {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 500;
    color: var(--brand-900);
    margin-bottom: 28px;
}
.manifesto-quote em { font-style: italic; color: var(--brand); }
.manifesto-text { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin-inline: auto; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(50px, 7vw, 80px); text-align: left; }
.pillar {
    background: var(--white); padding: 34px 30px; border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.pillar-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-100); color: var(--brand); margin-bottom: 20px; }
.pillar-icon .icon { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.6rem; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: .98rem; }

/* 07 · Encabezados de sección (estilo marca de agua) --------------------- */
.section-heading { position: relative; max-width: 100%; overflow-x: clip; overflow-y: visible; text-align: center; margin-bottom: clamp(48px, 6vw, 72px); isolation: isolate; }
.section-heading::before {
    content: attr(data-wm);
    position: absolute; left: 50%; top: -.28em; transform: translateX(-50%); z-index: -1;
    font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
    font-size: clamp(3.2rem, 9.5vw, 7.2rem); letter-spacing: .03em; line-height: 1;
    color: var(--brand-100); white-space: nowrap; pointer-events: none;
}
.section-heading.align-left { text-align: left; }
.section-heading.align-left::before { left: -.04em; transform: none; }

.script-label {
    font-family: var(--font-script); font-size: clamp(1.7rem, 3vw, 2.2rem);
    color: var(--brand); line-height: 1.2; margin-bottom: 6px;
}
.section-heading h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); max-width: 18em; margin-inline: auto; }
.section-heading.align-left h2 { margin-inline: 0; }
.section-lead { color: var(--muted); max-width: 38em; margin: 18px auto 0; font-size: 1.08rem; }

/* 08 · Nosotras ---------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-visual { position: relative; padding: 30px; }
.about-visual::before {
    content: ''; position: absolute; inset: 0;
    border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
    background: linear-gradient(180deg, var(--brand-50), var(--brand-100));
}
.about-lotus { position: relative; width: 82%; margin: 30px auto 0; opacity: .9; }
.stat-stack { position: relative; display: grid; gap: 14px; margin-top: -40px; }
.stat {
    display: flex; align-items: center; gap: 18px;
    background: var(--white); padding: 16px 22px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--brand); min-width: 1.6em; }
.stat span { color: var(--muted); font-size: .95rem; line-height: 1.4; }

.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text p a { font-weight: 500; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 30px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .98rem; color: var(--brand-900); }
.check-list .icon { color: var(--white); background: var(--brand); border-radius: 50%; padding: 4px; width: 22px; height: 22px; margin-top: 3px; stroke-width: 2.4; }

/* 09 · Servicios --------------------------------------------------------- */
.services { background: linear-gradient(180deg, var(--white), var(--brand-50)); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card, .bonus-banner {
    position: relative; text-align: left; cursor: pointer;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s, background-color .45s;
}
.service-card { display: flex; flex-direction: column; gap: 10px; padding: 34px 30px 30px; overflow: hidden; }
.service-card::after { /* barrido de color al pasar */
    content: ''; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--brand);
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.service-card:hover, .bonus-banner:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
    width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
    background: var(--brand-100); color: var(--brand); margin-bottom: 10px;
    transition: background-color .4s, color .4s, transform .4s var(--ease);
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-icon, .bonus-banner:hover .service-icon { background: var(--brand); color: var(--white); transform: rotate(-6deg); }

.service-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.15; color: var(--brand-900); }
.service-desc { color: var(--muted); font-size: .97rem; flex: 1; }
.service-more { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 500; font-size: .92rem; letter-spacing: .04em; margin-top: 8px; }
.service-more .icon { transition: transform .35s var(--ease); }
.service-card:hover .service-more .icon, .bonus-banner:hover .service-more .icon { transform: translateX(5px); }

.service-card--featured { background: linear-gradient(160deg, var(--brand-800), var(--brand-900)); border-color: transparent; }
.service-card--featured .service-name { color: var(--white); }
.service-card--featured .service-desc { color: rgba(255,255,255,.78); }
.service-card--featured .service-more { color: var(--brand-200); }
.service-card--featured .service-icon { background: rgba(255,255,255,.12); color: var(--white); }
.service-card--featured::after { background: var(--gold); }
.service-tag {
    position: absolute; top: 22px; right: 22px;
    font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--brand-950);
}

.bonus-banner { display: flex; align-items: center; gap: 24px; width: 100%; margin-top: 24px; padding: 24px 30px; }
.bonus-banner .service-icon { margin: 0; }
.bonus-text { flex: 1; display: flex; flex-direction: column; }
.bonus-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--brand-900); line-height: 1.2; }
.bonus-desc { color: var(--muted); font-size: .97rem; }
.bonus-banner .service-more { margin: 0; }

/* 10 · Maderoterapia ----------------------------------------------------- */
.madero {
    position: relative; overflow: hidden;
    padding-block: clamp(90px, 12vw, 150px);
    color: rgba(255,255,255,.86);
    background:
        radial-gradient(800px 500px at 0% 0%, rgba(138,101,162,.5), transparent 60%),
        linear-gradient(135deg, var(--brand-800), var(--brand-950));
}
.madero-lotus { position: absolute; width: 520px; left: -140px; bottom: -120px; opacity: .06; pointer-events: none; }
.madero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.madero h2 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 500; margin-bottom: 24px; }
.madero h2 .script { display: block; font-size: 1.35em; color: var(--brand-200); line-height: 1; margin-bottom: .1em; }
.madero-text > p { font-size: 1.08rem; margin-bottom: 30px; max-width: 36em; }

.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; color: var(--white); }
.benefits .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--gold); color: var(--brand-950); stroke-width: 2.6; margin-top: 2px; }

.price-panel {
    background: var(--white); color: var(--ink);
    border-radius: var(--radius-lg); padding: 36px 32px 30px;
    box-shadow: var(--shadow-lg);
}
.price-panel h3 { font-size: 2rem; margin-bottom: 18px; }
.plans { display: grid; gap: 10px; margin-bottom: 24px; }
.plan {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    transition: border-color .3s, background-color .3s;
}
.plan:hover { border-color: var(--brand-300); background: var(--brand-50); }
.plan-name { font-weight: 500; line-height: 1.3; }
.plan-name small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.plan-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--brand); white-space: nowrap; }
.plan--best { border: 1.5px solid var(--brand); background: var(--brand-50); }
.plan-flag {
    position: absolute; top: -10px; left: 16px;
    font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
    background: var(--brand); color: var(--white); padding: 2px 10px; border-radius: 999px;
}
.panel-note { margin-top: 14px; font-size: .88rem; color: var(--muted); text-align: center; }

/* 11 · Equipo ------------------------------------------------------------ */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 48px); max-width: 1040px; margin-inline: auto; }
.member {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.member:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.member-photo { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--brand-100); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 1s var(--ease); }
.member:hover .member-photo img { transform: scale(1.05); }
.member-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(transparent, rgba(47,27,60,.25)); }
.member-body { padding: 30px 32px 34px; }
.member-role { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.member h3 { font-size: 2.1rem; margin-bottom: 14px; }
.member-body > p:not(.member-role) { color: var(--muted); font-size: .98rem; }

/* 12 · Galería ----------------------------------------------------------- */
.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

/* 13 · FAQ --------------------------------------------------------------- */
.faq { background: var(--brand-50); }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq summary {
    list-style: none; cursor: pointer; position: relative;
    padding: 22px 64px 22px 26px;
    font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--brand-900); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; position: absolute; right: 24px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
    background:
        linear-gradient(var(--brand), var(--brand)) center / 14px 1.8px no-repeat,
        linear-gradient(var(--brand), var(--brand)) center / 1.8px 14px no-repeat;
    border-radius: 50%; transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); }

/* 14 · Contacto ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.contact-card { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; background: var(--brand-50); }
.contact-list { display: grid; gap: 26px; }
.contact-list li { display: flex; gap: 18px; }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--white); flex-shrink: 0; }
.contact-list h3 { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.contact-list address, .contact-list p { font-style: normal; color: var(--ink); }
.phone { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; text-decoration: none; color: var(--brand-900); }
.open-status { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; }
.open-status:empty { display: none; }
.open-status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: #2e7d4f; }
.open-status.is-closed { color: var(--muted); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; }


.map {
    display: flex; min-height: 420px;
    border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
    /* Fondo que evoca un plano: calles suaves sobre morado claro */
    background:
        linear-gradient(28deg, transparent 47%, rgba(255,255,255,.95) 47% 50%, transparent 50%) 0 0 / 100% 100%,
        linear-gradient(-62deg, transparent 58%, rgba(255,255,255,.95) 58% 60.5%, transparent 60.5%) 0 0 / 100% 100%,
        linear-gradient(90deg, rgba(108,66,133,.06) 1px, transparent 1px) 0 0 / 46px 46px,
        linear-gradient(rgba(108,66,133,.06) 1px, transparent 1px) 0 0 / 46px 46px,
        var(--brand-100);
}
.map-cover { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 24px; }
.map-pin {
    width: 72px; height: 72px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    display: grid; place-items: center; background: var(--brand); color: var(--white);
    box-shadow: 0 14px 30px -10px rgba(108,66,133,.7); margin-bottom: 22px;
    animation: pinDrop 2.4s var(--ease) infinite;
}
.map-pin .icon { width: 30px; height: 30px; transform: rotate(45deg); }
.map-title { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--brand-900); line-height: 1.2; }
.map-sub { color: var(--muted); margin-bottom: 22px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.map-actions .btn-outline { background: var(--white); }
.map iframe { flex: 1; width: 100%; min-height: inherit; border: 0; }
@keyframes pinDrop { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 50% { transform: rotate(-45deg) translate(4px, -4px); } }

/* 15 · Pie --------------------------------------------------------------- */
.site-footer { background: var(--brand-950); color: rgba(255,255,255,.72); padding-top: 80px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 230px; margin-bottom: 18px; }
.footer-brand p { max-width: 22em; }
.footer-title { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-300); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer p + p { margin-top: 10px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
.social a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-3px); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 900;
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: #1fa855; color: var(--white); box-shadow: 0 12px 28px -8px rgba(31,168,85,.6);
    transition: transform .3s var(--ease);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); color: var(--white); }

/* 16 · Diálogos (cartas de precios y visor) ------------------------------ */
.sheet {
    width: min(560px, calc(100% - 32px)); max-height: min(86vh, 860px);
    margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg);
    background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheetIn .45s var(--ease); }
.sheet::backdrop { background: rgba(34,19,44,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .3s ease; }
.sheet-head { position: relative; padding: 30px 70px 20px 32px; background: var(--brand-50); border-bottom: 1px solid var(--line); }
.sheet-head .script-label { font-size: 1.6rem; margin-bottom: 0; }
.sheet-head h2 { font-size: 2.1rem; }
.sheet-close {
    position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
    border: 0; display: grid; place-items: center; cursor: pointer;
    background: var(--white); color: var(--brand-900); box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.sheet-close:hover { background: var(--brand); color: var(--white); transform: rotate(90deg); }
.sheet-body { padding: 10px 32px 20px; overflow-y: auto; overscroll-behavior: contain; }
.price-group { font-family: var(--font-body); font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin: 22px 0 4px; }
.price-list li { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--brand-200); }
.price-list li:last-child { border-bottom: 0; }
.price-list span { flex: 1; font-weight: 500; line-height: 1.35; }
.price-list small { display: block; color: var(--muted); font-weight: 400; font-size: .84rem; }
.price-list b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--brand); white-space: nowrap; }
.sheet-note { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--muted); font-size: .9rem; }
.sheet-foot { padding: 18px 32px 26px; border-top: 1px solid var(--line); }

.lightbox { margin: auto; padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20,10,26,.88); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); }
.lightbox .sheet-close { top: -16px; right: -16px; }

body.no-scroll { overflow: hidden; }

/* 17 · Animaciones ------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* Hero: entrada en CSS puro (no depende de JS ni retrasa el LCP) */
.hero-anim { animation: heroIn 1s var(--ease) both; animation-delay: calc(var(--i, 0) * .12s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Revelado al hacer scroll: solo si JS está activo (sin JS todo es visible) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* 18 · Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
    .nav-list { gap: 20px; }
    .nav-list a { font-size: .76rem; letter-spacing: .1em; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    :root { --header-h: 68px; }
    .header-inner { grid-template-columns: 1fr auto; }
    .brand-logo { height: 38px; }
    .menu-toggle { display: block; }
    .header-cta { display: none; }

    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        justify-self: stretch; width: 100%;
        max-height: calc(100svh - var(--header-h)); overflow-y: auto;
        background: var(--white); box-shadow: var(--shadow);
        padding: 12px clamp(20px, 4vw, 40px) 28px;
        opacity: 0; visibility: hidden; transform: translateY(-12px);
        transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
    }
    .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list li { border-bottom: 1px solid var(--line); }
    .nav-list a, .site-header.is-top .nav-list a { color: var(--ink); font-size: .95rem; padding: 16px 0; }
    .nav-list a::after { display: none; }
    .nav-mobile-cta { display: flex; width: 100%; margin-top: 20px; }

    .hero { min-height: auto; padding-top: calc(var(--header-h) + 50px); }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { width: min(80%, 380px); order: -1; }
    .hero-card { left: -20px; bottom: 20px; }
    .scroll-hint { display: none; }

    .about-grid, .madero-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-visual { max-width: 460px; margin-inline: auto; width: 100%; }
    .pillars { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .section, .manifesto { padding-block: 44px; }
    .madero { padding-block: 60px; }
    .section-heading { margin-bottom: 32px; }
    .section-heading::before { top: 0; }
    .services-grid, .team-grid { grid-template-columns: 1fr; }
    .check-list, .benefits { grid-template-columns: 1fr; }
    .hero-media { width: min(72%, 290px); }
    .section-heading::before { font-size: 3rem; top: -.1em; }
    .hero-card { left: -10px; right: auto; max-width: 230px; padding: 12px 14px; font-size: .82rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-badges strong { font-size: 1.6rem; }
    .hero-badges li { min-width: 0; padding-right: 12px; }
    .hero-badges li + li { padding-left: 12px; }
    .bonus-banner { flex-wrap: wrap; gap: 16px; padding: 24px; }
    .bonus-banner .service-more { width: 100%; }
    .price-panel { padding: 28px 22px 24px; }
    .contact-buttons .btn { flex: 1 1 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .map { min-height: 300px; }

    /* Las cartas de precios suben desde abajo como en una app */
    .sheet { width: 100%; max-width: 100%; max-height: 90svh; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .sheet-head { padding: 24px 64px 16px 22px; }
    .sheet-head h2 { font-size: 1.8rem; }
    .sheet-body { padding: 6px 22px 16px; }
    .sheet-foot { padding: 14px 22px calc(18px + env(safe-area-inset-bottom)); }
    .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* Cormorant usa cifras de estilo antiguo (el 1 parece una I): forzamos cifras alineadas */
.hero-badges strong, .stat strong, .plan-price, .price-list b, .phone, .map-title { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }

/* Rótulo superior dentro del H1 (lleva la búsqueda principal: "Centro de estética en Marbella") */
.hero-title .eyebrow { display: flex; font-family: var(--font-body); font-weight: 500; line-height: 1.6; margin-bottom: 18px; }

/* Enlace a la carta completa (carta.html) */
.carta-link { text-align: center; margin-top: 32px; }
@media (max-width: 640px) { .carta-link .btn { width: 100%; white-space: normal; } }
