/* ============================================================
   APPS BANG THEME (apps-bang-frfrv4)
   Sin rediseño Figma → skin heredado del portal andromeda legacy
   (www.apps-bang.com), valores medidos con getComputedStyle:
     body bg ........ #f1ece5  (rgb 241,236,229)  → portal CLARO
     body text ...... #000000 / titulares #010418
     header/footer .. #010418  (navy)
     acento marca ... #e35043  (Voir plus, hover nav, iconos)
     fuentes ........ Roboto (UI/nav) + Libre Baskerville (títulos/cards)
   Selector body.theme-appsbang: gana en especificidad a los tokens
   oscuros que el template define en :root (globals.css).
   ============================================================ */

body.theme-appsbang {
  /* Superficies */
  --background: #f1ece5;
  --foreground: #000000;
  --color-bg-base: #f1ece5;
  --color-bg-card: #ffffff;
  --color-surface-elevated: #ffffff;
  --card: #ffffff;
  --card-foreground: #010418;
  --popover: #ffffff;
  --popover-foreground: #010418;
  --secondary: #e7e0d6;
  --secondary-foreground: #010418;
  --muted: #e7e0d6;
  --muted-foreground: #55566a;
  --accent: #e7e0d6;
  --accent-foreground: #010418;
  --bg-neutral-900: #f1ece5;
  --neutral-800: #e7e0d6;
  --neutral-900: #ffffff;
  --neutral-950: #ffffff;
  --neutral-1000: #f1ece5;

  /* Texto */
  --color-text-base: #010418;
  --color-text-muted: rgba(1, 4, 24, 0.68);
  --color-text-base-op-64: rgba(1, 4, 24, 0.64);
  --color-text-base-op-88: rgba(1, 4, 24, 0.88);
  --color-text-primary: #010418;
  --color-text-secondary: #55566a;
  --color-text-tertiary: #55566a;
  --color-text-inverse: #ffffff;
  --color-on-accent: #ffffff;
  --color-icon-default: #010418;
  --base-0: 1 4 24;
  --base-950: 255 255 255;

  /* Marca */
  --brand-navy: #010418;
  --brand-cream: #f1ece5;
  --primary-300: #ec7a70;
  --primary-400: #e35043;
  --primary-500: #e35043;
  --primary-600: #c9392d;
  --secondary-600: #c9392d;
  --primary: #e35043;
  --primary-foreground: #ffffff;
  --color-primary: #e35043;
  --color-brand-accent-500: #e35043;
  --color-brand-accent-600: #c9392d;
  --ring: #e35043;
  --destructive: #c9392d;
  --gradient-primary: #e35043;
  --gradient-primary-secondary: #e35043;

  /* Bordes / inputs */
  --border: rgba(1, 4, 24, 0.16);
  --input: rgba(1, 4, 24, 0.24);
  --color-border: rgba(1, 4, 24, 0.16);
  --color-border-divider: #55566a;
  --color-input-bg: #ffffff;
  --color-input-border: rgba(1, 4, 24, 0.24);
  --color-error: #c9392d;

  /* Dropdowns / selects (fondo claro) */
  --color-dropdown-bg: #ffffff;
  --color-dropdown-border: rgba(1, 4, 24, 0.16);
  --color-dropdown-hover: #f1ece5;
  --color-dropdown-text: #010418;
  --color-dropdown-text-selected: #e35043;
  --bg-dropdown-item-selected: rgba(227, 80, 67, 0.1);
  --bg-dropdown-item-selected-hover: rgba(227, 80, 67, 0.18);

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

  /* Radios: el legacy es de esquinas rectas */
  --radius: 0.25rem;
  --radius-card: 0px;

  /* Tipografía */
  --font-family-base: var(--font-roboto), Arial, Helvetica, sans-serif;
  --font-family-display: var(--font-libre-baskerville), Georgia, "Times New Roman", serif;

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

/* ---------------- Header ---------------- */
.theme-appsbang .site-header {
  background: var(--header-bg);
  color: var(--brand-cream); /* sin esto heredaba #000 del body: negro sobre navy */
  font-family: var(--font-family-base);
}
.theme-appsbang footer {
  color: var(--brand-cream); /* idem: cualquier texto suelto del footer (copyright…) */
}
.theme-appsbang .header-nav-link {
  color: var(--brand-cream);
  font-size: 18px;
  transition: color 0.15s ease;
}
.theme-appsbang .header-nav-link:hover,
.theme-appsbang .header-nav-link:focus-visible,
.theme-appsbang .header-nav-link.is-active {
  color: var(--primary-500);
}
.theme-appsbang .header-nav-muted {
  color: rgba(241, 236, 229, 0.6); /* legacy: Désabonnement del menú mobile */
}
.theme-appsbang .header-dropdown {
  background: var(--brand-navy);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}
.theme-appsbang .header-auth-link {
  color: var(--brand-cream);
  font-size: 18px;
  background: none;
  border: 0;
  cursor: pointer;
}
.theme-appsbang .header-auth-link:hover {
  color: var(--primary-500);
}
.theme-appsbang .header-burger {
  color: var(--brand-cream);
}
.theme-appsbang .header-mobile-panel {
  background: var(--brand-navy);
}

/* ---------------- Footer ---------------- */
.theme-appsbang footer .footer-links a,
.theme-appsbang footer .footer-links button {
  color: var(--brand-cream);
  font-family: var(--font-family-base);
  font-size: 12px; /* legacy: Roboto 12/300 */
  font-weight: 300;
  text-decoration: none;
  padding: 0;
  height: auto;
}
.theme-appsbang footer .footer-links a:hover,
.theme-appsbang footer .footer-links button:hover {
  color: var(--primary-500);
  text-decoration: underline;
}

/* ---------------- Secciones de contenido ---------------- */
.theme-appsbang .section-title {
  font-family: var(--font-family-display);
  color: var(--brand-navy);
}
.theme-appsbang .section-more {
  font-family: var(--font-family-display);
  color: var(--primary-500);
}
.theme-appsbang .card-title {
  font-family: var(--font-family-display);
  color: var(--brand-navy);
}

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

/* Banda legal superior (TopLegalBanner): gris como el legacy (.show-hcnx-fr) */
body.theme-appsbang {
  --top-legal-bg: #eeeeee;
  --top-legal-fg: #000000;
}
.theme-appsbang .customer-care {
  padding-top: 2px;
  padding-bottom: 2px;
  font-family: var(--font-family-base);
}
.theme-appsbang .customer-care p {
  font-size: 16px;
  font-weight: 400;
}

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

/* Menú mobile: "Connexion"/"Déconnexion" en rojo 16px como el legacy */
.theme-appsbang .header-mobile-panel .header-auth-link {
  color: var(--primary-500);
  font-size: 16px;
}


/* Footer móvil: el legacy asienta el texto (span 12px / line-height 26px) 1px más abajo */
@media (max-width: 600px) {
  .theme-appsbang footer .footer-links {
    position: relative;
    top: 1px;
  }
}
