:root {
  --rosa: #D7526F;
  --rosa-osc: #B93E5A;
  --rosa-claro: #FBE4EA;
  --fondo: #FFF7F8;
  --texto: #2A2027;
  --gris: #7A6E75;
  --borde: #EFDDE2;
  --verde: #3E9B6E;
  --blanco: #fff;
  --radio: 18px;
  --sombra: 0 6px 24px rgba(183, 62, 90, .10);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); font-family: Poppins, system-ui, -apple-system, sans-serif; }
body { min-height: 100vh; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--rosa); }
img, video { display: block; max-width: 100%; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding: env(safe-area-inset-top) 0 calc(84px + env(safe-area-inset-bottom)); position: relative; }
.cargando { padding: 40vh 0; text-align: center; color: var(--gris); }
.pantalla { padding: 18px 18px 8px; }
.sin-nav { padding-bottom: env(safe-area-inset-bottom); }

/* Encabezados */
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.top .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rosa-claro); }
.top h1 { font-size: 18px; margin: 0; line-height: 1.2; }
.top p { margin: 0; font-size: 13px; color: var(--gris); }
.volver { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gris); padding: 6px 0; margin-bottom: 6px; }
h2 { font-size: 17px; margin: 22px 0 10px; }
.chico { font-size: 13px; color: var(--gris); }
.banner-prueba { background: #FFF3D6; color: #7A5A00; font-size: 12px; text-align: center; padding: 6px 10px; }

/* Tarjetas */
.tarjeta { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); padding: 16px; margin-bottom: 14px; }
.hoy { background: linear-gradient(135deg, var(--rosa) 0%, #E9839A 100%); color: #fff; position: relative; overflow: hidden; }
.hoy .etq { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.hoy h3 { margin: 4px 0 2px; font-size: 22px; }
.hoy p { margin: 0 0 14px; font-size: 14px; opacity: .95; max-width: 62%; }
.hoy img { position: absolute; right: -6px; bottom: 0; height: 150px; width: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 22px; font-weight: 600; font-size: 15px; }
.btn-blanco { background: #fff; color: var(--rosa-osc); }
.btn-rosa { background: var(--rosa); color: #fff; width: 100%; }
.btn-rosa:active { background: var(--rosa-osc); }
.btn-borde { border: 1.5px solid var(--rosa); color: var(--rosa); width: 100%; background: #fff; }
.btn[disabled] { opacity: .5; }

/* Progreso */
.barra { height: 8px; background: var(--rosa-claro); border-radius: 99px; overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--rosa); border-radius: 99px; transition: width .4s; }
.fila { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--gris); margin-bottom: 8px; }

/* Calendario */
.semana { margin-bottom: 14px; }
.semana h4 { margin: 0 0 8px; font-size: 14px; }
.semana h4 span { color: var(--gris); font-weight: 400; }
.dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.dia { aspect-ratio: 1; border-radius: 12px; background: var(--blanco); border: 1.5px solid var(--borde); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; position: relative; color: var(--texto); }
.dia.hecho { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.dia.actual { border-color: var(--rosa); box-shadow: 0 0 0 3px var(--rosa-claro); }
.dia.bloq { color: #C9BCC1; background: #FBF5F6; }
.dia .suave { position: absolute; bottom: 3px; font-size: 9px; font-weight: 500; }

/* Listas */
.item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.item:last-child { border-bottom: 0; }
.item img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: #eee; flex: none; }
.item b { display: block; font-size: 14px; font-weight: 600; }
.item span { font-size: 12px; color: var(--gris); }
.item .seg { margin-left: auto; font-size: 13px; color: var(--gris); white-space: nowrap; }
.accion { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; }
.accion .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--rosa-claro); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.accion b { display: block; font-size: 15px; }
.accion span { font-size: 13px; color: var(--gris); }
.accion .flecha { margin-left: auto; color: var(--gris); font-size: 20px; }
.check { color: var(--verde); font-weight: 600; font-size: 13px; }
.bloqueado { opacity: .65; }
.candado { font-size: 12px; color: var(--gris); }

/* Navegación inferior */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--borde); display: flex; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); z-index: 5; }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--gris); padding: 4px 0; }
.nav button .i { font-size: 20px; line-height: 1; filter: grayscale(1); opacity: .7; }
.nav button.on { color: var(--rosa); font-weight: 600; }
.nav button.on .i { filter: none; opacity: 1; }

/* Login */
.login { padding: 28px 22px; text-align: center; }
.login img.helena { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 10px auto 16px; border: 4px solid #fff; box-shadow: var(--sombra); }
.login h1 { font-size: 24px; margin: 0 0 6px; }
.login p { color: var(--gris); font-size: 14px; margin: 0 0 22px; }
.campo { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--borde); font: inherit; font-size: 16px; margin-bottom: 12px; background: #fff; }
.campo:focus { outline: none; border-color: var(--rosa); }
.msj { font-size: 14px; padding: 12px 14px; border-radius: 12px; margin-top: 12px; text-align: left; }
.msj.ok { background: #E8F6EE; color: #22694A; }
.msj.error { background: #FDECEC; color: #A23434; }

/* Reproductor */
.player { position: fixed; inset: 0; background: #fff; z-index: 20; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; }
.player .barra-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 8px; }
.player .barra-top .x { font-size: 22px; padding: 4px 8px; color: var(--gris); }
.player .barra-top .prog { flex: 1; display: flex; gap: 3px; }
.player .barra-top .prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--rosa-claro); }
.player .barra-top .prog i.ok { background: var(--rosa); }
.player .video { position: relative; flex: 1; min-height: 0; background: #EDEDED; }
.player .video video { width: 100%; height: 100%; object-fit: contain; background: #EDEDED; }
.player .fase { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); border-radius: 99px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--rosa-osc); }
.player .fase.desc { color: var(--verde); }
.player .info { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
.player .nombre { display: flex; align-items: center; gap: 14px; }
.player .nombre h3 { margin: 0; font-size: 19px; line-height: 1.2; }
.player .nombre p { margin: 2px 0 0; font-size: 13px; color: var(--gris); }
.anillo { width: 74px; height: 74px; flex: none; position: relative; margin-left: auto; }
.anillo svg { transform: rotate(-90deg); }
.anillo .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.tips { margin: 10px 0 12px; padding-left: 18px; font-size: 13px; color: var(--texto); }
.tips li { margin-bottom: 3px; }
.controles { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.controles button { width: 52px; height: 52px; border-radius: 50%; background: var(--rosa-claro); font-size: 20px; color: var(--rosa-osc); }
.controles .play { width: 68px; height: 68px; background: var(--rosa); color: #fff; font-size: 26px; }
.controles .sonido { background: none; font-size: 22px; }

/* Final */
.final { text-align: center; padding: 34px 22px; }
.final .grande { font-size: 64px; }
.final h1 { margin: 8px 0 6px; font-size: 24px; }
.final p { color: var(--gris); margin: 0 0 20px; }

/* Automasaje */
.paso { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--borde); }
.paso:last-child { border: 0; }
.paso .n { width: 30px; height: 30px; border-radius: 50%; background: var(--rosa); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; font-size: 14px; }
.paso b { display: block; font-size: 15px; }
.paso p { margin: 3px 0 0; font-size: 14px; color: var(--texto); line-height: 1.45; }
.paso .min { font-size: 12px; color: var(--gris); }
.aviso { background: #FFF3D6; color: #6B5000; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.45; }
