/* 4GEEKS PRESS · toque de prensa sobre la maquetación pública (site.css).
   Titulares en serif de periódico (Fraunces, con Georgia de respaldo), papel cálido y tinta casi negra
   en claro, dobles filetes bajo los titulares de sección, antetítulos tipo dateline y las ilustraciones
   de public/img/art/ en línea. El azul de marca queda para acciones y para lo de IA.
   El tema sigue a <html data-theme> (mismo mecanismo que 4Geeks Center, ver /js/theme.js). */

.lp-press, .login-overlay {
  --serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --bg: #fbf8f1;
  --surface: #fffdf8;
  --surface-2: #f3ecdc;
  --overlay: rgba(251, 248, 241, 0.86);
  --ink: #171512;
  --ink-2: #4a453d;
  --ink-3: #8a8377;
  --line: rgba(23, 21, 18, 0.1);
  --line-strong: rgba(23, 21, 18, 0.2);
  --accent: #0b6fd8;
  --accent-ink: #0062c4;
  --lp-glow-a: rgba(11, 111, 216, 0.08);
  --lp-glow-b: transparent;
  --lp-spot: transparent;
  --lp-dot: transparent;
  --lp-alt: #f6f0e3;
  /* Variables de las ilustraciones (public/img/art/README.md) */
  --art-paper: #fbf8f1; --art-clip: #f3ecdc; --art-surface: #ffffff; --art-ink: #171512; --art-ink-2: #4a453d;
  --art-muted: #8a8377; --art-line: #e3dccd; --art-brand: #0084ff; --art-brand-ink: #0062c4; --art-brand-soft: #e6f2ff;
  --art-on-brand: #ffffff; --art-wire: #171512; --art-wire-ink: #fbf8f1; --art-shadow: #3b2f1a;
}
:root[data-theme="dark"] .lp-press, :root[data-theme="dark"] .login-overlay {
  --bg: #121110;
  --surface: #1c1b19;
  --surface-2: #26241f;
  --overlay: rgba(18, 17, 16, 0.86);
  --ink: #f1ece1;
  --ink-2: #c9c1b2;
  --ink-3: #8f877a;
  --line: rgba(241, 236, 225, 0.1);
  --line-strong: rgba(241, 236, 225, 0.2);
  --accent: #3b9dff;
  --accent-ink: #7cbcff;
  --lp-glow-a: rgba(59, 157, 255, 0.1); --lp-glow-b: transparent; --lp-dot: transparent;
  --lp-alt: #181715;
  --art-paper: #1c1b19; --art-clip: #28251f; --art-surface: #121a27; --art-ink: #f1ece1; --art-ink-2: #c9c1b2;
  --art-muted: #8f877a; --art-line: #3a362f; --art-brand: #3b9dff; --art-brand-ink: #7cbcff; --art-brand-soft: #10243d;
  --art-on-brand: #0b111b; --art-wire: #26231f; --art-wire-ink: #f1ece1; --art-shadow: #000000;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-press, :root:not([data-theme="light"]) .login-overlay {
    --bg: #121110;
    --surface: #1c1b19;
    --surface-2: #26241f;
    --overlay: rgba(18, 17, 16, 0.86);
    --ink: #f1ece1;
    --ink-2: #c9c1b2;
    --ink-3: #8f877a;
    --line: rgba(241, 236, 225, 0.1);
    --line-strong: rgba(241, 236, 225, 0.2);
    --accent: #3b9dff;
    --accent-ink: #7cbcff;
    --lp-glow-a: rgba(59, 157, 255, 0.1); --lp-glow-b: transparent; --lp-dot: transparent;
    --lp-alt: #181715;
    --art-paper: #1c1b19; --art-clip: #28251f; --art-surface: #121a27; --art-ink: #f1ece1; --art-ink-2: #c9c1b2;
    --art-muted: #8f877a; --art-line: #3a362f; --art-brand: #3b9dff; --art-brand-ink: #7cbcff; --art-brand-soft: #10243d;
    --art-on-brand: #0b111b; --art-wire: #26231f; --art-wire-ink: #f1ece1; --art-shadow: #000000;
  }
}
body:has(.lp-press) { background: var(--bg); }

/* Logos claro/oscuro: se ve el del tema activo */
.brand-logo { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo img { display: block; height: auto; max-width: 100%; }
.lp-brand .brand-logo img { height: 26px; width: auto; }
.logo-on-dark { display: none !important; }
:root[data-theme="dark"] .logo-on-light { display: none !important; }
:root[data-theme="dark"] .logo-on-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block !important; }
}

/* Titulares de periódico */
.lp-press h1, .lp-press h2, .lp-press .lp-step h3, .lp-press .press-feature h3,
.login-overlay .login-title, .lp-press .login-title, .press-group {
  font-family: var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
}
.lp-press .lp-hero h1, .press-headline {
  font-weight: 700;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.press-headline em, .lp-press .lp-hero h1 em { font-style: italic; color: var(--accent-ink); }
.lp-press .lp-section h2, .lp-press .lp-final h2, .press-h2 { font-weight: 650; letter-spacing: -0.015em; }
.lp-press .lp-step h3, .lp-press .press-feature h3 { font-weight: 650; font-size: 19px; }

/* Doble filete bajo los titulares de sección */
.press-rule {
  border: 0;
  height: 6px;
  margin: 0 0 20px;
  max-width: 120px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.lp-final .press-rule, .press-final .press-rule { margin-inline: auto; }

/* Antetítulos tipo dateline y kickers en versalitas */
.press-dateline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.press-dateline b { color: var(--ink); padding: 3px 8px; border: 1.5px solid var(--ink); }
.press-dateline.center { justify-content: center; }
.press-kicker { color: var(--ink-2); letter-spacing: 0.14em; }
.press-city { font-weight: 700; color: var(--ink); letter-spacing: 0.04em; }

/* Banda superior tipo cabecera de periódico */
.press-masthead { border-bottom: 3px double var(--ink); background: var(--bg); }
.press-masthead svg { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; }

/* Hero */
.lp-press .lp-hero::before, .lp-press .lp-hero::after { opacity: 0.6; }
.press-hero { padding-top: 48px; }
.press-art svg { display: block; width: 100%; height: auto; }
.press-hero-art { max-width: 600px; justify-self: end; width: 100%; }
.press-proof b { font-family: var(--serif); font-size: 20px; }

/* Cinta de teletipo (se recorta en pantallas estrechas, nunca ensancha la página) */
.press-ticker { overflow: hidden; border-block: 1px solid var(--line-strong); background: var(--art-wire); }
.press-ticker-track { width: max(100%, 1200px); }
.press-ticker svg { display: block; width: 100%; height: auto; }

/* Cómo funciona */
.press-steps { margin: 28px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lp-press .lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-press .lp-step { border-radius: 6px; box-shadow: none; border: 1px solid var(--line-strong); border-top: 3px solid var(--ink); }
.lp-press .lp-step-n { background: var(--ink); color: var(--bg); border-radius: 4px; font-family: var(--serif); }

/* Funciones */
.press-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 2px solid var(--ink); }
.press-feature { height: 100%; padding: 26px 24px 28px 0; border-bottom: 1px solid var(--line-strong); }
.press-features > .reveal:not(:nth-child(3n + 1)) .press-feature,
.press-features > .press-feature:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.press-feature p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.55; }
.press-icon { display: inline-block; width: 48px; height: 48px; }
.press-icon svg { width: 100%; height: 100%; }
.press-icon.big { width: 64px; height: 64px; margin-bottom: 14px; }

/* Recorte (geo-matrix) */
.press-clip { margin: 0; padding: 14px; background: var(--art-clip); border: 1px solid var(--line); border-radius: 4px; transform: rotate(-0.6deg); box-shadow: 0 18px 40px -24px rgba(59, 47, 26, 0.45); }
.press-clip figcaption { margin-top: 8px; font-size: 12px; color: var(--ink-3); text-align: right; font-style: italic; }

/* Regla de enlaces */
.press-policy { max-width: 860px; }
.press-quote { margin: 24px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ink); font-family: var(--serif); font-size: 21px; line-height: 1.45; font-style: italic; color: var(--ink); }

/* MCP y cierre */
.press-mcp { text-align: center; }
.press-mcp .press-rule, .press-mcp h2, .press-mcp .lp-lead { margin-inline: auto; }
.press-mcp .lp-cta { justify-content: center; }
.press-mcp .lp-lead em, .lp-press .lp-lead em { font-family: var(--serif); color: var(--ink); }
.press-final .lp-lead { margin: 0 auto; max-width: 620px; }
.lp-press .lp-final .brand-mark { display: inline-flex; margin: 0 auto 10px; }

/* Botones: azul de marca liso, sin el degradado del rediseño */
.lp-press .lp-btn.primary, .login-overlay .btn.primary, .lp-press .btn.primary { background: var(--accent); box-shadow: 0 10px 26px -12px rgba(11, 111, 216, 0.6); }

/* Acceso */
.login-card .login-brand { display: flex; justify-content: center; }
.login-card .press-dateline { justify-content: center; margin-top: 12px; }
.login-overlay .login-title, .gp-login-inline .login-title { font-weight: 650; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  height: 44px; margin-top: 16px; border-radius: 10px; font-weight: 600; font-size: 15px;
  background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px rgba(11, 11, 11, 0.16); text-decoration: none;
}
.google-btn:hover { box-shadow: inset 0 0 0 1px rgba(11, 11, 11, 0.32); }
.login-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; color: var(--ink-3); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid var(--line-strong); }

/* Selector de idioma */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lang-switch:hover { color: var(--ink); }
.lp-actions .lang-switch { padding: 0 6px; }

/* /ia */
.gp-ia .press-headline { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 12px; }
.gp-ia .endpoint-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.press-group { margin: 26px 0 10px; font-size: 20px; font-weight: 650; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); }

/* Transición de tema (View Transitions API, como 4Geeks Center) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-reveal 0.55s ease-in-out forwards; }
@keyframes theme-reveal {
  from { clip-path: circle(0% at var(--theme-x, 50%) var(--theme-y, 50%)); }
  to { clip-path: circle(140% at var(--theme-x, 50%) var(--theme-y, 50%)); }
}

@media (max-width: 960px) {
  .lp-press .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-features > .reveal .press-feature, .press-features > .press-feature { padding-left: 0 !important; border-left: 0 !important; }
  .press-hero-art { justify-self: center; }
}
@media (max-width: 640px) {
  .lp-press .lp-steps, .press-features { grid-template-columns: minmax(0, 1fr); }
  .press-steps { padding: 10px; }
  .press-feature { padding-right: 0; }
  .press-quote { font-size: 18px; }
  .lp-brand .brand-logo img { height: 20px; }
}
