/* ============================================================
   World Cup 2026 – Group Stage & Bracket Styles
   Mobile-first, responsive, touch-friendly
   ============================================================ */

/* --- Variables ------------------------------------------------ */
body.registro-mundial .wc2026-container {
  --wc-primary: #004181;
  --wc-accent: #00a859;
  --wc-danger: #e4002b;
  --wc-bg: #f8f9fa;
  --wc-card-bg: #ffffff;
  --wc-border: #dee2e6;
  --wc-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --wc-radius: 0.75rem;
  --wc-transition: 200ms ease;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #212529;
}

/* --- Group Stage (8 selects with optgroups) ----------------- */
body.registro-mundial .wc2026-selects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

body.registro-mundial .wc2026-select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

body.registro-mundial .wc2026-select-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wc-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.registro-mundial .wc2026-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--wc-card-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  border: 1px solid var(--wc-border);
  border-radius: var(--wc-radius);
  padding: 0.625rem 2rem 0.625rem 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.3;
  font-weight: 500;
  color: #212529;
  cursor: pointer;
  transition: border-color var(--wc-transition), box-shadow var(--wc-transition);
  box-shadow: var(--wc-shadow);
  width: 100%;
}

body.registro-mundial .wc2026-select:focus {
  outline: none;
  border-color: var(--wc-primary);
  box-shadow: 0 0 0 3px rgba(0, 65, 129, 0.15);
}

body.registro-mundial .wc2026-select:has(option:checked:disabled) {
  color: #adb5bd;
}

body.registro-mundial .wc2026-counter {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

body.registro-mundial .wc2026-counter.is-complete {
  color: var(--wc-accent);
}

body.registro-mundial .wc2026-counter.is-pending {
  color: var(--wc-danger);
}

/* --- Matchup Rows (C1-C4) ------------------------------------- */
body.registro-mundial .wc2026-matchup-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

body.registro-mundial .wc2026-matchup-row {
  position: relative;
  background: var(--wc-card-bg);
  border: 1px solid var(--wc-border);
  border-radius: var(--wc-radius);
  padding: 1.5rem 1rem 1rem;
  box-shadow: var(--wc-shadow);
}

body.registro-mundial .wc2026-matchup-row__header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

body.registro-mundial .wc2026-matchup-row__label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  background: #03193B;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 20px;
  border-radius: 20px;
  border: 1px solid var(--wc-border);
  line-height: 1;
  z-index: 2;
}

body.registro-mundial .wc2026-matchup-row__teams {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

body.registro-mundial .wc2026-matchup-row__teams .wc2026-select-wrapper {
  flex: 1;
  min-width: 0;
}

body.registro-mundial .wc2026-matchup-row__vs {
  font-size: 0.875rem;
  font-weight: 800;
  color: #adb5bd;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-bottom: 0.625rem;
}

/* Red border on the native select (hidden by Select2 but kept for reference) */
body.registro-mundial .wc2026-select.is-duplicate {
  border-color: var(--wc-danger);
  box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.15);
}

/* Red border on the Select2 visual container when its hidden select is flagged */
body.registro-mundial .select2-container.is-duplicate .select2-selection--single,
body.registro-mundial .wc2026-select.is-duplicate + .select2-container .select2-selection--single,
body.registro-mundial.wc-step-fase-de-grupos .select2-container.is-duplicate .select2-selection--single {
  border-color: var(--wc-danger) !important;
  box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.15) !important;
}

body.registro-mundial .wc2026-duplicate-error {
  color: var(--wc-danger);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
  text-align: center;
  display: none;
}

body.registro-mundial .wc2026-duplicate-error.is-visible {
  display: block;
}

/* --- Bracket Tabs (semicircular pill style) ------------------- */
body.registro-mundial .wc2026-bracket-tabs {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid #4C71FC;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.registro-mundial .wc2026-bracket-tabs::-webkit-scrollbar {
  display: none;
}

@media (max-width: 639px) {
body.registro-mundial .wc2026-bracket-tabs {
    gap: 1rem;
  }
}

@media (min-width: 640px) {
body.registro-mundial .wc2026-bracket-tabs {
    justify-content: center;
  }
body.registro-mundial .wc2026-bracket-tab {
    max-width: 220px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

body.registro-mundial .wc2026-bracket-tab {
  flex: 1 0 auto;
  padding: 0.75rem 1rem 0.625rem;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  border: 1px solid #4C71FC;
  border-bottom: none;
  border-radius: 50px 50px 0 0;
  background: transparent;
  color: #4C71FC;
  cursor: pointer;
  transition: background var(--wc-transition), color var(--wc-transition);
  white-space: nowrap;
}

body.registro-mundial .wc2026-bracket-tab.is-active {
  background: #4C71FC;
  border-color: #4C71FC;
  color: #fff;
}

body.registro-mundial .wc2026-bracket-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Remove white outline on focus/active */
.wc2026-bracket-tab:focus,
body.registro-mundial .wc2026-bracket-tab:active {
  outline: none;
  box-shadow: none;
}

/* --- Matchup Counter (X/Y partidos) ------------------------- */
body.registro-mundial .wc2026-matchup-counter {
  text-align: right;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  padding-right: 0.5rem;
}

/* --- Bracket Navigation (custom prev/next inside step 3) ------ */
body.registro-mundial .wc2026-bracket-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wc-border);
}

/* When moved inside .webform-actions, sit side-by-side with native buttons */
body.registro-mundial .wc2026-actions-wrapper .wc2026-bracket-nav {
  display: contents;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Only style the "Siguiente" button; "Atrás" uses Bootstrap .btn-light */
body.registro-mundial .wc2026-bracket-nav__btn.btn-primary {
  padding: 0.875rem 1.875rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: white;
  background: #4C71FC;
  border: 1px solid #4C71FC;
  transition: background var(--wc-transition), transform var(--wc-transition);
}

body.registro-mundial .wc2026-bracket-nav__btn.btn-primary:hover {
  background: #3a5bd9;
}

body.registro-mundial .wc2026-bracket-nav__btn.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Mobile: reverse order so "Siguiente" is on top */
@media (max-width: 639px) {
body.registro-mundial .wc2026-bracket-nav {
    flex-direction: column-reverse;
  }
}

/* --- Unified actions wrapper (native + JS buttons centered) --- */
body.registro-mundial .wc2026-actions-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Force desktop order: Atrás left, Siguiente right.
   Mobile column-reverse then shows Siguiente on top, Atrás below. */
body.registro-mundial .wc2026-actions-wrapper .webform-button--previous,
body.registro-mundial .wc2026-actions-wrapper .wc2026-bracket-nav__btn--prev {
  order: 1;
}
body.registro-mundial .wc2026-actions-wrapper .webform-button--next,
body.registro-mundial .wc2026-actions-wrapper .wc2026-bracket-nav__btn--next {
  order: 2;
}

/* --- Webform wizard buttons (Atrás / Siguiente) -------------- */
body.registro-mundial.wc-step-fase-de-grupos .webform-actions,
body.registro-mundial.wc-step-datos .webform-actions,
body.registro-mundial.wc-step-socio .webform-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}

@media (min-width: 640px) {
body.registro-mundial.wc-step-fase-de-grupos .webform-actions,
body.registro-mundial.wc-step-socio .webform-actions {
    text-align: center;
    justify-content: center;
  }

  /* Primer paso (datos): solo botón Siguiente, alineado a la izquierda */
body.registro-mundial.wc-step-datos .webform-actions {
    justify-content: flex-start !important;
  }
}

/* Style native wizard previous button like btn-light */
body.registro-mundial.wc-step-fase-de-grupos .webform-actions .webform-button--previous,
body.registro-mundial.wc-step-datos .webform-actions .webform-button--previous,
body.registro-mundial.wc-step-socio .webform-actions .webform-button--previous {
  color: #4C71FC !important;
  background: #fff !important;
  border: 1px solid #4C71FC !important;
  border-radius: 20px !important;
  padding: 0.875rem 1.875rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

body.registro-mundial.wc-step-fase-de-grupos .webform-actions .webform-button--previous:hover,
body.registro-mundial.wc-step-datos .webform-actions .webform-button--previous:hover,
body.registro-mundial.wc-step-socio .webform-actions .webform-button--previous:hover {
  background: #f0f4ff !important;
}

/* Style native wizard next/submit button like btn-primary */
body.registro-mundial.wc-step-fase-de-grupos .webform-actions .webform-button--next,
body.registro-mundial.wc-step-datos .webform-actions .webform-button--next,
body.registro-mundial.wc-step-socio .webform-actions .webform-button--next {
  color: #fff !important;
  background: #4C71FC !important;
  border: 1px solid #4C71FC !important;
  border-radius: 20px !important;
  padding: 0.875rem 1.875rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

body.registro-mundial.wc-step-fase-de-grupos .webform-actions .webform-button--next:hover,
body.registro-mundial.wc-step-datos .webform-actions .webform-button--next:hover,
body.registro-mundial.wc-step-socio .webform-actions .webform-button--next:hover {
  background: #3a5bd9 !important;
}

/* Remove any arrows/pseudo-elements from wizard buttons */
body.registro-mundial .webform-actions .webform-button--previous::before,
body.registro-mundial .webform-actions .webform-button--next::before,
body.registro-mundial .wc2026-bracket-nav__btn.btn-primary::before,
body.registro-mundial .wc2026-bracket-nav__btn.btn-primary::after {
  content: none !important;
  display: none !important;
}

/* Mobile: "Siguiente" arriba, "Atrás" abajo */
@media (max-width: 639px) {
body.registro-mundial .webform-actions,
body.registro-mundial .wc2026-actions-wrapper {
    flex-direction: column-reverse;
  }

body.registro-mundial .wc2026-bracket-nav {
    flex-direction: column-reverse;
  }
}

/* --- Bracket Panels ------------------------------------------- */
body.registro-mundial .wc2026-bracket-panel {
  display: none;
}

body.registro-mundial .wc2026-bracket-panel.is-visible {
  display: block;
  animation: fadeIn 250ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Matchup Cards -------------------------------------------- */
body.registro-mundial .wc2026-matchups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.registro-mundial .wc2026-matchup {
  position: relative;
  background: var(--wc-card-bg);
  border: 1px solid var(--wc-border);
  border-radius: var(--wc-radius);
  padding: 1.5rem 1rem 1rem;
  box-shadow: var(--wc-shadow);
}

body.registro-mundial .wc2026-matchup__round-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #03193B;
  border: 1px solid var(--wc-border);
  border-radius: 20px;
  padding: 5px 20px;
  letter-spacing: 0.04em;
  line-height: 1;
  z-index: 2;
}

/* --- Extra-time cronometro image ----------------------------- */
body.registro-mundial .extra-time {
  width: 85px;
  height: 100px;
  margin: 0 auto;
  background: url('../img/cronometro.svg') no-repeat center center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
}

body.registro-mundial .wc2026-matchup__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body.registro-mundial .wc2026-matchup__team {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  border: 2px solid var(--wc-border);
  cursor: pointer;
  transition: border-color var(--wc-transition), background var(--wc-transition), transform var(--wc-transition);
  background: var(--wc-card-bg);
}

body.registro-mundial .wc2026-matchup__team:hover {
  border-color: var(--wc-primary);
  transform: translateY(-2px);
}

body.registro-mundial .wc2026-matchup__team__badge {
  position: absolute;
  top: 0;
  left: -2px;
  background: var(--wc-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.04em;
  padding: 5px 20px;
  border-radius: 20px 20px 20px 0;
  line-height: 1;
  display: none;
}

body.registro-mundial .wc2026-matchup__team__flag {
  font-size: 2rem;
  line-height: 1;
}

/* Twemoji SVG sizing – bracket matchups */
body.registro-mundial .wc2026-matchup__team__flag img.emoji {
  width: 36px;
  height: 36px;
}

/* Twemoji SVG sizing – champion */
body.registro-mundial .wc2026-champion__flag img.emoji {
  width: 110px;
  height: 96px;
}

/* Twemoji SVG sizing – Select2 selected value */
body.registro-mundial .select2-selection__rendered img.emoji {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* Twemoji SVG sizing – Select2 dropdown options */
body.registro-mundial .select2-results__option img.emoji {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* Fix: keep emoji image + text on the same line in Select2 selected value and dropdown options */
body.registro-mundial .select2-selection__rendered .select2-emoji,
body.registro-mundial .select2-results__option .select2-emoji {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
}

/* --- Emoji font fallback for flag emojis in Windows Chrome ------ */
body.registro-mundial .wc2026-matchup__team__flag,
body.registro-mundial .wc2026-champion__flag,
body.registro-mundial .select2-emoji,
body.registro-mundial .wc2026-select option {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", emoji, sans-serif;
}

/* When Twemoji failed to load (blocked CDN, old browser, firewall),
   hide broken flag emoji characters so the user only sees the country name.
   TEMPORARILY DISABLED for diagnosis. */
/*
body.wc2026-no-twemoji .select2-emoji,
body.wc2026-no-twemoji .wc2026-matchup__team__flag,
body.wc2026-no-twemoji .wc2026-champion__flag,
body.wc2026-no-twemoji .wc2026-select option {
  display: none !important;
}

body.wc2026-no-twemoji .select2-selection__rendered {
  justify-content: center;
}
*/

body.registro-mundial .wc2026-matchup__team__name {
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  flex: 1;
}

body.registro-mundial .wc2026-matchup__team__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

body.registro-mundial .wc2026-matchup__team__check {
  display: none;
  flex-shrink: 0;
  width: 17px;
  height: 13px;
}

body.registro-mundial .wc2026-matchup__team__check svg {
  display: block;
  width: 100%;
  height: 100%;
}

body.registro-mundial .wc2026-matchup__team.is-winner .wc2026-matchup__team__check {
  display: block;
}

/* Mobile: check below the team name, centred */
@media (max-width: 639px) {
body.registro-mundial .wc2026-matchup__team__info {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

body.registro-mundial .wc2026-matchup__team__name {
    text-align: center;
  }
}

body.registro-mundial .wc2026-matchup__vs {
  font-size: 0.75rem;
  font-weight: 700;
  color: #adb5bd;
  text-transform: uppercase;
}

/* --- Final Champion ------------------------------------------- */
body.registro-mundial .wc2026-champion {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(76, 113, 252, 0.20) 0%, rgba(45, 67, 150, 0.20) 100%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow);
}

body.registro-mundial .wc2026-champion__trophy {
  display: block;
  margin: 0 auto 0.5rem;
  width: 48px;
  height: auto;
}

body.registro-mundial .wc2026-champion__label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
}

body.registro-mundial .wc2026-champion__flag {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

body.registro-mundial .wc2026-champion__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

/* --- Celebration Particle (CSS-only) ------------------------ */
body.registro-mundial .wc2026-celebration {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

body.registro-mundial .wc2026-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  animation: celebrate 1.2s ease-out forwards;
}

@keyframes celebrate {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.2); }
}

/* --- Validation error hint ------------------------------------ */
body.registro-mundial .wc2026-error {
  color: var(--wc-danger);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: none;
}

body.registro-mundial .wc2026-error.is-visible {
  display: block;
}

/* --- Responsive tweaks ---------------------------------------- */
@media (min-width: 640px) {
body.registro-mundial .wc2026-selects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

body.registro-mundial .wc2026-matchup__teams {
    gap: 1rem;
  }

body.registro-mundial .wc2026-matchup__team {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

body.registro-mundial .wc2026-matchup__team__flag {
    font-size: 2rem;
  }

body.registro-mundial .wc2026-matchup__team__name {
    font-size: 0.9375rem;
    text-align: left;
  }

  /* Desktop: flag + country name side-by-side in Select2 selected value */
body.registro-mundial .select2-selection__rendered > span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

body.registro-mundial .wc2026-champion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

body.registro-mundial .wc2026-champion__trophy {
    width: auto;
    max-width: 48px;
    margin: 0 auto 0.5rem;
    order: 1;
  }

body.registro-mundial .wc2026-champion__label {
    width: 100%;
    text-align: center;
    order: 2;
    margin-bottom: 0;
  }

body.registro-mundial .wc2026-champion__flag {
    order: 3;
    font-size: 3.5rem;
    margin-bottom: 0;
    margin-right: 0.75rem;
  }

body.registro-mundial .wc2026-champion__name {
    order: 4;
  }
}

@media (min-width: 1024px) {
body.registro-mundial .wc2026-selects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Step 3+: Full-width layout (hide left column) ------------ */
body.registro-mundial.wc-step-fase-de-grupos .diners-layout--two-column .layout__region--first {
  display: none !important;
}

body.registro-mundial.wc-step-fase-de-grupos .diners-layout--two-column .layout__region--second {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

body.registro-mundial.wc-step-fase-de-grupos .diners-layout--two-column {
  display: block !important;
}

/* --- Full-width background from Fase de grupos onwards -------- */
body.registro-mundial.wc-step-fase-de-grupos .diners-layout--two-column {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none !important;
}

/* Blue background applied to two-column layout in group stage+ */
body.registro-mundial .wc2026-bg-blue {
  background: url('/modules/custom/webform_mundial_2026/img/vecteezy_blue-line-curve-background-abstract-blue-template-vector_6503724-[Convertido] 1.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
}

body.registro-mundial .wc2026-bg-blue .layout__region--second {
  padding: 2rem 1rem;
}

/* White text for common webform elements inside the blue area */
body.registro-mundial.wc-step-fase-de-grupos .wc2026-bg-blue h2,
body.registro-mundial.wc-step-fase-de-grupos .wc2026-bg-blue h3,
body.registro-mundial.wc-step-fase-de-grupos .wc2026-bg-blue p,
body.registro-mundial.wc-step-fase-de-grupos .wc2026-bg-blue label,
body.registro-mundial.wc-step-fase-de-grupos .wc2026-bg-blue .webform-wizard-page-title,
body.registro-mundial.wc-step-fase-de-grupos .wc2026-bg-blue .webform-element-description,
body.registro-mundial.wc-step-fase-de-grupos .wc2026-bg-blue .description {
  color: #fff;
}

/* Transparent cards / boxes over the blue background */
body.registro-mundial.wc-step-fase-de-grupos .wc2026-select {
  background-color: #121D44;
  color: #fff;
  border-color: rgba(76, 113, 252, 0.3);
  font-size: 0.9375rem;
  line-height: 1.3;
  padding: 1.5rem 1rem;
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-select option:first-child {
  font-size: 1.125rem;
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-select-label {
  color: #fff;
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup-row,
body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup {
  background: transparent;
  border-color: rgba(76, 113, 252, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup__round-label,
body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup-row__label {
  border-color: rgba(76, 113, 252, 0.3);
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup__team {
  background: #121D44;
  border-color: rgba(76, 113, 252, 0.3);
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup__team:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup__round-label,
body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup__vs {
  color: rgba(255, 255, 255, 0.9);
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup__team__name {
  color: #fff;
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-champion {
  background: linear-gradient(135deg, rgba(76, 113, 252, 0.20) 0%, rgba(45, 67, 150, 0.20) 100%);
  border-color: rgba(255, 255, 255, 0.5);
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-counter {
  color: #fff;
}

/* --- Progress tracker white text from group stage onwards ----- */
body.registro-mundial.wc-step-fase-de-grupos .webform-progress-tracker .progress-step .progress-title,
body.registro-mundial.wc-step-fase-de-grupos .webform-progress-tracker .progress-step.is-active .progress-title {
  color: #fff;
}

/* --- Processed text white and centred -------------------------- */
body.registro-mundial.wc-step-fase-de-grupos .webform-type-processed-text,
body.registro-mundial.wc-step-fase-de-grupos .webform-type-processed-text p,
body.registro-mundial.wc-step-fase-de-grupos .webform-type-processed-text span {
  color: #fff !important;
  text-align: center !important;
}

/* --- Bracket winner / loser colours --------------------------- */
body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup__team.is-winner {
  border-color: #00BE33 !important;
  background: #121D44;
  border-radius: 0 20px 20px 20px;
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup__team.is-loser {
  opacity: 1;
  border-color: #ACBDFF !important;
  background: #121D44;
  border-radius: 0 20px 20px 20px;
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup__team.is-winner .wc2026-matchup__team__badge {
  display: block;
  background: #00BE33;
  top: -12px;
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-matchup__team.is-loser .wc2026-matchup__team__badge {
  display: block;
  background: #ACBDFF;
  color: #212529;
  top: -12px;
}

/* --- Select2 theming on dark background --------------------- */
body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single {
  background-color: #121D44;
  border-color: rgba(76, 113, 252, 0.3);
  color: #fff;
  height: auto;
  min-height: auto;
  padding: 1rem 3.5rem 1rem 1.5rem;
  display: flex;
  align-items: center;
  border-radius: 20px;
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff;
  line-height: 1.3;
  padding-left: 0;
  text-align: left !important;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  width: 100%;
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single .select2-selection__rendered .select2-emoji {
  font-size: 1.4em;
  line-height: 1;
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: auto;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: rgba(255, 255, 255, 0.6) transparent transparent transparent;
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent rgba(255, 255, 255, 0.6) transparent;
}

body.registro-mundial .wc2026-select2-dropdown,
body.registro-mundial.wc-step-fase-de-grupos .select2-dropdown {
  background-color: #121D44;
  border-color: rgba(76, 113, 252, 0.3);
  min-width: 320px;
}

/* Remove 300 ms tap delay on Select2 containers */
body.registro-mundial .select2-container {
  touch-action: manipulation;
}

/* Ensure open dropdowns sit above everything */
body.registro-mundial .select2-container--open {
  z-index: 9999;
}

@media (max-width: 639px) {
  body.registro-mundial .wc2026-select2-dropdown,
  body.registro-mundial.wc-step-fase-de-grupos .select2-dropdown {
    position: fixed !important;
    top: 15vh !important;
    left: 5vw !important;
    width: 90vw !important;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 9999;
  }
}

/* --- Select2 dropdown 2-column layout ----------------------- */
body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-results__options {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-results__option[role="group"] {
  width: 100%;
  padding: 0;
  background: none;
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-results__option[role="group"] > strong {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 0.5rem;
  background: #03193B;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-results__option[role="group"] ul {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-results__option:not([role="group"]) {
  width: 50%;
  padding: 0.75rem 0.5rem;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-results__option .select2-emoji {
  font-size: 1.4em;
  line-height: 1;
  flex-shrink: 0;
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-results__option {
  color: #fff;
  padding: 0.75rem 1rem;
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #4C71FC;
  color: #fff;
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #03193B;
  color: #fff;
}

/* --- Select2 search field (country dropdown) ---------------- */
body.registro-mundial .wc2026-select2-dropdown .select2-search--dropdown,
body.registro-mundial .select2-dropdown .select2-search--dropdown {
  padding: 0.5rem;
  display: block;
}

body.registro-mundial .wc2026-select2-dropdown .select2-search--dropdown .select2-search__field,
body.registro-mundial .select2-dropdown .select2-search--dropdown .select2-search__field,
body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: #03193B;
  color: #fff;
  border: 1px solid rgba(76, 113, 252, 0.5);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  width: 100%;
  display: block;
  box-sizing: border-box;
}

body.registro-mundial .wc2026-select2-dropdown .select2-search--dropdown .select2-search__field::placeholder,
body.registro-mundial .select2-dropdown .select2-search--dropdown .select2-search__field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single .select2-selection__clear {
  color: rgba(255, 255, 255, 0.6);
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* Ensure group-stage pill is visible above Select2 */
body.registro-mundial.wc-step-fase-de-grupos .wc2026-select-wrapper {
  overflow: visible;
  z-index: 10;
}

body.registro-mundial.wc-step-fase-de-grupos .wc2026-select-wrapper .wc2026-matchup__team__badge {
  z-index: 100;
}

/* --- General form padding -------------------------------- */
body.registro-mundial .webform-submission-proyeccion-mundial-2026-form {
  padding-bottom: 2rem;
}

/* --- Step 1 (Socio) adjustments -------------------------------- */
body.registro-mundial .webform-submission-proyeccion-mundial-2026-form [id^="edit-processed-text-01"] {
  margin-bottom: unset;
}

/* Desktop: radio buttons side by side, spaced out (original layout).
   Uses [id^="edit-es-cliente-radio"] because Drupal AJAX appends
   random suffixes to element IDs (e.g. --roPzQKxP8Uo). */
body.registro-mundial .webform-submission-proyeccion-mundial-2026-form fieldset[id^="edit-es-cliente-radio"] .fieldset-wrapper {
  display: flex;
}

body.registro-mundial .webform-submission-proyeccion-mundial-2026-form fieldset[id^="edit-es-cliente-radio"] .webform-options-display-two-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

body.registro-mundial .webform-submission-proyeccion-mundial-2026-form fieldset[id^="edit-es-cliente-radio"] label {
  font-weight: 600;
  font-size: 18px;
}

/* Restore vertical spacing between radio items (global theme overrides it
   to margin-bottom:0). Scoped to body.registro-mundial so it only affects
   this page and lets the items breathe without needing a manual gap. */
body.registro-mundial .webform-submission-proyeccion-mundial-2026-form fieldset[id^="edit-es-cliente-radio"] .webform-options-display-two-columns div.form-item,
body.registro-mundial .webform-submission-proyeccion-mundial-2026-form fieldset[id^="edit-es-cliente-radio"] .webform-options-display-three-columns div.form-item {
  margin-bottom: 1rem;
}

@media (max-width: 639px) {
  /* Mobile: radio buttons centred but left-aligned, stacked vertically */
  body.registro-mundial .webform-submission-proyeccion-mundial-2026-form fieldset[id^="edit-es-cliente-radio"] .fieldset-wrapper {
    justify-content: center;
  }

  body.registro-mundial .webform-submission-proyeccion-mundial-2026-form fieldset[id^="edit-es-cliente-radio"] .webform-options-display-two-columns {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: auto;
  }

  /* Step 1 (datos) heading size on mobile – target multiple possible selectors */
  body.registro-mundial.wc-step-datos .webform-submission-proyeccion-mundial-2026-form h2,
  body.registro-mundial.wc-step-datos .webform-submission-proyeccion-mundial-2026-form .webform-wizard-page-title,
  body.registro-mundial.wc-step-datos .webform-submission-proyeccion-mundial-2026-form [id^="edit-processed-text-01"] h2 {
    font-size: 24px !important;
  }
}

/* --- Hide Completo progress step ----------------------------- */
body.registro-mundial .webform-progress-tracker li[data-webform-page="webform_confirmation"] {
  display: none !important;
}

/* --- Progress tracker positioning --------------------------- */
/* Tracker starts hidden until JS positions it or we reach group stage */
body.registro-mundial .webform-progress {
  opacity: 0;
}

/* Visible when moved above layout by JS (early steps) */
body.registro-mundial .webform-progress.is-positioned {
  opacity: 1;
  transition: opacity 0.3s ease;
  width: 100%;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Visible inside form when in group stage or later */
body.registro-mundial.wc-step-fase-de-grupos .webform-progress,
body.registro-mundial.wc-step-bracket .webform-progress,
body.registro-mundial.wc-step-pregunta-final .webform-progress {
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.registro-mundial .webform-progress-tracker {
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (min-width: 640px) {
body.registro-mundial .webform-progress-tracker {
    max-width: 410px;
  }
}

/* --- Remove connector line after last visible step ----------- */
body.registro-mundial .webform-progress-tracker li[data-webform-page="pregunta_final"] .progress-marker::after,
body.registro-mundial .webform-progress-tracker li[data-webform-page="pregunta_final"]::after,
body.registro-mundial .webform-progress-tracker li[data-webform-page="validacion"] .progress-marker::after,
body.registro-mundial .webform-progress-tracker li[data-webform-page="validacion"]::after {
  display: none !important;
}

/* --- Mobile: layout regions gap 0 ----------------------------- */
@media (max-width: 767px) {
body.registro-mundial .diners-layout--two-column .layout__region.layout__region--first,
body.registro-mundial .diners-layout--two-column .layout__region.layout__region--second {
    gap: 0 !important;
  }
}

@media (max-width: 639px) {
body.registro-mundial .diners-layout--two-column .layout__region.layout__region--first {
    margin-bottom: 0 !important;
  }

  /* Center champion flag emoji horizontally on mobile */
  body.registro-mundial .wc2026-champion__flag {
    display: flex;
    justify-content: center;
  }
}

/* --- Mobile: Select2 group stage vertical layout -------------- */
@media (max-width: 639px) {
body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single {
    padding: 0.75rem 1rem;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center;
    gap: 0.25rem;
    min-height: 120px;
    text-align: center;
  }

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single .select2-selection__rendered {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.25rem;
    width: 100%;
    padding-right: 0 !important;
  }

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single .select2-selection__rendered .select2-emoji {
    font-size: 2.2em;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Force the inner templateSelection span to stack vertically */
body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single .select2-selection__rendered > span {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem;
    width: 100%;
  }

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute;
    top: auto;
    bottom: 0.5rem;
    right: 50%;
    transform: translateX(50%);
  }

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
  }

  /* Allow long text to wrap and grow the box height */
body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single .select2-selection__rendered {
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.3;
  }

body.registro-mundial.wc-step-fase-de-grupos .select2-container--default .select2-selection--single .select2-selection__rendered > span {
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.3;
  }
}

/* --- Final step (Pregunta extra) Figma style ---------------- */
body.registro-mundial.wc-step-pregunta-final .webform-submission-proyeccion-mundial-2026-form {
  position: relative;
}

body.registro-mundial.wc-step-pregunta-final .form-item-en-que-ano-y-mundial-ocurrio-el-maracanazo {
  background: #121D44;
  border: 1px solid rgba(76, 113, 252, 0.4);
  border-radius: 20px;
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
  margin-top: 1.5rem;
}

/* "Pregunta extra" badge */
body.registro-mundial.wc-step-pregunta-final .form-item-en-que-ano-y-mundial-ocurrio-el-maracanazo::before {
  content: 'Pregunta extra';
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-50%);
  background: #4C71FC;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  padding: 5px 20px;
  border-radius: 20px;
  line-height: 1;
  letter-spacing: 0.04em;
}

/* Question label */
body.registro-mundial.wc-step-pregunta-final .form-item-en-que-ano-y-mundial-ocurrio-el-maracanazo label {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

/* Select field inside the card */
body.registro-mundial.wc-step-pregunta-final .form-item-en-que-ano-y-mundial-ocurrio-el-maracanazo select {
  appearance: none;
  -webkit-appearance: none;
  background: #03193B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid rgba(76, 113, 252, 0.3);
  border-radius: 20px;
  padding: 1rem 2.5rem 1rem 1.5rem;
  font-size: 1rem;
  color: #fff;
  width: 100%;
  cursor: pointer;
}

body.registro-mundial.wc-step-pregunta-final .form-item-en-que-ano-y-mundial-ocurrio-el-maracanazo select option:first-child {
  color: rgba(255, 255, 255, 0.6);
}

/* Select2 dark theme for final step */
body.registro-mundial.wc-step-pregunta-final .select2-container--default .select2-selection--single {
  background-color: #03193B;
  border-color: rgba(76, 113, 252, 0.3);
  color: #fff;
  height: auto;
  min-height: auto;
  padding: 1rem 2.5rem 1rem 1.5rem;
  display: flex;
  align-items: center;
  border-radius: 20px;
}

body.registro-mundial.wc-step-pregunta-final .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff;
  padding-left: 0;
  text-align: left !important;
  font-size: 1rem;
  width: 100%;
}

body.registro-mundial.wc-step-pregunta-final .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: auto;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

body.registro-mundial.wc-step-pregunta-final .select2-dropdown {
  background-color: #121D44;
  border-color: rgba(76, 113, 252, 0.3);
}

body.registro-mundial.wc-step-pregunta-final .select2-container--default .select2-results__option {
  color: #fff;
  padding: 0.75rem 1rem;
}

body.registro-mundial.wc-step-pregunta-final .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #4C71FC;
}

body.registro-mundial.wc-step-pregunta-final .select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #03193B;
}

/* --- Override progress tracker active colors ------------------- */
body.registro-mundial.page--node-2292 .webform-progress-tracker .progress-step.is-active .progress-marker::before,
body.registro-mundial.page--node-promesas .webform-progress-tracker .progress-step.is-active .progress-marker::before,
body.registro-mundial.page--node-2290 .webform-progress-tracker .progress-step.is-active .progress-marker::before {
  background-color: #4C71FC !important;
  border-color: #4C71FC !important;
}

/* First step active text color */
body.registro-mundial.wc-step-datos .webform-progress-tracker .progress-step.is-active .progress-title,
body.registro-mundial.wc-step-socio .webform-progress-tracker .progress-step.is-active .progress-title {
  color: #4C71FC !important;
}

/* Step 2+ active text stays white as before */
body.registro-mundial.wc-step-fase-de-grupos .webform-progress-tracker .progress-step.is-active .progress-title,
body.registro-mundial.wc-step-bracket .webform-progress-tracker .progress-step.is-active .progress-title,
body.registro-mundial.wc-step-pregunta-final .webform-progress-tracker .progress-step.is-active .progress-title {
  color: #fff !important;
}

/* Inactive / not-complete progress step markers: gray border */
body.registro-mundial.page--node-2292 .webform-progress-tracker .progress-step:not(.is-active):not(.is-complete) .progress-marker::before,
body.registro-mundial.page--node-promesas .webform-progress-tracker .progress-step:not(.is-active):not(.is-complete) .progress-marker::before,
body.registro-mundial.page--node-2290 .webform-progress-tracker .progress-step:not(.is-active):not(.is-complete) .progress-marker::before {
  background-color: #fff !important;
  border: 2px solid #D9D9D9 !important;
  color: #D9D9D9 !important;
}

/* Background image for pages with registro-mundial or wc-step-fase-de-grupos */
body.registro-mundial.wc-step-fase-de-grupos.page--confirmacion.page--confirmacion-new {
  background: url("../img/vecteezy_blue-line-curve-background-abstract-blue-template-vector_6503724-[Convertido] 1.jpg") center/cover no-repeat fixed !important;
}

/* Force T&C link to black inside the webform */
body.registro-mundial .webform-submission-proyeccion-mundial-2026-form a[href*="tyc-trivia_modo_futbol.pdf"] {
  color: #000 !important;
}

/* ============================================================
   Match Prediction – Single match score predictor styles
   ============================================================ */

/* --- Hide left column for pronostico / validacion steps ------ */
body.registro-mundial.wc-step-pronostico .diners-layout--two-column .layout__region--first,
body.registro-mundial.wc-step-validacion .diners-layout--two-column .layout__region--first {
  display: none !important;
}

body.registro-mundial.wc-step-pronostico .diners-layout--two-column .layout__region--second,
body.registro-mundial.wc-step-validacion .diners-layout--two-column .layout__region--second {
  width: 100% !important;
}

/* --- White text on blue background for new steps (only when JS adds wc2026-bg-blue) --- */
body.registro-mundial.wc-step-pronostico .wc2026-bg-blue h2,
body.registro-mundial.wc-step-validacion .wc2026-bg-blue h2,
body.registro-mundial.wc-step-pronostico .wc2026-bg-blue h3,
body.registro-mundial.wc-step-validacion .wc2026-bg-blue h3,
body.registro-mundial.wc-step-pronostico .wc2026-bg-blue p,
body.registro-mundial.wc-step-validacion .wc2026-bg-blue p,
body.registro-mundial.wc-step-pronostico .wc2026-bg-blue label,
body.registro-mundial.wc-step-validacion .wc2026-bg-blue label,
body.registro-mundial.wc-step-pronostico .wc2026-bg-blue .webform-wizard-page-title,
body.registro-mundial.wc-step-validacion .wc2026-bg-blue .webform-wizard-page-title,
body.registro-mundial.wc-step-pronostico .wc2026-bg-blue .webform-element-description,
body.registro-mundial.wc-step-validacion .wc2026-bg-blue .webform-element-description,
body.registro-mundial.wc-step-pronostico .wc2026-bg-blue .description,
body.registro-mundial.wc-step-validacion .wc2026-bg-blue .description {
  color: #fff;
}

/* Remove column gap only for the new match-prediction form (step datos) */
body.registro-mundial.wc-step-datos .diners-layout--two-column .layout__region--second:has(.webform-submission-pronostico-partido-mundial-2026-form) {
  gap: 0 !important;
}

/* --- Full-width layout + blue background for pronostico / validacion (mirror fase-de-grupos) --- */
body.registro-mundial.wc-step-pronostico .diners-layout--two-column,
body.registro-mundial.wc-step-validacion .diners-layout--two-column {
  display: block !important;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none !important;
  background: url('/modules/custom/webform_mundial_2026/img/vecteezy_blue-line-curve-background-abstract-blue-template-vector_6503724-[Convertido] 1.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
}

body.registro-mundial.wc-step-pronostico .diners-layout--two-column .layout__region--second,
body.registro-mundial.wc-step-validacion .diners-layout--two-column .layout__region--second {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  padding: 2rem 1rem;
}

/* --- Processed text white and centred for pronostico / validacion --- */
body.registro-mundial.wc-step-pronostico .webform-type-processed-text,
body.registro-mundial.wc-step-pronostico .webform-type-processed-text p,
body.registro-mundial.wc-step-pronostico .webform-type-processed-text span,
body.registro-mundial.wc-step-validacion .webform-type-processed-text,
body.registro-mundial.wc-step-validacion .webform-type-processed-text p,
body.registro-mundial.wc-step-validacion .webform-type-processed-text span {
  color: #fff !important;
  text-align: center !important;
}

/* --- Progress tracker visible and white for pronostico / validacion --- */
body.registro-mundial.wc-step-pronostico .webform-progress,
body.registro-mundial.wc-step-validacion .webform-progress {
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.registro-mundial.wc-step-pronostico .webform-progress-tracker .progress-step .progress-title,
body.registro-mundial.wc-step-pronostico .webform-progress-tracker .progress-step.is-active .progress-title,
body.registro-mundial.wc-step-validacion .webform-progress-tracker .progress-step .progress-title,
body.registro-mundial.wc-step-validacion .webform-progress-tracker .progress-step.is-active .progress-title {
  color: #fff !important;
}

/* --- Webform actions centred for pronostico / validacion (mirror fase-de-grupos) --- */
body.registro-mundial.wc-step-pronostico .webform-actions,
body.registro-mundial.wc-step-validacion .webform-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}

@media (min-width: 640px) {
body.registro-mundial.wc-step-pronostico .webform-actions,
body.registro-mundial.wc-step-validacion .webform-actions {
    text-align: center;
    justify-content: center;
  }
}

/* Style native wizard previous button like btn-light */
body.registro-mundial.wc-step-pronostico .webform-actions .webform-button--previous,
body.registro-mundial.wc-step-validacion .webform-actions .webform-button--previous {
  color: #4C71FC !important;
  background: #fff !important;
  border: 1px solid #4C71FC !important;
  border-radius: 20px !important;
  padding: 0.875rem 1.875rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

body.registro-mundial.wc-step-pronostico .webform-actions .webform-button--previous:hover,
body.registro-mundial.wc-step-validacion .webform-actions .webform-button--previous:hover {
  background: #f0f4ff !important;
}

/* Style native wizard next/submit button like btn-primary */
body.registro-mundial.wc-step-pronostico .webform-actions .webform-button--next,
body.registro-mundial.wc-step-validacion .webform-actions .webform-button--next {
  color: #fff !important;
  background: #4C71FC !important;
  border: 1px solid #4C71FC !important;
  border-radius: 20px !important;
  padding: 0.875rem 1.875rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

body.registro-mundial.wc-step-pronostico .webform-actions .webform-button--next:hover,
body.registro-mundial.wc-step-validacion .webform-actions .webform-button--next:hover {
  background: #3a5bd9 !important;
}

/* Mobile: "Siguiente" arriba, "Atrás" abajo for pronostico / validacion */
@media (max-width: 639px) {
body.registro-mundial.wc-step-pronostico .webform-actions,
body.registro-mundial.wc-step-validacion .webform-actions {
    flex-direction: column-reverse;
  }
}

/* --- Match prediction container ------------------------------ */
body.registro-mundial .wc2026-match-prediction {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
}

/* --- Title block (3 lines) ----------------------------------- */
body.registro-mundial .wc2026-match-title-block {
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

body.registro-mundial .wc2026-match-title-line1 {
  font-size: 24px;
  font-weight: 700;
}

body.registro-mundial .wc2026-match-title-line2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0.25rem 0;
}

@media (min-width: 640px) {
  body.registro-mundial .wc2026-match-title-line2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0.25rem 0;
  }
}

body.registro-mundial .wc2026-match-title-line3 {
  font-size: 24px;
  font-weight: 700;
}

/* --- Score box ----------------------------------------------- */
body.registro-mundial .wc2026-match-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #121D44;
  border: 2px solid #4C71FC;
  border-radius: 20px;
  padding: 1.25rem 1.5rem 1rem;
  max-width: 550px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
}

body.registro-mundial .wc2026-match-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(102, 102, 102, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

body.registro-mundial .wc2026-match-box__inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.75rem;
  width: 100%;
  z-index: 1;
}

/* --- Live clock badge (above the score box, fused) ----------- */
body.registro-mundial .wc2026-match-clock {
  display: inline-block;
  background: #1E41C4;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 0.375rem 1.25rem;
  border-radius: 0.75rem 0.75rem 0 0;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-bottom: 0;
}

body.registro-mundial .wc2026-match-clock--closed {
  background: #e4002b;
}

/* --- Team info (flag + name stacked vertically) -------------- */
body.registro-mundial .wc2026-match-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding-bottom: 0.5rem;
}

body.registro-mundial .wc2026-match-flag {
  font-size: 2.5rem;
  line-height: 1;
}

body.registro-mundial .wc2026-match-flag img {
  width: 60px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

body.registro-mundial .wc2026-match-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
  letter-spacing: 0.04em;
}

/* --- Score block (input + buttons below) --------------------- */
body.registro-mundial .wc2026-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* --- Score button row (− / + below the input) --------------- */
body.registro-mundial .wc2026-score-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

body.registro-mundial .wc2026-score-btn {
  width: 35px;
  height: 35px;
  background: #fff;
  border: none;
  border-radius: 0.375rem;
  color: #4C71FC;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 200ms ease, transform 150ms ease;
  user-select: none;
}

body.registro-mundial .wc2026-score-btn:hover {
  background: #f0f4ff;
  transform: scale(1.05);
}

body.registro-mundial .wc2026-score-btn:active {
  transform: scale(0.95);
  background: #e0e6ff;
}

/* --- Score inputs (no box, just number) ---------------------- */
body.registro-mundial .wc2026-match-score {
  width: 4.5rem;
  height: auto;
  font-size: 66px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

/* Hide native number spinners (we use custom buttons) */
body.registro-mundial .wc2026-match-score::-webkit-outer-spin-button,
body.registro-mundial .wc2026-match-score::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- Separator colon ----------------------------------------- */
body.registro-mundial .wc2026-match-sep {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  align-self: flex-end;
  padding-bottom: 1.75rem;
}

/* --- Validation step ----------------------------------------- */
body.registro-mundial .wc2026-match-validation {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
}

body.registro-mundial .wc2026-match-validation-title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  body.registro-mundial .wc2026-match-validation-title {
    font-size: 32px;
    font-weight: 700;
  }
}

body.registro-mundial .wc2026-match-validation-flag {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

body.registro-mundial .wc2026-match-validation-flag img {
  width: 100px;
  height: auto;
  display: inline-block;
}

body.registro-mundial .wc2026-match-validation-flag-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

body.registro-mundial .wc2026-match-validation-score {
  font-size: 66px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

body.registro-mundial .wc2026-match-validation-teams {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Validation tie layout: flags+names row, score below ──────── */
body.registro-mundial .wc2026-match-validation-tie {
  margin-bottom: 1.5rem;
}

body.registro-mundial .wc2026-match-validation-tie__flags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  justify-items: center;
  margin: 0 auto 1rem;
  max-width: 520px;
}

body.registro-mundial .wc2026-match-validation-tie__flag-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

body.registro-mundial .wc2026-match-validation-tie .wc2026-match-validation-flag {
  font-size: 6.875rem; /* ≈110px */
  line-height: 1;
  margin-bottom: 0;
}

body.registro-mundial .wc2026-match-validation-tie .wc2026-match-validation-flag img {
  width: 110px;
  height: 120px;
  display: inline-block;
}

body.registro-mundial .wc2026-match-validation-tie__name {
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.3;
}

body.registro-mundial .wc2026-match-validation-tie .wc2026-match-validation-score {
  margin-top: 0.5rem;
}

@media (max-width: 639px) {
  body.registro-mundial .wc2026-match-validation-tie__flags {
    gap: 1.5rem;
    max-width: 100%;
  }

  body.registro-mundial .wc2026-match-validation-tie__flag-block {
    gap: 0.375rem;
  }

  body.registro-mundial .wc2026-match-validation-tie .wc2026-match-validation-flag {
    font-size: 4.75rem; /* ≈76px */
  }

  body.registro-mundial .wc2026-match-validation-tie .wc2026-match-validation-flag img {
    width: 76px;
    height: 76px;
  }

  body.registro-mundial .wc2026-match-validation-tie__name {
    font-size: 16px;
    font-weight: 400;
  }
}

body.registro-mundial .wc2026-match-disclaimer {
  font-size: 0.9375rem;
  color: #fff;
  max-width: 420px;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
}

body.registro-mundial .wc2026-match-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.4;
}

body.registro-mundial .wc2026-match-note strong {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   Pronóstico Partido Mundial 2026 – Specific overrides
   Scoped to avoid touching proyeccion_mundial_2026 form
   ============================================================ */

/* 1. processed-text-01: margin-bottom unset only on desktop */
@media (min-width: 640px) {
  body.registro-mundial .webform-submission-pronostico-partido-mundial-2026-form #edit-processed-text-01 {
    margin-bottom: unset !important;
  }
}

/* 2. Radio buttons gap + vertical alignment – exact ID, beats theme specificity */
body.registro-mundial .webform-submission-pronostico-partido-mundial-2026-form .webform-type-radios .webform-options-display-two-columns {
  display: flex !important;
  flex-direction: row !important;
  gap: 5rem !important;
  align-items: center !important;
}

/* 3. Force T&C link to black — covers :link, :visited and inline styles */
body.registro-mundial .webform-submission-pronostico-partido-mundial-2026-form #edit-acepto-los-terminos-y-condiciones a,
body.registro-mundial .webform-submission-pronostico-partido-mundial-2026-form #edit-acepto-los-terminos-y-condiciones a:link,
body.registro-mundial .webform-submission-pronostico-partido-mundial-2026-form #edit-acepto-los-terminos-y-condiciones a:visited {
  color: #000000 !important;
}


/* 5. Match box inner: space-around + centre vertically */
body.registro-mundial .webform-submission-pronostico-partido-mundial-2026-form .wc2026-match-box__inner {
  justify-content: space-around !important;
  align-items: center !important;
}

/* 6. Team info blocks: cap width at 80 px */
body.registro-mundial .webform-submission-pronostico-partido-mundial-2026-form .wc2026-match-info {
  max-width: 80px !important;
}

/* --- Mobile overrides for pronostico form ---------------- */
@media (max-width: 639px) {
  body.registro-mundial .webform-submission-pronostico-partido-mundial-2026-form #edit-es-cliente-radio.webform-options-display-two-columns {
    gap: 2px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  body.registro-mundial .webform-submission-pronostico-partido-mundial-2026-form #edit-es-cliente-radio--wrapper-legend .fieldset-wrapper {
    display: flex !important;
    justify-content: center !important;
  }

  body.registro-mundial .webform-submission-pronostico-partido-mundial-2026-form .js-webform-type-radios .fieldset-wrapper {
    display: flex !important;
    justify-content: center !important;
  }

  /* Overwrite theme margin-bottom:0 on mobile */
  body.registro-mundial .webform-submission-pronostico-partido-mundial-2026-form #edit-es-cliente-radio.webform-options-display-two-columns div.form-item {
    margin-bottom: 1rem !important;
  }
}

/* --- Responsive adjustments ---------------------------------- */
@media (max-width: 639px) {
  body.registro-mundial .wc2026-match-prediction {
    padding: 1rem 0;
  }

  body.registro-mundial .wc2026-match-validation {
    padding: 1rem 0;
  }

  body.registro-mundial .wc2026-match-box {
    gap: 0.75rem;
    padding: 1.25rem 0.5rem;
  }

  body.registro-mundial .wc2026-match-box__inner {
    gap: 0.5rem;
    justify-content: space-around;
  }

  body.registro-mundial .wc2026-match-info {
    gap: 0.25rem;
    padding-bottom: 0.25rem;
  }

  body.registro-mundial.wc-step-pronostico .diners-layout--two-column .layout__region--second,
  body.registro-mundial.wc-step-validacion .diners-layout--two-column .layout__region--second {
    padding: 2rem 0;
  }

  body.registro-mundial .wc2026-match-flag {
    font-size: 2rem;
  }

  body.registro-mundial .wc2026-match-flag img {
    width: 40px;
    height: 40px;
  }

  body.registro-mundial .wc2026-match-name {
    font-size: 14px;
  }

  body.registro-mundial .wc2026-match-score {
    width: 3.5rem;
    height: auto;
    font-size: 48px;
  }

  body.registro-mundial .wc2026-score-block {
    gap: 0.25rem;
  }

  body.registro-mundial .wc2026-score-btn-row {
    gap: 0.5rem;
  }

  body.registro-mundial .wc2026-match-sep {
    font-size: 1.75rem;
    padding-bottom: 1rem;
  }

  body.registro-mundial .wc2026-match-validation-score {
    font-size: 66px;
  }

  body.registro-mundial .wc2026-match-validation-flag {
    font-size: 3rem;
  }

  body.registro-mundial .wc2026-match-validation-flag img {
    width: 64px;
    height: 64px;
  }
}

/* --- Pronóstico partido form specifics -------------------------------- */

/* Generales para todos los pasos del wizard — no dependen de clases de body/paso */
.form-item-es-cliente-radio {
  margin-bottom: 1rem !important;
}

.webform-submission-form {
  padding-bottom: 2rem !important;
}

#edit-es-cliente-radio label.option {
  font-weight: 600 !important;
  color: #000000 !important;
}

/* Fix centrado radios en mobile (navegadores móviles expanden inline-flex con width:100% en labels) */
@media (max-width: 767px) {
  #edit-es-cliente-radio {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: max-content !important;
  }
}

.form-item-acepto-los-terminos-y-condiciones label a,
.js-form-item-acepto-los-terminos-y-condiciones label a {
  color: #000000 !important;
}

