/* ==========================================================================
   ESTILOS MODERNOS Y ULTRA-OPTIMIZADOS - CENTRO DE FORMACIÓN ICD
   Diseño 2026: Rápido, visual, responsivo, micro-interacciones suaves
   ========================================================================== */

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

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Colores de Marca Modernizados */
  --primary: #0052cc;
  --primary-dark: #003b99;
  --primary-light: #e6f0ff;
  --secondary: #f59e0b;
  --secondary-hover: #d97706;
  --accent: #00c48c;
  --dark: #0b132b;
  --dark-surface: #132247;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;

  /* Sombras y elevaciones limpias */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 50px rgba(15, 23, 42, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --max-w: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: #ffffff;
  color: var(--gray-700);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.25;
  font-weight: 700;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TOP BAR MODERNA
   ========================================================================== */
.top-bar {
  background: var(--dark);
  color: #e2e8f0;
  font-size: 0.84rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-contact a, .top-contact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
}

.top-contact a:hover {
  color: var(--secondary);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-top-aula, .btn-top-notas {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-top-aula {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-top-aula:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-top-notas {
  background: #facc15;
  color: #0b132b;
}

.btn-top-notas:hover {
  background: #eab308;
  color: #0b132b;
}

/* ==========================================================================
   NAVBAR MODERNA (Glassmorphism & Sticky)
   ========================================================================== */
.navbar-main {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  padding: 12px 0;
}

.navbar-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo-img {
  height: 58px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.8px;
}

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

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
}

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

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background: #ffffff;
  min-width: 260px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 12px 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.dropdown-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}

.btn-actualizar {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #0b132b !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.4);
}

.btn-actualizar:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #fde047, #facc15);
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.55);
  color: #0b132b !important;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--dark);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO BANNER MODERNO (Impacto Visual Inmediato)
   ========================================================================== */
.modern-hero {
  position: relative;
  background: linear-gradient(135deg, #0b1a3d 0%, #002b66 60%, #0052cc 100%);
  color: #ffffff;
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-glow-1 {
  width: 450px;
  height: 450px;
  background: var(--secondary);
  top: -100px;
  right: -50px;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: #00d2ff;
  bottom: -150px;
  left: -100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffca80;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, #fef08a, #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 35px;
  max-width: 540px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-hero {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #0b132b;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.45);
}

.btn-primary-hero:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #fde047, #facc15);
  box-shadow: 0 12px 30px rgba(234, 179, 8, 0.6);
  color: #0b132b;
}

.btn-secondary-hero {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 35px;
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item h4 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.stat-item p {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

.hero-visual {
  position: relative;
}

.hero-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border: 4px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
}

.hero-img-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: var(--transition);
}

.hero-floating-badge {
  position: absolute;
  bottom: 25px;
  left: -20px;
  background: #ffffff;
  color: var(--dark);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floatSlow 4s ease-in-out infinite;
}

.floating-icon {
  width: 44px;
  height: 44px;
  background: #e6f9f0;
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   VENTAJAS / TRUST BAR
   ========================================================================== */
.trust-bar {
  background: #ffffff;
  padding: 30px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
}

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

.trust-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.trust-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.trust-card p {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.3;
}

/* ==========================================================================
   SECCIÓN DE CARRERAS (Catálogo Visual Interactivo)
   ========================================================================== */
.section-programs {
  padding: 90px 0;
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
}

.section-pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
}

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

.program-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.program-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #e2e8f0;
}

.program-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.program-card:hover .program-img-wrapper img {
  transform: scale(1.08);
}

.program-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(11, 19, 43, 0.8);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.program-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.program-meta {
  display: flex;
  gap: 15px;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}

.program-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.program-excerpt {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-bottom: 22px;
  line-height: 1.55;
  flex-grow: 1;
}

.program-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.btn-program-details {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-program-details:hover {
  gap: 12px;
  color: var(--primary-dark);
}

.btn-program-wp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-program-wp:hover {
  transform: scale(1.1);
  color: #ffffff;
}

/* ==========================================================================
   FORMULARIO RÁPIDO DE INFORMACIÓN (Conversión Directa)
   ========================================================================== */
.section-fast-contact {
  padding: 80px 0;
  background: linear-gradient(135deg, #0b1a3d, #003b99);
  color: #ffffff;
  position: relative;
}

.fast-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.fast-contact-text h2 {
  font-size: 2.6rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.fast-contact-text p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.fast-contact-box {
  background: #ffffff;
  color: var(--gray-900);
  padding: 38px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.fast-contact-box h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.form-group {
  margin-bottom: 16px;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.btn-submit-modern {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #0b132b;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.4);
}

.btn-submit-modern:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #fde047, #facc15);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.55);
}

/* ==========================================================================
   FOOTER MODERNO
   ========================================================================== */
.site-footer-custom {
  background: var(--dark);
  color: #94a3b8;
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr 1.6fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h3, .footer-col h4 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.15rem;
}

.footer-logo {
  height: 58px;
  margin-bottom: 15px;
  border-radius: 8px;
}

.col-about p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.col-contacto p {
  margin-bottom: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.horarios {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  padding: 22px 0;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   WHATSAPP FLOTANTE MODERNO CON PULSO
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 99999;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.12);
  color: #ffffff;
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  animation: pulseWp 2s infinite;
  z-index: -1;
}

@keyframes pulseWp {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: #ffffff;
  color: var(--dark);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  transform: translateX(10px);
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}
