/* tinofinanzas.com: la página de Tino con los mismos colores, letras y filas de la app
   (luka-app/web/estilos.css). Oscuro por defecto, como la app; claro si el sistema lo pide. */
:root {
  --bg: #0e0f11;
  --surface: #161719;
  --surface-2: #1d1f22;
  --border: #2a2d32;
  --text: #e8e9eb;
  --muted: #949aa3;
  --accent: #d9f3a9;
  --lima: #d9f3a9;
  --lima-ink: #1e2903;
  --copper: #e08a6b;
  --sombra: rgba(0, 0, 0, .45);
  --radio: 10px;
  --radio-g: 14px;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --serif: 'DM Serif Display', Georgia, serif;
  --ancho: 68rem;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5f1;
    --surface: #ffffff;
    --surface-2: #efeee9;
    --border: #dedcd5;
    --text: #1b1c1e;
    --muted: #5f656e;
    --accent: #50680a;
    --copper: #b5532f;
    --sombra: rgba(0, 0, 0, .12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lima); color: var(--lima-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
b { font-weight: 600; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
p, dd, li { margin: 0; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 1rem; top: -3rem; background: var(--lima); color: var(--lima-ink); padding: .5rem .9rem; border-radius: var(--radio); z-index: 2; }
.saltar:focus { top: 1rem; }

/* Barra: la marca como en la app (serif, lima) y Entrar. */
.barra {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.marca { font-family: var(--serif); font-size: 1.75rem; color: var(--accent); text-decoration: none; line-height: 1; }
.entrar { color: var(--text); text-decoration: none; font-weight: 500; padding: .55rem 1rem; border: 1px solid var(--border); border-radius: 999px; }
.entrar:hover { border-color: var(--muted); }

main { max-width: var(--ancho); margin: 0 auto; padding: 0 1.25rem; }

/* Portada */
.portada { padding: clamp(2rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 6rem); }
.saludo { display: flex; align-items: center; gap: .6rem; color: var(--muted); margin-bottom: 1.25rem; }
.robot { width: 2.4rem; height: 2.4rem; color: var(--lima); flex: none; }
.robot .cara, .cara { fill: var(--bg); }
@media (prefers-color-scheme: light) { .robot { color: var(--lima-ink); } .cara { fill: var(--lima); } }
h1 { font-size: clamp(2.6rem, 6.6vw, 5rem); line-height: 1.02; max-width: 17ch; }
h1 span { white-space: nowrap; }
@media (max-width: 30rem) { h1 span { white-space: normal; } }
h1 span { color: var(--accent); }
.bajada { margin-top: 1.5rem; max-width: 38rem; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); }
.acciones { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.nota { color: var(--muted); font-size: .95rem; max-width: 34rem; }
.nota b { color: var(--text); }

.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.6rem;
  border-radius: var(--radio-g);
  font: 600 1.05rem/1 var(--sans);
  text-decoration: none;
  transition: transform .15s ease-out, box-shadow .2s ease-out;
}
.boton.principal { background: var(--lima); color: var(--lima-ink); box-shadow: 0 4px 10px -4px var(--sombra); }
.boton.principal:hover { transform: translateY(-1px); box-shadow: 0 8px 16px -6px var(--sombra); }
.boton.principal:active { transform: translateY(0); }

/* El cuaderno: lo que llega a la izquierda, lo que queda anotado a la derecha. Es la prueba de la
   página, y el único movimiento: cada fila aparece anotada una tras otra. */
.cuaderno {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--border);
  border-radius: var(--radio-g);
  background: var(--surface);
  overflow: hidden;
}
.cuaderno-cabeza, .fila, .cuaderno-pie { display: grid; grid-template-columns: 1fr 1fr; }
.cuaderno-cabeza {
  font: 500 .78rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.cuaderno-cabeza span { padding: 1rem 1.25rem; }
.cuaderno-cabeza span + span { border-left: 1px solid var(--border); }
.fila + .fila { border-top: 1px solid var(--border); }
.entrada, .anotado { padding: 1.25rem; }
.anotado {
  border-left: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 1rem; align-content: center;
  background: var(--surface-2);
}
.via { display: block; font: 400 .8rem/1.2 var(--mono); color: var(--muted); margin-bottom: .6rem; }
.burbuja {
  display: inline-block; background: var(--surface-2); border: 1px solid var(--border);
  padding: .55rem .9rem; border-radius: 16px 16px 16px 4px; font-size: 1.05rem;
}
.correo { font-size: .95rem; color: var(--muted); max-width: 30ch; }
.correo b { color: var(--text); }
.recibo { width: 9rem; height: auto; display: block; filter: drop-shadow(0 4px 8px var(--sombra)); transform: rotate(-2deg); }
.recibo .papel { fill: #f3f1ea; stroke: #d6d2c4; stroke-width: .75; }
.recibo text { font-family: var(--mono); fill: #2a2b2e; }
.recibo .r-tit { font-size: 9px; font-weight: 500; letter-spacing: .12em; }
.recibo .r-lin { font-size: 7px; fill: #6b6e73; }
.recibo .r-tot { font-size: 8px; font-weight: 500; }
.concepto { font-weight: 600; font-size: 1.05rem; }
.detalle { grid-row: 2; color: var(--muted); font-size: .9rem; }
.anotado .monto { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.monto { font: 500 1.05rem/1 var(--mono); white-space: nowrap; }
.cuaderno-pie { border-top: 1px solid var(--border); font-weight: 600; }
.cuaderno-pie span { padding: 1rem 1.25rem; }
.cuaderno-pie span + span { text-align: right; color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .anotado > * { animation: anotar .5s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.5s + var(--i, 0) * .7s); }
  .anotado > :nth-child(2) { animation-delay: calc(.6s + var(--i, 0) * .7s); }
  .anotado > .monto { animation-delay: calc(.7s + var(--i, 0) * .7s); }
  .cuaderno-pie .monto { animation: anotar .5s cubic-bezier(.16, 1, .3, 1) both 2.6s; }
}
@keyframes anotar { from { opacity: 0; filter: blur(4px); transform: translateX(-.5rem); } }

@media (max-width: 40rem) {
  .cuaderno-cabeza { display: none; }
  .fila { grid-template-columns: 1fr; }
  .anotado { border-left: 0; border-top: 1px dashed var(--border); }
}

/* Bloques */
.bloque { padding: clamp(3rem, 8vw, 5.5rem) 0; border-top: 1px solid var(--border); }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; margin-bottom: 1.75rem; }
.parrafo, .mes-texto p { max-width: 40rem; color: var(--muted); font-size: 1.15rem; }

.formas { margin: 2rem 0 0; }
.formas div { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: .25rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
.formas div:first-child { border-top: 1px solid var(--border); }
.formas dt { font-weight: 600; }
.formas dd { margin: 0; color: var(--muted); max-width: 44rem; }
.bancos { margin-top: 1.75rem; max-width: 44rem; }
@media (max-width: 40rem) { .formas div { grid-template-columns: 1fr; } }

.mes { display: grid; grid-template-columns: 1fr minmax(18rem, 26rem); gap: 2.5rem 4rem; align-items: center; }
@media (max-width: 52rem) { .mes { grid-template-columns: 1fr; } }
.resumen {
  margin: 0; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radio-g); background: var(--surface);
  box-shadow: 0 18px 40px -24px var(--sombra);
}
.queda span { display: block; color: var(--muted); font-size: .95rem; }
.queda b { display: block; font: 500 clamp(2rem, 5vw, 2.6rem)/1.1 var(--mono); letter-spacing: -.02em; margin-top: .2rem; }
.dias { display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; margin: 1.25rem 0 .75rem; max-width: 17rem; }
.dias i { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--muted); }
.dias i.hecho { background: var(--accent); border-color: var(--accent); }
.ritmo { color: var(--muted); font-size: .92rem; }
.ritmo b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.donde { list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--border); }
.donde li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0 .7rem; position: relative; font-size: .95rem; }
.donde li::after { content: ''; position: absolute; left: 0; bottom: .2rem; height: 4px; width: var(--p); border-radius: 2px; background: var(--accent); opacity: .9; }
.donde b { font-family: var(--mono); font-weight: 500; }

.meta { display: grid; grid-template-columns: 1fr minmax(18rem, 26rem); gap: 2.5rem 4rem; align-items: center; }
@media (max-width: 52rem) { .meta { grid-template-columns: 1fr; } }
.tarjeta-meta {
  margin: 0; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radio-g); background: var(--surface);
  box-shadow: 0 18px 40px -24px var(--sombra);
}
.meta-cabeza { font-weight: 600; color: var(--muted); font-size: .95rem; }
.meta-nombre { font-weight: 600; font-size: 1.4rem; margin-top: .35rem; }
.meta-cifras { color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.meta-cifras b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.meta-barra { height: 6px; border-radius: 3px; background: var(--surface-2); margin: 1rem 0 1.25rem; overflow: hidden; }
.meta-barra i { display: block; height: 100%; width: var(--p); background: var(--accent); border-radius: 3px; }
.meta-pie { border-top: 1px solid var(--border); padding-top: 1rem; font-size: .95rem; }
.meta-pie span { display: block; font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }

/* Planes: dos tarjetas y el selector Mensual / Anual. Sin JavaScript: dos radios y :has(). */
.precios h2 { max-width: 20ch; }
.periodo {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 2rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.periodo input { position: absolute; opacity: 0; pointer-events: none; }
.periodo label {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.25rem;
  border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted);
  transition: background-color .2s ease-out, color .2s ease-out;
}
.periodo label:hover { color: var(--text); }
.periodo input:checked + label { background: var(--lima); color: var(--lima-ink); }
.periodo input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.ahorro { font: 500 .75rem/1 var(--mono); padding: .3rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--accent); }
.periodo input:checked + label .ahorro { background: var(--lima-ink); color: var(--lima); }

.tarjetas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 58rem; }
@media (max-width: 46rem) { .tarjetas { grid-template-columns: 1fr; } }
.plan {
  display: flex; flex-direction: column; padding: 1.75rem;
  border: 1px solid var(--border); border-radius: var(--radio-g); background: var(--surface);
}
.plan.plus { border-color: var(--accent); box-shadow: 0 18px 40px -24px var(--sombra); }
.plan h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.plan.plus h3 { color: var(--accent); }
.plan .para { color: var(--muted); margin-top: .4rem; min-height: 3.2em; }
.precio { margin: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; }
.precio b { font: 500 clamp(2rem, 4vw, 2.5rem)/1 var(--mono); letter-spacing: -.02em; }
.precio span { color: var(--muted); font-size: .95rem; }
.solo-mensual { display: none; }
.precios:has(#mensual:checked) .solo-mensual { display: flex; }
.precios:has(#mensual:checked) .solo-anual { display: none; }
.precios:has(#mensual:checked) .ahorro { opacity: .85; }
.plan .boton { width: 100%; }
.plan .boton:not(.principal) { border: 1px solid var(--border); color: var(--text); }
.plan .boton:not(.principal):hover { border-color: var(--muted); }
.aparte { margin-top: 1.5rem; font-weight: 600; font-size: .95rem; }
.trae { list-style: none; margin: 1rem 0 0; padding: 0; }
.plan .boton + .trae { margin-top: 1.5rem; }
.trae li { position: relative; padding: .5rem 0 .5rem 1.75rem; font-size: .97rem; border-top: 1px solid var(--border); }
.trae li::before {
  content: ''; position: absolute; left: .1rem; top: .95rem; width: .7rem; height: .38rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.precios .nota { margin-top: 1.5rem; }

.confianza ul { margin: 0 0 1.5rem; padding: 0; list-style: none; max-width: 44rem; }
.confianza li { padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
.confianza li:first-child { border-top: 1px solid var(--border); }

.cierre { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.cierre h2 { margin: 0; }
.robot.grande { width: 4.5rem; height: 4.5rem; }

.pie {
  max-width: var(--ancho); margin: 0 auto;
  padding: 2rem 1.25rem max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  color: var(--muted); font-size: .9rem;
}
.pie .marca { font-size: 1.15rem; }
.pie a { color: var(--muted); }
.pie a:hover { color: var(--text); }
