/* =========================================================
   FORJA CULTURA — línea gráfica (web OSCURA)
   Anton · Oswald · Space Grotesk · JetBrains Mono
   Paleta: #14213A · #21417C · #2F5BD9 · #F3F0E8
   Brutalismo editorial: estructura, aire, la línea azul.
   ========================================================= */

:root {
  /* Paleta oficial */
  --medianoche: #14213A;
  --marino:     #21417C;
  --cobalto:    #2F5BD9;
  --hueso:      #F3F0E8;

  /* Operativos */
  --bg:         #14213A;
  --surface:    #1A2B50;
  --surface-2:  #16233F;
  --deep:       #101A30;
  --line:       #2B3F6D;      /* hairline */
  --cobalto-lift:#5B82E8;     /* azul aclarado para texto/enlaces sobre oscuro */
  --text:       #F3F0E8;
  --text-soft:  #C3CADB;
  --text-faint: #8792AD;

  --display: 'Anton', 'Oswald', sans-serif;
  --sub:     'Oswald', sans-serif;
  --font:    'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1120px;
  --ease: 0.16s ease;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.98; letter-spacing: 0.005em; }
h3 { font-family: var(--sub); font-weight: 600; line-height: 1.1; letter-spacing: 0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.center { text-align: center; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--cobalto); color: var(--hueso); padding: 10px 16px; transition: top var(--ease); font-family: var(--mono); font-size: 12px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cobalto-lift); outline-offset: 3px; }

/* eyebrow con el DISPOSITIVO de la línea azul */
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cobalto-lift); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 11px; }
.eyebrow::before { content: ""; width: 3px; height: 15px; background: var(--cobalto); display: inline-block; }
.dot { color: var(--cobalto-lift); }

/* ---------- Botones (rectangulares, mono) ---------- */
.btn { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 14px 24px; border-radius: 0; transition: transform var(--ease), background var(--ease), border-color var(--ease), color var(--ease); cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalto); color: var(--hueso); }
.btn-primary:hover { background: #3f6ae6; }
.btn-light { background: var(--hueso); color: var(--medianoche); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--hueso); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cobalto-lift); color: var(--cobalto-lift); }
.btn-dark { background: var(--medianoche); color: var(--hueso); }
.btn-dark:hover { background: #0c1526; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 33, 58, 0.82); backdrop-filter: saturate(140%) blur(9px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 26px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a { font-size: 13px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); transition: color var(--ease); }
.nav-menu a:hover { color: var(--cobalto-lift); }
.nav-cta { color: var(--hueso) !important; background: var(--cobalto); padding: 10px 16px; letter-spacing: 0.12em !important; }
.nav-cta:hover { background: #3f6ae6; color: var(--hueso) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; gap: 5px; flex-direction: column; }
.nav-toggle span { width: 22px; height: 2px; background: var(--hueso); transition: var(--ease); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 60px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); }
.hero .lead { font-family: var(--font); font-size: 17px; color: var(--text-soft); margin-top: 22px; max-width: 42ch; line-height: 1.55; }
.cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-photo { position: relative; overflow: hidden; aspect-ratio: 7 / 6; width: 100%; max-width: 520px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); }
.hero-photo::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cobalto); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(0.9) contrast(1.03); }

/* ---------- Secciones ---------- */
section { scroll-margin-top: 78px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.section-link { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalto-lift); }
.section-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Tarjetas ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 28px; transition: transform var(--ease), border-color var(--ease); position: relative; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--cobalto); transition: width var(--ease); }
a.card:hover, .card.program:hover { transform: translateY(-3px); border-color: var(--cobalto-lift); }
.card:hover::before { width: 46px; }
.card h3 { font-size: 20px; color: var(--text); }
.card p { font-size: 14px; color: var(--text-soft); margin-top: 10px; }
.card-link { display: inline-block; margin-top: 18px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalto-lift); }

/* ---------- Caja de sección ---------- */
.section-box { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 44px 40px; position: relative; }
.section-box::before { content: ""; position: absolute; left: 0; top: 40px; bottom: 40px; width: 4px; background: var(--cobalto); }

/* ---------- Iconos inline ---------- */
.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Escuela / Programas ---------- */
.escuela { padding: 66px 0; border-bottom: 1px solid var(--line); }
.prog-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 0; background: rgba(47, 91, 217, 0.16); color: var(--cobalto-lift); margin-bottom: 20px; }
.prog-icon .ic { width: 22px; height: 22px; }
.features { margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.features li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text-soft); }
.features .ic { color: var(--cobalto-lift); }
.features b { font-weight: 600; color: var(--text); }
.badge-soon { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalto-lift); border: 1px solid var(--cobalto-lift); border-radius: 0; padding: 6px 14px; }

/* ---------- Profesores invitados ---------- */
.invitados { margin-top: 56px; padding-top: 46px; border-top: 1px solid var(--line); }
.inv-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 3vw, 32px); letter-spacing: 0.01em; color: var(--text); line-height: 1; }
.inv-text { color: var(--text-soft); max-width: 66ch; margin-top: 14px; font-size: 15.5px; }
.invitados-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 24px 16px; margin-top: 32px; }
.invitado { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.inv-photo { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: border-color var(--ease); }
.inv-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); transition: filter .35s ease, transform .5s ease; }
.invitado:hover .inv-photo { border-color: var(--cobalto-lift); }
.invitado:hover .inv-photo img { filter: grayscale(0); transform: scale(1.05); }
.inv-name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: var(--cobalto-lift); line-height: 1.35; }
.invitado:hover .inv-name { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Método ---------- */
.metodo { padding: 66px 0; border-bottom: 1px solid var(--line); }
.metodo-body { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 40px; align-items: center; margin-top: 28px; }
.cuadrado { margin: 0; display: flex; align-items: center; justify-content: center; }
.cuad { width: 100%; max-width: 380px; height: auto; display: block; overflow: visible; }
.cuad .grow { transform-box: fill-box; transform-origin: center; animation: cuadGrow 3.8s ease-in-out infinite; }
@keyframes cuadGrow { 0%, 100% { transform: scale(0.32); opacity: .28; } 50% { transform: scale(1); opacity: .9; } }
.cuad text { font-family: var(--mono); font-size: 16px; letter-spacing: 0.16em; }
@media (prefers-reduced-motion: reduce) { .cuad .grow { animation: none; opacity: .6; } }
.metodo-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.metodo-body .step { border-left: 3px solid var(--cobalto); }
.step { background: var(--deep); border: 1px solid var(--line); border-radius: 0; padding: 24px; position: relative; }
.step .num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--cobalto-lift); }
.step h3 { font-size: 18px; margin-top: 10px; color: var(--text); }
.step p { font-size: 13px; color: var(--text-soft); margin-top: 8px; line-height: 1.5; }

/* ---------- Productora (carteles) ---------- */
.productora { padding: 66px 0; border-bottom: 1px solid var(--line); }
.posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.poster { margin: 0; border-radius: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: zoom-in; aspect-ratio: 3 / 4; transition: border-color var(--ease); }
.poster:hover { border-color: var(--cobalto-lift); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.poster:hover img { transform: scale(1.05); }
.poster.soon { display: flex; align-items: center; justify-content: center; cursor: default; background: var(--surface-2); border: 1px dashed var(--line); }
.poster.soon:hover { border-color: var(--line); }
.poster.soon span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalto-lift); }

/* ---------- Cartelera / novedades (bloque cobalto) ---------- */
.novedades { padding: 66px 0; }
.novedades-box { background: var(--cobalto); color: var(--hueso); border-radius: 0; padding: 58px 34px; text-align: center; position: relative; }
.novedades-box .eyebrow { color: #DDE4F8; }
.novedades-box .eyebrow::before { background: var(--hueso); }
.novedades-box h2 { color: var(--hueso); }
.novedades-box > p { color: #E3E9FA; margin: 14px auto 0; max-width: 48ch; font-family: var(--font); }
.signup { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.signup input { font-family: var(--mono); font-size: 14px; padding: 14px 18px; border: 1px solid transparent; border-radius: 0; min-width: 260px; background: var(--hueso); color: var(--medianoche); }
.signup input::placeholder { color: var(--text-faint); }
.signup-note { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: #E3E9FA; min-height: 1.2em; }

/* ---------- Masterclass (subpágina) ---------- */
.masterclass { padding: 66px 0; border-bottom: 1px solid var(--line); }
.mc-head { margin-bottom: 34px; }
.mc-head h1 { font-size: clamp(32px, 5vw, 56px); }
.mc-lead { color: var(--text-soft); margin-top: 18px; max-width: 52ch; font-size: 16px; line-height: 1.55; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--deep); border: 1px solid var(--line); border-left: 4px solid var(--cobalto); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contacto (subpágina, bloque cobalto) ---------- */
.contacto { padding: 66px 0; }
.contacto-box { background: var(--cobalto); color: var(--hueso); border-radius: 0; padding: 58px 34px; text-align: center; }
.contacto-box .eyebrow { color: #DDE4F8; }
.contacto-box .eyebrow::before { background: var(--hueso); }
.contacto-box h2 { color: var(--hueso); }
.contacto-box > p { color: #E3E9FA; margin: 14px auto 0; max-width: 48ch; font-family: var(--font); }
.contact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--medianoche); color: var(--hueso); border: 1px solid transparent; padding: 26px 18px; transition: transform var(--ease), background var(--ease); }
.contact-card:hover { transform: translateY(-3px); background: #0c1526; }
.contact-card .ic { width: 26px; height: 26px; color: var(--cobalto-lift); margin-bottom: 8px; }
.cc-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cobalto-lift); }
.cc-value { font-family: var(--mono); font-size: 13px; color: var(--hueso); word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; background: var(--deep); border-top: 1px solid var(--line); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-wrap .brand-logo { height: 24px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); transition: color var(--ease); }
.footer-nav a:hover { color: var(--cobalto-lift); }
.footer-meta { display: flex; gap: 16px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-faint); flex-wrap: wrap; }
.footer-meta a { color: var(--cobalto-lift); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 14, 26, 0.95); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 700px); max-height: 90vh; border-radius: 0; object-fit: contain; cursor: default; border: 1px solid var(--line); }
.lightbox-close { position: absolute; top: 16px; right: 22px; background: none; border: 0; color: var(--hueso); font-size: 34px; line-height: 1; cursor: pointer; padding: 4px 12px; }
.lightbox-close:hover { color: var(--cobalto-lift); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 8px 26px 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: var(--ease); }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { width: 100%; padding: 14px 0; border-top: 1px solid var(--line); }
  .nav-cta { background: transparent; color: var(--cobalto-lift) !important; padding: 14px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 320px; margin: 0 0 8px; }
  .cards-3 { grid-template-columns: 1fr; }
  .metodo-body { grid-template-columns: 1fr; gap: 30px; }
  .contact-row { grid-template-columns: 1fr; }
  .invitados-grid { grid-template-columns: repeat(5, 1fr); }
  .posters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .signup input { min-width: 100%; }
  .btn { width: 100%; text-align: center; }
  .cta-row .btn { width: auto; }
  .posters { grid-template-columns: repeat(2, 1fr); }
  .metodo-steps { grid-template-columns: 1fr; }
  .invitados-grid { grid-template-columns: repeat(3, 1fr); }
}

/* honeypot antispam: invisible para humanos */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   PÁGINAS LEGALES · PIE CON ENLACES LEGALES
   Bloque añadido: sólo suma reglas nuevas, no altera las de arriba.
   Mismo lenguaje que el resto: filete azul, hairlines, mono en
   las etiquetas. Cambia la MEDIDA: columna estrecha para leer.
   ========================================================= */

/* ---------- Documento legal (texto largo) ---------- */
.legal { padding: 66px 0 78px; }

/* font-size aquí solo fija la base del em, para que la columna del titular
   mida exactamente lo mismo que la del cuerpo y no haya escalón. */
.legal-head { font-size: 17px; max-width: 38em; margin: 0 auto 4px; }
.legal-head h1 { font-size: clamp(32px, 5vw, 56px); }
.legal-updated { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.legal-updated em { font-style: italic; }

/* Medida de lectura: 38em ≈ 68-72 caracteres por línea en Space Grotesk.
   (Ojo: la unidad ch aquí engaña — 70ch da ~85 caracteres reales.) */
.legal-body { max-width: 38em; margin-inline: auto; font-size: 17px; line-height: 1.75; color: var(--text-soft); }
.legal-body p { margin: 0 0 20px; }
.legal-body > :last-child { margin-bottom: 0; }

/* h2: hairline de sección + tick cobalto (mismo gesto que .card:hover::before) */
.legal-body h2 {
  position: relative;
  margin: 56px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.05;
  color: var(--text);
}
.legal-body h2::before { content: ""; position: absolute; left: 0; top: -1px; width: 46px; height: 3px; background: var(--cobalto); }
.legal-body > h2:first-child { margin-top: 36px; }

/* subapartados en negrita dentro de una sección */
.legal-body .legal-sub { margin-top: 34px; margin-bottom: 14px; }

/* listas: viñeta cuadrada, guiño a El Cuadrado */
.legal-body ul { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.legal-body li { position: relative; padding-left: 24px; }
.legal-body li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--cobalto-lift); }

.legal-body strong { color: var(--text); font-weight: 700; }
.legal-body em { font-style: italic; }

/* enlaces: texto en papel + subrayado cobalto (contraste alto sobre medianoche) */
.legal-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--cobalto-lift);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: break-word;
  transition: color var(--ease);
}
.legal-body a:hover { color: var(--cobalto-lift); text-decoration-thickness: 2px; }

/* ---------- Nota legal bajo el formulario de la home ----------
   Se escala la especificidad porque .novedades-box > p ya fija
   color, margen y familia para los párrafos de esa caja. */
.novedades-box .signup-legal { margin-top: 10px; max-width: 68ch; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: #DDE4F8; }
.novedades-box .signup-legal a { color: var(--hueso); text-decoration: underline; text-underline-offset: 3px; }
.novedades-box .signup-legal a:hover { text-decoration-thickness: 2px; }

/* ---------- Pie ---------- */
.footer-nav a[aria-current="page"] { color: var(--cobalto-lift); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .legal { padding: 48px 0 60px; }
  .legal-body { font-size: 16px; line-height: 1.72; }
  .legal-body h2 { margin-top: 44px; padding-top: 24px; }
  .legal-body > h2:first-child { margin-top: 30px; }
  .legal-body .legal-sub { margin-top: 28px; }
}
@media (max-width: 640px) {
  .footer-wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 480px) {
  .legal { padding: 38px 0 52px; }
  .legal-head h1 { max-width: none; }
  .legal-body { font-size: 15.5px; }
  .legal-body h2 { margin-top: 38px; padding-top: 22px; font-size: 20px; }
  .legal-body > h2:first-child { margin-top: 26px; }
  .legal-body ul { gap: 10px; }
  .legal-body li { padding-left: 20px; }
}
