/* ==========================================================================
   ACADEMIA DE SEGURIDAD FRAGA - HOJA DE ESTILOS PREMIUM
   Diseño de Alta Fidelidad / Agencia Top
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

/* --- VARIABLES DE COLOR Y SISTEMA DE DISEÑO --- */
:root {
  /* Paleta Base Institucional (Modo Claro por defecto) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-modal: rgba(255, 255, 255, 0.98);

  --text-primary: #07152B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --navy-primary: #07152B;
  --navy-accent: #0B2545;
  --navy-light: #13293D;
  
  --red-primary: #EF233C;
  --red-hover: #D90429;
  --red-glow: rgba(239, 35, 60, 0.25);
  --red-subtle: rgba(239, 35, 60, 0.08);

  --gold-accent: #D97706;
  --gold-subtle: rgba(217, 119, 6, 0.12);

  --border-subtle: rgba(226, 232, 240, 0.8);
  --border-card: rgba(226, 232, 240, 0.9);
  --border-highlight: rgba(7, 21, 43, 0.12);

  --shadow-sm: 0 2px 8px rgba(7, 21, 43, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(7, 21, 43, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(7, 21, 43, 0.12);
  --shadow-glow: 0 0 35px rgba(239, 35, 60, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- MODO OSCURO (DARK MODE) --- */
[data-theme="dark"] {
  --bg-primary: #050B14;
  --bg-secondary: #0A1324;
  --bg-tertiary: #101E36;
  --bg-card: rgba(10, 19, 36, 0.75);
  --bg-card-hover: rgba(16, 30, 54, 0.9);
  --bg-glass: rgba(5, 11, 20, 0.8);
  --bg-modal: rgba(10, 19, 36, 0.98);

  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-light: #64748B;

  --navy-primary: #F8FAFC;
  --navy-accent: #38BDF8;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(239, 35, 60, 0.3);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(239, 35, 60, 0.35);
}

/* --- RESET BÁSICO Y CONFIGURACIÓN --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* --- UTILIDADES Y CONTENEDORES --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

.text-center { text-align: center; }
.text-red { color: var(--red-primary); }
.text-gold { color: var(--gold-accent); }

/* --- HEADER Y NAVBAR GLASSMORPHISM --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-smooth);
}

.header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.logo-link:hover .logo-img {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  letter-spacing: -0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-primary);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Botón Tema (Light/Dark) */
.theme-toggle-btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--border-subtle);
  transform: rotate(15deg);
}

/* Botones Principales CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-smooth);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-primary), var(--red-hover));
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--red-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--red-glow);
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--border-subtle);
  transform: translateY(-2px);
}

.btn-outline-red {
  background: transparent;
  color: var(--red-primary);
  border: 1.5px solid var(--red-primary);
}

.btn-outline-red:hover {
  background: var(--red-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Botón Hamburguesa Móvil */
.mobile-menu-btn {
  display: none;
  background: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  padding-top: 150px;
  padding-bottom: 90px;
  background: radial-gradient(circle at 80% 20%, rgba(239, 35, 60, 0.06), transparent 50%),
              radial-gradient(circle at 10% 60%, rgba(7, 21, 43, 0.05), transparent 40%);
  overflow: hidden;
}

[data-theme="dark"] .hero-section {
  background: radial-gradient(circle at 80% 20%, rgba(239, 35, 60, 0.12), transparent 50%),
              radial-gradient(circle at 10% 60%, rgba(56, 189, 248, 0.05), transparent 40%);
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 50px;
}

.hero-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red-subtle);
  border: 1px solid rgba(239, 35, 60, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--red-primary);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 35, 60, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 35, 60, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 35, 60, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-title .highlight-red {
  color: var(--red-primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--red-primary);
  flex-shrink: 0;
}

/* Contenedor de Video Institucional Oficial */
.hero-video-box {
  position: relative;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.video-embed-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  background: #07152B;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: calc(var(--radius-xl) - 8px);
}

.video-placeholder-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #07152B;
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: #FFFFFF;
}

.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(239, 35, 60, 0.25) 0%, rgba(7, 21, 43, 0.9) 75%),
              repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 1px, transparent 0, transparent 20px);
  z-index: 1;
}

.video-top-tag {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag-badge {
  background: rgba(239, 35, 60, 0.85);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.video-duration {
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: monospace;
}

.video-center-action {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.video-play-btn:hover {
  transform: scale(1.1);
  background: var(--red-primary);
  color: #FFFFFF;
}

.video-action-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.video-bottom-notice {
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* --- STATS SECTION (CONTADORES ANIMADOS) --- */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 16px;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-prefix, .stat-suffix {
  color: var(--red-primary);
}

.stat-label {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- ENCABEZADOS DE SECCIÓN --- */
.section-header {
  margin-bottom: 54px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* --- CATÁLOGO DE CURSOS Y FILTROS --- */
.courses-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 10px 20px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-subtle);
}

.filter-tab:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--red-primary);
  color: #FFFFFF;
  border-color: var(--red-primary);
  box-shadow: 0 4px 15px var(--red-glow);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

.course-thumb-box {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0B2545;
  overflow: hidden;
}

.course-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.course-card:hover .course-thumb-img {
  transform: scale(1.06);
}

.course-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.badge-cat {
  background: rgba(7, 21, 43, 0.85);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-hours {
  background: rgba(239, 35, 60, 0.95);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.course-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.course-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.course-feature-item svg {
  color: var(--red-primary);
  flex-shrink: 0;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-detail {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-detail:hover {
  background: var(--border-subtle);
  color: var(--red-primary);
}

.btn-enroll-quick {
  font-size: 0.86rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--red-primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-enroll-quick:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
}

/* --- ECOSISTEMA DIGITAL FRAGA --- */
.ecosystem-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ecosystem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.ecosystem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.ecosystem-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg);
}

.ecosystem-card:hover::before {
  opacity: 1;
}

.ecosystem-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--red-subtle);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.ecosystem-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.ecosystem-text {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 26px;
  flex-grow: 1;
}

.ecosystem-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--red-primary);
  transition: gap var(--transition-fast);
}

.ecosystem-link-btn:hover {
  gap: 12px;
}

/* --- SECCIÓN DE PAGOS EN LÍNEA (BANCO CAJA SOCIAL QR) --- */
.payments-section {
  background: var(--bg-primary);
}

.payment-box-wrapper {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.payment-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #E2E8F0;
  text-align: center;
}

.qr-image {
  max-width: 240px;
  height: auto;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
}

.qr-caption {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-info-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.payment-info-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.bank-detail-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bank-meta h5 {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.bank-meta p {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: monospace;
}

.btn-copy {
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: var(--red-primary);
  color: #FFFFFF;
}

/* --- BOLSA DE EMPLEO --- */
.job-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.job-banner {
  background: linear-gradient(135deg, #07152B, #0B2545);
  border-radius: var(--radius-xl);
  padding: 50px;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.job-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--red-primary), transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.job-banner-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.job-banner-desc {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.job-banner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
}

.job-banner-action {
  text-align: center;
}

/* --- CONTACTO Y SEDES --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--red-subtle);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-info-text p, .contact-info-text a {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.94rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--red-primary);
  background: var(--bg-primary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- FOOTER CORPORATIVO --- */
.footer {
  background: #050B14;
  color: #94A3B8;
  padding-top: 80px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 18px;
  color: #CBD5E1;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: #94A3B8;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-badge-supervigilancia {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: var(--radius-md);
}

.footer-badge-supervigilancia h6 {
  color: #F59E0B;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.footer-badge-supervigilancia p {
  font-size: 0.82rem;
  color: #94A3B8;
  line-height: 1.4;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
}

.footer-social-strip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--red-primary);
  transform: translateY(-2px);
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #FFFFFF;
  padding: 12px 20px 12px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon-inner {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- MODAL DIALOGS (CURSOS, PAGOS, EMPLEO) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 11, 20, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-modal);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 36px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition-smooth);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--red-primary);
  color: #FFFFFF;
}

.modal-header {
  margin-bottom: 24px;
  padding-right: 40px;
}

.modal-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--red-primary);
  background: var(--red-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.modal-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 20px;
  margin-bottom: 10px;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.modal-list li svg {
  color: var(--red-primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.modal-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

/* Toast Notificación */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #07152B;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 3000;
  transition: transform var(--transition-smooth);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
}

/* --- ANIMACIONES DE SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVIDAD (BREAKPOINTS) --- */
@media (max-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-video-box {
    max-width: 600px;
    margin: 0 auto;
  }
  .ecosystem-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  .payment-box-wrapper {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }
  .job-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .job-banner-pills {
    justify-content: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-modal);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px;
    box-shadow: var(--shadow-lg);
    border-left: 1px solid var(--border-card);
    transition: right var(--transition-smooth);
    z-index: 1001;
  }
  .nav-menu.open {
    right: 0;
  }
  .mobile-menu-btn {
    display: block;
    z-index: 1002;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .stat-card:nth-child(2)::after {
    display: none;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .floating-whatsapp span {
    display: none;
  }
  .floating-whatsapp {
    padding: 14px;
  }
}
