/* Marca Playmobil (tiendaplaymobil.com) encima del tema "impulso" del constructor. */
@font-face { font-family: "Nunito"; src: url("/_brand/nunito-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

.site-root.site-theme--impulso {
  --pm-blue: #1171d1; --pm-blue-dark: #064b90; --pm-sky: #eef6ff;
  --pm-yellow: #ffd65a; --pm-red: #d92d43; --pm-red-dark: #b8213a; --pm-ink: #1f2b3d;
  --site-bg: #ffffff; --site-fg: var(--pm-ink); --site-muted: #4f5b6b; --site-rule: #cfe0f4;
  --site-accent: var(--pm-red); --site-on-accent: #ffffff;
  --site-font-display: "Nunito", system-ui, sans-serif;
  --site-font-body: "Nunito", system-ui, sans-serif;
  --site-display-weight: 900; --site-display-track: -0.01em;
  --site-image-radius: 24px; --site-action-radius: 40px; --site-action-radius-input: 12px;
}
.site-root .sb-link-action, .sb-contact__form button { border-radius: 40px; font-weight: 800; }
.site-root .sb-link-action { background: var(--pm-red); color: #fff; }
.site-root .sb-link-action:hover { background: var(--pm-red-dark); }

/* Franja superior: amarilla como la barra de promos de la tienda */
.event-registrations { background: var(--pm-yellow, #ffd65a); color: #1f2b3d; font-family: "Nunito", system-ui, sans-serif; }
.event-strip li::before { color: #1171d1; }

/* Header azul con logo blanco */
.site-root .sb-header { background: var(--pm-blue); color: #fff; }
.sb-header__brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1.1em; }
.sb-header__brand img { height: 46px; }
.sb-header__nav a { font-weight: 700; }

/* Hero celeste, título azul */
.site-root .sb-hero { background: var(--pm-sky); }
.site-root .sb-hero__heading, .site-root .sb-heading { color: var(--pm-blue); }
.site-root .sb-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 40px; background: var(--pm-blue); color: #fff; font-weight: 800; letter-spacing: 0; }
.site-root .sb-hero__media img { box-shadow: 0 18px 40px rgba(17, 113, 209, .22); }

/* Qué te llevás: tarjetas */
.site-root .sb-menu__item { padding: 14px 18px; margin-bottom: 10px; border-radius: 16px; background: var(--pm-sky); }
.site-root .sb-menu__item > span:first-child { font-weight: 800; color: var(--pm-blue-dark); }
.site-root .sb-menu__dots { border-bottom-color: #a9c9ec; }
.site-root .sb-menu__price { font-family: var(--site-font-body); font-weight: 400; }

/* Formulario: bloque azul, tarjeta blanca, botón rojo */
.sb-contact--live { --registration-violet: #1171d1; --registration-ink: #1f2b3d; --registration-yellow: #d92d43; }
.site-root .sb-contact--live .sb-heading { color: #fff; }
.sb-contact--live .sb-contact__form { background: #fff; border-radius: 24px; }
.sb-contact--live .sb-contact__form button { color: #fff; }
.sb-contact--live .sb-contact__form button:hover { background: var(--pm-red-dark); }
.sb-contact--live :is(.sb-contact__hint, .sb-contact__note) { color: #4f5b6b; }
.sb-contact--live .sb-contact__form :is(input, textarea) { border-color: #9db7d6; }

/* FAQ */
.site-root .sb-faq__item summary { font-weight: 800; }
.site-root .sb-faq__item summary::after { color: var(--pm-blue); }

.site-root .sb-powered { background: #f1f1f1; }

/* Modal de cuenta regresiva */
#event-countdown { border-radius: 20px; color: #1f2b3d; font-family: "Nunito", system-ui, sans-serif; }
#event-countdown h2 { font-family: "Nunito", system-ui, sans-serif; font-weight: 900; color: #1171d1; }
#event-countdown .event-clock { color: #064b90; }
#event-countdown button { color: #1171d1; }
#event-countdown a { border-radius: 40px; background: #d92d43; color: #fff; font-weight: 800; padding: .7rem 1.4rem; }
#event-countdown :focus-visible { outline-color: #1171d1; }
#event-countdown::backdrop { background: rgba(6, 75, 144, .55); }

/* Franja fija del live (reemplaza la de inscriptos) */
.pm-bar p { flex: 1; margin: 0; padding: .55rem 1rem; text-align: center; font-weight: 800; }

/* Navidad (18-nov): franja roja, nieve, verde y dorado sobre la base Playmobil */
.site-root.site-theme--impulso { --xm-green: #1d7a46; --xm-green-dark: #135c33; --xm-gold: #f2b632; }
.event-registrations.pm-bar { background: var(--pm-red, #d92d43); color: #fff; }
.site-root .sb-header { border-bottom: 4px solid var(--xm-gold); }
.site-root .sb-hero {
  background-color: #eaf3ff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='%231171d1' fill-opacity='.10'%3E%3Ctext x='8' y='30' font-size='22'%3E%E2%9D%84%3C/text%3E%3Ctext x='70' y='78' font-size='14'%3E%E2%9D%84%3C/text%3E%3Ctext x='30' y='110' font-size='10'%3E%E2%9D%84%3C/text%3E%3Ccircle cx='100' cy='20' r='3'/%3E%3Ccircle cx='52' cy='60' r='2'/%3E%3C/svg%3E");
}
.site-root .sb-eyebrow { background: var(--xm-green); }
.site-root .sb-hero__media img { border: 6px solid #fff; outline: 3px dashed var(--pm-red, #d92d43); outline-offset: 6px; box-shadow: 0 18px 40px rgba(217, 45, 67, .25); }
.site-root .sb-menu__item { background: #fff7f0; border-left: 6px solid var(--xm-green); }
.site-root .sb-menu__item:nth-child(even) { border-left-color: var(--pm-red, #d92d43); }
.site-root .sb-menu__item > span:first-child { color: var(--xm-green-dark); }
.site-root .sb-menu__item > span:first-child::before { margin-right: .4em; }
.site-root .sb-menu__item:nth-child(1) > span:first-child::before { content: "✏️"; }
.site-root .sb-menu__item:nth-child(2) > span:first-child::before { content: "🎁"; }
.site-root .sb-menu__item:nth-child(3) > span:first-child::before { content: "💬"; }
.site-root .sb-menu__item:nth-child(4) > span:first-child::before { content: "🎅"; }
.site-root .sb-contact--live {
  background-color: var(--xm-green-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' fill='%23ffffff' fill-opacity='.14'%3E%3Ctext x='10' y='34' font-size='24'%3E%E2%9D%84%3C/text%3E%3Ctext x='84' y='90' font-size='16'%3E%E2%9D%84%3C/text%3E%3Ccircle cx='120' cy='24' r='3'/%3E%3Ccircle cx='46' cy='112' r='2.5'/%3E%3C/svg%3E");
}
.sb-contact--live .sb-contact__form { border-top: 8px solid var(--pm-red, #d92d43); }
.site-root .sb-faq__item summary::after { color: var(--pm-red, #d92d43); }
#event-countdown { border-top: 8px solid #d92d43; }
.sb-contact--live { --registration-violet: #135c33; }

/* Página de error del formulario (la arma api/landing.mjs) */
body.pm-error { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #135c33; font-family: "Nunito", system-ui, sans-serif; color: #1f2b3d; padding: 16px; box-sizing: border-box; }
.pm-error main { max-width: 420px; width: 100%; background: #fff; border-top: 8px solid #d92d43; border-radius: 24px; padding: 28px 24px; text-align: center; }
.pm-error img { height: 44px; width: auto; background: #1171d1; padding: 10px 16px; border-radius: 12px; }
.pm-error h1 { color: #1171d1; font-weight: 900; font-size: 1.7rem; margin: 18px 0 8px; }
.pm-error p { font-size: 1.05rem; line-height: 1.5; margin: 0 0 22px; }
.pm-error a { display: inline-block; background: #d92d43; color: #fff; font-weight: 800; padding: .85rem 1.6rem; border-radius: 40px; text-decoration: none; }

/* Mobile: header en una sola fila, sin menú; textos y espacios más compactos */
@media (max-width: 759px) {
  .event-registrations.pm-bar p { font-size: .82rem; padding: .45rem .75rem; line-height: 1.35; }
  .site-root .sb-header { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
  .site-root .sb-header__nav { display: none; }
  .sb-header__brand img { height: 34px; width: auto; }
  .site-root .sb-header .sb-header__cta { margin: 0; padding: .6rem 1rem; font-size: .9rem; white-space: nowrap; }
  .site-root .sb-hero { padding-top: 24px; padding-bottom: 32px; }
  .site-root .sb-eyebrow { font-size: .8rem; padding: 5px 12px; }
  .site-root .sb-hero__heading { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.08; }
  .site-root .sb-hero__lead { font-size: 1.05rem; }
  .site-root .sb-hero .sb-link-action { display: block; text-align: center; }
  .site-root .sb-hero__media img { outline-offset: 4px; }
  .site-root .sb-menu__item { display: block; }
  .site-root .sb-menu__dots { display: none; }
  .site-root .sb-menu__item > span { display: block; }
  .site-root .sb-menu__price { margin-top: 4px; }
  .sb-contact--live .sb-contact__form { padding: 20px 16px; }
  .sb-contact--live .sb-contact__form button { width: 100%; }
}
@media (max-width: 759px) {
  .site-root .sb-menu__item .sb-menu__price { max-width: none; width: auto; flex: none; text-align: left; }
  .site-root .sb-menu__item > span:first-child { border: 0; }
}

/* /participantes (lo arma api/landing.mjs) */
.pm-list main { max-width: 960px; text-align: left; }
.pm-list form { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-list input { flex: 1 1 200px; padding: .8rem 1rem; border: 1px solid #9db7d6; border-radius: 12px; font: inherit; }
.pm-list button { background: #d92d43; color: #fff; border: 0; border-radius: 40px; padding: .8rem 1.4rem; font: inherit; font-weight: 800; cursor: pointer; }
.pm-list button[value="csv"] { background: #1171d1; }
.pm-table { overflow-x: auto; }
.pm-list table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pm-list th, .pm-list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #cfe0f4; white-space: nowrap; }

/* Teaser "sorpresa gigante" (21-nov) */
.pm-sorpresa { margin: 0; padding: 40px 20px; text-align: center; background: var(--pm-yellow, #ffd65a); color: #1f2b3d; font-family: "Nunito", system-ui, sans-serif; border-top: 6px dashed #d92d43; border-bottom: 6px dashed #d92d43; }
.pm-sorpresa .pm-sorpresa__emoji { font-size: 3rem; margin: 0 0 4px; line-height: 1; }
.pm-sorpresa h2 { margin: 0 auto 10px; max-width: 640px; font-weight: 900; font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.1; color: #d92d43; }
.pm-sorpresa p { margin: 0 auto 20px; max-width: 520px; font-size: 1.1rem; line-height: 1.5; }
.pm-sorpresa .sb-link-action { display: inline-block; padding: .85rem 1.8rem; text-decoration: none; }

/* /metricas (lo arma api/landing.mjs) */
.pm-list h2 { color: #1171d1; font-weight: 900; font-size: 1.2rem; margin: 26px 0 8px; }
.pm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 8px; }
.pm-kpi { background: #eef6ff; border-radius: 16px; padding: 14px 16px; }
.pm-kpi span { display: block; font-size: .85rem; color: #4f5b6b; }
.pm-kpi strong { display: block; font-size: 1.8rem; font-weight: 900; color: #064b90; }
.pm-list progress { width: 120px; accent-color: #d92d43; }
.pm-list td:not(:first-child), .pm-list th:not(:first-child) { text-align: right; }
.pm-list .pm-foot { font-size: .85rem; color: #4f5b6b; margin: 16px 0; }
.pm-list main > p { margin: 0 0 14px; }
body.pm-list { grid-template-columns: minmax(0, 1fr); place-items: start center; }
.pm-list main { box-sizing: border-box; min-width: 0; }
@media (max-width: 759px) { .pm-list main { padding: 22px 16px; } .pm-list progress { width: 60px; } .pm-kpi strong { font-size: 1.5rem; } }
/* Mapa de calor en /metricas */
.pm-heat { max-height: 720px; overflow: auto; border: 1px solid #cfe0f4; border-radius: 16px; background: #f4f8fd; }
.pm-heat__inner { position: relative; width: 390px; margin: 0 auto; }
.pm-heat iframe { display: block; border: 0; pointer-events: none; background: #fff; }
.pm-heat canvas { position: absolute; inset: 0; pointer-events: none; }

/* Cuenta regresiva arriba del formulario (25-nov) */
.pm-count { margin: 18px 0 4px; }
.pm-count__label { margin: 0 0 8px; font-weight: 800; color: #ffd65a; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.pm-count__clock { display: flex; gap: 8px; }
.pm-count__clock span { flex: 1; max-width: 86px; background: #fff; color: #1f2b3d; border-radius: 14px; border-bottom: 4px solid #d92d43; padding: 8px 4px 6px; text-align: center; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.pm-count__clock b { display: block; font-size: 1.9rem; font-weight: 900; line-height: 1.1; color: #d92d43; font-variant-numeric: tabular-nums; }

.pm-wa{display:flex;align-items:center;justify-content:center;gap:.5em;width:100%;margin-top:1.1rem;background:#25D366!important;color:#fff!important;font-size:1.15rem;font-weight:800;padding:1rem 1.25rem;border-radius:999px;text-decoration:none;box-shadow:0 6px 18px rgba(37,211,102,.35)}
.pm-wa:hover{background:#1ebe5b!important}
.pm-wa__nota{margin-top:.6rem;font-size:.9rem;opacity:.85;text-align:center}
