:root {
  --acento: #ffde00;
  --acento-texto: #111111;
  --gris-marca: #404040;
  --fondo: #ffffff;
  --texto: #1d2433;
  --suave: #5b6476;
  --borde: #e3e7ee;
  --panel: #f5f7fa;
  --oscuro: #161616;
  --codigo: #1b1b1f;
  --codigo-texto: #e8e8ea;
  --radio: 14px;
  --ancho: 1120px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--texto); text-decoration-color: var(--acento); text-decoration-thickness: 2px; text-underline-offset: 3px; }
img { max-width: 100%; }
.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }

/* Barra superior */
.barra { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde); }
.barra-in { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--gris-marca); text-decoration: none; }
.marca-icono { width: 34px; height: 34px; border-radius: 6px; }
.marca-palabra { height: 24px; width: auto; }
.marca span { color: var(--gris-marca); font-weight: 600; letter-spacing: .02em; }
.menu { display: flex; gap: 20px; flex-wrap: wrap; flex: 1; }
.menu a { color: var(--suave); text-decoration: none; font-weight: 500; }
.menu a:hover { color: var(--texto); }
.idioma { margin-left: auto; font-size: .9rem; color: var(--suave); text-decoration: none; border: 1px solid var(--borde); border-radius: 999px; padding: 4px 14px; }
.idioma:hover { color: var(--texto); border-color: var(--suave); }

/* Portada */
.hero { background: var(--oscuro); color: #fff; padding: 88px 0 80px; border-bottom: 6px solid var(--acento); }
.hero .sello { display: block; width: 260px; max-width: 70%; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--acento); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 20px; letter-spacing: -.02em; max-width: 16ch; }
.hero p.lema { font-size: 1.2rem; color: #c9d2e3; max-width: 60ch; margin: 0 0 32px; }
.hero .puntos { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; color: #c9d2e3; padding: 0; list-style: none; }
.hero .puntos li::before { content: "✓ "; color: var(--acento); font-weight: 700; }

/* Botones */
.botones { display: flex; gap: 14px; flex-wrap: wrap; }
.boton { display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--acento); color: var(--acento-texto); border: 2px solid var(--acento); }
.boton.secundario { background: transparent; color: inherit; border-color: currentColor; }
.boton:hover { filter: brightness(1.08); }

/* Secciones */
.seccion { padding: 72px 0; }
.seccion.gris { background: var(--panel); }
.seccion h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.015em; }
.seccion p.intro { color: var(--suave); font-size: 1.1rem; max-width: 70ch; margin: 0 0 36px; }
.seccion h3 { margin: 0 0 8px; font-size: 1.15rem; }

/* Tarjetas */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tarjeta { background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio); padding: 26px; }
.gris .tarjeta { background: #fff; }
.tarjeta p { margin: 0; color: var(--suave); }
.tarjeta .icono { font-size: 1.6rem; margin-bottom: 10px; display: block; }

/* Dos columnas: texto y código */
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.dos + .dos { margin-top: 64px; }
@media (max-width: 820px) { .dos { grid-template-columns: 1fr; gap: 20px; } }

/* Código */
pre { background: var(--codigo); color: var(--codigo-texto); border-radius: var(--radio); padding: 20px 22px; overflow-x: auto; font-size: .88rem; line-height: 1.55; margin: 0; }
code { font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace; }
p code, li code, td code { background: var(--panel); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.salida { margin-top: 10px; }
.salida pre { background: #26262b; font-size: .82rem; }
.etiqueta { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--suave); margin: 0 0 6px; }

/* Tablas */
.tabla { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); }
.tabla th, .tabla td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla th { background: var(--panel); font-weight: 600; }
.tabla tr:last-child td { border-bottom: 0; }
.envoltura-tabla { overflow-x: auto; }

/* Listas */
.lista { padding-left: 0; list-style: none; margin: 0; }
.lista li { padding: 6px 0 6px 28px; position: relative; }
.lista li::before { content: "✓"; position: absolute; left: 0; color: var(--acento); font-weight: 700; }

/* Llamado final */
.llamado { background: var(--oscuro); color: #fff; text-align: center; padding: 80px 0; }
.llamado h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 14px; }
.llamado p { color: #c9d2e3; margin: 0 auto 30px; max-width: 60ch; }
.llamado .botones { justify-content: center; }

/* Pie */
.pie { border-top: 1px solid var(--borde); padding: 32px 0; color: var(--suave); font-size: .9rem; }
.pie a { color: var(--suave); }
.pie .columnas { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }

/* Que el código no ensanche las columnas en pantallas chicas */
.dos > *, .tarjetas > * { min-width: 0; }
@media (max-width: 600px) {
  .menu { display: none; }
  .hero { padding: 56px 0; }
  .seccion { padding: 52px 0; }
}
.tarjetas.anchas { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.tarjeta pre { font-size: .8rem; padding: 14px 16px; margin-top: 10px; }

/* Colores del código */
pre.codigo { border-left: 4px solid var(--acento); }
.t-clave { color: #ffde00; font-weight: 600; }
.t-direc { color: #c792ea; font-weight: 600; }
.t-cadena { color: #a5e075; }
.t-campo { color: #ffcb6b; }
.t-numero { color: #f78c6c; }
.t-func { color: #82aaff; }
.t-tipo { color: #89ddff; }
.t-coment { color: #7f8790; font-style: italic; }
.t-op { color: #b7bcc4; }
.t-etiq { color: #ff7a93; }
.t-atrib { color: #ffcb6b; }

/* Influencias y razones */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.chip { border: 1px solid var(--borde); border-radius: 999px; padding: 8px 18px; background: #fff; font-weight: 600; }
.chip small { font-weight: 400; color: var(--suave); }
.cita { font-size: 1.15rem; border-left: 4px solid var(--acento); padding: 4px 0 4px 18px; margin: 0 0 18px; color: var(--texto); }
.acerca { color: var(--suave); max-width: 80ch; }
.lista li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--acento); color: var(--acento-texto); font-size: .72rem; display: flex; align-items: center; justify-content: center; }
.seccion.gris .tarjeta, .tarjeta { border-top: 3px solid var(--acento); }
