/* ==========================================================
   Versión 2 · "Cuaderno de stickers"
   Se carga después de style.css y solo cambia lo necesario.
   Pieza protagonista: el collage de la portada.
   ========================================================== */
:root {
    --font-title: 'Josefin Sans', 'Century Gothic', system-ui, sans-serif;   /* como su portada */
    --font-script: 'Dancing Script', 'Brush Script MT', cursive;              /* como su logo */
    --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --cream: #fffafc;
    --lila: #e6dcf5;
    --resorte: cubic-bezier(.34, 1.4, .64, 1);   /* solo para respuestas a un toque */
}

h1, h2, h3, .footer__brand, .brand__text strong {
    font-family: var(--font-title);
    font-weight: 600;
}
h2 { letter-spacing: -.01em; line-height: 1.12; }
h3 { letter-spacing: -.01em; }
body { font-size: 1.05rem; }

/* Respuesta inmediata al presionar cualquier botón */
.btn:active { transform: scale(.97); transition-duration: .08s; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 12px; }

/* ---------- Olas entre secciones ---------- */
.ola { position: absolute; left: 0; width: 100%; height: clamp(24px, 4vw, 48px); display: block; pointer-events: none; }
.ola--entra { bottom: -1px; fill: var(--cream); z-index: 2; }
.ola--arriba { top: 1px; transform: translateY(-100%); fill: var(--sec-bg); }
.ola--abajo { bottom: 1px; transform: translateY(100%); fill: var(--sec-bg); z-index: 2; }
.section--tint { --sec-bg: var(--mint-soft); position: relative; }
.section--rosa { --sec-bg: var(--rose-soft); background: var(--rose-soft); position: relative; }
.con-dientes { overflow: visible; }
main { overflow-x: clip; }

/* ==========================================================
   HERO
   ========================================================== */
.hero2 { padding-bottom: clamp(4.5rem, 8vw, 7rem); }
.hero2__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }

.hero2__pill {
    display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.4rem;
    padding: .4rem .95rem .4rem .7rem; border-radius: 999px; background: #fff;
    box-shadow: var(--shadow-sm); font-weight: 700; font-size: .92rem; color: var(--brand-dark);
}
.hero2__pill .icon { width: 1.05em; height: 1.05em; }

/* El titular juega con su propio significado: "gran" es enorme, "pequeña" es pequeña */
.hero2__titulo { margin-bottom: 1.4rem; color: var(--ink); }
.hero2__titulo > span { display: block; }
.t-linea { font-size: clamp(1.55rem, 3.2vw, 2.4rem); font-weight: 500; line-height: 1.15; letter-spacing: -.015em; }
.t-gran {
    font-size: clamp(3.3rem, 8.6vw, 6.8rem); font-weight: 700; line-height: .9; letter-spacing: -.045em;
    color: var(--brand); margin: .05em 0 .12em -.03em;
}
.t-peque {
    display: inline-flex; align-items: center; gap: .3rem; vertical-align: .12em;
    font-size: .62em; font-style: italic; font-weight: 500; letter-spacing: 0;
    color: var(--brand-dark); margin-left: .15em;
    padding: .15rem .7rem .2rem; border-radius: 999px; background: var(--sun-soft);
}
.t-peque__diente { width: .95em; height: .95em; fill: #fff; stroke: var(--brand-dark); stroke-width: 1.8; }
.hero2__lead { font-size: 1.15rem; max-width: 30rem; margin-bottom: 2rem; color: var(--text); }

/* Escena: sol, foto y stickers */
.hero2__escena { position: relative; min-height: clamp(380px, 44vw, 540px); display: grid; place-items: center; }
.hero2__sol {
    position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0 8%, var(--mint) 9% 58%, #bfe2f6 59% 100%);
    box-shadow: inset 0 -18px 0 rgba(255, 255, 255, .35);
}
.m-diente { fill: #fff; stroke: var(--ink); stroke-width: 4.5; stroke-linejoin: round; }
.m-brillo { fill: none; stroke: var(--mint); stroke-width: 7; stroke-linecap: round; }
.m-destello { fill: var(--sun); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.m-hoja { fill: #a8dcc0; stroke: var(--ink); stroke-width: 2.5; }
.m-flor circle { stroke: var(--ink); stroke-width: 2.2; }
.m-flor--rosa circle { fill: #f4a6c6; }
.m-flor--celeste circle { fill: #a9d8f2; }
.m-flor--amarilla circle { fill: #ffd166; }
.m-flor .m-flor__centro { fill: #fff6d9; }

/* Composición tipo collage: foto protagonista + stickers */
.polaroid--principal { position: relative; z-index: 1; width: min(340px, 70%); padding: 14px 14px 0; rotate: -4deg; box-shadow: var(--shadow-lg); }
.polaroid--principal .ph { aspect-ratio: 4 / 4.4; }
.polaroid--principal figcaption { font-size: 1.3rem; padding: .8rem 0 1rem; }
.polaroid--principal .cinta { left: 50%; translate: -50% 0; rotate: -3deg; }
.diente-flor {
    position: absolute; z-index: 2; width: clamp(110px, 13vw, 170px); left: 0; top: 4%; rotate: -10deg; overflow: visible;
    filter: drop-shadow(0 12px 18px rgba(58, 33, 65, .16));
    animation: dienteHero 4.2s ease-in-out infinite;
}
.sticker--resena { position: absolute; z-index: 3; right: 2%; top: 10%; rotate: 6deg; font-size: 1rem; }
.sticker--resena .icon { color: var(--sun); fill: var(--sun); stroke: var(--ink); stroke-width: 1.5; }
.sticker--hero { position: absolute; z-index: 3; right: -2%; bottom: 12%; rotate: -4deg; }
@keyframes dienteHero { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.hero.pausa .diente-flor { animation-play-state: paused; }

.polaroid { background: #fff; padding: 10px 10px 0; border-radius: 6px; box-shadow: var(--shadow-md); }
.polaroid figcaption { font-family: var(--font-title); font-style: italic; font-weight: 500; text-align: center; color: var(--ink); padding: .55rem 0 .7rem; }
.polaroid .ph { border-radius: 3px; }

.sticker {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1rem; border-radius: 999px; background: #fff;
    border: 4px solid #fff; outline: 2px dashed rgba(184, 51, 111, .25); outline-offset: -8px;
    box-shadow: var(--shadow-md); font-weight: 800; font-size: .92rem; color: var(--ink);
}
.sticker .icon { color: var(--brand); width: 1.3em; height: 1.3em; }
.sticker--hero { position: absolute; z-index: 3; right: 0; bottom: 18%; rotate: 5deg; }

@media (max-width: 900px) {
    .hero2__grid { grid-template-columns: 1fr; text-align: center; }
    .hero2__lead { margin-inline: auto; }
    .hero2__titulo { display: flex; flex-direction: column; align-items: center; }
    .hero2 .hero__actions, .hero2 .hero__facts { justify-content: center; }
    .hero2__escena { min-height: 360px; margin-bottom: 1.5rem !important; max-width: 440px; width: 100%; margin: .5rem auto 0; }
    .polaroid--principal { width: min(250px, 64%); }
    .diente-flor { width: 96px; left: 2%; top: 0; }
    .sticker--resena { right: 0; top: 4%; font-size: .85rem; }
        .sticker--hero { right: 0; bottom: -4%; font-size: .82rem; }
}

/* ==========================================================
   POR QUÉ ELEGIRNOS: hoja de stickers
   ========================================================== */
.stickers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); }
.sticker-card {
    position: relative; padding: 1.6rem 1.4rem 1.7rem;
    border: 6px solid #fff; border-radius: 34px 26px 38px 28px;
    box-shadow: 0 1px 0 rgba(58, 33, 65, .05), 0 14px 30px rgba(58, 33, 65, .12);
    rotate: var(--rot, 0deg);
    transition: rotate .5s var(--ease), box-shadow .5s var(--ease);
}
.sticker-card--celeste { background: var(--mint); }
.sticker-card--rosa { background: var(--rose); }
.sticker-card--amarillo { background: var(--sun-soft); }
.sticker-card--blanco { background: #fff; border-color: var(--mint-soft); }
.sticker-card__icono {
    display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 2.4rem;
    border-radius: 20px 16px 22px 14px; background: #fff; color: var(--brand); font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.sticker-card--blanco .sticker-card__icono { background: var(--rose-soft); }
.sticker-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.sticker-card p { font-size: .98rem; color: var(--text); }
@keyframes flotarT { 0%, 100% { translate: 0 -6px; } 50% { translate: 0 -14px; } }
@media (hover: hover) {
    .sticker-card:hover { rotate: 0deg; box-shadow: 0 1px 0 rgba(58, 33, 65, .05), 0 26px 44px rgba(58, 33, 65, .16); animation: flotarT 2.6s ease-in-out infinite; }
}
@media (max-width: 1000px) { .stickers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .stickers { grid-template-columns: 1fr; gap: 1.1rem; }
    .sticker-card { rotate: calc(var(--rot) * .5); }
    .sticker-card__icono { margin-bottom: 1.2rem; }
}

/* ==========================================================
   RESEÑAS: las estrellas se encienden una vez
   ========================================================== */
.resenas2 .resenas__stars .icon { scale: 0; transition: scale .5s var(--resorte); }
.resenas2.ver .resenas__stars .icon { scale: 1; }
.resenas2.ver .resenas__stars .icon:nth-child(2) { transition-delay: .08s; }
.resenas2.ver .resenas__stars .icon:nth-child(3) { transition-delay: .16s; }
.resenas2.ver .resenas__stars .icon:nth-child(4) { transition-delay: .24s; }
.resenas2.ver .resenas__stars .icon:nth-child(5) { transition-delay: .32s; }
.resenas2 .resenas__nota strong { font-family: var(--font-title); }
.resenas2 h2 { font-family: var(--font-title); }

/* ==========================================================
   LA DOCTORA
   ========================================================== */
.doctora { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.polaroid--doctora { position: relative; max-width: 400px; width: 100%; margin-inline: auto; padding: 14px 14px 0; rotate: -3deg; box-shadow: var(--shadow-lg); }
.polaroid--doctora figcaption { font-size: 1.45rem; padding: .9rem 0 1.1rem; }
.cinta { position: absolute; top: -14px; width: 96px; height: 30px; background: rgba(244, 166, 198, .6); border-radius: 3px; }
.cinta--izq { left: 18px; rotate: -8deg; }
.cinta--der { right: 18px; rotate: 7deg; background: rgba(169, 216, 242, .7); }
.doctora__copy h2 { margin-bottom: 1.2rem; }
.doctora__copy > p { font-size: 1.12rem; max-width: 34rem; }
@media (max-width: 900px) { .doctora { grid-template-columns: 1fr; } .polaroid--doctora { max-width: 320px; } }

/* ==========================================================
   TRATAMIENTOS: tallímetro
   ========================================================== */
.talla { position: relative; padding-left: 96px; display: grid; gap: 1.4rem; counter-reset: none; }
.talla::before {
    content: ""; position: absolute; left: 0; top: -.5rem; bottom: -.5rem; width: 58px; border-radius: 20px;
    background:
        repeating-linear-gradient(180deg, transparent 0 13px, rgba(58, 33, 65, .22) 13px 15px) right 0 top 0 / 16px 100% no-repeat,
        repeating-linear-gradient(180deg, transparent 0 68px, rgba(58, 33, 65, .35) 68px 71px) right 0 top 0 / 30px 100% no-repeat,
        linear-gradient(180deg, var(--rose) 0 33%, var(--mint) 33% 66%, var(--sun-soft) 66% 100%);
    box-shadow: inset 0 0 0 5px #fff, var(--shadow-md);
}
.talla__fila { position: relative; display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 1.25rem; align-items: start; }
.talla__fila::before {
    content: ""; position: absolute; left: -96px; top: .6rem; width: 84px; height: 4px; border-radius: 4px;
    background: var(--brand); opacity: .55;
}
.talla__fila::after {
    content: ""; position: absolute; left: -22px; top: .1rem; width: 18px; height: 18px; border-radius: 50%;
    background: var(--c); border: 4px solid var(--brand);
}
.talla__edad strong { display: block; font-family: var(--font-title); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.talla__edad span { display: block; margin-top: .2rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
.talla__items { display: flex; flex-wrap: wrap; gap: 1rem; }
.talla .treat {
    flex: 1 1 260px; display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.3rem;
    border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm);
    border-left: 6px solid var(--c);
}
.talla .treat__icon { flex: none; margin: 0; width: 48px; height: 48px; border-radius: 15px; background: var(--c); }
.talla .treat h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.talla .treat p { font-size: .97rem; }
@media (hover: hover) { .talla .treat:hover { animation: flotarT 2.6s ease-in-out infinite; box-shadow: var(--shadow-md); } }
.talla__nota { margin: 1.6rem 0 0 96px; font-size: .92rem; color: var(--muted); font-style: italic; }
@media (max-width: 760px) {
    .talla { padding-left: 46px; }
    .talla::before { width: 30px; border-radius: 14px; }
    .talla__fila { grid-template-columns: 1fr; gap: .7rem; }
    .talla__fila::before { left: -46px; width: 26px; }
    .talla__fila::after { left: -26px; }
    .talla__nota { margin-left: 46px; }
}

/* ==========================================================
   PRIMERA VISITA: camino
   ========================================================== */
.camino { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: .5rem; }
.camino__linea { position: absolute; left: 0; top: 0; width: 100%; height: 130px; fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-dasharray: 2 14; stroke-linecap: round; opacity: .5; animation: caminar 2.4s linear infinite; }
@keyframes caminar { to { stroke-dashoffset: -16; } }
.con-dientes.pausa .camino__linea, .con-dientes.pausa .camino::before { animation-play-state: paused; }
.camino li { position: relative; text-align: center; padding: 0 .4rem; }
.camino-wrap { position: relative; }
.camino li:nth-child(even) { margin-top: 3.2rem; }
.camino__n {
    display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1rem;
    border-radius: 50%; background: var(--brand); color: #fff;
    font-family: var(--font-title); font-weight: 700; font-size: 1.7rem;
    border: 6px solid #fff; box-shadow: var(--shadow-md);
}
.camino li:last-child .camino__n { background: var(--sun); color: var(--ink); }
.camino h3 { margin-bottom: .4rem; }
.camino p { color: var(--muted); font-size: .98rem; max-width: 16rem; margin-inline: auto; }
@media (max-width: 860px) {
    .camino { grid-template-columns: 1fr; gap: 1.6rem; padding-left: 0; }
    .camino__linea { display: none; }
    .camino::before {
        content: ""; position: absolute; left: 32px; top: 30px; bottom: 30px; width: 4px;
        background: radial-gradient(circle, rgba(184, 51, 111, .55) 1.8px, transparent 2.2px) center top / 4px 14px repeat-y;
        animation: caminarV 1.6s linear infinite;
    }
    @keyframes caminarV { to { background-position: center 14px; } }
    .camino li, .camino li:nth-child(n) { margin-top: 0; text-align: left; display: grid; grid-template-columns: 68px 1fr; column-gap: 1rem; padding: 0; }
    .camino__n { grid-row: span 2; margin: 0; }
    .camino p { margin: 0; }
}

.promesa { margin: clamp(4rem, 8vw, 6rem) auto 0; max-width: 46rem; text-align: center; }
.promesa p {
    font-family: var(--font-title); font-style: italic; font-weight: 500;
    font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); margin-bottom: 1.8rem;
}

/* ==========================================================
   PREGUNTAS: chat
   ========================================================== */
.chat {
    max-width: 720px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.75rem);
    border-radius: 32px; background: #fff; box-shadow: var(--shadow-md); overflow: hidden;
    background-image: radial-gradient(rgba(184, 51, 111, .06) 1.5px, transparent 1.5px); background-size: 22px 22px;
}
.chat__cabecera {
    display: flex; align-items: center; gap: .8rem; margin: 0 calc(clamp(1rem, 3vw, 1.75rem) * -1) 1.4rem;
    padding: 1rem clamp(1rem, 3vw, 1.75rem); background: var(--mint);
}
.chat__cabecera strong { display: block; font-family: var(--font-title); font-weight: 600; font-size: 1.12rem; color: var(--ink); line-height: 1.2; }
.chat__cabecera small { color: var(--muted); font-weight: 600; }
.chat__avatar {
    flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: .85rem;
}
.chat__avatar--grande { width: 44px; height: 44px; font-size: 1rem; border: 3px solid #fff; }
.chat__item { display: flex; flex-direction: column; }
.chat__q {
    align-self: flex-end; max-width: 86%; margin: .35rem 0; text-align: left; cursor: pointer;
    padding: .75rem 1.1rem; border-radius: 20px 20px 6px 20px;
    font: inherit; font-weight: 700; line-height: 1.35;
    background: #fff; color: var(--brand-dark); border: 2px solid var(--rose);
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), scale .3s var(--resorte);
}
.chat__q:hover { border-color: var(--brand); }
.chat__q:active { scale: .97; transition-duration: .08s; }
.chat__q[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chat__a { display: none; grid-template-columns: 36px 1fr; gap: .55rem; align-items: end; margin: .3rem 0 1.1rem; }
.chat__a.is-open { display: grid; animation: burbuja .35s var(--ease); }
@keyframes burbuja { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.chat__burbuja {
    justify-self: start; max-width: 92%; padding: .85rem 1.1rem; border-radius: 20px 20px 20px 6px;
    background: var(--mint-soft); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(58, 33, 65, .05);
}
.chat__burbuja p { margin: 0; }
.chat__typing { display: none; gap: 4px; padding: .3rem 0; }
.chat__typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .4; animation: punto 1s ease-in-out infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 100% { translate: 0 0; opacity: .35; } 50% { translate: 0 -4px; opacity: .8; } }
.chat__a.escribiendo .chat__typing { display: flex; }
.chat__a.escribiendo p { display: none; }
.chat__mas { margin-top: 1.8rem; text-align: center; font-weight: 700; color: var(--ink); }
.chat__mas a { display: inline-flex; align-items: center; gap: .4rem; color: var(--brand-dark); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--sun); }

/* La cinta de demo y las secciones con fondo propio */
#ubicacion { --sec-bg: var(--mint-soft); }

@media (prefers-reduced-motion: reduce) {
    .diente-flor, .chat__typing i, .camino__linea, .camino::before { animation: none !important; }
    .resenas2 .resenas__stars .icon { scale: 1; }
}

/* ---------- Letra manuscrita (como el logo de la doctora) ---------- */
.t-linea { font-weight: 400; letter-spacing: 0; }
.t-gran, .t-peque, .polaroid figcaption, .promesa p {
    font-family: var(--font-script); font-style: normal; letter-spacing: 0;
}
.t-gran { font-size: clamp(3.6rem, 9vw, 6.8rem); font-weight: 700; line-height: .95; margin: .05em 0 .1em; }
.t-peque { font-size: .8em; font-weight: 700; }
.polaroid figcaption { font-size: 1.55rem; font-weight: 700; color: var(--brand-dark); }
.polaroid--doctora figcaption { font-size: 1.9rem; }
.promesa p { font-weight: 700; font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.05; color: var(--brand-dark); }

/* ==========================================================
   Stickers que se despegan (esquina inferior derecha)
   ========================================================== */
.sticker-card { transition: rotate .5s var(--ease), box-shadow .5s var(--ease), border-bottom-right-radius .3s var(--ease); }
.sticker-card::after {
    content: ""; position: absolute; right: -6px; bottom: -6px; width: 52px; height: 52px;
    background: linear-gradient(315deg, var(--cream) 0 49%, rgba(58, 33, 65, .16) 50%, #f7eef4 56%, #fff 100%);
    border-top-left-radius: 10px;
    scale: 0; transform-origin: 100% 100%;
    transition: scale .45s var(--resorte);
    pointer-events: none;
}
@media (hover: hover) {
    .sticker-card:hover { border-bottom-right-radius: 0; }
    .sticker-card:hover::after { scale: 1; }
}
/* En celular se despega un poquito al tocarla */
@media (hover: none) { .sticker-card:active::after { scale: .7; } }

/* ==========================================================
   Testimonios reales
   ========================================================== */
.testimonios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.testimonio {
    position: relative; padding: 1.5rem 1.5rem 1.3rem; background: #fff; border-radius: 26px 22px 28px 20px;
    border: 5px solid #fff; box-shadow: 0 1px 0 rgba(58, 33, 65, .05), 0 14px 30px rgba(58, 33, 65, .1);
    rotate: var(--rot, 0deg);
}
.testimonio:nth-child(1) { --rot: -1.5deg; background: var(--rose-soft); }
.testimonio:nth-child(2) { --rot: 1.2deg; background: var(--mint-soft); }
.testimonio:nth-child(3) { --rot: -.8deg; background: #fffaf0; }
.testimonio__stars { display: flex; gap: 2px; margin-bottom: .7rem; }
.testimonio__stars .icon { width: 16px; height: 16px; fill: var(--sun); stroke: #c99a00; stroke-width: 1; }
.testimonio blockquote p { color: var(--ink); font-size: 1rem; line-height: 1.55; }
.testimonio footer { margin-top: .9rem; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.testimonio cite { font-family: var(--font-script); font-style: normal; font-weight: 700; font-size: 1.35rem; color: var(--brand-dark); }
.testimonio small { color: var(--muted); font-weight: 600; font-size: .82rem; }
.testimonio--sk { display: grid; gap: .6rem; min-height: 150px; align-content: center; }
@media (max-width: 900px) { .testimonios { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ==========================================================
   Carta de la doctora
   ========================================================== */
.carta { position: relative; margin: .2rem 0 1.8rem; padding: 1.4rem 1.5rem 1.2rem; background: #fff; border-radius: 22px; box-shadow: var(--shadow-sm);
    background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(169, 216, 242, .45) 31px 32px); background-position: 0 19px; }
.carta p { font-size: 1.08rem; line-height: 2rem; margin: 0; color: var(--ink); }
.carta p + p:not(.carta__firma) { text-indent: 1.4em; }
.carta__firma { display: flex; flex-direction: column; align-items: flex-end; margin-top: .4rem; }
.carta__nombre { font-family: var(--font-script); font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--brand); }
.carta__firma span:last-child { font-size: .85rem; font-weight: 700; color: var(--muted); line-height: 1.4; }

/* ==========================================================
   Tallímetro interactivo: control de edad
   ========================================================== */
.edad { max-width: 640px; margin: 0 auto 2.6rem; padding: 1.4rem 1.6rem 1.2rem; background: #fff; border-radius: 26px; box-shadow: var(--shadow-md); text-align: center; }
.edad__pregunta { display: block; font-family: var(--font-title); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin-bottom: .9rem; }
.edad__control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; font-weight: 700; color: var(--muted); font-size: .9rem; }
.edad__valor {
    grid-column: 1 / -1; justify-self: center; margin-top: .5rem;
    font-family: var(--font-script); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--brand);
}
.edad__resumen { margin-top: .5rem; color: var(--text); min-height: 1.6em; }
.edad__resumen strong { color: var(--brand-dark); }
#edadRango {
    --p: 33%; -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px; cursor: pointer;
    background: linear-gradient(90deg, var(--brand) 0 var(--p), var(--rose) var(--p) 100%);
}
#edadRango::-webkit-slider-thumb {
    -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 6px solid var(--brand);
    box-shadow: var(--shadow-md); transition: scale .25s var(--resorte);
}
#edadRango::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 6px solid var(--brand); box-shadow: var(--shadow-md); }
#edadRango:active::-webkit-slider-thumb { scale: 1.15; }

.talla__fila { transition: opacity .35s var(--ease), filter .35s var(--ease); }
.talla.filtrando .talla__fila:not(.activa) { opacity: .35; filter: saturate(.4); }
.talla.filtrando .talla__fila.activa .treat { box-shadow: var(--shadow-md); }
.talla.filtrando .talla__fila.activa::after { scale: 1.25; }
.talla__fila::after { transition: scale .35s var(--resorte); }

/* Brillo más rápido en reseñas y "Agenda hoy" */
.brilla::before { animation-duration: 4s; }
.brilla::after { animation-duration: 2.8s; }

.e404__ups { display: block; font-family: var(--font-script); font-weight: 700; font-size: 1.45em; color: var(--brand); line-height: 1; margin-bottom: .1em; }

.talla__concepto { margin-top: .55rem; font-size: .95rem; line-height: 1.5; color: var(--text); max-width: 17rem; }
@media (max-width: 760px) { .talla__concepto { max-width: none; } }

/* Cinta de vista previa: sobria y legible */
.demo-cinta { font-family: Arial, Helvetica, sans-serif; font-weight: 400; font-size: .9rem; letter-spacing: 0; padding: .4rem 1.1rem; }
@media (max-width: 760px) { .demo-cinta { font-size: .82rem; } }

/* Firma del diseñador: enlace subrayado, igual que los enlaces legales */
.footer__firma { color: rgba(255, 255, 255, .8); text-decoration: underline; text-underline-offset: 3px; }
.footer__firma:hover { color: #fff; }

/* Menú y botones: letra condensada, alargada y sin negrita */
:root { --font-ui: 'Archivo Narrow', 'Arial Narrow', sans-serif; }
.nav__menu > a, .btn, .brand__text small {
    font-family: var(--font-ui); font-weight: 400; letter-spacing: .01em;
}
.nav__menu > a, .btn { font-size: 1.1rem; }
.brand__text small { font-size: .95rem; }
@media (min-width: 761px) {
    .demo-cinta { top: auto; bottom: 1.25rem; left: 1.25rem; transform: none; border-radius: 999px; box-shadow: var(--shadow-md); }
}

/* Botón flotante "Agendar cita": letra manuscrita, como el pie de la foto */
.wa span { font-family: var(--font-script); font-weight: 700; font-size: 1.55rem; line-height: 1; letter-spacing: 0; }
.wa { min-height: 62px; padding: .85rem 1.7rem; border: 0; box-shadow: 0 10px 26px rgba(28, 122, 77, .35); }
@media (max-width: 600px) { .wa span { font-size: 1.45rem; } }
.wa { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: -6px; }
/* El menú tenía negrita propia en style.css: la igualamos a "Ver tratamientos" */
.nav__menu > a:not(.btn) { font-family: var(--font-ui); font-weight: 400; font-size: 1.08rem; }

/* Botones de acción (WhatsApp y "Cómo llegar"): letra manuscrita, como el botón flotante */
.btn[data-wa], .btn[data-href="enlaceMapa"] {
    font-family: var(--font-script); font-weight: 700; font-size: 1.4rem; letter-spacing: 0; line-height: 1;
}
.btn--large[data-wa] { font-size: 1.5rem; }
.nav__cta.btn[data-wa] { font-size: 1.3rem; }
