/* ==========================================================
 * Colores de las páginas públicas (portada, /bodas, /muro-en-vivo y
 * /tarjetas-para-imprimir) — ronda 1.104.0, agente D.
 *
 * POR QUÉ UN BLOQUE APARTE. Las páginas públicas usan las mismas clases
 * que el panel (`bg-surface`, `text-ink`, `bg-accent`…), que apuntan a
 * variables CSS. Aquí se REDEFINEN esas variables solo dentro de
 * `<body class="fx-pub">`: el panel no carga este archivo y sus tokens
 * (festelia-base.css) no se tocan. Una variable definida en <body> gana a
 * la de <html> para todo lo que está dentro, sin importar especificidad.
 *
 * DE DÓNDE SALEN. Del logo formal (utils/festeliaLogo.js#BRAND): la cinta
 * índigo (#4834af → #6156d8), la de magenta a coral (#e23a7b → #ff6a6c),
 * la gota naranja (#ef8a2f → #fcb033) y la palabra azul noche (#061131).
 * Antes la portada era el violeta del panel (#7c3aed), que no está en el
 * logo.
 *
 * TRES PROPUESTAS, UNA ELEGIDA (capturas en prototipos/landing-colores/):
 *   · `fx-pub`                  ÍNDIGO (la elegida): acción en el índigo de
 *                               la cinta del logo, texto en el azul noche de
 *                               la palabra, fondos casi blancos con un
 *                               toque índigo. Oscuro: azul noche.
 *   · `fx-pub fx-pal-magenta`   MAGENTA: acción en la cinta de en medio.
 *   · `fx-pub fx-pal-noche`     NOCHE Y CORAL: acción en azul noche sobre
 *                               papel crema; en oscuro, acción naranja.
 * Cambiar de propuesta es cambiar UNA clase en el <body> de las cuatro
 * páginas (busca `fx-pub`).
 *
 * Cada propuesta tiene tres bloques (claro, @media oscuro sin tema fijado
 * y [data-theme="dark"]), como festelia-base.css; los dos oscuros llevan
 * los MISMOS valores. scripts/landing-seo-checks.js comprueba el
 * contraste (texto ≥ 4.5:1, botón ≥ 4.5:1) de las tres en los dos temas.
 * Los tokens de estado (ok, warn, danger, info) no se redefinen.
 * ========================================================== */

/* ---- 1. Índigo (la elegida) ---- */
.fx-pub {
  --bg: #faf9fd;
  --surface: #ffffff;
  --surface2: #f3f1fb;
  --ink: #121735;
  --muted: #555a76;
  --line: #dcd8ec;
  --accent: #4834af;
  --accent-ink: #ffffff;
  --accent-soft: #ecebfb;
  --accent-strong: #382893;
  --pub-glow: rgba(72, 52, 175, .32);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fx-pub {
    --bg: #0c0e22;
    --surface: #12152f;
    --surface2: #1a1e42;
    --ink: #eef0fb;
    --muted: #a9adca;
    --line: #343a66;
    --accent: #a39cff;
    --accent-ink: #12103a;
    --accent-soft: #262457;
    --accent-strong: #c2bdff;
    --pub-glow: rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] .fx-pub {
  --bg: #0c0e22;
  --surface: #12152f;
  --surface2: #1a1e42;
  --ink: #eef0fb;
  --muted: #a9adca;
  --line: #343a66;
  --accent: #a39cff;
  --accent-ink: #12103a;
  --accent-soft: #262457;
  --accent-strong: #c2bdff;
  --pub-glow: rgba(0, 0, 0, .55);
}

/* ---- 2. Magenta ---- */
.fx-pub.fx-pal-magenta {
  --bg: #fffafb;
  --surface: #ffffff;
  --surface2: #fbf0f4;
  --ink: #121735;
  --muted: #5d566e;
  --line: #ecd6df;
  --accent: #b81f59;
  --accent-ink: #ffffff;
  --accent-soft: #fde8ef;
  --accent-strong: #961849;
  --pub-glow: rgba(184, 31, 89, .28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fx-pub.fx-pal-magenta {
    --bg: #140c16;
    --surface: #1d1220;
    --surface2: #29192c;
    --ink: #f6ecf2;
    --muted: #c3abbb;
    --line: #4a2f47;
    --accent: #ff86ab;
    --accent-ink: #2a0a18;
    --accent-soft: #3d1a2c;
    --accent-strong: #ffaac4;
    --pub-glow: rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] .fx-pub.fx-pal-magenta {
  --bg: #140c16;
  --surface: #1d1220;
  --surface2: #29192c;
  --ink: #f6ecf2;
  --muted: #c3abbb;
  --line: #4a2f47;
  --accent: #ff86ab;
  --accent-ink: #2a0a18;
  --accent-soft: #3d1a2c;
  --accent-strong: #ffaac4;
  --pub-glow: rgba(0, 0, 0, .55);
}

/* ---- 3. Noche y coral ---- */
.fx-pub.fx-pal-noche {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface2: #f5efe6;
  --ink: #0f1533;
  --muted: #5a5866;
  --line: #e5dccd;
  --accent: #1f2a6b;
  --accent-ink: #ffffff;
  --accent-soft: #e8eaf6;
  --accent-strong: #141c4f;
  --pub-glow: rgba(31, 42, 107, .28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fx-pub.fx-pal-noche {
    --bg: #0b0f24;
    --surface: #131833;
    --surface2: #1b2142;
    --ink: #f3efe8;
    --muted: #b2adbd;
    --line: #343a5e;
    --accent: #ffb05a;
    --accent-ink: #1a1206;
    --accent-soft: #3a2a14;
    --accent-strong: #ffc684;
    --pub-glow: rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] .fx-pub.fx-pal-noche {
  --bg: #0b0f24;
  --surface: #131833;
  --surface2: #1b2142;
  --ink: #f3efe8;
  --muted: #b2adbd;
  --line: #343a5e;
  --accent: #ffb05a;
  --accent-ink: #1a1206;
  --accent-soft: #3a2a14;
  --accent-strong: #ffc684;
  --pub-glow: rgba(0, 0, 0, .55);
}

/* ==========================================================
 * Piezas comunes de las páginas públicas
 * ========================================================== */

/* El logo formal en la cabecera y el pie (utils/festeliaLogo.js): la
   palabra va en `currentColor` y sigue al texto; en oscuro, la cinta de
   arriba (índigo) se aclara para no perderse en el azul noche. */
.fx-logo { display: inline-flex; align-items: center; color: var(--ink); line-height: 0; }
.fx-logo svg { display: block; height: auto; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fx-logo svg path:first-of-type { fill: #8f87f2; }
}
:root[data-theme="dark"] .fx-logo svg path:first-of-type { fill: #8f87f2; }

/* La línea de color del logo, de adorno bajo los rótulos (no es acción). */
.fx-brand-rule {
  display: block;
  width: 3rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #4834af, #e23a7b 55%, #fcb033);
}
