/* AgendaLex · estilos — dirección "Póster plano y fuerte"
   Gloock (títulos) + Schibsted Grotesk (textos). Rojo sello, tinta y papel, planos. */

:root {
  --rojo: #B8302A;
  --rojo-2: #A02822;
  --tinta: #1A1815;
  --tinta-2: #4A433B;
  --papel: #F2EDE4;
  --piedra: #E3DCD0;
  --blanco: #FFFFFF;
  --verde: #4F7A55;
  --ambar: #E3A93B;
  --rosa: #F6DEDA;
  --display: 'Gloock', 'Didot', Georgia, serif;
  --texto: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --margen: 20px;
  --max: 1360px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 900px) { :root { --margen: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--texto); font-size: 18px; line-height: 1.5; color: var(--tinta); background: var(--papel); overflow-x: clip; }
main { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1; letter-spacing: -.02em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--margen); }

/* ---------- Botones: planos, esquinas rectas ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 26px; border: 0; border-radius: 0; font: 700 17px/1.1 var(--texto); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background-color .18s; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }
.btn--tinta { background: var(--tinta); color: var(--papel); }
.btn--tinta:hover { background: #000; }
.btn--rojo { background: var(--rojo); color: var(--papel); }
.btn--rojo:hover { background: var(--rojo-2); }
.btn--grande { padding: 22px 30px; font-size: 19px; }
.btn--chico { padding: 12px 18px; font-size: 15px; white-space: nowrap; }
.ico-wa { width: 18px; height: 18px; flex: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__svg { width: 40px; height: 40px; flex: none; }
.logo__palabra { height: 26px; width: auto; }

/* ---------- Barra ---------- */
.barra { position: sticky; top: 0; z-index: 50; background: var(--rojo); color: var(--papel); --punto: var(--tinta); }
.barra__fila { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.barra .logo { margin-right: auto; }
.accesos { display: none; }
.accesos a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 12px; transition: background-color .15s; }
.accesos a:hover { background: var(--rojo-2); }
.accesos a[aria-current="true"] { background: var(--tinta); }
.accesos-btn { width: 46px; height: 46px; border: 0; background: var(--tinta); display: grid; place-content: center; gap: 5px; cursor: pointer; }
.accesos-btn span { display: block; width: 20px; height: 2.5px; background: var(--papel); }
.solo-pc { display: none; }
@media (max-width: 1099px) {
  .accesos.abierto { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--tinta); padding: 8px var(--margen) 20px; }
  .accesos.abierto a { font-size: 20px; padding: 14px 4px; }
}
@media (max-width: 420px) { .logo__palabra { height: 22px; } .barra__fila { gap: 10px; } .barra .btn--chico { padding: 12px 14px; } }
@media (min-width: 700px) { .solo-pc { display: inline; } }
@media (min-width: 1100px) {
  .accesos { display: flex; gap: 2px; }
  .accesos-btn { display: none; }
}

/* ---------- Portada: póster rojo ---------- */
.portada { background: var(--rojo); color: var(--papel); padding: 28px 0 96px; }
.portada__titulo { font-size: clamp(42px, 11.4vw, 158px); line-height: 1.04; letter-spacing: -.03em; }
.portada__titulo .linea { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.portada__titulo .linea > span { display: inline-block; }
.portada__grid { display: grid; gap: 48px; margin-top: 40px; }
.portada__grid > * { min-width: 0; }
.portada__sub { font-size: 19px; line-height: 1.45; max-width: 30ch; }
@media (min-width: 700px) { .portada__sub { font-size: 22px; line-height: 1.4; max-width: 28ch; } }
.portada__texto .btn { margin-top: 32px; }
.portada__video { position: relative; }
.marco-video { background: var(--tinta); transform: rotate(-1.2deg); }
.marco-video__barra { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 15px; }
.mira { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.mira svg { width: 10px; height: 12px; color: var(--rojo); }
.marco-video__nota { opacity: .7; }
.marco-video video { width: 100%; aspect-ratio: 16 / 9; height: auto; background: var(--tinta); }
.portada__dato { margin-top: 40px; background: var(--papel); color: var(--tinta); padding: 14px 20px; transform: rotate(-2deg); display: flex; width: fit-content; align-items: center; gap: 14px; max-width: 100%; }
.portada__dato b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; white-space: nowrap; }
.portada__dato span { font-size: 15px; font-weight: 600; line-height: 1.25; max-width: 20ch; }
.capitulos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 22px; }
.capitulos::-webkit-scrollbar { display: none; }
.capitulos button { min-width: 0; display: grid; gap: 6px; text-align: left; padding: 12px 14px 12px; border: 0; background: var(--rojo-2); color: var(--papel); font-family: var(--texto); cursor: pointer; transition: background-color .15s, transform .15s; }
.capitulos button:hover { transform: translateY(-2px); background: #8E211C; }
.capitulos button[aria-current="true"] { background: var(--papel); color: var(--tinta); }
.capitulos b { font-size: 15px; font-weight: 700; line-height: 1.15; }
.capitulos small { font-size: 13px; font-variant-numeric: tabular-nums; opacity: .75; }
.cap__barra { display: block; height: 4px; background: rgba(242, 237, 228, .25); }
.capitulos button[aria-current="true"] .cap__barra { background: rgba(26, 24, 21, .15); }
.cap__barra i { display: block; height: 100%; background: currentColor; transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (min-width: 1000px) {
  .portada { padding: 32px 0 112px; }
  .portada__titulo { font-size: clamp(64px, 10.2vw, 158px); }
  .portada__grid { grid-template-columns: 4fr 8fr; gap: 64px; margin-top: 56px; align-items: start; }
  .portada__texto { padding-top: 40px; }
  .capitulos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; }
  .capitulos button { min-width: 0; }
}

/* ---------- Cinta ---------- */
.cinta { background: var(--tinta); color: var(--papel); transform: rotate(-2deg); margin: -28px -3% 0; width: 106%; overflow: hidden; position: relative; z-index: 3; padding: 24px 0 16px; }
.cinta__fila { display: flex; align-items: center; gap: 36px; width: max-content; white-space: nowrap; }
.cinta span { font-family: var(--display); font-size: 40px; line-height: 1.2; }
.cinta i { width: 14px; height: 14px; border-radius: 50%; background: var(--rojo); flex: none; }
html.anim .cinta__fila { animation: cinta 38s linear infinite; }
@keyframes cinta { to { transform: translateX(-50%); } }
@media (min-width: 900px) { .cinta span { font-size: 56px; } .cinta__fila { gap: 48px; } }

/* ---------- Secciones ---------- */
.seccion { padding: 88px 0; }
.seccion h2 { font-size: clamp(42px, 6.4vw, 96px); max-width: 15ch; }
.problema h2, .preguntas h2, .seguridad h2 { font-size: clamp(42px, 5vw, 76px); }
.seccion__intro { font-size: 20px; line-height: 1.45; max-width: 36ch; margin-top: 24px; }
@media (min-width: 900px) { .seccion { padding: 136px 0; } }

/* El problema: la mañana tachada */
.problema { background: var(--papel); padding-top: 120px; }
@media (min-width: 900px) { .problema { padding-bottom: 72px; } .como { padding-top: 72px; } }
.problema__grid { display: grid; gap: 56px; align-items: center; }
.problema__grid > * { min-width: 0; }
.hoja-manana { position: relative; background: var(--blanco); padding: 32px 24px 40px; transform: rotate(1.2deg); }
.hoja-manana__cab { font-family: var(--display); font-size: 28px; line-height: 1.1; margin-bottom: 20px; }
.hoja-manana ul { list-style: none; display: grid; gap: 4px; }
.tarea { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; font-size: 19px; }
.tarea time { font-family: var(--display); font-size: 24px; color: var(--rojo); font-variant-numeric: tabular-nums; }
.tarea span { text-decoration: line-through 3px transparent; transition: text-decoration-color .5s ease; transition-delay: calc(var(--i, 0) * 220ms + .5s); }
.tarea.ver span, html:not(.anim) .tarea span { text-decoration-color: var(--rojo); }
.sello-agendado { display: inline-block; background: var(--rojo); color: var(--papel); font-family: var(--display); line-height: 1; padding: 10px 18px 12px; transform: rotate(-8deg); }
.hoja-manana__sello { position: absolute; right: -8px; bottom: -26px; font-size: 40px; }
@media (min-width: 1000px) {
  .problema__grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .hoja-manana { padding: 48px 56px 56px; }
  .tarea { grid-template-columns: 80px 1fr; font-size: 20px; }
  .hoja-manana__sello { right: -12px; font-size: 52px; }
}

/* Un día con AgendaLex */
.como { background: var(--papel); padding-bottom: 0; }
.dia { list-style: none; margin-top: 56px; }
@media (min-width: 1000px) { .como__cab { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; } .como__cab h2 { max-width: none; } .como__cab .seccion__intro { margin: 0 0 8px; } }
.momento { padding: 64px 0; }
.momento:nth-child(odd) { background: var(--piedra); }
.momento__fila { display: grid; gap: 32px; align-items: center; }
.momento__fila > * { min-width: 0; }
.momento__hora { font-size: 22px; font-weight: 600; line-height: 1; }
.momento__hora b { font-family: var(--display); font-weight: 400; font-size: clamp(80px, 10vw, 150px); letter-spacing: -.04em; line-height: .9; margin-right: 6px; }
.momento h3 { font-size: clamp(30px, 3vw, 40px); line-height: 1.05; margin-top: 20px; max-width: 18ch; }
.momento__txt > p:last-child { font-size: 18px; margin-top: 12px; max-width: 34ch; }
@media (min-width: 1000px) {
  .momento { padding: 88px 0; }
  .momento__fila { grid-template-columns: 5fr 7fr; gap: 80px; }
  .momento:nth-child(even) .momento__fila { grid-template-columns: 7fr 5fr; }
  .momento:nth-child(even) .momento__txt { order: 2; }
}

/* Fragmentos del producto (data-ui): llevan sus propios bordes */
.momento__ui { background: var(--blanco); border: 2px solid var(--tinta); padding: 20px; display: grid; gap: 10px; align-content: center; min-height: 250px; font-size: 15px; position: relative; }
.momento__ui--cel { background: transparent; border: 0; }
.ui-ventana { display: grid; gap: 9px; position: relative; }
.ui-barra { font-size: 13px; font-weight: 600; color: var(--tinta-2); padding-bottom: 10px; border-bottom: 1.5px solid var(--piedra); }
.mv-mail { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--papel); padding: 11px 12px; font-size: 14px; }
.mv-mail i { width: 8px; height: 8px; border-radius: 50%; }
.mv-mail b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-mail span { color: var(--tinta-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mv-mail--nuevo { background: var(--rosa); }
.mv-mail--nuevo i { background: var(--rojo); }
.mv-chip { justify-self: start; background: var(--verde); color: #fff; font-weight: 700; font-size: 14px; padding: 6px 12px; }
.mv-campo { background: var(--blanco); border: 1.5px solid #CFC5B2; padding: 9px 12px; letter-spacing: 2px; font-size: 14px; }
.mv-cap { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.mv-captcha { background: #8E1414; color: #fff; font-style: italic; font-weight: 700; letter-spacing: 3px; padding: 8px 14px; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .4); }
.mv-desc { position: relative; overflow: hidden; background: var(--blanco); border: 1.5px solid var(--tinta); padding: 9px 12px; font-weight: 700; font-size: 14px; }
.mv-desc span { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--verde); }
.ui-nota { font-size: 13px; color: var(--verde); font-weight: 700; }
.ui-lectura { display: grid; gap: 12px; }
.mv-hoja { background: var(--papel); padding: 14px 16px; display: grid; gap: 8px; }
.mv-hoja p { font-size: 14px; line-height: 1.55; }
.mv-hoja .linea { display: block; height: 6px; background: var(--piedra); width: 92%; }
.mv-hoja .l2 { width: 70%; }
.mv-hoja mark { background: #F2C9C4; color: inherit; }
.mv-hoja .mk-a { background: #F6DDA6; }
.ui-c { text-align: center; font-weight: 700; }
.ui-fichas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-ficha { padding: 10px 12px; font-weight: 700; font-size: 15px; }
.ui-ficha small { display: block; font-size: 13px; font-weight: 600; opacity: .85; }
.ui-ficha--r { background: var(--rojo); color: #fff; } .ui-ficha--a { background: var(--ambar); }
.ui-semana { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1.5px solid var(--tinta); overflow: hidden; min-height: 150px; }
.ui-semana > span { border-left: 1px solid var(--piedra); padding: 6px 5px; display: flex; flex-direction: column; gap: 6px; min-width: 0; } /* taste-skill-ignore: rejilla de un calendario (data-ui) */
.ui-semana > span:first-child { border-left: 0; }
.ui-semana small { font-weight: 700; font-size: 13px; text-align: center; }
.mv-ev { padding: 6px; font-style: normal; font-weight: 700; font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.mv-ev--r { background: var(--rojo); color: #fff; } .mv-ev--a { background: var(--ambar); }
.ui-campanas { font-style: normal; font-size: 13px; color: var(--tinta-2); line-height: 1.2; }
.ui-sello { position: absolute; right: -6px; bottom: -18px; font-size: 22px; }
.ui-cel { justify-self: center; width: 260px; height: 300px; border-radius: 36px; border: 9px solid var(--tinta); background: #6E2A24; padding: 18px 12px; color: #fff; text-align: center; }
.ui-cel__hora { font-size: 58px; font-weight: 300; line-height: 1; margin-top: 10px; }
.ui-cel__fecha { font-size: 14px; opacity: .85; margin: 4px 0 18px; }
.mv-cel { display: flex; gap: 10px; align-items: flex-start; background: var(--papel); color: var(--tinta); border-radius: 12px; padding: 10px; text-align: left; font-size: 13px; line-height: 1.35; }
.mv-cel__ic { width: 26px; height: 26px; flex: none; }
.ui-evento { display: grid; gap: 8px; border-left: 6px solid var(--rojo); background: var(--rosa); padding: 16px 18px; }
.ui-evento b { font-size: 19px; }
.ui-evento span { color: var(--tinta-2); }
.ui-aviso { justify-self: start; background: var(--tinta); color: var(--papel) !important; font-weight: 700; padding: 6px 12px; font-size: 13px; }
.ui-meet { justify-self: start; background: #1A73E8; color: #fff !important; font-weight: 700; padding: 10px 16px; }
@media (min-width: 900px) { .momento__ui { padding: 28px; min-height: 290px; } }
@media (max-width: 599px) {
  .ui-semana { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui-semana > span:nth-child(1), .ui-semana > span:nth-child(3), .ui-semana > span:nth-child(5) { display: none; }
  .ui-semana > span:nth-child(4) { border-left: 1px solid var(--piedra); } /* taste-skill-ignore: rejilla de un calendario (data-ui) */
}

/* Qué hace: fichas planas de distinto ancho, borde a borde, sobre rojo */
.que-hace { background: var(--rojo); color: var(--papel); margin-top: 0; }
.codigo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; margin-top: 56px; }
.que-hace .clausula { grid-column: span 12; } .clausula { padding: 28px 24px; font-size: 18px; line-height: 1.45; transition: transform .2s var(--ease); }
.clausula b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; margin-bottom: 12px; }
.que-hace .clausula:nth-child(3n+1) { background: var(--tinta); color: var(--papel); }
.que-hace .clausula:nth-child(3n+2) { background: var(--papel); color: var(--tinta); }
.que-hace .clausula:nth-child(3n) { background: var(--piedra); color: var(--tinta); }
.que-hace .clausula:hover { transform: translateY(-4px); }
@media (min-width: 640px) { .que-hace .clausula { grid-column: span 6; } .que-hace .clausula--ancha { grid-column: span 12; } }
@media (min-width: 1000px) {
  .que-hace .clausula { padding: 36px 32px 40px; min-height: 240px; }
  .que-hace .clausula:nth-child(1) { grid-column: span 5; } .que-hace .clausula:nth-child(2) { grid-column: span 7; }
  .que-hace .clausula:nth-child(3), .que-hace .clausula:nth-child(4), .que-hace .clausula:nth-child(5) { grid-column: span 4; }
  .que-hace .clausula:nth-child(6) { grid-column: span 7; } .que-hace .clausula:nth-child(7) { grid-column: span 5; }
  .que-hace .clausula:nth-child(8) { grid-column: span 4; } .que-hace .clausula:nth-child(9) { grid-column: span 8; }
  .que-hace .clausula b { font-size: 34px; }
}

/* Demo libre */
.demo { background: var(--tinta); color: var(--papel); }
.demo__cab { display: grid; gap: 8px; }
.tour { margin-top: 48px; display: grid; gap: 16px; }
.tour__guia { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--papel); color: var(--tinta); padding: 16px 18px; }
.tour__ic { width: 44px; height: 44px; }
.tour__cuenta { font-size: 15px; font-weight: 700; color: var(--rojo); }
#tour-guia { font-weight: 600; font-size: 17px; line-height: 1.35; }
.tour__rei { grid-column: 1 / -1; justify-self: start; background: var(--tinta); color: var(--papel); border: 0; padding: 10px 14px; font: 700 15px var(--texto); cursor: pointer; transition: background-color .15s; }
.tour__rei:hover { background: #000; }
.tour__ideas { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tour__ideas li { font-size: 15px; font-weight: 600; padding: 8px 14px; background: #2C2824; color: var(--papel); transition: background-color .2s; }
.tour__ideas li.hecha { background: var(--verde); }
.tour__fin { display: grid; gap: 16px; justify-items: start; background: var(--papel); color: var(--tinta); padding: 24px; font-size: 18px; }
.tour__fin b { color: var(--verde); }
.dp-marco { background: var(--rojo); padding: 10px; }
@media (min-width: 700px) { .tour__guia { grid-template-columns: auto 1fr auto; } .tour__rei { grid-column: auto; } #tour-guia { font-size: 19px; } }
@media (min-width: 900px) { .dp-marco { padding: 14px; } }
@media (min-width: 1000px) { .demo__cab { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; } .demo__cab .seccion__intro { margin: 0; } }

/* Panel de ejemplo (data-ui): un sistema de estudio jurídico de verdad */
.dp { --linea: #E7E1D7; --suave: #F7F4EE; position: relative; overflow: hidden; background: var(--blanco); color: var(--tinta); font-size: 14px; display: grid; grid-template-columns: minmax(0, 1fr); }
.dp-lado { background: var(--tinta); color: var(--papel); padding: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.dp-logo { gap: 8px; --punto: var(--rojo); }
.dp-logo .logo__svg { width: 30px; height: 30px; }
.dp-logo .logo__palabra { height: 18px; }
.dp-estudio { display: none; }
.dp-tabs { display: flex; flex-wrap: wrap; gap: 4px; order: 3; width: 100%; }
.dp-tabs::-webkit-scrollbar { display: none; }
.dp-tab { display: flex; align-items: center; gap: 8px; background: none; border: 0; border-radius: 10px; font: 600 14px var(--texto); color: rgba(242, 237, 228, .72); padding: 9px 12px; cursor: pointer; text-align: left; transition: background-color .15s, color .15s; }
.dp-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.dp-tab:hover { background: rgba(242, 237, 228, .08); color: var(--papel); }
.dp-tab.on { background: var(--papel); color: var(--tinta); }
.dp-tab b { margin-left: auto; background: var(--rojo); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 12px; }
.dp-tab { padding: 8px 10px; font-size: 13px; }
.dp-robot { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(242, 237, 228, .75); line-height: 1.25; }
.dp-robot b { display: block; color: var(--papel); font-size: 13px; }
.dp-robot i { width: 9px; height: 9px; border-radius: 50%; background: #6FBF73; box-shadow: 0 0 0 4px rgba(111, 191, 115, .18); flex: none; } /* taste-skill-ignore: interfaz del panel (data-ui) */
.dp-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; background: var(--suave); }
.dp-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--blanco); border-bottom: 1px solid var(--linea); } /* taste-skill-ignore: interfaz del panel (data-ui) */
.dp-lupa { flex: 1; min-width: 0; max-width: 420px; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--linea); border-radius: 999px; background: var(--suave); color: #857B6E; font: 500 14px var(--texto); cursor: pointer; text-align: left; }
.dp-lupa span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-lupa svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.dp-lupa:hover { border-color: #CFC5B2; }
.dp-usuario { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--tinta-2); line-height: 1.2; }
.dp-usuario b { display: block; font-size: 13px; color: var(--tinta); }
.dp-usuario i { width: 34px; height: 34px; border-radius: 50%; background: var(--rojo); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; }
.dp-usuario > span { display: none; }
.dp-cuerpo { position: relative; min-height: 600px; }
.dp-vista { padding: 18px 16px 22px; display: grid; gap: 16px; align-content: start; }
.dp-saludo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; }
.dp-fecha { font-size: 12px; font-weight: 700; color: var(--rojo); letter-spacing: .02em; }
.dp-hola { font-family: var(--display); font-size: 28px; line-height: 1.05; margin-top: 2px; }
.dp-resumen { font-size: 13px; color: var(--tinta-2); max-width: 46ch; }
.dp-leyenda { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-size: 12px; color: var(--tinta-2); }
.dp-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -6px; }
.dp-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dp-kpi { background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.dp-kpi b { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.dp-kpi span { font-size: 12px; color: var(--tinta-2); line-height: 1.25; }
.dp-kpi--rojo { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.dp-kpi--rojo span { color: rgba(255, 255, 255, .85); }
.dp-cols { display: grid; gap: 14px; }
.dp-cols > * { min-width: 0; }
.dp-caja { background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; padding: 14px; display: grid; gap: 6px; align-content: start; }
.dp-col-t { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 13px; margin: 4px 0 4px; }
.dp-col-t + .dp-it { margin-top: 0; }
.dp-caja .dp-col-t:not(:first-child) { margin-top: 12px; }
.dp-col-t span { font-weight: 500; font-size: 12px; color: #857B6E; }
.dp-it { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--blanco); border: 1px solid var(--linea); border-left: 4px solid #B9AE98; border-radius: 10px; padding: 10px 12px; margin: 0; font-size: 13px; line-height: 1.35; }
.dp-it b { grid-column: 1; font-size: 14px; font-weight: 700; }
.dp-it > span { grid-column: 1; color: var(--tinta-2); font-size: 12.5px; }
.dp-it em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--suave); color: var(--tinta-2); white-space: nowrap; }
.dp-it--rojo { border-left-color: var(--rojo); } .dp-it--rojo em { background: var(--rosa); color: #8E2520; }
.dp-it--ambar { border-left-color: var(--ambar); } .dp-it--ambar em { background: #FBEBC6; color: #7A5410; }
.dp-it--verde { border-left-color: var(--verde); } .dp-it--verde em { background: #E3EEE4; color: #2F5A35; }
.dp-it--revisar { background: #FFF8E8; border-color: #F0D58C; border-left-color: var(--ambar); }
.dp-it em.dp-ok { background: #E3EEE4; color: #2F5A35; }
button.dp-it { cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
button.dp-it:hover { background: #FFFDF8; border-color: #D6CCBA; transform: translateX(2px); }
.dp-it[data-revisada="true"] { border-left-color: var(--verde); }
.dp-it[data-revisada="true"] b::after { content: " · revisada"; color: var(--verde); font-size: 12px; font-weight: 600; }
.dp-actividad { list-style: none; display: grid; gap: 2px; }
.dp-actividad li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 12.5px; color: var(--tinta-2); padding: 7px 0; border-bottom: 1px solid var(--linea); } /* taste-skill-ignore: interfaz del panel (data-ui) */
.dp-actividad li:last-child { border-bottom: 0; }
.dp-actividad time { font-weight: 700; color: var(--tinta); font-variant-numeric: tabular-nums; }
.dp-tabla { background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; padding: 6px; display: grid; gap: 6px; }
.dp-tabla__cab { display: none; }
.dp-tabla .dp-it .dp-c { display: none; }
.dp-registro { list-style: none; background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
.dp-registro li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--linea); font-size: 13px; } /* taste-skill-ignore: interfaz del panel (data-ui) */
.dp-registro li:last-child { border-bottom: 0; }
.dp-registro time { grid-column: 1; font-size: 12px; font-weight: 700; color: #857B6E; font-variant-numeric: tabular-nums; }
.dp-registro b { grid-column: 1; }
.dp-registro span { grid-column: 1; color: var(--tinta-2); }
.dp-registro em { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--suave); color: var(--tinta-2); }
.dp-registro em.dp-ok { background: #E3EEE4; color: #2F5A35; }
.dp-mes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--blanco); border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
.dp-mes > span, .dp-mes > button { min-height: 64px; border: 0; border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 6px; font: 600 13px var(--texto); color: var(--tinta); min-width: 0; text-align: left; background: var(--blanco); } /* taste-skill-ignore: interfaz del panel (data-ui) */
.dp-mes > :nth-child(7n) { border-right: 0; }
.dp-mes > button { display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: background-color .15s; }
.dp-mes > button:hover { background: var(--rosa); }
.dp-mes > .dn { min-height: 0; background: var(--suave); color: #857B6E; text-align: center; padding: 8px 0; font-size: 12px; font-weight: 700; }
.dp-mes .fuera { color: #C4BAA8; }
.dp-mes em { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 5px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-r { background: var(--rojo); color: #fff; } .ev-a { background: var(--ambar); color: var(--tinta); } .ev-v { background: var(--verde); color: #fff; }
.dp-drawer { position: absolute; inset: 0; background: var(--blanco); padding: 22px 20px; display: grid; gap: 12px; align-content: start; z-index: 3; animation: entra .3s ease both; }
.dp-k { font-size: 12px; font-weight: 700; color: var(--rojo); padding-right: 48px; letter-spacing: .02em; }
.dp-drawer__t, .dp-drawer .dp-drawer__t { font-family: var(--display); font-size: 30px; line-height: 1.05; color: var(--tinta); }
.dp-drawer p { font-size: 14px; color: var(--tinta-2); }
.dp-dlista { display: grid; gap: 8px; }
.dp-bt { min-height: 48px; border: 1px solid #CFC5B2; border-radius: 999px; background: var(--blanco); font: 700 14px var(--texto); color: var(--tinta); cursor: pointer; padding: 0 18px; transition: background-color .15s; }
.dp-bt:hover { background: var(--suave); }
.dp-bt--tinta { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.dp-bt--tinta:hover { background: #000; }
.dp-hecho { background: #E3EEE4; color: #2F5A35 !important; font-weight: 700; text-align: center; padding: 12px; border-radius: 12px; }
.dp-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--linea); border-radius: 50%; background: var(--blanco); font-size: 22px; line-height: 1; cursor: pointer; color: var(--tinta); }
.dp-pdf { position: absolute; inset: 0; z-index: 6; background: rgba(26, 24, 21, .78); padding: 18px; display: grid; gap: 12px; align-content: start; justify-items: center; animation: entra .25s ease both; }
.dp-hoja { background: var(--blanco); padding: 26px; width: 100%; max-width: 560px; display: grid; gap: 10px; border-radius: 8px; }
.dp-hoja p { font-size: 14px; line-height: 1.6; }
.dp-hoja .linea { display: block; height: 6px; background: var(--piedra); width: 94%; border-radius: 99px; }
.dp-hoja .l2 { width: 76%; } .dp-hoja .l3 { width: 58%; }
.dp-hoja__c { text-align: center; font-weight: 700; }
.dp-hoja mark { background: #F2C9C4; color: inherit; }
.dp-cerrar { width: 170px; }
.dp-busca { position: absolute; inset: 0; z-index: 5; background: rgba(26, 24, 21, .55); padding: 14px; display: grid; gap: 10px; align-content: start; animation: entra .25s ease both; }
.dp-bin { position: relative; background: var(--blanco); border-radius: 999px; padding: 12px 56px 12px 18px; font-size: 17px; font-weight: 700; }
.dp-bin .dp-x { top: 50%; margin-top: -19px; right: 6px; }
.dp-it:focus-visible, .dp-mes button:focus-visible, .dp-x:focus-visible, .dp-bt:focus-visible, .dp-tab:focus-visible, .dp-lupa:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }
[data-objetivo="true"] { position: relative; z-index: 4; outline: 3px solid var(--rojo); outline-offset: 3px; animation: brilla 1.4s ease-in-out infinite; }
@keyframes brilla { 50% { outline-offset: 7px; } }
.dp-recuerda { animation: recuerda .4s ease; }
@keyframes recuerda { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.dp-nuevo { animation: entra .35s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }
@media (min-width: 700px) {
  .dp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dp-usuario > span { display: block; }
  .dp-vista { padding: 22px 24px 26px; }
  .dp-hola { font-size: 34px; }
  .dp-tabla__cab { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr 90px; gap: 12px; padding: 8px 18px 4px 16px; font-size: 12px; font-weight: 700; color: #857B6E; }
  .dp-tabla .dp-it { grid-template-columns: minmax(0, 2fr) 1fr 1fr 90px; column-gap: 12px; }
  .dp-tabla .dp-it b { grid-column: 1; grid-row: 1; }
  .dp-tabla .dp-it > span:not(.dp-c) { grid-column: 1; grid-row: 2; }
  .dp-tabla .dp-it .dp-c { display: block; grid-row: 1 / span 2; font-size: 13px; color: var(--tinta-2); }
  .dp-tabla .dp-it em { grid-column: 4; justify-self: start; }
  .dp-tabla--exp .dp-tabla__cab, .dp-tabla--exp .dp-it { grid-template-columns: minmax(0, 1.7fr) 1.1fr 1fr 50px; }
  .dp-tabla .dp-it span:nth-of-type(2) { grid-column: 2; }
  .dp-tabla .dp-it span:nth-of-type(3) { grid-column: 3; }
  .dp-mes > span, .dp-mes > button { min-height: 84px; font-size: 14px; padding: 8px; }
  .dp-mes em { font-size: 12px; }
}
@media (min-width: 1000px) {
  .dp { grid-template-columns: 232px minmax(0, 1fr); }
  .dp-lado { flex-direction: column; align-items: stretch; flex-wrap: nowrap; padding: 22px 14px; gap: 8px; }
  .dp-logo { padding: 0 8px 14px; }
  .dp-estudio { display: grid; gap: 2px; padding: 12px; margin-bottom: 8px; border-radius: 12px; background: rgba(242, 237, 228, .07); font-size: 12px; color: rgba(242, 237, 228, .65); }
  .dp-estudio b { color: var(--papel); font-size: 14px; }
  .dp-tabs { flex-direction: column; flex-wrap: nowrap; order: 0; width: auto; }
  .dp-tab { width: 100%; font-size: 14px; padding: 11px 12px; }
  .dp-robot { margin: auto 0 0; padding: 12px; border-radius: 12px; background: rgba(242, 237, 228, .07); }
  .dp-top { padding: 14px 24px; }
  .dp-cols { grid-template-columns: 1.1fr 1fr; gap: 16px; }
  .dp-drawer { left: auto; width: 440px; border-left: 1px solid var(--linea); } /* taste-skill-ignore: interfaz del panel (data-ui) */
  .dp-busca { padding: 24px 18%; }
}


/* Panel: todo se puede tocar */
.dp-kpi { font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.dp-kpi:hover { border-color: #CFC5B2; transform: translateY(-2px); }
.dp-kpi--rojo:hover { border-color: var(--rojo); }
.dp-actividad li { padding: 0; display: block; }
.dp-actividad button { width: 100%; display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 8px 6px; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dp-actividad button:hover { background: var(--suave); }
.dp-registro li { padding: 0; display: block; }
.dp-registro button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background-color .15s; }
.dp-registro button:hover { background: var(--suave); }
.dp-drawer { overflow-y: auto; }
.dp-ficha { display: grid; gap: 10px; }
.dp-ficha__datos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 0; }
.dp-ficha__datos div { background: var(--suave); border-radius: 10px; padding: 8px 10px; }
.dp-ficha__datos dt { font-size: 11.5px; font-weight: 700; color: #857B6E; }
.dp-ficha__datos dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--tinta); }
.dp-drawer .dp-ficha__t { font-size: 13px; font-weight: 700; color: var(--tinta); margin-top: 6px; }
.dp-ficha__prox { list-style: none; display: grid; gap: 6px; }
.dp-ficha__prox li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--tinta-2); border-left: 3px solid var(--rojo); padding: 4px 0 4px 10px; }
.dp-ficha__prox b { color: var(--tinta); white-space: nowrap; }
.dp-docs { display: grid; gap: 6px; }
.dp-doc { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 9px 12px; border: 1px solid var(--linea); border-radius: 10px; background: var(--blanco); font: inherit; color: inherit; cursor: pointer; transition: background-color .15s, border-color .15s; }
.dp-doc::before { content: "PDF"; grid-row: 1 / span 2; display: grid; place-items: center; height: 32px; border-radius: 6px; background: var(--rosa); color: #8E2520; font-size: 9.5px; font-weight: 800; }
.dp-doc b { font-size: 13.5px; }
.dp-doc span { font-size: 12px; color: var(--tinta-2); }
.dp-doc:hover { background: var(--suave); border-color: #D6CCBA; }
.dp-doc:focus-visible, .dp-kpi:focus-visible, .dp-actividad button:focus-visible, .dp-registro button:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }


/* Ajustes de celular: nada cortado ni pegado */
@media (max-width: 599px) {
  .btn--grande { padding: 20px 24px; font-size: 17px; white-space: nowrap; }
  .mv-mail { grid-template-columns: 8px minmax(0, 1fr); row-gap: 2px; }
  .mv-mail b { white-space: normal; }
  .mv-mail span { grid-column: 2; white-space: normal; font-size: 13px; }
  .dp-mes em { font-size: 0; height: 6px; padding: 0; margin-top: 6px; }
  .dp-mes > span, .dp-mes > button { min-height: 48px; }
  .dp-top { gap: 10px; padding: 10px 12px; }
  .dp-usuario i { width: 32px; height: 32px; }
}

/* Cliente: H&M */
.clientes { background: var(--papel); }
.clientes__grid { display: grid; gap: 64px; align-items: center; }
.clientes__grid > * { min-width: 0; }
.bitacora { list-style: none; margin-top: 40px; display: grid; gap: 6px; }
.bitacora li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; padding: 14px 18px; background: var(--piedra); }
.bitacora time { font-family: var(--display); font-size: 26px; color: var(--rojo); white-space: nowrap; }
.bitacora p { font-size: 17px; }
.clientes__nota { margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--tinta-2); }
.hym { justify-self: center; width: 100%; max-width: 460px; background: #171D3A; color: #fff; padding: 40px 28px 40px; text-align: center; transform: rotate(2deg); }
.hym-sello { display: inline-block; background: var(--verde); color: #fff; font-size: 15px; font-weight: 700; padding: 8px 14px; margin-bottom: 28px; transform: rotate(-3deg); }
.hym-logo { width: 130px; height: auto; margin: 0 auto 18px; }
.hym-nombre { font-weight: 800; font-size: 38px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.hym-asoc { font-size: 17px; letter-spacing: .5em; text-transform: uppercase; color: #C9B48F; margin-top: 8px; }
.hym-lema { font-family: var(--display); font-size: 21px; margin-top: 16px; }
.hym-datos { font-size: 15px; color: #C9B48F; margin-top: 12px; font-weight: 600; }
.hym-redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.hym-red { text-decoration: none; font-weight: 700; font-size: 15px; color: #171D3A; background: #C9B48F; padding: 12px 18px; transition: background-color .15s, transform .15s; }
.hym-red:hover { background: #fff; transform: translateY(-2px); }
.hym-red:focus-visible { outline-color: #fff; }
@media (min-width: 1000px) { .clientes__grid { grid-template-columns: 7fr 5fr; gap: 96px; } .hym { padding: 56px 40px 52px; } .hym-nombre { font-size: 44px; } .bitacora li { grid-template-columns: 112px 1fr; padding: 16px 22px; } }

/* Seguridad: el acuerdo */
.seguridad { background: var(--piedra); }
.seguridad__grid { display: grid; gap: 56px; align-items: start; }
.seguridad__grid > * { min-width: 0; }
.seguridad__frase { margin-top: 32px; padding-left: 22px; border-left: 6px solid var(--rojo); font-size: 21px; line-height: 1.45; font-weight: 500; max-width: 40ch; }
.acuerdo { position: relative; background: var(--blanco); padding: 36px 24px 44px; transform: rotate(-.8deg); display: grid; gap: 16px; }
.acuerdo__cab { font-size: 34px; line-height: 1.05; }
.acuerdo__intro { font-size: 16px; color: var(--tinta-2); margin-bottom: 8px; }
.acuerdo .clausula { position: relative; padding: 0 0 0 26px; font-size: 17px; min-width: 0; }
.acuerdo .clausula::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--rojo); }
.acuerdo__firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.firma { font-size: 15px; font-weight: 600; text-align: center; }
.firma span { display: block; height: 3px; background: var(--tinta); margin-bottom: 10px; } /* taste-skill-ignore: línea de firma de un documento */
.acuerdo__sello { position: absolute; right: 16px; top: -22px; font-size: 26px; }
.acuerdo { grid-template-columns: minmax(0, 1fr); }
.acuerdo .clausula b { font-size: 22px; }
@media (min-width: 600px) { .acuerdo__cab { padding-right: 150px; } }
@media (min-width: 1000px) {
  .seguridad__grid { grid-template-columns: 5fr 7fr; gap: 96px; }
  .seguridad__lado { position: sticky; top: 120px; }
  .acuerdo { padding: 56px 56px 60px; }
  .acuerdo__sello { right: -20px; top: -28px; font-size: 34px; }
  .acuerdo__cab { padding-right: 200px; }
  .acuerdo .clausula b { font-size: 26px; }
}

/* Preguntas: fichas que se abren */
.preguntas { background: var(--papel); }
.preguntas__grid { display: grid; gap: 40px; align-items: start; }
.preguntas__grid > * { min-width: 0; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--piedra); transition: background-color .2s; }
.faq summary { list-style: none; position: relative; padding: 22px 64px 22px 22px; font-size: 19px; font-weight: 600; cursor: pointer; min-height: 72px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 18px; height: 3px; margin-top: -1.5px; background: currentColor; transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] { background: var(--rojo); color: var(--papel); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details:not([open]) summary:hover { background: #D8D0C2; }
.faq details p { padding: 0 22px 26px; font-size: 17px; max-width: 54ch; }
@media (min-width: 1000px) {
  .preguntas__grid { grid-template-columns: 5fr 7fr; gap: 96px; }
  .preguntas h2 { position: sticky; top: 120px; }
  .faq summary { font-size: 20px; padding-left: 26px; }
  .faq details p { padding: 0 26px 28px; }
}

/* Cierre */
.cierre { background: var(--tinta); color: var(--papel); }
.cierre__caja { min-height: 60svh; display: grid; place-content: center; justify-items: center; text-align: center; padding-top: 96px; padding-bottom: 96px; }
.cierre h2 { font-size: clamp(48px, 9vw, 148px); line-height: .98; max-width: 11ch; }
.cierre p { font-size: 20px; max-width: 34ch; margin: 28px 0 40px; }

/* Pie: la marca en grande */
.pie { background: var(--rojo); color: var(--papel); padding: 64px 0 40px; --punto: var(--tinta); }
.pie__marca { width: 100%; height: auto; }
.pie__fila { display: grid; gap: 32px; margin-top: 48px; font-size: 15px; }
.logo--pie { align-items: flex-start; gap: 16px; }
.logo--pie .logo__svg { width: 52px; height: 52px; }
.pie__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pie__links a { font-weight: 600; font-size: 16px; text-decoration: none; }
.pie__links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pie__aviso { font-weight: 700; }
@media (min-width: 900px) { .pie__fila { grid-template-columns: 4fr 5fr 3fr; } .pie__info { text-align: right; } }

/* ---------- Movimiento ---------- */
/* Titular de la portada: cada línea sube desde su base */
html.anim .portada__titulo .linea > span { transform: translateY(110%); animation: linea 1s var(--ease) .1s forwards; }
html.anim .portada__titulo .linea + .linea > span { animation-delay: .21s; }
html.anim .portada__texto, html.anim .portada__visual { opacity: 0; animation: aparece .8s var(--ease) .55s forwards; }
html.anim .portada__visual { animation-delay: .75s; }
@keyframes linea { to { transform: none; } }
@keyframes aparece { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Bloques que suben al entrar (se rearman al salir) */
html.anim .sube { opacity: 0; transform: translateY(28px); }
html.anim .sube.ver { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.anim .hoja-manana.sube { transform: translateY(28px) rotate(1.2deg); }
html.anim .hoja-manana.sube.ver { transform: rotate(1.2deg); }
html.anim .acuerdo.sube { transform: translateY(28px) rotate(-.8deg); }
html.anim .acuerdo.sube.ver { transform: rotate(-.8deg); }
html.anim .hym.sube { transform: translateY(28px) rotate(2deg); }
html.anim .hym.sube.ver { transform: rotate(2deg); }
html.anim .que-hace .clausula.sube.ver:hover { transform: translateY(-4px); }

/* Títulos que se descubren de izquierda a derecha */
html.anim .barre { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
html.anim .barre.ver { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transition: clip-path .9s var(--ease); }

/* Sellos que se estampan */
@keyframes estampa { from { opacity: 0; transform: rotate(-8deg) scale(2.2); } 60% { opacity: 1; } }
html.anim .hoja-manana .sello-agendado { opacity: 0; }
html.anim .hoja-manana.ver .sello-agendado { opacity: 1; animation: estampa .45s cubic-bezier(.3, 1.5, .5, 1) 1.8s both; }
html.anim .acuerdo .sello-agendado { opacity: 0; }
html.anim .acuerdo.ver .sello-agendado { opacity: 1; animation: estampa .45s cubic-bezier(.3, 1.5, .5, 1) .9s both; }

/* Pantallitas de "Un día": se mueven cuando su momento aparece */
@keyframes baja { from { opacity: 0; transform: translateY(-14px); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes llena { from { transform: scaleX(0); } }
html.anim .momento__ui .mv-mail--nuevo, html.anim .momento__ui .mv-chip, html.anim .momento__ui .mv-cap, html.anim .momento__ui .mv-ev, html.anim .momento__ui .mv-cel,
html.anim .momento__ui .ui-ficha, html.anim .momento__ui .ui-sello, html.anim .momento__ui .ui-aviso { opacity: 0; }
html.anim .momento__ui.ver .mv-mail--nuevo { opacity: 1; animation: baja .5s var(--ease) .45s both; }
html.anim .momento__ui.ver .mv-chip { opacity: 1; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) 1s both; }
html.anim .momento__ui.ver .mv-cap { opacity: 1; animation: baja .45s var(--ease) .5s both; }
html.anim .momento__ui.ver .mv-desc span { transform-origin: left; animation: llena 1s ease .9s both; }
html.anim .momento__ui.ver .mv-ev { opacity: 1; animation: baja .45s var(--ease) .5s both; }
html.anim .momento__ui.ver .mv-ev--a { animation-delay: .7s; }
html.anim .momento__ui.ver .mv-cel { opacity: 1; animation: pop .45s cubic-bezier(.3, 1.4, .5, 1) 1.1s both; }
html.anim .momento__ui.ver .ui-ficha { opacity: 1; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) 1.1s both; }
html.anim .momento__ui.ver .ui-ficha--a { animation-delay: 1.5s; }
html.anim .momento__ui.ver .ui-sello { opacity: 1; animation: estampa .4s cubic-bezier(.3, 1.6, .5, 1) 1.2s both; }
html.anim .momento__ui.ver .ui-aviso { opacity: 1; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) .7s both; }

/* ---------- Formas suaves: esquinas redondas y secciones como hojas ---------- */
:root { --r: 28px; --r-m: 18px; --r-s: 10px; }
/* botones y chips: píldora */
.btn, .tour__rei, .accesos a, .hym-red, .tour__ideas li, .hym-sello, .mv-chip, .ui-aviso, .ui-meet { border-radius: 999px; }
.accesos-btn { border-radius: 50%; }
.sello-agendado { border-radius: 14px; }
/* bloques */
.marco-video { border-radius: var(--r-m); overflow: hidden; }
.portada__dato { border-radius: var(--r-m); }
.capitulos button { border-radius: 14px; }
.hoja-manana, .hym, .acuerdo { border-radius: var(--r); }
.momento__ui { border-radius: var(--r-m); }
.momento__ui--cel { border-radius: 0; }
.codigo { gap: 12px; }
.que-hace .clausula { border-radius: var(--r); }
.tour__guia { border-radius: var(--r-m); }
.tour__fin { border-radius: var(--r-m); }
.dp-marco { border-radius: var(--r); }
.dp { border-radius: var(--r-m); }
@media (max-width: 899px) { .dp-marco { padding: 8px; } }
.bitacora li { border-radius: var(--r-m); }
.faq details { border-radius: var(--r-m); overflow: hidden; }
.seguridad__frase { border-left: 0; padding: 22px 24px; background: var(--papel); border-radius: var(--r-m); }
/* dentro de las pantallitas */
.mv-mail, .mv-campo, .mv-desc, .mv-captcha, .ui-ficha, .mv-hoja { border-radius: var(--r-s); }
.mv-ev { border-radius: 6px; }
.ui-semana { border-radius: 12px; }
.ui-evento { border-radius: 12px; }
.mv-hoja .linea, .dp-hoja .linea { border-radius: 99px; }
/* secciones de color como hojas apiladas */
.portada { border-radius: 0 0 48px 48px; }
.que-hace, .demo, .seguridad, .cierre { margin: 0 6px; border-radius: 32px; }
.momento:nth-child(odd) { margin: 0 6px; border-radius: 32px; }
.pie { margin: 6px 6px 0; border-radius: 32px 32px 0 0; }
@media (min-width: 900px) {
  .portada { border-radius: 0 0 72px 72px; }
  .que-hace, .demo, .seguridad, .cierre { margin: 0 12px; border-radius: 48px; }
  .momento:nth-child(odd) { margin: 0 12px; border-radius: 48px; }
  .pie { margin: 12px 12px 0; border-radius: 48px 48px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
