/* ==========================================================================
   SUMANDO CURSOS - SISTEMA DE DISEÑO Y ESTILOS AVANZADOS (VANILLA CSS)
   ========================================================================== */

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

:root {
  /* Paleta de Colores Principal */
  --primary: #464B71;
  --primary-hover: #343854;
  --primary-light: #EAEAEE;
  --primary-gradient: linear-gradient(135deg, #464B71 0%, #118AB2 100%);
  
  --secondary: #118AB2;
  --secondary-light: #E7F3F7;
  
  --accent: #7CD5C7;
  --accent-light: #F2FAF9;

  --whatsapp: #25D366;
  --whatsapp-dark: #1EBE57;
  --whatsapp-glow: rgba(37, 211, 102, 0.35);

  /* Fondos y Textos */
  --bg-main: #F2F2ED;
  --bg-card: #FFFFFF;
  --bg-dark: #2F334E;

  --bg-dark-card: #151C2C;
  
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Bordes y Sombras */
  --border-light: #E2E8F0;
  --border-focus: #818CF8;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.2);

  /* Tipografías */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radio de bordes y Transiciones */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Normalización */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Utilitarios */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-accent {
  background-color: var(--accent-light);
  color: #D97706;
}

.badge-whatsapp {
  background-color: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp-dark);
}

/* ==========================================================================
   NAVBAR FLOTANTE GLASSMORPHIC
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.2rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
}

.brand-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-logo {
  filter: brightness(0) invert(1);
  height: 28px;
}



.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.btn-contact-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--whatsapp);
  color: white;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px var(--whatsapp-glow);
  transition: var(--transition);
}

.btn-contact-nav:hover {
  background-color: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--whatsapp-glow);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 9rem 0 5rem 0;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.08) 0%, rgba(248, 250, 252, 0) 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--border-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary-gradient);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
}

.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--whatsapp);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 18px var(--whatsapp-glow);
  transition: var(--transition);
}

.btn-whatsapp-hero:hover {
  background-color: var(--whatsapp-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--whatsapp-glow);
}

/* Banner e Imagen del Hero */
.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.hero-image-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-placeholder-card {
  min-height: 380px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-card-inner {
  padding: 2.5rem 1.5rem;
}

.hero-card-icon {
  font-size: 4rem;
  margin-bottom: 0.8rem;
}

.hero-card-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.4rem;
}

.hero-card-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}


/* Targetas Flotantes de Estadísticas */
.hero-floating-stat {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  animation: float 4s ease-in-out infinite alternate;
}

.hero-floating-stat.stat-1 {
  bottom: -20px;
  left: -30px;
}

.hero-floating-stat.stat-2 {
  top: -20px;
  right: -20px;
  animation-delay: 2s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-icon.indigo { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: rgba(37, 211, 102, 0.15); color: var(--whatsapp-dark); }

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-main);
  line-height: 1.1;
}

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

/* ==========================================================================
   SECCIÓN DE CATÁLOGO Y BUSCADOR
   ========================================================================== */
.catalog-section {
  padding: 5rem 0;
  background: white;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

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

/* Filtros y Buscador */
.controls-wrapper {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 550px;
}

.search-input {
  width: 100%;
  padding: 1rem 1.2rem 1rem 3.2rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-light);
  background: var(--bg-main);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: var(--shadow-glow);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.categories-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-pill {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-main);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.category-pill:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--border-focus);
}

.category-pill.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* Grid de Cursos */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Tarjeta de Curso */
.course-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.3);
}

.course-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.course-badge-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.course-rating-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.course-card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  background: white;
}

.course-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-main);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.course-card.no-image .course-content {
  padding-top: 0.5rem;
}


.star-icon {
  color: #FBBF24;
}

.course-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-meta-tags {
  display: flex;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.course-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.course-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.course-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.course-price-box {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.price-original {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-detail {
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.btn-whatsapp-card {
  background-color: var(--whatsapp);
  color: white;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px var(--whatsapp-glow);
  transition: var(--transition);
}

.btn-whatsapp-card:hover {
  background-color: var(--whatsapp-dark);
  transform: scale(1.03);
}

/* Estado de Sin Resultados */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
}

.no-results-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ==========================================================================
   MODAL DE DETALLE DE CURSO Y TEMARIO
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: white;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-main);
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: white;
  transform: rotate(90deg);
}

.modal-header-banner {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.modal-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0.3) 100%);
}

.modal-header-content {
  position: relative;
  z-index: 2;
  color: white;
}

.modal-course-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 0.4rem;
}

.modal-body {
  padding: 2rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  background: var(--bg-main);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.8rem;
}

.meta-box-item {
  display: flex;
  flex-direction: column;
}

.meta-box-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.meta-box-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.modal-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Temario por Módulos */
.modules-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.module-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.module-header {
  background: var(--bg-main);
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.module-number {
  background: var(--primary-light);
  color: var(--primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.module-topics-list {
  padding: 1rem 1.2rem 1rem 3.2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.topic-item {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topic-item::before {
  content: "✓";
  color: var(--whatsapp-dark);
  font-weight: 800;
}

.modal-action-bar {
  background: var(--bg-main);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-price-tag {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

/* ==========================================================================
   SECCIÓN DE BENEFICIOS / POR QUÉ ELEGIRNOS
   ========================================================================== */
.features-section {
  padding: 5rem 0;
  background: var(--bg-main);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECCIÓN DE TESTIMONIOS
   ========================================================================== */
.testimonials-section {
  padding: 5rem 0;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-main);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.testimonial-stars {
  color: #FBBF24;
  font-size: 1rem;
}

.testimonial-comment {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN FAQ (PREGUNTAS FRECUENTES)
   ========================================================================== */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-main);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.3rem 1.5rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.3rem 1.5rem;
  transition: max-height 0.5s ease-in-out, padding 0.3s ease;
}

/* ==========================================================================
   BOTÓN FLOTANTE Y WIDGET DE WHATSAPP
   ========================================================================== */
.whatsapp-float-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.whatsapp-tooltip {
  background: var(--bg-dark);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: var(--transition);
}

.whatsapp-float-widget:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px var(--whatsapp-glow);
  position: relative;
  transition: var(--transition);
  animation: pulse-ring 2.5s infinite;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  background-color: var(--whatsapp-dark);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: white;
}

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

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-floating-stat.stat-1 {
    left: 10px;
  }

  .hero-floating-stat.stat-2 {
    right: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .modal-action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-action-bar .btn-whatsapp-hero {
    justify-content: center;
  }
}
