/* RAMS Design Lab, public pages (landing, prices, developers, legal). Ink and paper,
   same tokens as the app (app/web/style.css). */
:root {
  --fondo: #f6f6f5;
  --panel: #ffffff;
  --panel-2: #efefee;
  --borde: rgba(20, 20, 22, .10);
  --borde-fuerte: rgba(20, 20, 22, .18);
  --texto: #19191b;
  --suave: #5f5f66;
  --tenue: #6b6b72;  /* 4,5:1 sobre los paneles claros */
  --acento: #0b0b0c;
  --acento-texto: #f4f3ef;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  --curva: cubic-bezier(.2, .8, .2, 1);
  --ancho: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0b0b0c;
    --panel: #151516;
    --panel-2: #1e1e20;
    --borde: rgba(236, 236, 240, .09);
    --borde-fuerte: rgba(236, 236, 240, .18);
    --texto: #f4f3ef;
    --suave: #a1a1a8;
    --tenue: #8a8a92;  /* 4,5:1 sobre los paneles oscuros */
    --acento: #f4f3ef;
    --acento-texto: #0b0b0c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--texto); outline-offset: 3px; border-radius: 4px; }
.envoltura { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .envoltura { padding: 0 32px; } }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 10; }
.saltar:focus { left: 16px; }

/* ---------------------------------------------------------------- header */
.cabecera { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--fondo) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--borde); }
.cabecera .envoltura { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.marca { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; text-decoration: none; }
.logo { width: 22px; height: 23px; flex: none; fill: currentColor; }
.logo .cinta { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: trazar-cinta 900ms var(--curva) 150ms forwards; }
@keyframes trazar-cinta { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .logo .cinta { animation: none; stroke-dashoffset: 0; } }
.marca-nombre { letter-spacing: .06em; white-space: nowrap; }
.marca-nombre span { margin-left: 4px; font-weight: 400; letter-spacing: 0; color: var(--suave); }
.menu { display: none; gap: 22px; margin-left: auto; font-size: 14px; }
.menu a { text-decoration: none; color: var(--suave); }
.menu a:hover { color: var(--texto); }
@media (min-width: 860px) { .menu { display: flex; } }
.cabecera .acciones { display: flex; gap: 8px; margin-left: auto; }
@media (min-width: 860px) { .cabecera .acciones { margin-left: 8px; } }
@media (max-width: 420px) {
  .marca-nombre span { display: none; }
  .cabecera .acciones .boton { min-height: 36px; padding: 0 12px; }
}

/* ---------------------------------------------------------------- buttons */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--acento); background: var(--acento); color: var(--acento-texto); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 120ms var(--curva), opacity 120ms; }
.boton:hover { opacity: .9; }
.boton:active { transform: scale(.98); }
.boton.fantasma { background: transparent; color: var(--texto); border-color: var(--borde-fuerte); }
.boton.grande { min-height: 48px; padding: 0 22px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .boton { transition: none; } .boton:active { transform: none; } }

/* ---------------------------------------------------------------- sections */
section { padding: 72px 0; }
@media (min-width: 720px) { section { padding: 104px 0; } }
.seccion-borde { border-top: 1px solid var(--borde); }
.antetitulo { margin: 0 0 12px; font-family: var(--mono); font-size: 13px; color: var(--suave); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(36px, 7vw, 68px); line-height: 1.03; letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; }
h3 { font-size: 17px; letter-spacing: -.01em; }
.entrada { max-width: 640px; margin: 16px 0 0; color: var(--suave); font-size: 17px; text-wrap: pretty; }
.cabeza-seccion { max-width: 720px; margin-bottom: 48px; }

/* hero */
.hero { padding-top: 64px; }
@media (min-width: 720px) { .hero { padding-top: 96px; } }
.hero h1 { max-width: 15ch; }
.hero .entrada { font-size: 18px; }
.form-enlace { display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; margin-top: 32px; padding: 6px; border: 1px solid var(--borde-fuerte); border-radius: 14px; background: var(--panel); }
.form-enlace label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-enlace input { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--texto); font: inherit; font-size: 16px; }
.form-enlace input:focus { outline: none; }
.form-enlace:focus-within { border-color: var(--texto); }
.form-enlace .boton { flex: 1 0 auto; }
@media (min-width: 520px) { .form-enlace .boton { flex: 0 0 auto; } }
.hero-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; font-size: 14px; color: var(--suave); }
.hero-acciones a.enlace { font-weight: 500; color: var(--texto); }

/* before / after illustration */
.demo { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 900px) { .demo { grid-template-columns: 1.15fr .85fr; align-items: stretch; } }
.lamina { position: relative; padding: 20px; border: 1px solid var(--borde); border-radius: 18px; background: var(--panel); min-width: 0; }
.lamina-titulo { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-family: var(--mono); font-size: 12px; color: var(--suave); }
.linea-tiempo { width: 100%; height: auto; display: block; color: var(--texto); }
.linea-tiempo .base { fill: var(--panel-2); }
.linea-tiempo .barra { fill: currentColor; opacity: .22; }
.linea-tiempo .barra.alta { opacity: 1; }
.linea-tiempo .marca-pico { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 3; }
.linea-tiempo text { font-family: var(--mono); font-size: 11px; fill: var(--suave); }
.momentos-lista { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.momentos-lista li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); font-size: 14px; min-width: 0; }
.momentos-lista .tiempo { font-family: var(--mono); font-size: 12px; color: var(--suave); flex: none; }
.momentos-lista .titulo-m { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nota-puntos { flex: none; min-width: 34px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--borde-fuerte); font-family: var(--mono); font-size: 12px; text-align: center; }
.nota-puntos.alta { background: var(--acento); color: var(--acento-texto); border-color: var(--acento); }
.ficha { display: grid; gap: 16px; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); align-items: start; }
/* The mock video frame is dark in both themes, like real footage under captions. */
.vertical { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: linear-gradient(165deg, #3a3a3f, #1b1b1d); }
.vertical .rostro { position: absolute; left: 50%; top: 28%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #6a6a71; }
.vertical .cuerpo { position: absolute; left: 50%; top: 52%; width: 80%; height: 40%; transform: translateX(-50%); border-radius: 40% 40% 0 0; background: #55555b; }
.vertical .gancho { position: absolute; left: 8%; right: 8%; top: 7%; padding: 4px 6px; border-radius: 6px; background: #f4f3ef; color: #0b0b0c; font-size: 10px; font-weight: 600; line-height: 1.25; text-align: center; }
.vertical .subtitulo-k { position: absolute; left: 6%; right: 6%; bottom: 12%; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 1px #000; }
.vertical .subtitulo-k b { color: #0b0b0c; background: #f4f3ef; padding: 0 3px; border-radius: 3px; text-shadow: none; font-weight: 700; }
.ficha-datos { display: grid; gap: 10px; min-width: 0; font-size: 14px; }
.ficha-datos .cabeza { display: flex; align-items: center; gap: 10px; }
.ficha-datos h3 { font-size: 15px; line-height: 1.3; }
.ficha-datos p { margin: 0; color: var(--suave); }
.transcripcion { font-family: var(--mono); font-size: 12px; color: var(--suave); padding: 10px; border-radius: 8px; background: var(--panel-2); overflow-wrap: anywhere; }
.transcripcion s { opacity: .55; }
.pie-lamina { margin: 14px 0 0; font-size: 12px; color: var(--tenue); }

/* steps */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--borde); border: 1px solid var(--borde); border-radius: 18px; overflow: hidden; counter-reset: paso; }
@media (min-width: 820px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.pasos li { padding: 28px 24px 32px; background: var(--panel); counter-increment: paso; }
.pasos li::before { content: "0" counter(paso); display: block; margin-bottom: 28px; font-family: var(--mono); font-size: 13px; color: var(--suave); }
.pasos p { margin: 8px 0 0; color: var(--suave); font-size: 15px; }

/* features */
.funciones { display: grid; gap: 16px; }
@media (min-width: 640px) { .funciones { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .funciones { grid-template-columns: repeat(6, 1fr); } .funciones > :nth-child(-n+2) { grid-column: span 3; } .funciones > :nth-child(n+3) { grid-column: span 2; } }
.funcion { padding: 24px; border: 1px solid var(--borde); border-radius: 18px; background: var(--panel); min-width: 0; }
.funcion .icono { width: 22px; height: 22px; margin-bottom: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.funcion p { margin: 8px 0 0; color: var(--suave); font-size: 15px; }
.funcion ul { margin: 12px 0 0; padding-left: 18px; color: var(--suave); font-size: 14px; }

/* pricing */
.ciclo { display: inline-flex; padding: 4px; margin-bottom: 28px; border: 1px solid var(--borde-fuerte); border-radius: 12px; background: var(--panel); }
.ciclo button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--suave); font: inherit; font-size: 14px; cursor: pointer; }
.ciclo button[aria-pressed="true"] { background: var(--acento); color: var(--acento-texto); }
.planes { display: grid; gap: 16px; }
@media (min-width: 820px) { .planes { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--borde); border-radius: 18px; background: var(--panel); min-width: 0; }
.plan .precio { font-size: 36px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.plan .periodo { margin-left: 6px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--suave); }
.plan .equivale { margin: -8px 0 0; font-size: 13px; color: var(--suave); min-height: 1.6em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: currentColor; }
.plan li.no { color: var(--tenue); }
.plan li.no::before { background: transparent; border: 1px solid currentColor; }
.estado-precios { padding: 24px; border: 1px dashed var(--borde-fuerte); border-radius: 18px; color: var(--suave); }
.paquetes { margin-top: 24px; font-size: 14px; color: var(--suave); }
.paquetes ul { margin: 8px 0 0; padding-left: 18px; }
.nota-precios { margin: 24px 0 0; font-size: 13px; color: var(--tenue); max-width: 720px; }

/* FAQ */
.preguntas { max-width: 820px; border-top: 1px solid var(--borde); }
.preguntas details { border-bottom: 1px solid var(--borde); }
.preguntas summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 500; cursor: pointer; list-style: none; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; flex: none; font-family: var(--mono); color: var(--suave); }
.preguntas details[open] summary::after { content: "\2212"; }
.preguntas details p { margin: 0 0 20px; color: var(--suave); max-width: 680px; }

/* closing call to action and footer */
.cierre { text-align: left; }
.cierre .acciones-cierre { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pie { padding: 40px 0 48px; border-top: 1px solid var(--borde); font-size: 14px; color: var(--suave); }
.pie .envoltura { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.pie nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--texto); }

/* developer and legal pages */
.documento { max-width: 820px; padding-top: 56px; padding-bottom: 80px; }
.documento h1 { font-size: clamp(32px, 5vw, 48px); }
.documento h2 { margin-top: 48px; font-size: 24px; }
.documento h3 { margin-top: 28px; }
.documento p, .documento li { color: var(--suave); }
.documento code { font-family: var(--mono); font-size: .9em; padding: 1px 5px; border-radius: 5px; background: var(--panel-2); overflow-wrap: anywhere; }
.documento pre { margin: 12px 0 0; padding: 16px; border: 1px solid var(--borde); border-radius: 12px; background: var(--panel); overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.55; }
.documento pre code { padding: 0; background: none; overflow-wrap: normal; }
.documento table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.documento th, .documento td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--borde); text-align: left; vertical-align: top; }
.documento th { font-weight: 500; }
.aviso-pendiente { padding: 16px 18px; border: 1px solid var(--borde-fuerte); border-radius: 12px; background: var(--panel); color: var(--texto); font-weight: 500; }

figure.lamina { margin: 0; }
