/* ==========================================================================
   GEMA QUALITY — PREMIUM DESIGN SYSTEM (2026)
   ========================================================================== */

:root {
  /* Brand Palette HSL */
  --color-primary: hsl(207, 68%, 22%);         /* #123B5D Azul Institucional */
  --color-primary-dark: hsl(207, 75%, 14%);
  --color-primary-light: hsl(207, 50%, 35%);
  --color-secondary: #795CA3;     /* #795CA3 Turquesa Técnico */
  --color-secondary-dark: #5E4384;
  --color-secondary-light: #8F72BA;
  --color-accent-green: hsl(140, 45%, 45%);     /* #48A868 Verde Éxito */
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE5D;
  --color-warning: hsl(39, 96%, 43%);

  /* Neutrals */
  --color-bg-body: #F4F7F9;
  --color-bg-card: #FFFFFF;
  --color-bg-subtle: #EBF4F7;
  --color-text-dark: #1E293B;
  --color-text-muted: #64748B;
  --color-border: #CBD5E1;
  --color-border-light: #E2E8F0;

  /* Typography */
  --font-heading: 'Manrope', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(18, 59, 93, 0.08);
  --shadow-md: 0 4px 12px rgba(18, 59, 93, 0.12);
  --shadow-lg: 0 12px 28px rgba(18, 59, 93, 0.16);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-body);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
}

/* TOP BANNER */
.top-bar {
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.8rem;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar a {
  color: #7DD3FC;
  font-weight: 600;
  text-decoration: underline;
}

/* HEADER DESPEJADO Y ELEGANTE */

.site-header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* LOGO CON SUBTAG DEBAJO EN LETRA PEQUEÑA */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 140, 140, 0.25);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-subtag {
  font-size: 0.68rem;
  color: #795CA3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
  white-space: nowrap !important;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-dark);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-secondary);
}

/* BOTONES DE ACCIÓN DESPEJADOS CON BOTÓN DE ACCESO */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 140, 140, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 140, 140, 0.35);
}

.btn-cotizaciones {
  background-color: var(--color-bg-subtle);
  color: var(--color-primary);
  border: 1px solid rgba(18, 59, 93, 0.15);
}

.btn-cotizaciones:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* BOTÓN DE ACCESO AL PORTAL / LOGIN */
.btn-login {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  font-weight: 700;
}

.btn-login:hover {
  background-color: #FFFFFF;
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* HAMBURGER MENU MOBILE */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #123B5D;
  cursor: pointer;
  padding: 6px;
  margin-left: auto !important;
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto !important;
  }
}


/* HERO SECTION */
.hero-section {
  padding: 70px 32px;
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-bg-subtle);
  color: var(--color-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 140, 140, 0.2);
}

.hero-title {
  font-size: 2.7rem;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--color-bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* SECTIONS & GRIDS */
.section {
  padding: 70px 32px;
  max-width: 1380px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--color-bg-card);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary-light);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--color-bg-subtle);
  color: var(--color-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

/* FORM STYLES */
.form-box {
  background: var(--color-bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-text-dark);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #FFFFFF;
  color: var(--color-text-dark);
  transition: all 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(0, 140, 140, 0.15);
}

/* FOOTER */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #FFFFFF;
  padding: 70px 32px 28px;
  margin-top: 80px;
  border-top: 3px solid var(--color-secondary);
}

.footer-container {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links-list a {
  color: #94A3B8;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links-list a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1380px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 12px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 14px 20px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-box {
    padding: 24px;
  }
}


/* ==========================================================================
   REGLAS RESPONSIVAS PARA MÓVILES (SMARTPHONES Y TABLETS)
   ========================================================================== */
@media (max-width: 768px) {

  /* CONTENEDOR GENERAL */
  body {
    overflow-x: hidden !important;
  }

  .section {
    padding: 40px 16px !important;
  }

  .section-title {
    font-size: 1.8rem !important;
  }

  /* FOOTER FLUIDO 1 COLUMNA EN MÓVIL */
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center !important;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    text-align: center !important;
  }

  .footer-links-list {
    text-align: center !important;
  }

  .footer-links-list li a {
    justify-content: center !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }

  /* BOLETÍN / NEWSLETTER RESPONSIVO */
  .section[style*="linear-gradient"] {
    padding: 40px 16px !important;
    margin: 30px 12px !important;
    border-radius: 16px !important;
  }

  .section[style*="linear-gradient"] h2 {
    font-size: 1.6rem !important;
  }

  .section[style*="linear-gradient"] form {
    flex-direction: column !important;
    width: 100% !important;
  }

  .section[style*="linear-gradient"] input {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .section[style*="linear-gradient"] button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* RETÍCULAS DE 2 Y 3 COLUMNAS MÚLTIPLES A 1 COLUMNA */
  .grid-2, .grid-3, .grid-4, .contact-grid, .mvv-grid, .overlap-stats {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .overlap-stats {
    margin-top: -30px !important;
  }

  /* BOTONES DE WHATSAPP Y COTIZACIÓN AJUSTADOS */
  .btn {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
    white-space: normal !important;
    text-align: center !important;
  }

  /* QUITAR NÚMERO DE TELÉFONO EN CAJAS DE LANDING */
  .card h3, .card h2 {
    font-size: 1.3rem !important;
  }
}


/* ==========================================================================
   BOTÓN FLOTANTE VOLVER ARRIBA (BACK TO TOP)
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #795CA3;
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 14px rgba(121, 92, 163, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 999;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: #123B5D;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(18, 59, 93, 0.4);
}


/* ==========================================================================
   COMPONENTES ACTUALIZADOS V2 - MESA TÉCNICA, PARTNERS & CALCULADORA
   ========================================================================== */

/* BADGE DE PARTNER Y EUROFINS */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(121, 92, 163, 0.1);
  color: #795CA3;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(121, 92, 163, 0.2);
}

.partner-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #795CA3;
}

/* CALCULADORA DE PRECIO DE VENTA Y COSTO DE ANÁLISIS */
.calculator-box {
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

.calc-result-badge {
  background: linear-gradient(135deg, #123B5D, #795CA3);
  color: #FFFFFF;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
}

.calc-result-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin: 8px 0;
}

/* ESTADOS DE COTIZACIÓN EN MESA TÉCNICA */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-pending { background: #FEF3C7; color: #D97706; }
.status-approved { background: #DCFCE7; color: #166534; }
.status-rejected { background: #FEE2E2; color: #991B1B; }

/* ROLES EN MULTIUSUARIO */
.role-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.role-admin { background: #123B5D; color: white; }
.role-compras { background: #795CA3; color: white; }
.role-contabilidad { background: #0284C7; color: white; }
.role-calidad { background: #16A34A; color: white; }
.role-comprador { background: #D97706; color: white; }


/* ==========================================================================
   CORRECCIÓN DE TRASLAPE DE HEADER FIJO (SCROLL-MARGIN-TOP)
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

section, div[id], form[id] {
  scroll-margin-top: 120px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ==========================================================================
   VISIBILIDAD DEL SELECTOR REGIONAL LATAM EN NAVEGADORES
   ========================================================================== */
.top-bar select {
  background: #1E4F76 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  outline: none !important;
  cursor: pointer !important;
}

.top-bar select option {
  background-color: #123B5D !important;
  color: #FFFFFF !important;
  padding: 8px !important;
}


/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVA MAESTRA PARA MÓVILES Y TABLETAS (<900px)
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

@media (max-width: 900px) {
  /* 1. TOP BAR */
  .top-bar {
    flex-direction: column !important;
    padding: 10px 12px !important;
    gap: 8px !important;
    text-align: center !important;
  }
  .top-bar > div {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  /* 2. HERO PRINCIPAL */
  .hero {
    padding: 30px 16px 40px !important;
  }
  .hero-container {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: 100% !important;
  }
  .hero h1 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }
  .hero p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }
  .hero-badge {
    font-size: 0.72rem !important;
    padding: 6px 12px !important;
    white-space: normal !important;
    display: inline-block !important;
    border-radius: 8px !important;
    line-height: 1.4 !important;
    text-align: left !important;
  }

  /* 3. COLAPSO OBLIGATORIO DE TODAS LAS REJILLAS INLINE */
  div[style*="grid-template-columns"],
  section[style*="grid-template-columns"],
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. CONTENEDORES Y TARJETAS */
  .section, section {
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .card, .form-box {
    padding: 20px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  /* 5. BOTONES Y CONTENEDORES FLEXIBLES EN MÓVIL */
  div[style*="display: flex; gap"],
  div[style*="display:flex; gap"],
  div[style*="display: flex; justify-content: center"] {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }
  
  .btn, button, a.btn {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  /* Excepción para contenedor de redes sociales */
  div[style*="display: flex; gap: 10px"],
  div[style*="display: flex; gap: 12px"] {
    flex-direction: row !important;
    justify-content: flex-start !important;
  }

  /* 6. FRANJA DE CONFIANZA Y NEWSLETTER EN MÓVIL */
  footer div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  input[type="email"], input[type="text"], select {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* ==========================================================================
   BOTÓN FLOTANTE VOLVER ARRIBA (CÍRCULO PERFECTO 48X48PX FIJO)
   ========================================================================== */
.back-to-top-btn,
button.back-to-top-btn,
#backToTopBtn {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  border-radius: 50% !important;
  background: #795CA3 !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(121, 92, 163, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  opacity: 0;
  visibility: hidden;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 1.2rem !important;
}

.back-to-top-btn.visible,
button.back-to-top-btn.visible,
#backToTopBtn.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.back-to-top-btn:hover,
#backToTopBtn:hover {
  transform: translateY(-4px) scale(1.05) !important;
  background: #604587 !important;
}


/* ==========================================================================
   PERFECCIONAMIENTO RESPONSIVO DE FORMULARIOS EN MÓVILES (<900px)
   ========================================================================== */
@media (max-width: 900px) {
  .form-box, form {
    padding: 18px 14px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .form-group {
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-label {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
    display: block !important;
    color: #123B5D !important;
  }

  .form-input, 
  .form-select, 
  select, 
  input[type="text"], 
  input[type="email"], 
  input[type="number"], 
  input[type="date"], 
  input[type="time"], 
  input[type="file"],
  textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.85rem !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid #CBD5E1 !important;
    background-color: #FFFFFF !important;
    color: #123B5D !important;
    outline: none !important;
    text-overflow: ellipsis !important;
  }

  select option {
    font-size: 0.82rem !important;
    padding: 8px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    background-color: #123B5D !important;
    color: #FFFFFF !important;
  }

  /* Ajuste de contenedor de checkboxes */
  label style*="display: flex" {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
}


/* ==========================================================================
   SEPARADOR CORPORATIVO PROFESIONAL DE SECCIONES (DESKTOP Y MÓVIL)
   ========================================================================== */
.pro-section-divider {
  max-width: 900px;
  margin: 50px auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  box-sizing: border-box;
}

.pro-section-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #CBD5E1 50%, transparent 100%);
}

.pro-section-divider .divider-badge {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #64748B;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .pro-section-divider {
    margin: 32px auto !important;
    gap: 10px !important;
    padding: 0 12px !important;
  }
  .pro-section-divider .divider-badge {
    font-size: 0.75rem !important;
    padding: 5px 12px !important;
  }
}


/* SUBMENÚS DROPDOWN ELEGANTE PARA NAVEGACIÓN JERÁRQUICA */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 0;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #FFFFFF;
  min-width: 240px;
  box-shadow: 0 12px 28px rgba(18, 59, 93, 0.12);
  border-radius: 12px;
  padding: 8px 0;
  z-index: 1100;
  border: 1px solid #E2E8F0;
}

.nav-item-dropdown:hover .dropdown-menu {
  display: block;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #123B5D;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background-color: #F8FAFC;
  color: #795CA3;
  padding-left: 22px;
}


/* FIX DEFINITIVO: ELIMINAR CUALQUIER ESPACIO/FRANJA GRIS ENTRE HEADER Y EL CONTENIDO PRINCIPAL */
body, html {
  margin: 0 !important;
  padding: 0 !important;
}

.site-header {
  margin-bottom: 0 !important;
}

.site-header + section, 
.site-header + main, 
.site-header + div, 
section:first-of-type,
.hero {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .site-header {
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  }
  .site-header + section, 
  .site-header + main, 
  .site-header + div, 
  section:first-of-type,
  .hero {
    margin-top: 0 !important;
    padding-top: 30px !important;
  }
}
