/* DS Edition — la web (D24). La estética de la app (D23): Apple + Notion con los
   colores de la marca. Inter (OFL, en ../fuentes), mucho aire, jerarquía por
   tamaño y peso, esquinas suaves, líneas finas, barra con desenfoque y
   movimiento con resortes. Claro u oscuro según el sistema; con «reducir
   movimiento», nada se mueve. Sin estilos en línea (la CSP de _headers no los deja). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fuentes/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fuentes/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fuentes/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-display: swap; src: url("../fuentes/InterDisplay-Bold.woff2") format("woff2"); }

:root {
  --fondo: #fbfbfa;
  --fondo-suave: #f5f5f4;
  --superficie: #ffffff;
  --texto: #191919;
  --texto-2: #5f5e5b;
  --texto-3: #6f6e69;
  --linea: #ededec;
  --linea-fuerte: #dadad7;
  --acento: #2dd4f5;
  --acento-texto: #00768f;
  --tinta: #0b1b21;
  --elegido: #e3f6fb;
  --vidrio: rgba(251, 251, 250, 0.78);
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --sombra-alta: 0 2px 6px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.10);
  --r-control: 10px;
  --r-tarjeta: 14px;
  --r-panel: 20px;
  /* Un resorte suave (como en iOS): llega rápido y se asienta sin rebote visible. */
  --resorte: cubic-bezier(0.22, 1, 0.36, 1);
  --ancho: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #191919;
    --fondo-suave: #202020;
    --superficie: #202020;
    --texto: #ededed;
    --texto-2: #a5a5a5;
    --texto-3: #8e8e8e;
    --linea: #2f2f2f;
    --linea-fuerte: #3f3f3f;
    --acento-texto: #2dd4f5;
    --elegido: #16323a;
    --vidrio: rgba(25, 25, 25, 0.72);
    --sombra: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --sombra-alta: 0 2px 6px rgba(0, 0, 0, 0.35), 0 24px 48px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acento-texto); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 4px; }
code { font: 0.9em "JetBrains Mono", ui-monospace, monospace; background: var(--fondo-suave); padding: 0.1em 0.35em; border-radius: 6px; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font: 700 clamp(1.6rem, 3.2vw, 2.4rem)/1.15 "Inter Display", "Inter", sans-serif; letter-spacing: -0.03em; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.saltar { position: absolute; left: -999px; top: 8px; background: var(--superficie); padding: 8px 14px; border-radius: var(--r-control); z-index: 20; }
.saltar:focus { left: 8px; }

.contenedor { width: min(100% - 32px, var(--ancho)); margin-inline: auto; }
.contenedor--texto { width: min(100% - 32px, 720px); }
.centrado { text-align: center; }

/* Barra superior: vidrio esmerilado (desenfoque sutil) que se queda arriba. */
.barra {
  position: sticky; top: 0; z-index: 10;
  background: var(--vidrio);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--linea);
}
.barra__fila { display: flex; align-items: center; gap: 24px; height: 60px; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--texto); font-weight: 600; font-size: 1.05rem; }
.marca:hover { text-decoration: none; }
.logo { width: 22px; height: 22px; fill: var(--acento-texto); }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { color: var(--texto-2); padding: 6px 12px; border-radius: 999px; font-size: 0.95rem; transition: background 0.25s var(--resorte), color 0.25s; }
.menu a:hover { background: var(--fondo-suave); color: var(--texto); text-decoration: none; }
.menu a[aria-current="page"] { color: var(--texto); font-weight: 500; }
@media (max-width: 760px) { .menu { display: none; } .barra .boton { margin-left: auto; } }

/* Botones: suaves, con un leve hundimiento al pulsar. */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-control);
  background: var(--acento); color: var(--tinta); font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.35s var(--resorte), box-shadow 0.35s var(--resorte), background 0.2s;
}
.boton:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(45, 212, 245, 0.35); transform: translateY(-1px); }
.boton:active { transform: scale(0.97); }
.boton--secundario { background: var(--superficie); color: var(--texto); border-color: var(--linea-fuerte); }
.boton--secundario:hover { box-shadow: var(--sombra); }
.boton--grande { min-height: 52px; padding: 0 26px; font-size: 1.05rem; border-radius: var(--r-tarjeta); }
.boton--pequeno { min-height: 36px; padding: 0 16px; font-size: 0.92rem; }
.boton--inactivo { opacity: 0.5; pointer-events: none; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.acciones--centro { justify-content: center; }
.enlace-flecha { font-weight: 500; }
.enlace-flecha::after { content: " →"; display: inline-block; transition: transform 0.35s var(--resorte); }
.enlace-flecha:hover::after { transform: translateX(4px); }

/* Portada */
.portada { padding: clamp(72px, 12vw, 140px) 0 64px; }
.portada--pagina { padding-bottom: 40px; }
.antetitulo { color: var(--texto-3); font-size: 0.9rem; font-weight: 500; margin-bottom: 14px; }
.titular { font: 700 clamp(2.6rem, 7vw, 4.6rem)/1.04 "Inter Display", "Inter", sans-serif; letter-spacing: -0.045em; margin-bottom: 20px; }
.titular__gris { color: var(--texto-3); }
.lema { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--texto-2); max-width: 640px; }
.centrado .lema { margin-inline: auto; }
.nota { color: var(--texto-3); font-size: 0.9rem; }

.captura { margin-block: 0; }
.captura img { border-radius: var(--r-panel); border: 1px solid var(--linea); box-shadow: var(--sombra-alta); }
.captura--portada { margin-top: 56px; }

/* Secciones */
.seccion { padding: clamp(64px, 9vw, 112px) 0; }
.seccion--sin-arriba { padding-top: 8px; }
.seccion--suave { background: var(--fondo-suave); border-block: 1px solid var(--linea); }
.seccion--llamada { text-align: center; }
.cabecera { max-width: 720px; margin-bottom: 40px; }
.dos-columnas { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .dos-columnas { grid-template-columns: 1fr; } }

.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rejilla--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tarjeta {
  background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--r-tarjeta);
  padding: 26px; transition: transform 0.45s var(--resorte), box-shadow 0.45s var(--resorte);
}
.tarjeta:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta p { color: var(--texto-2); }
.tarjeta h2 { font-size: 1.5rem; }
.tarjeta--proximamente { border-style: dashed; }
.tarjeta--descarga { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tarjeta--descarga .boton { margin: 12px 0 8px; }

.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pasos__numero {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--elegido); color: var(--acento-texto); font-weight: 600; margin-bottom: 14px;
}
.lista-pasos { padding-left: 1.3em; }
.lista-pasos li { margin-bottom: 10px; padding-left: 4px; }
.lista { padding-left: 1.1em; color: var(--texto-2); }
.lista li { margin-bottom: 8px; }

/* Precios */
.periodo { display: inline-flex; gap: 4px; padding: 4px; margin-top: 24px; background: var(--fondo-suave); border: 1px solid var(--linea); border-radius: 999px; }
.periodo__opcion { border: 0; background: none; color: var(--texto-2); font: inherit; font-weight: 500; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background 0.3s var(--resorte), color 0.3s; }
.periodo__opcion[aria-pressed="true"] { background: var(--superficie); color: var(--texto); box-shadow: var(--sombra); }
.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .planes { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--r-panel); padding: 28px; }
.plan--destacado { border-color: var(--acento); box-shadow: 0 0 0 1px var(--acento), var(--sombra-alta); }
.plan__etiqueta { position: absolute; top: -12px; left: 28px; background: var(--acento); color: var(--tinta); font-size: 0.8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.plan__nombre { font: 600 1.15rem/1.3 "Inter", sans-serif; letter-spacing: -0.01em; margin-bottom: 8px; }
.plan__precio { margin: 0 0 4px; color: var(--texto-2); }
.plan__cifra { font: 700 2.4rem/1.1 "Inter Display", "Inter", sans-serif; letter-spacing: -0.03em; color: var(--texto); margin-right: 4px; }
.plan__ahorro { color: var(--acento-texto); font-size: 0.9rem; margin: 0; }
.plan__para { color: var(--texto-3); font-size: 0.95rem; }
.plan .boton { width: 100%; margin: 8px 0 22px; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { position: relative; padding: 8px 0 8px 26px; border-top: 1px solid var(--linea); font-size: 0.95rem; color: var(--texto-2); }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--acento-texto); font-weight: 600; }
.plan li.plan__no::before { content: "·"; color: var(--texto-3); }
.plan li strong { color: var(--texto); font-weight: 600; }
.llamada { margin-left: 2px; font-weight: 600; }
.notas-planes { margin-top: 40px; }

/* Documentación (tipo Notion): índice a la izquierda, texto a la derecha. */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 56px 0 96px; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 24px; } }
.docs__lateral { position: sticky; top: 84px; align-self: start; }
.docs__titulo { color: var(--texto-3); font-size: 0.85rem; font-weight: 500; margin-bottom: 8px; }
.docs__lateral ul { list-style: none; margin: 0; padding: 0; }
.docs__lateral a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--texto-2); font-size: 0.95rem; transition: background 0.25s var(--resorte); }
.docs__lateral a:hover { background: var(--fondo-suave); color: var(--texto); text-decoration: none; }
.docs__lateral a[aria-current="page"] { background: var(--elegido); color: var(--texto); font-weight: 500; }
.docs__texto { max-width: 720px; }
.docs__texto h1, .legal h1 { font: 700 clamp(2rem, 4vw, 2.8rem)/1.1 "Inter Display", "Inter", sans-serif; letter-spacing: -0.035em; }
.docs__texto h2, .legal h2 { font: 600 1.35rem/1.3 "Inter", sans-serif; letter-spacing: -0.02em; margin-top: 2.2em; scroll-margin-top: 80px; }
.legal { padding: 56px 0 96px; }
.legal section { margin-bottom: 8px; }
.tabla { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; }
.tabla th, .tabla td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla th { color: var(--texto-3); font-weight: 500; }

.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; color: var(--texto-3); font-size: 1.3rem; line-height: 1; transition: transform 0.35s var(--resorte); }
.preguntas details[open] summary::after { transform: rotate(45deg); }
.respuesta { color: var(--texto-2); padding-bottom: 12px; }

/* Pie */
.pie { border-top: 1px solid var(--linea); padding: 56px 0 32px; font-size: 0.92rem; }
.pie__fila { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .pie__fila { grid-template-columns: 1fr 1fr; } .pie__marca { grid-column: 1 / -1; } }
.pie__marca p { color: var(--texto-2); margin: 10px 0 0; }
.pie__columna p { color: var(--texto); font-weight: 600; margin-bottom: 10px; }
.pie__columna ul { list-style: none; margin: 0; padding: 0; }
.pie__columna li { margin-bottom: 8px; }
.pie__columna a { color: var(--texto-2); }
.pie__copy { color: var(--texto-3); margin-top: 40px; }

/* Aparición al hacer scroll (con JS): sube 16 px y se funde, escalonado. Sin JS se ve todo. */
.js .revelar { opacity: 0; transform: translateY(16px) scale(0.99); transition: opacity 0.7s var(--resorte), transform 0.9s var(--resorte); transition-delay: var(--retraso, 0s); }
.js .revelar.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .revelar { opacity: 1; transform: none; }
}
