/* Velatora · páginas de producto: app de la familia y panel de la residencia.
   Se carga después de velatora.css. Las interfaces se diseñan a tamaño fijo y se escalan al marco (js/producto.js). */

/* ——— Héroe de producto ——— */
.heroe-producto .heroe { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.heroe-producto .titular-heroe { font-size: clamp(3rem, 7vw, 7rem); }
.heroe-producto .heroe-dispositivo { justify-self: center; position: relative; z-index: 1; }
.heroe-ancho .heroe { grid-template-columns: minmax(0, 1fr); text-align: left; align-content: start; }
.heroe-ancho .heroe-dispositivo { width: min(100%, 72rem); margin-top: clamp(1rem, 3vw, 2.5rem); }
.distintivo-demo {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem; padding: .375rem .75rem .375rem .625rem;
  border-radius: 999px; font-size: .8125rem; font-weight: 500; letter-spacing: .01em;
  color: var(--v-ivory); background: rgba(250, 247, 242, .08); border: 1px solid rgba(250, 247, 242, .18);
}
.distintivo-demo::before { content: ""; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--v-clay); }
.claro .distintivo-demo { color: var(--v-forest); background: var(--v-surface); border-color: var(--v-divider); }

/* Velo propio: estas portadas llevan más texto que la de inicio y siempre tienen que leerse. */
.heroe-producto .heroe-fondo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(15, 42, 36, .78), rgba(15, 42, 36, .35) 55%, rgba(15, 42, 36, .1)); }
@media (max-width: 900px) { .heroe-producto .heroe-fondo::after { background: linear-gradient(rgba(15, 42, 36, .9), rgba(15, 42, 36, .82) 55%, rgba(15, 42, 36, .45)); } }

/* ——— Dispositivos ——— */
.dispositivo { position: relative; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--v-ease); }
.pantalla { position: relative; overflow: hidden; background: var(--v-ivory); isolation: isolate; }
.ui {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  transform: scale(var(--escala, 1)) translate(var(--cx, 0px), var(--cy, 0px)) translate(calc(var(--w) / 2), calc(var(--h) / 2)) scale(var(--z, 1)) translate(calc(var(--w) / -2), calc(var(--h) / -2));
  transition: transform 1s var(--v-ease);
  font-family: var(--v-font-ui); color: var(--v-charcoal); -webkit-font-smoothing: antialiased;
}
:where(.ui) * { box-sizing: border-box; }
:where(.ui) button { font: inherit; color: inherit; cursor: pointer; }
.en-foco { outline: 4px solid var(--v-clay); outline-offset: 6px; animation: foco 2.6s var(--v-ease) infinite; position: relative; z-index: 2; }
@keyframes foco { 0%, 100% { outline-color: rgba(217, 177, 95, 1); } 50% { outline-color: rgba(217, 177, 95, .45); } }

.telefono { width: clamp(15rem, 22vw, 20rem); aspect-ratio: 406 / 860; padding: .5rem; border-radius: 3rem; background: #0B1714; box-shadow: 0 0 0 1px rgba(250, 247, 242, .12) inset, 0 3rem 5rem -2rem rgba(0, 0, 0, .55), 0 1rem 2rem -1rem rgba(0, 0, 0, .4); }
.telefono .pantalla { width: 100%; height: 100%; border-radius: 2.55rem; aspect-ratio: auto !important; }
.telefono::after { content: ""; position: absolute; top: 1.05rem; left: 50%; width: 28%; height: 1.45rem; transform: translateX(-50%); border-radius: 999px; background: #0B1714; z-index: 3; pointer-events: none; }

.navegador { width: 100%; border-radius: 1rem; background: #13241F; padding: 0 .375rem .375rem; box-shadow: 0 0 0 1px rgba(250, 247, 242, .1) inset, 0 3rem 6rem -2rem rgba(0, 0, 0, .55); }
.navegador-barra { display: flex; align-items: center; gap: .75rem; height: 2.25rem; padding: 0 .75rem; color: var(--v-ivory-soft); font-size: .75rem; }
.navegador-barra i { width: .625rem; height: .625rem; border-radius: 50%; background: rgba(250, 247, 242, .22); }
.navegador-barra span { margin: 0 auto; padding: .2rem .875rem; border-radius: 999px; background: rgba(250, 247, 242, .08); }
.navegador .pantalla { aspect-ratio: 1440 / 880; border-radius: .625rem; }

/* ——— Recorrido guiado ——— */
.recorrido-producto { position: relative; background: var(--v-ivory); }
.recorrido-in { max-width: var(--v-max-width); margin: 0 auto; padding: 0 var(--v-gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); }
.recorrido-panel .recorrido-in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.recorrido-escenario { position: sticky; top: calc(var(--cabecera) + 1.5rem); height: calc(100svh - var(--cabecera) - 3rem); display: flex; align-items: center; justify-content: center; order: 2; }
.recorrido-escenario .telefono { width: auto; height: min(100%, 52rem); max-width: 100%; }
.recorrido-pasos { order: 1; padding: 10vh 0 30vh; }
.recorrido-cab { padding: clamp(5rem, 9vw, 8rem) 0 3rem; max-width: 34rem; }
.paso { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; }
/* Los pasos que no están activos se apagan con un gris que sigue cumpliendo el contraste (5,7:1), no con opacidad. */
.paso:not(.activo) h3, .paso:not(.activo) p, .paso:not(.activo) .paso-num { color: var(--v-muted); transition: color var(--v-duration-panel) var(--v-ease); }
.paso:not(.activo) .paso-num::before { color: var(--v-divider); }
.paso-num { display: inline-flex; align-items: center; gap: .625rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--v-clay-ink); margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.paso-num::before { content: ""; width: 2rem; height: 4px; color: var(--v-clay); background: var(--v-trama); }
.paso h3 { font-family: var(--v-font-editorial); font-weight: 400; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; color: var(--v-forest); margin: 0 0 1rem; }
.paso p { color: #3E4943; margin: 0 0 1rem; }
.paso .prueba { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--v-forest); }
.paso .prueba::before { content: "↳"; color: var(--v-clay-ink); }

/* ——— Rejilla de detalles ——— */
.detalles { background: var(--v-forest); color: var(--v-ivory); padding: var(--v-section-space) 0; position: relative; }
.detalles-in { max-width: var(--v-max-width); margin: 0 auto; padding: 0 var(--v-gutter); }
.detalles .titular-seccion { color: var(--v-ivory); max-width: 18ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.detalles-rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(250, 247, 242, .12); border: 1px solid rgba(250, 247, 242, .12); border-radius: var(--v-radius-panel); overflow: hidden; }
.detalle { background: var(--v-forest); padding: clamp(1.5rem, 3vw, 2.25rem); min-height: 15rem; display: flex; flex-direction: column; }
.detalle-icono { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; color: var(--v-forest); background: var(--v-clay); margin-bottom: auto; font-weight: 700; font-size: .875rem; }
.detalle h3 { font-size: 1.1875rem; font-weight: 600; margin: 2rem 0 .5rem; }
.detalle p { margin: 0; color: var(--v-ivory-soft); font-size: 1rem; }
.detalles::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 80px; pointer-events: none; z-index: 1; background: var(--v-forest); -webkit-mask: url("../img/trama-borde.png") 0 0 / 128px 80px repeat-x; mask: url("../img/trama-borde.png") 0 0 / 128px 80px repeat-x; }

/* ——— Cierre de la página ——— */
.siguiente { padding: calc(var(--v-section-space) + 40px) var(--v-gutter) var(--v-section-space); max-width: var(--v-max-width); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.siguiente-tarjeta { display: flex; flex-direction: column; justify-content: space-between; min-height: 16rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--v-radius-panel); background: var(--v-surface); text-decoration: none; color: var(--v-forest); transition: transform var(--v-duration-panel) var(--v-ease), background-color var(--v-duration-panel) var(--v-ease); }
.siguiente-tarjeta:hover { transform: translateY(-4px); background: var(--v-sand); }
.siguiente-tarjeta.oscura { background: var(--v-forest); color: var(--v-ivory); }
.siguiente-tarjeta.oscura:hover { background: var(--v-forest-2); }
.siguiente-tarjeta small { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.siguiente-tarjeta strong { font-family: var(--v-font-editorial); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.05; letter-spacing: -.02em; }
.siguiente-tarjeta span { font-weight: 600; }

/* ════════ App de la familia (diseño a 390 × 844) ════════ */
:where(.ui) p { margin: 0; }
.ui .h3, .ui .h4, .ui .h5, .ui .h6 { font-weight: 600; line-height: 1.2; }
.app { width: 100%; height: 100%; display: flex; flex-direction: column; background: #FAF7F2; font-size: 15px; line-height: 1.45; }
.app-estado { height: 50px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 30px 6px 34px; font-size: 14px; font-weight: 600; }
.app-estado i { display: inline-block; width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.app-estado i::after { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; background: currentColor; border-radius: 1px; }
.app-cuerpo { flex: 1; overflow: auto; padding: 10px 20px 24px; scrollbar-width: none; }
.app-cuerpo::-webkit-scrollbar { display: none; }
.app-cab { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 18px; }
.app-fecha { font-size: 13px; color: #59655E; font-weight: 500; }
.app-titulo { font-family: var(--v-font-editorial); font-size: 34px; line-height: 1.05; letter-spacing: -.02em; color: #0F2A24; margin: 2px 0 0; }
.app-avatar { width: 44px; height: 44px; border-radius: 50%; background: #E8DCCF; display: grid; place-items: center; font-family: var(--v-font-editorial); font-size: 19px; color: #0F2A24; position: relative; }
.app-avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #D9B15F; box-shadow: 0 0 0 2.5px #FAF7F2; }
.app-avatar[data-estado="sin-datos"]::after { background: #A9B0AC; }
.app-frase { background: #fff; border-radius: 22px; padding: 22px 20px 18px; box-shadow: 0 1px 0 rgba(15, 42, 36, .04), 0 12px 30px -18px rgba(15, 42, 36, .25); }
.app-frase p.app-frase-et { font-family: var(--v-font-ui); font-size: 12px; line-height: 1.3; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #76571A; margin: 0 0 10px; }
.app-frase p { font-family: var(--v-font-editorial); font-size: 23px; line-height: 1.25; color: #0F2A24; margin: 0; }
.app-hora { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #ECE5DA; font-size: 13px; color: #59655E; }
.app-hora::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0F2A24; }
.app-frase[data-estado="sin-datos"] { background: #F1ECE3; box-shadow: none; border: 1.5px dashed #C9BFAF; }
.app-frase[data-estado="sin-datos"] .app-hora::before { background: #934C35; }
.app-frase[data-estado="pendiente"] .app-hora::before { background: #D9B15F; }
.app-escenarios { display: flex; gap: 6px; margin: 14px 0 0; }
.app-escenarios button { flex: 1; border: 1px solid #E2D9CB; background: transparent; border-radius: 999px; padding: 7px 4px; font-size: 11.5px; font-weight: 600; color: #3E4943; }
.app-escenarios button[aria-pressed="true"] { background: #0F2A24; color: #FAF7F2; border-color: #0F2A24; }
.app-seccion { margin: 26px 0 10px; display: flex; align-items: baseline; justify-content: space-between; }
.app-seccion .h4 { margin: 0; font-size: 17px; font-weight: 600; color: #0F2A24; }
.app-seccion span { font-size: 12.5px; color: #59655E; }
.app-linea { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.app-linea::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1.5px; background: #E2D9CB; }
.app-linea li { position: relative; padding: 0 0 16px; }
.app-linea li::before { content: ""; position: absolute; left: -18px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #FAF7F2; border: 2px solid #0F2A24; }
.app-linea li.nota::before { border-color: #D9B15F; background: #D9B15F; }
.app-linea time { display: block; font-size: 12px; font-weight: 600; color: #59655E; font-variant-numeric: tabular-nums; }
.app-linea b { display: block; font-size: 15px; font-weight: 600; color: #0F2A24; }
.app-linea small { display: block; font-size: 13px; color: #59655E; }
.app-tarjetas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-mini { background: #fff; border-radius: 16px; padding: 14px; }
.app-mini small { display: block; font-size: 12px; color: #59655E; }
.app-mini b { display: block; font-size: 19px; color: #0F2A24; margin: 4px 0 2px; }
.app-mini em { font-style: normal; font-size: 11.5px; color: #59655E; }
.app-barra { height: 5px; border-radius: 9px; background: #ECE5DA; margin-top: 8px; overflow: hidden; }
.app-barra i { display: block; height: 100%; background: #0F2A24; border-radius: inherit; }
.app-tabs { height: 84px; flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 10px 26px; background: rgba(250, 247, 242, .94); border-top: 1px solid #ECE5DA; }
.app-tabs button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #8A918D; }
.app-tabs button svg { width: 24px; height: 24px; }
.app-tabs button[aria-current="page"] { color: #0F2A24; }
.app-dias { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.app-dias li { background: #fff; border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.app-dias .dia { text-align: center; font-size: 11px; font-weight: 600; color: #59655E; text-transform: uppercase; }
.app-dias .dia b { display: block; font-family: var(--v-font-editorial); font-size: 22px; font-weight: 400; color: #0F2A24; text-transform: none; }
.app-dias p { margin: 0; font-size: 14px; color: #0F2A24; }
.app-dias small { font-size: 12px; color: #59655E; }
.app-dias li.vacio { background: #F1ECE3; border: 1.5px dashed #C9BFAF; }
.app-dias li.vacio small { color: #934C35; }
.app-equipo { background: #0F2A24; color: #FAF7F2; border-radius: 22px; padding: 20px; }
.app-equipo small { color: #C9D3CD; font-size: 12.5px; }
.app-equipo .h5 { font-family: var(--v-font-editorial); font-weight: 400; font-size: 24px; margin: 4px 0 14px; }
.app-personas { display: flex; gap: -8px; margin-bottom: 14px; }
.app-personas span { width: 36px; height: 36px; border-radius: 50%; background: #E8DCCF; color: #0F2A24; display: grid; place-items: center; font-size: 13px; font-weight: 700; box-shadow: 0 0 0 2.5px #0F2A24; margin-right: -6px; }
.app-boton { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 14px; border: 0; font-weight: 700; font-size: 15px; background: #FAF7F2; color: #0F2A24; }
.app-boton.claro { background: #fff; color: #0F2A24; border: 1px solid #E2D9CB; }
.app-mensajes { display: grid; gap: 10px; }
.app-msg { background: #fff; border-radius: 16px 16px 16px 4px; padding: 12px 14px; max-width: 88%; }
.app-msg.mio { justify-self: end; background: #E8DCCF; border-radius: 16px 16px 4px 16px; }
.app-msg small { display: block; font-size: 11.5px; color: #59655E; margin-bottom: 3px; font-weight: 600; }
.app-msg p { margin: 0; font-size: 14px; }
.app-ajustes { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 18px; }
.app-ajustes li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #F0EAE0; }
.app-ajustes li:last-child { border-bottom: 0; }
.app-ajustes b { font-size: 14.5px; color: #0F2A24; display: block; }
.app-ajustes small { font-size: 12.5px; color: #59655E; }
.interruptor { width: 46px; height: 28px; border-radius: 999px; border: 0; background: #D7D0C4; position: relative; flex: none; transition: background-color .25s; }
.interruptor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--v-ease); }
.interruptor[aria-checked="true"] { background: #0F2A24; }
.interruptor[aria-checked="true"]::after { transform: translateX(18px); }
.app-quien { display: flex; gap: 10px; align-items: center; background: #F1ECE3; border-radius: 16px; padding: 14px; font-size: 13px; color: #3E4943; margin-bottom: 14px; }
.app-quien b { color: #0F2A24; }

/* ════════ Panel de la residencia (diseño a 1440 × 880) ════════ */
.panel { width: 100%; height: 100%; display: grid; grid-template-columns: 236px 1fr; background: #F4F0E8; font-size: 14px; line-height: 1.45; }
.panel-lado { background: #0F2A24; color: #FAF7F2; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.panel-marca { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; color: #FAF7F2; }
.panel-marca svg:first-child { width: 30px; aspect-ratio: 1688 / 1288; }
.panel-marca svg:last-child { width: 92px; aspect-ratio: 3272 / 424; }
.panel-lado button { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: #C9D3CD; font-weight: 500; font-size: 14.5px; text-align: left; }
.panel-lado button svg { width: 19px; height: 19px; flex: none; }
.panel-lado button[aria-current="page"] { background: rgba(250, 247, 242, .1); color: #FAF7F2; }
.panel-lado button .cuenta { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #D9B15F; color: #0F2A24; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.panel-lado .pie-lado { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid rgba(250, 247, 242, .12); font-size: 12.5px; color: #C9D3CD; }
.panel-lado .pie-lado b { display: block; color: #FAF7F2; font-size: 14px; }
.panel-main { display: flex; flex-direction: column; min-width: 0; }
.panel-arriba { height: 68px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid #E5DDD0; background: #FAF7F2; }
.panel-arriba .h4 { margin: 0; font-size: 18px; font-weight: 600; color: #0F2A24; }
.panel-arriba .ruta { color: #59655E; font-size: 13px; }
.panel-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #E2D9CB; background: #fff; font-size: 13px; font-weight: 600; color: #0F2A24; }
.panel-chip.oscuro { background: #0F2A24; color: #FAF7F2; border-color: #0F2A24; }
.panel-arriba .reloj { margin-left: auto; display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; font-weight: 600; color: #0F2A24; }
.panel-arriba .reloj::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #D9B15F; box-shadow: 0 0 0 4px rgba(217, 177, 95, .25); }
.panel-contenido { flex: 1; overflow: auto; padding: 24px 28px; display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-content: start; scrollbar-width: thin; }
.panel-contenido.una { grid-template-columns: 1fr; }
.panel-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: #fff; border-radius: 16px; padding: 16px 18px; border: 1px solid #ECE5DA; }
.kpi small { display: block; font-size: 12.5px; color: #59655E; font-weight: 500; }
.kpi b { display: block; font-family: var(--v-font-editorial); font-weight: 400; font-size: 34px; line-height: 1.1; color: #0F2A24; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12px; color: #59655E; }
.kpi.aviso b { color: #934C35; }
.tarjeta-panel { background: #fff; border-radius: 18px; border: 1px solid #ECE5DA; overflow: hidden; }
.tarjeta-panel header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #F0EAE0; }
.tarjeta-panel header .h5 { margin: 0; font-size: 15px; font-weight: 600; color: #0F2A24; }
.tarjeta-panel header span { font-size: 12.5px; color: #59655E; }
.tabla { width: 100%; border-collapse: collapse; }
.tabla th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #59655E; padding: 10px 18px; background: #FAF7F2; }
.tabla td { padding: 11px 18px; border-top: 1px solid #F3EEE6; color: #0F2A24; }
.tabla tr { cursor: pointer; transition: background-color .2s; }
.tabla tbody tr:hover { background: #FBF8F3; }
.tabla tr.seleccionada { background: #F6EFDF; }
.persona { display: flex; align-items: center; gap: 10px; }
.persona i { width: 32px; height: 32px; border-radius: 50%; background: #E8DCCF; font-style: normal; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #0F2A24; flex: none; }
.persona b { display: block; font-weight: 600; }
.persona small { font-size: 12px; color: #59655E; }
.hace { font-variant-numeric: tabular-nums; color: #3E4943; }
.hace.viejo { color: #934C35; font-weight: 600; }
.estado { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #EDF1EE; color: #0F2A24; }
.estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.estado.pendiente { background: #F6EBD3; color: #76571A; }
.estado.sin-datos { background: #F4E6E0; color: #934C35; }
.estado.va { background: #0F2A24; color: #FAF7F2; }
.ahora { display: flex; flex-direction: column; gap: 14px; }
.aviso-tarjeta { background: #fff; border-radius: 18px; border: 1px solid #ECE5DA; padding: 16px 18px; }
.aviso-tarjeta.abierto { border-color: #D9B15F; box-shadow: 0 0 0 3px rgba(217, 177, 95, .2); }
.aviso-tarjeta .et { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #76571A; }
.aviso-tarjeta .h6 { margin: 6px 0 4px; font-size: 16px; color: #0F2A24; }
.aviso-tarjeta p { margin: 0 0 12px; color: #3E4943; font-size: 13.5px; }
.aviso-tarjeta .acciones-aviso { display: flex; gap: 8px; }
.btn-panel { height: 38px; padding: 0 16px; border-radius: 10px; border: 0; background: #0F2A24; color: #FAF7F2; font-weight: 600; font-size: 13.5px; }
.btn-panel.sec { background: #fff; color: #0F2A24; border: 1px solid #E2D9CB; }
.btn-panel.oro { background: #D9B15F; color: #0F2A24; }
.historia { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed #E2D9CB; font-size: 12.5px; color: #59655E; display: grid; gap: 4px; }
.historia b { color: #0F2A24; font-weight: 600; }
.cerrados li { padding: 12px 18px; border-top: 1px solid #F3EEE6; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #3E4943; }
.cerrados li:first-child { border-top: 0; }
.panel-ficha { position: absolute; top: 68px; right: 0; bottom: 0; width: 420px; background: #FAF7F2; border-left: 1px solid #E5DDD0; box-shadow: -30px 0 60px -30px rgba(15, 42, 36, .3); padding: 24px; overflow: auto; transform: translateX(105%); transition: transform .5s var(--v-ease); }
.panel-ficha.abierta { transform: none; }
.panel-ficha .h5 { font-family: var(--v-font-editorial); font-weight: 400; font-size: 30px; margin: 12px 0 2px; color: #0F2A24; }
.panel-ficha .cerrar { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #E2D9CB; background: #fff; font-size: 18px; }
.ficha-datos-panel { display: grid; gap: 0; background: #fff; border-radius: 14px; border: 1px solid #ECE5DA; margin: 16px 0; }
.ficha-datos-panel div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid #F3EEE6; font-size: 13.5px; }
.ficha-datos-panel div:first-child { border-top: 0; }
.ficha-datos-panel span { color: #59655E; }
.ficha-datos-panel b { color: #0F2A24; text-align: right; }
.nota-orientativa { font-size: 12px; color: #59655E; margin: 0; }
.pulseras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pulsera-item { background: #fff; border-radius: 16px; border: 1px solid #ECE5DA; padding: 16px; }
.pulsera-item small { font-size: 12px; color: #59655E; display: block; }
.pulsera-item b { font-size: 15px; color: #0F2A24; display: block; margin: 2px 0 10px; }
.bateria { height: 6px; border-radius: 9px; background: #ECE5DA; overflow: hidden; }
.bateria i { display: block; height: 100%; background: #0F2A24; }
.bateria.baja i { background: #D9B15F; }
.relevo-nota { background: #fff; border-radius: 18px; border: 1px solid #ECE5DA; padding: 20px 22px; }
.relevo-nota small { color: #59655E; font-size: 12.5px; }
.relevo-nota p { font-family: var(--v-font-editorial); font-size: 21px; line-height: 1.35; color: #0F2A24; margin: 8px 0 0; }
.relevo-escribir { display: grid; gap: 10px; }
.relevo-escribir textarea { width: 100%; min-height: 120px; border-radius: 14px; border: 1px solid #D8CEC1; background: #fff; padding: 14px; font: inherit; resize: none; }
.grupo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.centro { background: #fff; border-radius: 18px; border: 1px solid #ECE5DA; padding: 20px; position: relative; overflow: hidden; }
.centro::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #0F2A24; }
.centro.pendiente::before { background: #D9B15F; }
.centro .h6 { margin: 0; font-size: 18px; color: #0F2A24; }
.centro small { color: #59655E; }
.centro-cifras { display: flex; gap: 22px; margin-top: 14px; }
.centro-cifras div b { display: block; font-family: var(--v-font-editorial); font-weight: 400; font-size: 28px; color: #0F2A24; }
.centro-cifras div span { font-size: 12px; color: #59655E; }
.modal-cierre { position: absolute; inset: 0; background: rgba(15, 42, 36, .45); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal-cierre.abierto { opacity: 1; pointer-events: auto; }
.modal-cierre > div { width: 460px; background: #FAF7F2; border-radius: 22px; padding: 26px; }
.modal-cierre .h5 { font-family: var(--v-font-editorial); font-weight: 400; font-size: 26px; margin: 0 0 6px; color: #0F2A24; }
.opciones { display: grid; gap: 8px; margin: 16px 0; }
.opciones button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid #E2D9CB; background: #fff; font-weight: 500; }
.opciones button[aria-pressed="true"] { border-color: #0F2A24; box-shadow: inset 0 0 0 1px #0F2A24; background: #F6F2EA; }

/* ——— Móvil del equipo (diseño a 390 × 844) ——— */
.aux { background: #0F2A24; color: #FAF7F2; }
.aux .app-cuerpo { padding-top: 6px; }
.aux-turno { font-size: 13px; color: #C9D3CD; }
.aux .h4 { font-family: var(--v-font-editorial); font-weight: 400; font-size: 32px; line-height: 1.08; margin: 4px 0 18px; }
.aux-tarjeta { background: #FAF7F2; color: #0F2A24; border-radius: 22px; padding: 20px; }
.aux-tarjeta .et { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #76571A; }
.aux-tarjeta .h5 { font-size: 21px; margin: 8px 0 4px; }
.aux-tarjeta p { margin: 0 0 16px; color: #3E4943; font-size: 14px; }
.deslizar { position: relative; height: 60px; border-radius: 999px; background: #0F2A24; color: #FAF7F2; display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; touch-action: pan-y; user-select: none; }
.deslizar .tirador { position: absolute; left: 5px; top: 5px; width: 50px; height: 50px; border-radius: 50%; background: #D9B15F; color: #0F2A24; display: grid; place-items: center; font-size: 20px; cursor: grab; transition: transform .3s var(--v-ease); }
.aux-lista { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.aux-lista li { background: rgba(250, 247, 242, .07); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; font-size: 14px; }
.aux-lista li span { color: #C9D3CD; font-size: 12.5px; }
.sello { margin-top: 16px; border: 2px dashed #D9B15F; border-radius: 16px; padding: 16px; color: #FAF7F2; text-align: center; }
.sello b { display: block; font-family: var(--v-font-editorial); font-weight: 400; font-size: 26px; color: #D9B15F; }

/* ——— Adaptación ——— */
@media (max-width: 900px) {
  .heroe-producto .heroe { grid-template-columns: minmax(0, 1fr); }
  .heroe-producto .heroe-dispositivo { margin-top: 1.5rem; }
  .recorrido-in, .recorrido-panel .recorrido-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .recorrido-escenario { order: 1; height: 56svh; top: var(--cabecera); background: var(--v-ivory); z-index: 2; padding: .75rem 0; }
  .recorrido-escenario .navegador { width: 100%; }
  .recorrido-pasos { order: 2; padding: 0 0 20vh; }
  .recorrido-cab { padding: 3rem 0 1rem; }
  .paso { min-height: 60vh; justify-content: flex-start; padding-top: 2rem; }
  .detalles-rejilla { grid-template-columns: minmax(0, 1fr); }
  .detalle { min-height: 0; }
  .siguiente { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ui, .dispositivo, .panel-ficha { transition: none; }
  .en-foco { animation: none; }
}

/* ——— Panel: héroe ancho, inclinado como un objeto ——— */
.heroe-ancho .heroe { padding-bottom: clamp(3rem, 6vw, 5rem); padding-top: calc(var(--cabecera) + clamp(1.5rem, 3vw, 2.5rem)); }
.heroe-ancho .titular-heroe { font-size: clamp(2.75rem, 5.6vw, 5.75rem); }
.heroe-ancho .heroe-apoyo { margin: 1.25rem 0 1.75rem; }
.heroe-ancho .heroe-texto-ancho { max-width: 60rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 3rem; align-items: end; }
.heroe-ancho .heroe-texto-ancho > .distintivo-demo, .heroe-ancho .heroe-texto-ancho > .antetitulo, .heroe-ancho .heroe-texto-ancho > .titular-heroe { grid-column: 1; }
.heroe-ancho .heroe-texto-ancho > .heroe-apoyo, .heroe-ancho .heroe-texto-ancho > .acciones { grid-column: 2; }
.heroe-ancho .heroe-texto-ancho > .heroe-apoyo { grid-row: 2 / 4; align-self: start; margin-top: 0; }
@media (max-width: 900px) { .heroe-ancho .heroe-texto-ancho { display: block; } }
.heroe-texto-ancho { max-width: 46rem; }
.heroe-ancho .navegador { --rx: 9deg; transform-origin: 50% 0; }
.heroe-ancho .heroe-bajar { display: none; }

/* ——— En el bolsillo del equipo ——— */
.bolsillo { background: var(--v-forest); color: var(--v-ivory); padding: var(--v-section-space) 0 calc(var(--v-section-space) * .6); position: relative; }
.bolsillo::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 80px; pointer-events: none; background: var(--v-forest); transform: scaleY(-1); -webkit-mask: url("../img/trama-borde.png") 0 0 / 128px 80px repeat-x; mask: url("../img/trama-borde.png") 0 0 / 128px 80px repeat-x; }
.bolsillo-in { max-width: var(--v-max-width); margin: 0 auto; padding: 0 var(--v-gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.bolsillo .titular-seccion { color: var(--v-ivory); max-width: 16ch; margin-bottom: 1.5rem; }
.bolsillo-in > div > p { color: var(--v-ivory-soft); max-width: 32rem; }
.bolsillo .telefono { width: clamp(15rem, 24vw, 21rem); }
.prueba-claro { font-weight: 600; color: var(--v-ivory) !important; }
.prueba-claro::before { content: "↳ "; color: var(--v-clay); }
@media (max-width: 900px) {
  .bolsillo-in { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .bolsillo-in > div:first-child { justify-self: stretch; }
  .heroe-ancho .navegador { --rx: 0deg; }
}

/* Distintivo y velo del héroe ancho */
.heroe-ancho .distintivo-demo { justify-self: start; }
.heroe-ancho .heroe-fondo::after { background: linear-gradient(rgba(15, 42, 36, .86), rgba(15, 42, 36, .6) 55%, rgba(15, 42, 36, .3)); }

/* ——— Panel compacto, para verlo en el móvil (diseño a 760 × 1000) ——— */
.ui.compacto .panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); font-size: 16px; }
.ui.compacto .panel-lado { flex-direction: row; padding: 10px 12px; gap: 4px; overflow: hidden; }
.ui.compacto .panel-marca, .ui.compacto .pie-lado { display: none; }
.ui.compacto .panel-lado button { height: 46px; font-size: 16px; padding: 0 12px; gap: 8px; }
.ui.compacto .panel-arriba { height: 74px; padding: 0 20px; }
.ui.compacto .panel-arriba .h4 { font-size: 20px; }
.ui.compacto .panel-chip:not(.oscuro) { display: none; }
.ui.compacto .panel-contenido { grid-template-columns: minmax(0, 1fr); padding: 18px 20px; gap: 16px; }
.ui.compacto .panel-kpis { grid-template-columns: repeat(2, 1fr); }
.ui.compacto .tabla th:nth-child(3), .ui.compacto .tabla td:nth-child(3) { display: none; }
.ui.compacto .tabla td, .ui.compacto .tabla th { padding: 12px 16px; }
.ui.compacto .pulseras { grid-template-columns: repeat(2, 1fr); }
.ui.compacto .grupo { grid-template-columns: minmax(0, 1fr); }
.ui.compacto .panel-ficha { width: 100%; top: 74px; }
.ui.compacto .aviso-tarjeta .h6 { font-size: 18px; }
.ui.compacto .aviso-tarjeta p, .ui.compacto .cerrados li { font-size: 15px; }
