/* Página «Mi sonrisa» de la web moderna (ADR 0245). Usa los tokens de styles.css: tinta azul noche + perla + un acento cobalto.
   Mantiene los nombres de clase que espera mi-sonrisa.js y smile-tryon.js; solo cambia la piel. */
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav__links a[aria-current='page'] { color: #fff; }
.msp-page { background: var(--ink); }

/* Cabecera de la página */
.msp-hero { position: relative; color: var(--on-ink); padding: clamp(132px, 17vw, 210px) 0 clamp(36px, 5vw, 64px); background: radial-gradient(900px 480px at 88% -10%, rgba(47, 102, 242, .26), transparent 65%), var(--ink); }
.msp-hero h1 { margin: clamp(20px, 3vw, 30px) 0; font-size: clamp(2.7rem, 7.4vw, 7rem); color: #fff; max-width: 15ch; }
.msp-hero__row { display: grid; gap: 22px; align-items: end; }
.msp-hero .lead { max-width: 52ch; }
.msp-note { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: 18px; background: rgba(238, 242, 249, .06); box-shadow: inset 0 0 0 1px var(--line-d); color: var(--on-ink-muted); font-size: 14px; line-height: 1.5; max-width: 52ch; }
.msp-note .ic { margin-top: 2px; font-size: 20px; color: var(--accent-tint); }
@media (min-width: 960px) { .msp-hero__row { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; } }

/* Herramienta */
.ms { background: var(--ink); color: var(--on-ink); padding: clamp(8px, 2vw, 24px) 0 clamp(72px, 9vw, 132px); }
.ms-tabs { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: clamp(18px, 2.4vw, 28px); border-radius: 999px; background: rgba(238, 242, 249, .07); box-shadow: inset 0 0 0 1px var(--line-d); }
.ms-tab { height: 44px; padding: 0 24px; border-radius: 999px; font-size: 14px; color: var(--on-ink-muted); transition: background-color .5s var(--ease), color .4s var(--ease); }
.ms-tab:hover { color: #fff; }
.ms-tab.is-active { background: var(--pearl); color: var(--ink); }

.ms-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); gap: clamp(20px, 2.6vw, 40px); align-items: start; }

/* Escenario: doble bisel (anillo exterior + núcleo claro) */
.ms-stage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 22px); }
.ms-view { margin: 0; }
.ms-view__box { position: relative; aspect-ratio: 4 / 3.3; border-radius: var(--r-core); overflow: hidden; background: radial-gradient(110% 90% at 50% 18%, #ffffff 0%, #eef3fb 45%, #d3dfef 100%); box-shadow: 0 0 0 6px rgba(238, 242, 249, .05), 0 0 0 7px var(--line-d), 0 30px 60px -34px rgba(0, 0, 0, .8); margin: 7px; }
.ms-view--after .ms-view__box { box-shadow: 0 0 0 6px rgba(47, 102, 242, .16), 0 0 0 7px rgba(47, 102, 242, .7), 0 30px 80px -30px rgba(47, 102, 242, .55); }
.ms-view canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.ms-view canvas:active { cursor: grabbing; }
.ms-view figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px 0; font-size: 14px; color: var(--on-ink-muted); }
.ms-view figcaption b { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.ms-fallback, .ms-loading { grid-column: 1 / -1; padding: 22px; border-radius: var(--r-core); background: rgba(238, 242, 249, .06); box-shadow: inset 0 0 0 1px var(--line-d); color: var(--on-ink-muted); }

.ms-views { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 6px; }
.ms-pill { height: 40px; padding: 0 18px; border-radius: 999px; background: rgba(238, 242, 249, .07); box-shadow: inset 0 0 0 1px var(--line-d); color: var(--on-ink); font-size: 14px; transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease); }
.ms-pill:hover { background: rgba(238, 242, 249, .14); }
.ms-pill:active { transform: scale(.97); }
.ms-pill.is-active { background: var(--pearl); color: var(--ink); box-shadow: none; }
.ms-hint { margin-left: auto; font-size: 13px; color: rgba(238, 242, 249, .5); }

/* Línea de tiempo */
.ms-timeline { margin-top: 20px; padding: 20px 22px 16px; border-radius: var(--r-core); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-d), inset 0 1px 1px rgba(255, 255, 255, .06); }
.ms-timeline__bar { display: flex; align-items: center; gap: 18px; }
.ms-play { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 22px; box-shadow: 0 14px 34px -14px rgba(47, 102, 242, .9); transition: transform .5s var(--ease); }
.ms-play:hover { transform: scale(1.06); }
.ms-play:active { transform: scale(.95); }
.ms-play .ic { width: 22px; height: 22px; }
.ms-range { position: relative; flex: 1; padding-bottom: 66px; }
.ms-range input[type='range'] { width: 100%; margin: 0; -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; }
.ms-range input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(170, 194, 255, .28), var(--accent)); }
.ms-range input[type='range']::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(170, 194, 255, .28), var(--accent)); }
.ms-range input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--pearl); border: 5px solid var(--accent); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.ms-range input[type='range']::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--pearl); border: 5px solid var(--accent); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.ms-ticks { position: absolute; left: 12px; right: 12px; top: 24px; height: 0; }
.ms-tick { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.ms-tick i { width: 1px; height: 8px; background: rgba(238, 242, 249, .35); }
.ms-tick--r1 i { height: 20px; }
.ms-tick--r2 i { height: 32px; }
.ms-tick em { white-space: nowrap; margin-top: 4px; font-size: 11px; line-height: 1.15; text-align: center; color: var(--on-ink-muted); max-width: 80px; letter-spacing: .01em; transition: color .3s var(--ease); }
.ms-tick:hover em { color: #fff; }
.ms-timeline__out { margin-top: 2px; font-size: 15px; font-weight: 500; color: #fff; }

/* Panel del plan */
.ms-plan { padding: clamp(20px, 2.2vw, 30px); border-radius: var(--r-card); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-d), inset 0 1px 1px rgba(255, 255, 255, .06); position: sticky; top: 96px; display: block; }
.ms-plan h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -.02em; color: #fff; margin-bottom: 16px; }
.ms-treat { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.ms-opt { display: block; cursor: pointer; }
.ms-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ms-opt__body { display: flex; flex-direction: column; gap: 1px; padding: 13px 18px 13px 54px; border-radius: 20px; background: rgba(238, 242, 249, .05); box-shadow: inset 0 0 0 1px var(--line-d); position: relative; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.ms-opt:hover .ms-opt__body { background: rgba(238, 242, 249, .09); }
.ms-opt__body::before { content: ''; position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(238, 242, 249, .4); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.ms-opt__body::after { content: ''; position: absolute; left: 25px; top: 50%; translate: 0 -62%; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; opacity: 0; transition: opacity .3s var(--ease); }
.ms-opt input:checked + .ms-opt__body { background: rgba(47, 102, 242, .16); box-shadow: inset 0 0 0 1px rgba(47, 102, 242, .85); }
.ms-opt input:checked + .ms-opt__body::before { background: var(--accent); box-shadow: none; }
.ms-opt input:checked + .ms-opt__body::after { opacity: 1; }
.ms-opt input:focus-visible + .ms-opt__body { outline: 2px solid var(--accent); outline-offset: 3px; }
.ms-opt b { font-weight: 500; color: #fff; }
.ms-opt small { color: var(--on-ink-muted); font-size: 13.5px; line-height: 1.4; }
.ms-shades { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 4px; }
.ms-shades label, .ms-tryon__ctrl label, .ms-share label, .ms-shared label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--on-ink-muted); }
.ms select, .ms input[type='password'] { width: 100%; height: 44px; padding: 0 14px; border-radius: 14px; border: 0; background: rgba(238, 242, 249, .07); box-shadow: inset 0 0 0 1px var(--line-d); font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: #fff; }
.ms select option { color: var(--ink); background: #fff; }
.ms select:focus-visible, .ms input[type='password']:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ms-cart__title { margin-top: 28px; font-size: 1.15rem !important; }
.ms-cart { display: grid; gap: 8px; margin: 0; }
.ms-cart li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 16px; border-radius: 18px; background: rgba(238, 242, 249, .06); }
.ms-cart li.is-later { background: transparent; box-shadow: inset 0 0 0 1px var(--line-d); }
.ms-cart__main { display: flex; flex-direction: column; gap: 2px; }
.ms-cart__main b { font-weight: 500; color: #fff; font-size: 15px; }
.ms-cart__main small { color: var(--on-ink-muted); font-size: 13px; line-height: 1.4; }
.ms-cart__price { white-space: nowrap; font-weight: 500; color: #fff; font-size: 15px; }
.ms-cart__empty { color: var(--on-ink-muted); padding: 4px 2px; }
.ms-total { margin-top: 14px; font-size: 1.05rem; color: var(--on-ink-muted); }
.ms-total b { color: #fff; font-weight: 500; font-size: 1.35rem; letter-spacing: -.02em; }
.ms-note { margin-top: 6px; font-size: 13px; line-height: 1.5; color: rgba(238, 242, 249, .5); }
.ms-actions { display: grid; gap: 10px; margin-top: 18px; }
.ms-actions .btn { justify-content: space-between; }
.ms-actions .btn--ghost { justify-content: center; gap: 10px; padding: 0 24px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.ms-share-out { margin-top: 12px; min-height: 1.2em; font-size: 13.5px; color: var(--accent-tint); overflow-wrap: anywhere; }
.ms-privacy { display: flex; align-items: flex-start; gap: 12px; margin-top: clamp(28px, 4vw, 44px); font-size: 14px; line-height: 1.55; color: var(--on-ink-muted); max-width: 84ch; }
.ms-privacy .ic { margin-top: 3px; font-size: 18px; color: var(--accent-tint); }

/* Compartir y plan compartido */
.ms-share { margin-top: 14px; padding: 18px; border-radius: 20px; background: rgba(238, 242, 249, .05); box-shadow: inset 0 0 0 1px var(--line-d); display: grid; gap: 12px; }
.ms-share h4, .ms-share h5 { margin: 0; font-weight: 500; color: #fff; }
.ms-share h4 { font-size: 1.05rem; }
.ms-share h5 { font-size: .95rem; margin-top: 4px; }
.ms-share__private { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-d); }
.ms-share .ms-check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.5; color: var(--on-ink-muted); }
.ms-share .ms-check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.ms-shared { margin: 0 0 clamp(18px, 2.4vw, 28px); padding: 16px 22px; border-radius: 22px; background: rgba(47, 102, 242, .14); box-shadow: inset 0 0 0 1px rgba(47, 102, 242, .6); display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; font-weight: 500; color: #fff; }
.ms-shared form { display: flex; gap: 12px; align-items: end; }
.ms-shared input { width: 140px; }

/* Botones con icono delante (los usa también el probador) */
.ms-share .btn--sm, .ms-shared .btn--sm { height: 44px; }
.ms-tryon__btns .btn, .ms-actions .btn--ghost, .ms-share .btn--ghost { height: 50px; padding: 0 22px; gap: 10px; justify-content: center; font-size: 14.5px; }
.ms-tryon__btns .btn--primary { --bg: var(--accent); --fg: #fff; box-shadow: 0 16px 40px -18px rgba(47, 102, 242, .9); }
.ms-tryon__btns .btn--light { --bg: rgba(238, 242, 249, .08); --fg: var(--on-ink); box-shadow: inset 0 0 0 1px rgba(238, 242, 249, .28); }
.ms-tryon__btns .btn--light:hover { --bg: rgba(238, 242, 249, .16); }
.ms-tryon__btns .btn .ic { font-size: 20px; }

/* Probador de sonrisa */
.ms-tryon { display: grid; gap: 18px; }
.ms-tryon__top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); gap: clamp(20px, 2.6vw, 40px); align-items: start; }
.ms-tryon__stage { position: relative; border-radius: var(--r-core); overflow: hidden; background: var(--ink-3); box-shadow: 0 0 0 6px rgba(238, 242, 249, .05), 0 0 0 7px var(--line-d), 0 30px 60px -34px rgba(0, 0, 0, .8); aspect-ratio: 4 / 3; touch-action: pan-y; user-select: none; margin: 7px; }
.ms-tryon__stage canvas, .ms-tryon__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-tryon__after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.ms-tryon__handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 14px rgba(0, 0, 0, .4); pointer-events: none; }
.ms-tryon__handle::after { content: '⇆'; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; background: rgba(20, 28, 48, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; font-size: 1.1rem; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.ms-tryon__tag { position: absolute; top: 14px; padding: 5px 13px; border-radius: 999px; background: rgba(10, 15, 28, .72); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; pointer-events: none; }
.ms-tryon__tag--l { left: 14px; }
.ms-tryon__tag--r { right: 14px; }
.ms-tryon__msg { position: absolute; inset: auto 14px 14px; padding: 12px 16px; border-radius: 16px; background: rgba(10, 15, 28, .8); color: #fff; font-size: 14px; pointer-events: none; }
.ms-tryon__ctrl { padding: clamp(20px, 2.2vw, 30px); border-radius: var(--r-card); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-d), inset 0 1px 1px rgba(255, 255, 255, .06); display: grid; gap: 16px; }
.ms-tryon__ctrl h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: -.02em; color: #fff; }
.ms-tryon__btns { display: grid; gap: 10px; }
.ms-tryon__ctrl input[type='range'] { width: 100%; accent-color: var(--accent); }
.ms-tryon__legend { font-size: 13px; line-height: 1.5; color: rgba(238, 242, 249, .5); }

/* Cómo funciona */
.eyebrow--l { background: rgba(10, 15, 28, .06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-l); }
.msp-how { padding-block: clamp(64px, 8vw, 128px); }
.msp-how .sec-head h2 { color: var(--ink); }
.msp-steps { display: grid; gap: clamp(14px, 1.8vw, 24px); counter-reset: s; }
.msp-steps li { position: relative; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--line-l), 0 30px 60px -44px rgba(10, 15, 28, .35); display: grid; gap: 12px; align-content: start; }
.msp-steps__n { font-size: 13px; letter-spacing: .2em; color: var(--accent); font-weight: 500; }
.msp-steps h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 400; color: var(--ink); }
.msp-steps p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.msp-how__cta { margin-top: clamp(32px, 4vw, 56px); }
.btn--ghost-l { --bg: transparent; --fg: var(--ink); padding: 0 28px; box-shadow: inset 0 0 0 1px rgba(10, 15, 28, .25); }
.btn--ghost-l:hover { --bg: rgba(10, 15, 28, .06); }
@media (min-width: 860px) { .msp-steps { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 1000px) {
  .ms-grid, .ms-tryon__top { grid-template-columns: 1fr; }
  .ms-plan { position: static; }
}
@media (max-width: 620px) {
  .ms-stage { grid-template-columns: 1fr; }
  .ms-view__box { aspect-ratio: 4 / 3; }
  .ms-hint { display: none; }
  .ms-tick em { display: none; }
  .ms-range { padding-bottom: 14px; }
  .ms-tick i { display: none; }
  .ms-tabs { display: flex; }
  .ms-tab { flex: 1; padding-inline: 12px; }
  .ms-shades { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-tab, .ms-pill, .ms-opt__body, .ms-opt__body::before, .ms-opt__body::after, .ms-play { transition: none; }
}
