/* Fuentes locales (licencia SIL OFL): Atkinson Hyperlegible y Big Shoulders Display. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url('./fuentes/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url('./fuentes/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 700 800; font-display: swap; src: url('./fuentes/big-shoulders-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-display: swap; src: url('./fuentes/big-shoulders-display-latin-900-normal.woff2') format('woff2'); }

/* Resurgir — amanecer sobre la precordillera sanjuanina.
   Arena cálida de fondo, tinta de madrugada, sol naranja como único acento fuerte. */
:root {
  --arena: #F5EEE3;
  --arena-2: #EADFCD;
  --papel: #FFFBF5;
  --tinta: #1F1B3A;
  --tinta-2: #4A4566;
  --sol: #F0631E;
  --sol-2: #FFB23F;
  --cerro: #7A4B3A;
  --verde: #3F7A55;
  --rojo: #C22F28;
  --radio: 18px;
  --sombra: 0 1px 0 rgba(31, 27, 58, .06), 0 10px 30px -18px rgba(31, 27, 58, .35);
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --texto: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font: 17px/1.5 var(--texto); color: var(--tinta);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(255, 178, 63, .18), transparent 60%),
    radial-gradient(80% 40% at 0% 100%, rgba(122, 75, 58, .10), transparent 60%),
    var(--arena);
  background-attachment: fixed;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
/* Grano sutil, para que el fondo no sea plástico */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  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' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .15 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--sol); }
button { font: inherit; }

/* ---------- Barra y navegación ---------- */
.barra {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  background: rgba(245, 238, 227, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 27, 58, .07);
}
.marca { display: flex; gap: 8px; align-items: center; text-decoration: none; color: var(--tinta); }
.marca span { font: 900 24px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.barra-alerta {
  font-size: 13px; font-weight: 700; text-decoration: none; color: var(--rojo);
  border: 1.5px solid currentColor; border-radius: 99px; padding: 5px 11px;
}
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--tinta);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: rgba(255, 251, 245, .62); text-decoration: none; font-size: 12.5px; padding: 6px 0; border-radius: 12px;
}
.nav a span { font-size: 19px; line-height: 1; }
.nav a.activo { color: var(--sol-2); }
body[data-vista="guiada"] .nav,
body[data-vista="importar"] .nav,
body[data-vista="bienvenida"] .nav,
body[data-vista="parq"] .nav,
body[data-vista="perfil"] .nav { display: none; }
body[data-vista="guiada"] .barra-alerta { display: none; }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 18px 16px 24px; outline: none; }
main > * { animation: subir .45s cubic-bezier(.2, .8, .2, 1) both; }
main > *:nth-child(2) { animation-delay: .05s; }
main > *:nth-child(3) { animation-delay: .1s; }
main > *:nth-child(4) { animation-delay: .15s; }
main > *:nth-child(5) { animation-delay: .2s; }
@keyframes subir { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { main > * { animation: none; } }

.titulo { font: 900 clamp(34px, 9vw, 46px)/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 4px 0 10px; }
.h2 { font: 800 24px/1.05 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.sobre { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--cerro); margin: 0 0 6px; }
.bajada { color: var(--tinta-2); margin: 0 0 16px; }
.saludo { font: 800 22px/1.1 var(--display); text-transform: uppercase; color: var(--tinta-2); margin: 2px 0 12px; }
.pie { text-align: center; font-size: 13.5px; color: var(--tinta-2); margin: 22px 8px; }
.pie a { color: var(--tinta-2); }
.volver { display: inline-block; text-decoration: none; color: var(--tinta-2); font-weight: 700; margin-bottom: 8px; }
.oculto { display: none !important; }

.tarjeta {
  display: block; background: var(--papel); border-radius: var(--radio); padding: 18px;
  margin: 0 0 14px; box-shadow: var(--sombra); border: 1px solid rgba(31, 27, 58, .06);
  color: inherit; text-decoration: none;
}
.tarjeta p { margin: 0 0 10px; }
.tarjeta p:last-child { margin-bottom: 0; }

/* ---------- Héroe: el sol sale detrás de los cerros ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; margin: 0 0 16px;
  padding: 28px 22px 120px; color: #FFF8EE;
  background: linear-gradient(180deg, #1F1B3A 0%, #4B2E58 45%, #C2533A 78%, #F0A04B 100%);
}
.hero::after { /* precordillera */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: #2A1E2E;
  clip-path: polygon(0 62%, 9% 48%, 17% 58%, 28% 26%, 37% 44%, 46% 30%, 55% 52%, 66% 18%, 76% 40%, 86% 28%, 100% 50%, 100% 100%, 0 100%);
}
.hero .sol {
  position: absolute; width: 170px; height: 170px; border-radius: 50%; right: -20px; bottom: 30px;
  background: radial-gradient(circle at 50% 50%, #FFE29A 0%, var(--sol-2) 45%, var(--sol) 70%, transparent 71%);
  box-shadow: 0 0 80px 30px rgba(255, 178, 63, .45);
  animation: amanecer 2.4s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes amanecer { from { transform: translateY(90px); opacity: .4; } }
.hero h1 { position: relative; z-index: 1; font: 900 clamp(46px, 13vw, 66px)/.9 var(--display); text-transform: uppercase; margin: 6px 0 14px; }
.hero h1 em { font-style: normal; color: var(--sol-2); }
.hero .sobre { color: rgba(255, 248, 238, .78); position: relative; z-index: 1; }
.hero .bajada { color: rgba(255, 248, 238, .9); position: relative; z-index: 1; max-width: 30ch; }

.puntos { list-style: none; padding: 0; margin: 0 0 16px; }
.puntos li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px dashed var(--arena-2); }
.puntos li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--sol); box-shadow: 0 0 0 4px rgba(240, 99, 30, .15); }

/* ---------- Botones ---------- */
.boton {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--sol); color: #fff; border: 0; border-radius: 14px;
  padding: 15px 18px; font-weight: 700; font-size: 17px; margin: 10px 0 0;
  box-shadow: 0 6px 18px -8px rgba(240, 99, 30, .9); transition: transform .12s, filter .12s;
}
.boton:active { transform: scale(.98); }
.boton:disabled { filter: grayscale(1); opacity: .45; cursor: not-allowed; box-shadow: none; }
.boton.claro { background: var(--arena); color: var(--tinta); box-shadow: inset 0 0 0 1.5px rgba(31, 27, 58, .14); }
.boton.peligro { background: var(--rojo); box-shadow: 0 6px 18px -8px rgba(194, 47, 40, .9); }
.boton.peligro-claro { background: transparent; color: var(--rojo); box-shadow: inset 0 0 0 1.5px var(--rojo); }
.fila-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link { background: none; border: 0; color: var(--tinta-2); text-decoration: underline; padding: 14px 0 0; cursor: pointer; display: block; margin: 0 auto; }

/* ---------- Formularios ---------- */
.form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.form legend { font-weight: 700; margin-bottom: 8px; }
.form legend small, .campo small { font-weight: 400; color: var(--tinta-2); }
.campo { display: block; margin-bottom: 16px; }
.campo span { display: block; font-weight: 700; margin-bottom: 6px; }
.campo input {
  width: 100%; font: inherit; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid rgba(31, 27, 58, .16); background: #fff; color: var(--tinta);
}
.campo input:focus { outline: 3px solid rgba(240, 99, 30, .3); border-color: var(--sol); }
.opcion { display: block; margin-bottom: 8px; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion span {
  display: block; padding: 12px 14px; border-radius: 12px; background: var(--arena);
  box-shadow: inset 0 0 0 1.5px rgba(31, 27, 58, .1); transition: background .15s, box-shadow .15s;
}
.opcion span small { display: block; color: var(--tinta-2); font-size: 14px; margin-top: 2px; }
.opcion input:checked + span { background: #FFE9D9; box-shadow: inset 0 0 0 2px var(--sol); }
.opcion input:focus-visible + span { outline: 3px solid rgba(240, 99, 30, .35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .opcion { margin: 0; }
.chips .opcion span { padding: 10px 14px; }
.caras .opcion span { font-size: 28px; padding: 6px 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--sol); flex: none; margin-top: 2px; }
input[type=range] { width: 100%; accent-color: var(--sol); height: 32px; }
.rpe-txt { margin: 4px 0 0; }
.rpe-txt b { font: 900 28px/1 var(--display); color: var(--sol); }
.pulso summary { cursor: pointer; font-weight: 700; margin-bottom: 12px; }
.pulso summary small { font-weight: 400; color: var(--tinta-2); }

/* ---------- PAR-Q ---------- */
.progreso { height: 6px; background: var(--arena-2); border-radius: 9px; overflow: hidden; margin: 6px 0 16px; }
.progreso i { display: block; height: 100%; background: linear-gradient(90deg, var(--sol), var(--sol-2)); border-radius: 9px; transition: width .3s; }
.pregunta h2 { font-size: 21px; line-height: 1.35; margin: 0 0 10px; }
.pregunta .num { font: 900 46px/1 var(--display); color: var(--sol); margin: 0 0 6px; }
.ayuda { color: var(--tinta-2); font-size: 15px; }
.si-no { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.si-no .boton { font-size: 20px; padding: 18px; }

.ok { text-align: left; }
.sello {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--verde); color: #fff; font-size: 28px; margin: 0 0 10px !important;
}
.nota { background: var(--arena); border-left: 4px solid var(--sol-2); padding: 10px 12px; border-radius: 0 10px 10px 0; font-size: 15.5px; }
.alerta-suave { border-top: 6px solid var(--sol-2); }
.lista { padding-left: 20px; margin: 0 0 12px; }
.lista li { margin-bottom: 6px; }
.lista.num li::marker { font-weight: 700; color: var(--sol); }

/* ---------- Hoy ---------- */
.destacada {
  background: linear-gradient(160deg, var(--tinta) 0%, #3A2C55 100%); color: #FFF8EE; position: relative; overflow: hidden;
}
.destacada::before {
  content: ''; position: absolute; width: 220px; height: 220px; right: -70px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 178, 63, .55), rgba(240, 99, 30, .15) 55%, transparent 70%);
}
.destacada .sobre { color: var(--sol-2); position: relative; }
.destacada h2 { font: 900 50px/.95 var(--display); text-transform: uppercase; margin: 0 0 12px; position: relative; }
.bloques { list-style: none; padding: 0; margin: 0 0 6px; counter-reset: b; position: relative; }
.bloques li { display: flex; flex-direction: column; padding: 8px 0 8px 34px; position: relative; border-top: 1px solid rgba(255, 248, 238, .12); counter-increment: b; }
.bloques li::before { content: counter(b); position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(255, 248, 238, .14); }
.bloques small { opacity: .75; font-size: 14px; }
.bloques.grande li { border-top-color: var(--arena-2); }
.bloques.grande li::before { background: var(--arena); color: var(--sol); }
.bloques.grande small { opacity: 1; color: var(--tinta-2); }
.chip-ok { display: inline-block; background: #E2F0E6; color: var(--verde); font-weight: 700; padding: 6px 12px; border-radius: 99px; font-size: 14.5px; }
.aviso-eval { background: #FFE9D9; border: 1.5px solid var(--sol); }

.fila-stats { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.fila-stats p { font-size: 15px; color: var(--tinta-2); }
.stat-t { font-weight: 700; color: var(--tinta) !important; margin-bottom: 2px !important; }
.anillo {
  --p: 0; flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--papel) 76%, transparent 77%), conic-gradient(var(--sol) calc(var(--p) * 1%), var(--arena-2) 0);
}
.anillo b { font: 900 30px/1 var(--display); }
.anillo small { font-size: 12px; color: var(--tinta-2); }
.semanas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sem { text-align: center; padding: 8px 2px; border-radius: 12px; background: var(--arena); }
.sem.actual { background: #FFE9D9; box-shadow: inset 0 0 0 1.5px var(--sol); }
.sem span { display: block; font: 800 15px/1 var(--display); margin-bottom: 6px; }
.sem div { display: flex; justify-content: center; gap: 3px; }
.sem i, .leyenda i { width: 9px; height: 9px; border-radius: 50%; background: rgba(31, 27, 58, .15); display: inline-block; }
.sem i.hecha, .leyenda i.hecha { background: var(--sol); }
.sem i.salteada, .leyenda i.salteada { background: var(--sol-2); opacity: .55; }
.sem i.interrumpida { background: rgba(240, 99, 30, .4); }
.leyenda { font-size: 13.5px; color: var(--tinta-2); margin: 12px 0 0 !important; }
.leyenda i { margin: 0 3px 0 6px; }
.tip { border-left: 6px solid var(--sol-2); }

/* ---------- Plan ---------- */
.semana-plan h2 { font: 900 30px/1 var(--display); text-transform: uppercase; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.semana-plan h2 small { font: 700 15px var(--texto); color: var(--sol); text-transform: none; white-space: nowrap; }
.semana-plan > p { color: var(--tinta-2); font-size: 15.5px; }
.semana-plan.actual { box-shadow: 0 0 0 2px var(--sol), var(--sombra); }
.sesiones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ses { display: block; text-decoration: none; color: var(--tinta); background: var(--arena); border-radius: 12px; padding: 10px; }
.ses small { display: block; color: var(--tinta-2); font-size: 13px; }
.ses.hecha { background: var(--tinta); color: #fff; }
.ses.hecha small { color: var(--sol-2); }
.ses.prox { box-shadow: inset 0 0 0 2px var(--sol); background: #FFE9D9; }
.pronto { border: 1.5px dashed rgba(31, 27, 58, .2); background: transparent; box-shadow: none; }

/* ---------- Sesión guiada ---------- */
.guiada { text-align: center; padding: 8px 4px 0; }
.guiada .titulo { font-size: clamp(36px, 10vw, 52px); }
.reloj {
  font: 900 clamp(88px, 28vw, 132px)/1 var(--display); letter-spacing: .01em; margin: 6px 0 4px;
  color: var(--tinta); font-variant-numeric: tabular-nums;
}
.reloj.chico { font-size: clamp(44px, 13vw, 64px); color: var(--sol); margin: 14px 0; }
.sub-reloj { font-weight: 700; display: inline-block; padding: 6px 14px; border-radius: 99px; margin: 0 0 12px; }
.sub-reloj.rapido { background: var(--sol); color: #fff; }
.sub-reloj.lento { background: var(--arena-2); color: var(--tinta); }
.como { font-size: 17px; text-align: left; margin: 14px 0 8px; }
.clave { text-align: left; font-size: 15.5px; color: var(--tinta-2); border-left: 4px solid var(--sol); padding-left: 10px; }
.facil { text-align: left; font-size: 15px; background: var(--arena); border-radius: 10px; padding: 8px 12px; }
.guiada + .boton.peligro { margin-top: 26px; }

/* ---------- Mensajes ---------- */
.msg.alerta { border-left: 6px solid var(--rojo); }
.msg.nota { border-left: 6px solid var(--sol-2); background: var(--papel); }
.msg.ok { border-left: 6px solid var(--verde); }
.alarma { border-top: 8px solid var(--rojo); }
.alarma .titulo { color: var(--rojo); }
.alarma .lista li::marker { color: var(--rojo); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dos p { font-size: 15px; }
.etq { display: inline-block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; margin-bottom: 6px !important; }
.etq.ok { background: #E2F0E6; color: var(--verde); }
.etq.mal { background: #F8DEDB; color: var(--rojo); }

/* ---------- Ejercicios ---------- */
.ej summary { cursor: pointer; font: 800 21px/1.1 var(--display); text-transform: uppercase; display: flex; gap: 12px; align-items: center; list-style: none; }
.ej summary::-webkit-details-marker { display: none; }
.ej summary::after { content: '+'; margin-left: auto; font: 400 26px var(--texto); color: var(--sol); }
.ej[open] summary::after { content: '–'; }
.ej[open] summary { margin-bottom: 12px; }
.ej-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--arena); position: relative; }
.ej-ic::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--sol); }
.ej-ic.sentadilla::after, .ej-ic.puente::after { border-radius: 4px; }
.ej-ic.plancha::after, .ej-ic.plancha_rodillas::after { inset: 14px 6px; border-radius: 3px; }
.ej-ic.caminata::after, .ej-ic.bici::after, .ej-ic.calentamiento::after { background: var(--sol-2); }

.noscript { padding: 20px; text-align: center; }

/* ================= Mobile: táctil, accesibilidad y tamaños de pantalla ================= */
html { scroll-padding-top: 70px; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
a, button, summary, label, input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(240, 99, 30, .6); outline-offset: 2px; border-radius: 6px; }
main:focus-visible { outline: none; }

/* Zonas táctiles de al menos 44 px */
.barra { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.marca { min-height: 44px; }
.barra-alerta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 14px; }
.nav a { min-height: 52px; justify-content: center; }
.nav { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
.link, .volver { min-height: 44px; display: inline-flex; align-items: center; }
.link { display: flex; }
.pie a { display: inline-block; padding: 10px 4px; }
.ses { min-height: 56px; }
.chips .opcion span { min-height: 44px; display: flex; align-items: center; }
.pulso summary, .ej summary { min-height: 44px; }
.pulso summary { display: flex; align-items: center; gap: 6px; }
main { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

.campo input[type=time] { min-height: 50px; }
.dias .opcion span { min-width: 44px; justify-content: center; padding: 10px 8px; }
.instalar { border: 1.5px dashed var(--sol); background: #FFF4EA; }
.version { font-size: 13px; color: var(--tinta-2); }

/* Teléfonos chicos (iPhone SE, Android de 320 px) */
@media (max-width: 359px) {
  body { font-size: 16px; }
  main { padding: 14px 12px 20px; }
  .tarjeta { padding: 14px; }
  .hero { padding: 22px 16px 104px; }
  .hero h1 { font-size: 40px; }
  .destacada h2 { font-size: 40px; }
  .sesiones, .dos, .fila-botones { grid-template-columns: 1fr; }
  .semanas { grid-template-columns: repeat(3, 1fr); }
  .marca span { font-size: 21px; }
  .barra-alerta { padding: 0 10px; font-size: 13px; }
  .fila-stats { flex-direction: column; align-items: flex-start; }
}

/* Teléfono acostado */
@media (orientation: landscape) and (max-height: 480px) {
  .reloj { font-size: 72px; }
  .guiada .titulo { font-size: 30px; }
  .hero { padding-bottom: 96px; }
  .nav a { min-height: 44px; flex-direction: row; gap: 6px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* Tablet y escritorio: columna cómoda y navegación flotante */
@media (min-width: 760px) {
  body { font-size: 18px; padding-bottom: 120px; }
  main { max-width: 700px; padding-top: 28px; }
  .barra { padding-left: max(18px, calc(50% - 350px + 16px)); padding-right: max(18px, calc(50% - 350px + 16px)); }
  .nav {
    left: 50%; right: auto; bottom: 18px; transform: translateX(-50%); width: 460px;
    border-radius: 22px; padding: 6px 10px; box-shadow: 0 18px 40px -18px rgba(31, 27, 58, .7);
  }
  .guiada { max-width: 560px; margin: 0 auto; }
  body[data-vista="guiada"] main > .boton, body[data-vista="guiada"] main > .progreso { max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 1040px) {
  body[data-vista="hoy"] main { max-width: 1000px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 0 18px; align-items: start; }
  body[data-vista="hoy"] main > .saludo, body[data-vista="hoy"] main > .pie,
  body[data-vista="hoy"] main > .instalar, body[data-vista="hoy"] main > .aviso-eval { grid-column: 1 / -1; }
  body[data-vista="hoy"] main > .destacada { grid-row: span 2; }
  body[data-vista="hoy"] .barra { padding-left: 34px; }
  body[data-vista="plan"] main { max-width: 1000px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
  body[data-vista="plan"] main > .titulo, body[data-vista="plan"] main > .bajada { grid-column: 1 / -1; }
}

/* Alto contraste y movimiento reducido */
@media (prefers-contrast: more) {
  :root { --tinta-2: #2B2745; --cerro: #5A3223; }
  .tarjeta, .opcion span, .boton.claro { box-shadow: inset 0 0 0 2px var(--tinta); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .sol { animation: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Ajustes finos de zona táctil (salieron de la auditoría por tamaño de pantalla) */
.pie a { padding: 13px 4px; }
.tarjeta p > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
.check { min-height: 44px; align-items: center; }
input[type=range] { height: 44px; }
