/* Hoja de estilo de dictaly.app
 *
 * Sin dependencias externas: ni tipografías de Google ni frameworks. Una landing
 * que carga en un suspiro convierte mejor, y además `.app` está en la lista de
 * precarga HSTS, así que todo tiene que ir por HTTPS desde el primer byte.
 *
 * Claro y oscuro se resuelven con variables y una sola media query. */

:root {
  --fondo: #ffffff;
  --fondo-alt: #f6f7f9;
  --texto: #14161a;
  --texto-suave: #5b6270;
  --borde: #e3e6ea;
  --marca: #2f6df6;
  --marca-oscura: #1d4fd7;
  --marca-suave: #eaf1ff;
  --exito: #0f7b52;
  --radio: 12px;
  --ancho: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0e1116;
    --fondo-alt: #161a21;
    --texto: #eef1f5;
    --texto-suave: #a2abba;
    --borde: #262c36;
    --marca: #6f9bff;
    --marca-oscura: #8db0ff;
    --marca-suave: #182337;
    --exito: #4ac795;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}

.envoltura {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--marca); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }

/* -- navegación ------------------------------------------------------------ */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--fondo) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}

nav .envoltura {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.marca {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--texto);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.marca svg { width: 26px; height: 26px; flex: none; }

nav .enlaces { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav .enlaces a { color: var(--texto-suave); text-decoration: none; font-size: 0.95rem; }
nav .enlaces a:hover { color: var(--texto); }

@media (max-width: 720px) {
  nav .enlaces a:not(.boton) { display: none; }
}

/* -- botones --------------------------------------------------------------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radio);
  background: var(--marca);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.boton:hover { background: var(--marca-oscura); }

.boton.secundario {
  background: transparent;
  color: var(--texto) !important;
  border-color: var(--borde);
}

.boton.secundario:hover { background: var(--fondo-alt); }

nav .boton { padding: 9px 18px; }

/* -- portada --------------------------------------------------------------- */

.portada { padding: 88px 0 72px; text-align: center; }

.portada .entradilla {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--texto-suave);
  max-width: 640px;
  margin: 0 auto 32px;
}

.acciones {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.letra-pequena { color: var(--texto-suave); font-size: 0.9rem; }

.demo {
  margin: 56px auto 0;
  max-width: 760px;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: var(--fondo-alt);
  overflow: hidden;
  text-align: left;
}

.demo-barra {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--borde);
}

.demo-barra span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--borde);
}

.demo-cuerpo { padding: 24px; display: grid; gap: 18px; }

.demo-fila { display: grid; gap: 6px; }

.demo-etiqueta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--texto-suave);
  font-weight: 600;
}

.demo-texto {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--fondo);
  border: 1px solid var(--borde);
}

.demo-texto.dicho { color: var(--texto-suave); }
.demo-flecha { text-align: center; color: var(--texto-suave); font-size: 1.3rem; }

/* -- secciones ------------------------------------------------------------- */

section { padding: 72px 0; }
section.alterna { background: var(--fondo-alt); border-block: 1px solid var(--borde); }

.titular { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.titular p { color: var(--texto-suave); margin: 0; }

.rejilla { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.tarjeta {
  padding: 26px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--fondo);
}

.tarjeta h3 { margin-bottom: 8px; }
.tarjeta p { color: var(--texto-suave); margin: 0; font-size: 0.96rem; }

.paso-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--marca-suave);
  color: var(--marca);
  font-weight: 700;
  margin-bottom: 14px;
}

/* -- precio ---------------------------------------------------------------- */

.precios {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  max-width: 720px;
  margin: 0 auto;
}

.plan {
  padding: 30px;
  border: 1px solid var(--borde);
  border-radius: 16px;
  background: var(--fondo);
  position: relative;
}

.plan.destacado { border-color: var(--marca); box-shadow: 0 0 0 1px var(--marca); }

.plan .insignia {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--marca);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan .cifra { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; }
.plan .periodo { color: var(--texto-suave); font-size: 0.95rem; }

.lista { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.lista li { padding-left: 26px; position: relative; font-size: 0.96rem; }
.lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--exito);
  border-bottom: 2px solid var(--exito);
  transform: rotate(-45deg);
}

.plan .boton { width: 100%; }

.nota-precio { text-align: center; color: var(--texto-suave); font-size: 0.9rem; margin-top: 28px; }

/* -- preguntas ------------------------------------------------------------- */

.faq { max-width: 760px; margin: 0 auto; }

details {
  border-bottom: 1px solid var(--borde);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--texto-suave); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 14px 0 0; color: var(--texto-suave); }

/* -- pie ------------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--borde);
  padding: 40px 0;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

footer .envoltura { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer a { color: var(--texto-suave); text-decoration: none; }
footer a:hover { color: var(--texto); text-decoration: underline; }
footer .derecha { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }

/* -- páginas legales ------------------------------------------------------- */

.documento { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.documento h1 { margin-bottom: 8px; }
.documento h2 { font-size: 1.35rem; margin-top: 40px; }
.documento .fecha { color: var(--texto-suave); margin-bottom: 32px; }
.documento ul { padding-left: 22px; }
.documento li { margin-bottom: 8px; }
.documento .aviso {
  border-left: 3px solid var(--marca);
  background: var(--fondo-alt);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
