/* ============================================================
   VIDEOS 4G THEME (videos-4g-adsfrv4)
   Sin rediseño Figma → skin heredado del portal andromeda legacy
   (www.videos4g.com), valores medidos con getComputedStyle:
     body bg ........ #444444  (rgb 68,68,68)   → portal OSCURO (gris)
     header/footer .. #212121
     bloque bienvenida #262626
     texto .......... #ffffff
     acento marca ... #fe0000  (Voir plus, botones, cookies)
     fuente ......... Dosis 400 (UI) / 700 (titulares)
     breakpoint ..... 991/992px (Bootstrap 3) → utilidad `desk:`
   Selector body.theme-videos4g: gana en especificidad a los tokens
   que el template define en :root (globals.css).
   ============================================================ */

body.theme-videos4g {
  /* Superficies */
  --background: #444444;
  --foreground: #ffffff;
  --color-bg-base: #444444;
  --color-bg-card: #333333;
  --color-surface-elevated: #333333;
  --card: #333333;
  --card-foreground: #ffffff;
  --popover: #212121;
  --popover-foreground: #ffffff;
  --secondary: #333333;
  --secondary-foreground: #ffffff;
  --muted: #333333;
  --muted-foreground: rgba(255, 255, 255, 0.7);
  --accent: #333333;
  --accent-foreground: #ffffff;
  --bg-neutral-900: #444444;
  --neutral-800: #333333;
  --neutral-900: #444444;
  --neutral-950: #212121;
  --neutral-1000: #212121;

  /* Texto */
  --color-text-base: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-base-op-64: rgba(255, 255, 255, 0.64);
  --color-text-base-op-88: rgba(255, 255, 255, 0.88);
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-tertiary: rgba(255, 255, 255, 0.55);
  --color-text-inverse: #ffffff;
  --color-on-accent: #ffffff;
  --color-icon-default: #ffffff;
  --base-0: 255 255 255;
  --base-950: 33 33 33;

  /* Marca */
  --brand-dark: #212121;
  --primary-300: #ff5a5a;
  --primary-400: #ff2a2a;
  --primary-500: #fe0000;
  --primary-600: #d40000;
  --secondary-600: #d40000;
  --primary: #fe0000;
  --primary-foreground: #ffffff;
  --color-primary: #fe0000;
  --color-brand-accent-500: #fe0000;
  --color-brand-accent-600: #d40000;
  --ring: #fe0000;
  --destructive: #d40000;
  --gradient-primary: #fe0000;
  --gradient-primary-secondary: #fe0000;

  /* Bordes / inputs */
  --border: rgba(255, 255, 255, 0.16);
  --input: rgba(255, 255, 255, 0.24);
  --color-border: rgba(255, 255, 255, 0.16);
  --color-border-divider: rgba(255, 255, 255, 0.24);
  /* Inputs del legacy: fondo oscuro translúcido (rgba(33,33,33,.1) sobre #444), texto blanco */
  --color-input-bg: #404040;
  --color-input-border: rgba(255, 255, 255, 0.24);
  --color-error: #ff6b6b;

  /* Dropdowns / selects */
  --color-dropdown-bg: #212121;
  --color-dropdown-border: rgba(255, 255, 255, 0.16);
  --color-dropdown-hover: #333333;
  --color-dropdown-text: #ffffff;
  --color-dropdown-text-selected: #fe0000;
  --bg-dropdown-item-selected: rgba(254, 0, 0, 0.12);
  --bg-dropdown-item-selected-hover: rgba(254, 0, 0, 0.2);

  /* Header / footer (#212121 como el legacy) */
  --header-bg: #212121;
  --header-shadow: none;
  --footer-bg: #212121;
  --footer-border: transparent;

  /* Radios: el legacy es de esquinas casi rectas (botón 2px) */
  --radius: 0.125rem;
  --radius-card: 0px;

  /* Tipografía */
  --font-family-base: var(--font-dosis), Arial, Helvetica, sans-serif;
  --font-family-display: var(--font-dosis), Arial, Helvetica, sans-serif;

  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-family-base);
}

/* ---------------- Header ---------------- */
.theme-videos4g .site-header {
  background: var(--header-bg);
  color: #ffffff;
  font-family: var(--font-family-base);
}
.theme-videos4g footer {
  background: var(--footer-bg);
  color: #ffffff;
  font-family: var(--font-family-base);
}
.theme-videos4g .header-nav-link {
  color: #ffffff;
  transition: color 0.15s ease;
}
.theme-videos4g .header-nav-link:hover,
.theme-videos4g .header-nav-link:focus-visible,
.theme-videos4g .header-nav-link.is-active {
  color: var(--primary-500);
}
.theme-videos4g .header-nav-muted {
  color: rgba(255, 255, 255, 0.6);
}
.theme-videos4g .header-dropdown {
  background: var(--brand-dark);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}
.theme-videos4g .header-auth-link {
  color: #ffffff;
  background: none;
  border: 0;
  cursor: pointer;
}
.theme-videos4g .header-auth-link:hover {
  color: var(--primary-500);
}
.theme-videos4g .header-burger {
  color: #ffffff;
}
.theme-videos4g .header-mobile-panel {
  background: var(--brand-dark);
}

/* ---------------- Footer ---------------- */
.theme-videos4g footer .footer-links a,
.theme-videos4g footer .footer-links button {
  color: #ffffff;
  font-family: var(--font-family-base);
  font-size: 16px; /* legacy: Dosis 16/400 */
  font-weight: 400;
  text-decoration: none;
  padding: 0;
  height: auto;
}
.theme-videos4g footer .footer-links a:hover,
.theme-videos4g footer .footer-links button:hover {
  color: var(--primary-500);
  text-decoration: underline;
}

/* ---------------- Secciones de contenido ---------------- */
.theme-videos4g .section-title {
  font-family: var(--font-family-display);
  font-weight: 700;
  color: #ffffff;
}
.theme-videos4g .section-more {
  font-family: var(--font-family-display);
  color: var(--primary-500);
}
.theme-videos4g .card-title {
  font-family: var(--font-family-display);
  color: #ffffff;
}

/* ------------------------------------------------------------
   SDK PasswordReset Component Overrides (.pr-*)
   ------------------------------------------------------------ */
.theme-videos4g .pr-page {
  background-color: var(--color-bg-base);
  color: var(--color-text-base);
}
.theme-videos4g .pr-card {
  background-color: var(--color-bg-card);
  border-color: var(--color-border);
  border-radius: 4px;
  max-width: 480px;
}
.theme-videos4g .pr-title { color: var(--color-text-base); font-size: 28px; font-weight: 700; }
.theme-videos4g .pr-subtitle { color: var(--color-text-muted); }
.theme-videos4g .pr-label { color: var(--color-text-base); font-size: 18px; }
.theme-videos4g .pr-input {
  background-color: var(--color-input-bg);
  border-color: var(--color-input-border);
  color: var(--color-text-base);
  border-radius: 2px;
}
.theme-videos4g .pr-input:focus { border-color: var(--primary); outline: none; }
.theme-videos4g .pr-btn {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-radius: 2px;
  font-weight: 700;
  font-size: 18px;
}
.theme-videos4g .pr-btn:hover:not(:disabled) { opacity: 0.9; }
.theme-videos4g .pr-error-msg { color: var(--color-error); }
.theme-videos4g .pr-success-text { color: var(--color-text-base); }
.theme-videos4g .pr-rule { font-size: 14px; }
.theme-videos4g .pr-logo { max-height: 56px; }

/* Banda legal superior (TopLegalBanner) */
body.theme-videos4g {
  --top-legal-bg: #fe0000;
  --top-legal-fg: #ffffff;
}
.theme-videos4g .customer-care {
  padding-top: 2px;
  padding-bottom: 2px;
  font-family: var(--font-family-base);
}

/* ---------------- Header: raíl lateral + overlay (réplica del legacy) ---------------- */
.theme-videos4g .site-header {
  background: var(--header-bg);
}
.theme-videos4g .header-overlay {
  background: var(--header-bg);
  color: #ffffff;
  font-family: var(--font-family-base);
}
.theme-videos4g .header-slogan {
  color: #ffffff;
  font-family: var(--font-family-base);
}


/* Sombra del header (raíl lateral / barra superior), medida en el legacy */
.theme-videos4g .site-header {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

/* Botón de descarga de los legales (legacy: rojo, 16px, centrado) */
.theme-videos4g .legal-download {
  padding-inline: 12px;
  background: var(--primary);
  color: #ffffff;
  align-self: center;
}

/* ---------------- Formulario de contacto (webs-sdk ContactForm) ----------------
   El SDK pinta estilos inline: !important para igualar el McContact del legacy
   (inputs #DCDCDC 42px radio 3px, etiquetas blancas 16/400, columna de ~800px). */
.theme-videos4g .contact-form-page {
  max-width: 800px;
  margin-inline: auto;
}
.theme-videos4g .contact-form-page h1 {
  font-size: 32px !important;
  color: #ffffff !important;
}
.theme-videos4g .contact-form-page label {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #ffffff !important;
}
.theme-videos4g .contact-form-page input,
.theme-videos4g .contact-form-page select,
.theme-videos4g .contact-form-page textarea {
  background: #dcdcdc !important;
  border-color: #dcdcdc !important;
  border-radius: 3px !important;
  color: #212121 !important;
  font-size: 16px !important;
}
.theme-videos4g .contact-form-page input,
.theme-videos4g .contact-form-page select {
  height: 42px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.theme-videos4g .contact-form-page button[type="submit"] {
  border-radius: 3px !important;
}

/* ---- Contacto: ajuste fino contra /mon_compte/contact del legacy ---- */
.theme-videos4g .contact-form-page {
  max-width: 793px;
}
/* Descripción: titular 29px, "SUPPORT CLIENT" 23px mayúsculas, dirección 14px */
.theme-videos4g .contact-form-page .cf-lead {
  display: block;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 19px;
}
.theme-videos4g .contact-form-page .cf-support {
  display: block;
  font-size: 23px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 37px;
}
.theme-videos4g .contact-form-page .cf-address {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
/* Teléfono: bloque verde de ancho completo (#78b41e, 55px) */
.theme-videos4g .contact-form-page a[href^="tel:"] {
  background: #78b41e !important;
  max-width: none !important;
  height: 55px;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 1.5px !important;
}
/* E-mail: rótulo atenuado, valor en blanco y negrita */
.theme-videos4g .contact-form-page a[href^="mailto:"] {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
.theme-videos4g .contact-form-page p {
  color: rgba(255, 255, 255, 0.5);
}
/* Separador sobre el formulario */
.theme-videos4g .contact-form-page div:has(> form) {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  margin-top: 0;
  padding-top: 24px !important;
}
.theme-videos4g .contact-form-page a[href^="mailto:"] {
  position: relative;
}
.theme-videos4g .contact-form-page p:has(> a[href^="mailto:"]) {
  margin-top: 32px;
  margin-bottom: 8px;
}
/* Campos: 12px, placeholders grises, textarea alto */
.theme-videos4g .contact-form-page input,
.theme-videos4g .contact-form-page select,
.theme-videos4g .contact-form-page textarea {
  font-size: 12px !important;
}
.theme-videos4g .contact-form-page input::placeholder,
.theme-videos4g .contact-form-page textarea::placeholder {
  color: #878787 !important;
}
.theme-videos4g .contact-form-page textarea {
  min-height: 162px;
}
/* Enviar: salmón #ff6565, 128x56, alineado a la derecha, en mayúsculas */
.theme-videos4g .contact-form-page button[type="submit"] {
  width: 128px !important;
  height: 56px;
  margin-left: auto;
  display: block;
  padding: 0 !important;
  background: #ff6565 !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: normal !important;
}

/* Rejilla del formulario: columnas de 378px con hueco de 36px y filas con paso de 110px */
.theme-videos4g .contact-form-page form > div {
  column-gap: 36px !important;
  row-gap: 39px !important;
}
.theme-videos4g .contact-form-page div:has(> form) {
  padding-top: 14px !important;
}

/* ---------------- Mon Compte (/mon_compte) — réplica del legacy ----------------
   Tres columnas de 387px (botón rojo de 350x30), título de 28px, enlaces en rojo. */
.theme-videos4g .my-account-page {
  padding-top: 0 !important;
  padding-bottom: 48px;
}
.theme-videos4g .my-account-page h1 {
  font-size: 28px !important;
  font-weight: 500;
  margin: 52px 0 60px !important;
}
.theme-videos4g .my-account-page [class*="divide-x"] > div {
  width: 387px !important;
  padding: 0 18px !important;
  flex-shrink: 0;
  border-color: rgba(254, 0, 0, 0.55);
}
/* Las 3 columnas fijas de 387px no caben por debajo de ~1200px: se apilan. */
@media (max-width: 1199px) {
  .theme-videos4g .my-account-page [class*="divide-x"] {
    flex-direction: column !important;
    align-items: center;
  }
  .theme-videos4g .my-account-page [class*="divide-x"] > div {
    width: min(387px, 100%) !important;
    border-left-width: 0 !important;
    border-right-width: 0 !important;
    border-top-width: 1px;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  .theme-videos4g .my-account-page [class*="divide-x"] > div:first-child {
    border-top-width: 0;
  }
}
.theme-videos4g .my-account-page [class*="divide-x"] > div > div {
  min-height: 0 !important;
  justify-content: flex-start;
}
.theme-videos4g .my-account-page .mt-auto {
  margin-top: 8px !important;
}
.theme-videos4g .my-account-page .mt-auto.flex-col {
  gap: 30px !important;
}
.theme-videos4g .my-account-page h3 {
  font-size: 14px;
  font-weight: 700;
}
.theme-videos4g .my-account-page [class*="divide-x"] .mb-4 {
  margin-bottom: 22px !important;
}
.theme-videos4g .my-account-page [class*="divide-x"] .mb-6 {
  margin-bottom: 26px !important;
}
.theme-videos4g .my-account-page svg.w-8 {
  width: 30px;
  height: 30px;
}
.theme-videos4g .my-account-page .opacity-70 {
  opacity: 1;
  font-size: 12px;
}
.theme-videos4g .my-account-page .signup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 !important;
  background: #fe0000;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
  border: 1px solid #fe0000;
}
.theme-videos4g .my-account-page a[href^="mailto:"].signup-btn {
  background: transparent;
  color: #fe0000;
  font-size: 16px !important;
}
.theme-videos4g .my-account-page a:not(.signup-btn) {
  color: #fe0000;
}
.theme-videos4g .my-account-page .text-base.opacity-70,
.theme-videos4g .my-account-page .text-base {
  font-size: 16px;
}

/* CTABtn del SDK en la ficha de juego (id/31): rectangular como el botón del legacy; 2 clases ganan al CSS del SDK */
.theme-videos4g .v4g-cta .webs-cta__btn {
  height: 42px;
  min-width: 165px;
  padding: 0 18px;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}
