:root {
  --primary: #009640;
  --primary-hover: #007d35;
  --primary-light: #e8f7ee;
  --primary-glow: rgba(0, 150, 64, 0.25);
  --secondary: #0a4d2e;
  --dark: #0f1e17;
  --dark-surface: #13271e;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg-light: #f8faf9;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 5px 15px -3px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 20px 40px -10px rgba(0, 150, 64, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.font-bold { font-weight: 700; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 150, 64, 0.35);
}

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

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

.btn-white {
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
}

.btn-white:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
}

/* ==============================================================================
   TOP ANNOUNCEMENT BAR & INSTITUTIONAL HEADER REDESIGN
   ============================================================================== */

/* Barra Superior Elegante con fondo oscuro de contraste suave */
.top-bar {
  background: #0d1f17;
  color: #9fe1b9;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

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

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

.top-bar-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c2ebd4;
  font-weight: 500;
  letter-spacing: 0.15px;
}

.top-bar-tagline i {
  color: #10b981;
  font-size: 0.85rem;
}

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

.top-bar-link {
  color: #e2f5ec;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.top-bar-link i {
  color: #34d399;
  font-size: 0.95rem;
}

.top-bar-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* Header Principal con efecto Glassmorphism suave */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 15px -2px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.99);
}

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

.logo-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: var(--transition);
}

.logo-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.logo-img {
  height: 40px;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.90rem;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(0, 150, 64, 0.06);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-actions .btn-primary {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 150, 64, 0.25);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 150, 64, 0.35);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: var(--bg-light);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 85px 0 85px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 150, 64, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--primary);
  background: linear-gradient(120deg, #009640, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

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

.hero-badges {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-badge-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-badge-text h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
}

.hero-badge-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Hero Media Box */
.hero-media {
  position: relative;
}

.hero-image-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid rgba(0, 150, 64, 0.15);
}

.hero-image-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 8px);
}

.floating-stat-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffffff;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-color);
  animation: floatAnim 4s ease-in-out infinite;
}

.floating-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.floating-stat-card .stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.floating-stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* Marquee Ticker */
.marquee-wrapper {
  background: var(--dark);
  color: #ffffff;
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  animation: scrollMarquee 25s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.marquee-item i {
  color: var(--primary);
  font-size: 0.8rem;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Modern Interactive Carousel / Slider Component */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
  background: #0f1e17;
}

.carousel-track-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  transition: transform 6s ease;
}

.carousel-slide.active .carousel-slide-img {
  transform: scale(1.05);
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 30, 23, 0.92) 0%, rgba(15, 30, 23, 0.5) 55%, rgba(0, 150, 64, 0.2) 100%);
  display: flex;
  align-items: center;
  padding: 0 60px;
  z-index: 2;
}

.carousel-caption {
  max-width: 580px;
  color: #ffffff;
}

.carousel-caption .section-tag {
  background: rgba(0, 150, 64, 0.35);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.4);
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
}

.carousel-caption h3 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 14px;
}

.carousel-caption p {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 24px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: all 0.25s ease;
}

.carousel-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 150, 64, 0.4);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-wrapper.carousel-compact .carousel-track-container {
  height: 380px;
}

.carousel-wrapper.carousel-compact .carousel-caption h3 {
  font-size: 1.7rem;
}

.carousel-wrapper.carousel-compact .carousel-caption p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  width: 32px;
  border-radius: 12px;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(0, 150, 64, 0.6);
}

@media (max-width: 768px) {
  .carousel-track-container {
    height: 420px;
  }
  .carousel-overlay {
    padding: 0 24px;
  }
  .carousel-caption h3 {
    font-size: 1.55rem;
  }
  .carousel-caption p {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }
  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
}

/* Section Spacing */
.section {
  padding: 100px 0;
}

.section-bg-light {
  background-color: var(--bg-light);
}

/* Feature Pillars Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: #ffffff;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(0, 150, 64, 0.3);
}

.feature-card:hover::before {
  height: 100%;
}

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

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(5deg) scale(1.05);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Services / Programs Cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

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

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(0, 150, 64, 0.4);
}

.program-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.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: 14px;
  left: 14px;
  background: var(--primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.program-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.program-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

/* 4-Step Process Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.step-card {
  background: #ffffff;
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.step-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin: 16px 0 14px;
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Mentors / Team Section */
.mentors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.mentor-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.mentor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.mentor-photo {
  height: 280px;
  overflow: hidden;
  position: relative;
  background: #0f1e17;
}

.mentor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.mentor-card:hover .mentor-photo img {
  transform: scale(1.05);
}

.mentor-info {
  padding: 22px;
  text-align: center;
}

.mentor-info h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
}

.mentor-info .role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.mentor-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Appointment / Schedule Section (Green Dark Container) */
.schedule-section {
  background: var(--dark-surface);
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  color: #ffffff;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.schedule-info h2 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.schedule-info h2 span {
  color: #34d399;
}

.schedule-info p {
  color: #a7f3d0;
  font-size: 1rem;
  margin-bottom: 30px;
}

.schedule-guarantee {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.schedule-guarantee i {
  font-size: 2rem;
  color: #34d399;
}

.schedule-form {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.form-control option {
  background: #13271e;
  color: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: #ffffff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #f59e0b;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}

.client-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.client-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

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

/* Newsletter Section */
.newsletter-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  color: #ffffff;
  text-align: center;
  margin-top: 60px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 24px auto 0;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.newsletter-form input {
  flex-grow: 1;
  border: none;
  padding: 12px 20px;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  outline: none;
}

/* Modern Footer */
.footer {
  background: #0b1712;
  color: #9ca3af;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  letter-spacing: 15px;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-brand h3 span {
  color: var(--primary);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 20px;
}

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

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
}

.toast {
  background: #ffffff;
  color: var(--dark);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 5px solid var(--primary);
  animation: slideUp 0.3s ease forwards;
  max-width: 380px;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==============================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATION
   Optimizado para 320px, 360px, 375px, 390px, 414px, 430px, 768px y 1024px
   ============================================================================== */

/* --- TABLETS Y PANTALLAS MEDIANAS (<= 1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 32px;
  }

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

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

  .hero-media {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .floating-stat-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

/* --- TABLETS Y PANTALLAS MEDIANAS (<= 1024px) --- */
@media (max-width: 1024px) {
  .top-bar-tagline {
    display: none;
  }

  .top-bar-container {
    justify-content: center;
  }

  .top-bar-right {
    justify-content: center;
    width: 100%;
  }

  /* Header & Menú Móvil / Tablet */
  .header {
    height: 68px;
  }

  .nav-container {
    height: 68px;
  }

  .logo-brand {
    padding: 2px 0;
  }

  .logo-img {
    height: 36px !important;
    max-height: 36px !important;
    width: auto;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 68px);
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 32px 20px;
    gap: 16px;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 10px 16px;
    text-align: center;
    display: block;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 6px;
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-size: 1.4rem;
  }

  .nav-actions .btn-primary {
    display: none; /* Ocultar botón CTA del header en tableta/móvil para diseño limpio */
  }
}

/* --- DISPOSITIVOS MÓVILES (<= 768px) --- */
@media (max-width: 768px) {
  /* Evitar cualquier scroll horizontal y asegurar márgenes limpios */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  .container {
    padding: 0 16px;
    max-width: 100%;
  }

  /* Secciones con espaciado balanceado */
  .section {
    padding: 60px 0;
  }

  /* Top Bar */
  .top-bar {
    padding: 6px 0;
    font-size: 0.78rem;
  }

  .top-bar-right {
    gap: 12px;
    flex-wrap: wrap;
  }

  .top-bar-link {
    font-size: 0.78rem;
  }

  /* Tipografías Móviles Adaptables y Centradas */
  .hero-section {
    padding: 45px 0 60px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 6vw, 2.3rem);
    line-height: 1.22;
    margin-bottom: 16px;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-content p {
    font-size: clamp(0.92rem, 3.5vw, 1.05rem);
    line-height: 1.6;
    margin: 0 auto 28px;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .section-tag {
    font-size: 0.75rem;
    padding: 5px 14px;
    margin-bottom: 12px;
    text-align: center;
    justify-content: center;
  }

  .section-title {
    font-size: clamp(1.6rem, 5.5vw, 2.1rem);
    line-height: 1.25;
    text-align: center;
    margin-bottom: 14px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .section-desc {
    font-size: clamp(0.9rem, 3.2vw, 1rem);
    text-align: center;
    margin: 0 auto 24px;
    max-width: 100%;
  }

  /* Botones en Móvil */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
  }

  .hero-buttons .btn,
  .btn-primary,
  .btn-outline,
  .btn-white {
    width: 100%;
    max-width: 380px;
    padding: 13px 20px;
    font-size: 0.95rem;
    text-align: center;
    justify-content: center;
  }

  /* Badges del Hero */
  .hero-badges {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    align-items: center;
  }

  .hero-badge-item {
    justify-content: center;
    text-align: left;
  }

  /* Card de Imagen del Hero */
  .hero-media {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
  }

  .hero-image-card {
    padding: 10px;
    border-radius: var(--radius-md);
  }

  .hero-image-card img {
    height: 260px;
    border-radius: calc(var(--radius-md) - 4px);
  }

  .floating-stat-card {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 14px;
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    box-shadow: var(--card-shadow);
    animation: none; /* Mejor rendimiento en móviles */
  }

  /* Banners de Páginas Interiores */
  .page-banner {
    padding: 45px 0 35px;
    text-align: center;
  }

  .page-banner-title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    line-height: 1.25;
    margin-bottom: 10px;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .page-banner-desc {
    font-size: clamp(0.9rem, 3.2vw, 1rem);
    text-align: center;
    margin: 0 auto;
    padding: 0 10px;
    max-width: 100%;
  }

  .breadcrumb-nav {
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    margin-top: 12px;
  }

  /* Grids de Tarjetas a 1 Columna en Celulares */
  .features-grid,
  .programs-grid,
  .testimonials-grid,
  .steps-grid,
  .mentors-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
  }

  .feature-card,
  .program-card,
  .testimonial-card,
  .step-card,
  .mentor-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 20px;
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto 18px;
  }

  .feature-card h3,
  .program-body h3 {
    text-align: center;
    font-size: 1.2rem;
  }

  .feature-card p,
  .program-body p {
    text-align: center;
  }

  .program-img-wrapper {
    height: 180px;
  }

  .program-link {
    justify-content: center;
    width: 100%;
  }

  /* Formulario de Citas y Contacto */
  .schedule-section {
    padding: 30px 16px;
    border-radius: var(--radius-md);
  }

  .schedule-form {
    padding: 24px 16px;
    border-radius: var(--radius-md);
    width: 100%;
  }

  .schedule-form h2,
  .schedule-form h3 {
    text-align: center;
    font-size: 1.3rem;
  }

  .schedule-form p {
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-group {
    margin-bottom: 14px;
    text-align: left;
  }

  .form-control {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  /* Cards de Información de Contacto */
  .contact-info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 16px;
    gap: 14px;
    width: 100%;
  }

  .contact-info-icon {
    margin: 0 auto;
  }

  .contact-info-card h3,
  .contact-info-card h4 {
    text-align: center;
  }

  .contact-info-card p,
  .contact-info-card ul {
    text-align: center;
  }

  .contact-info-card ul li {
    text-align: center;
  }

  /* Testimonios */
  .testimonial-card {
    align-items: center;
    text-align: center;
  }

  .stars {
    text-align: center;
    justify-content: center;
  }

  .testimonial-text {
    text-align: center;
    font-size: 0.92rem;
  }

  .client-meta {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Newsletter / Banner CTA */
  .newsletter-banner {
    padding: 36px 18px;
    border-radius: var(--radius-md);
    text-align: center;
  }

  .newsletter-banner h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    text-align: center;
    line-height: 1.3;
  }

  .newsletter-banner p {
    text-align: center;
    font-size: 0.95rem;
  }

  .newsletter-form {
    flex-direction: column;
    background: transparent;
    padding: 0;
    box-shadow: none;
    gap: 10px;
    width: 100%;
  }

  .newsletter-form input {
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: var(--radius-full);
  }

  .newsletter-form button {
    width: 100%;
  }

  /* Modal / Popup de Bienvenida Responsive Universal */
  .modal-overlay,
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    z-index: 10000;
  }

  .modal-container,
  .popup-content,
  .modal-content {
    width: calc(100% - 24px) !important;
    max-width: 480px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px 18px;
    margin: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
  }

  .modal-container img,
  .popup-content img,
  .modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
  }

  /* Footer en Móvil */
  .footer {
    padding: 50px 0 25px;
    text-align: center;
  }

  .footer-watermark {
    font-size: 4rem;
    letter-spacing: 6px;
    opacity: 0.015;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
    text-align: center;
    margin-bottom: 36px;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto 18px;
    text-align: center;
    max-width: 100%;
  }

  .social-links {
    justify-content: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4 {
    text-align: center;
    margin-bottom: 14px;
  }

  .footer-links {
    text-align: center;
    padding: 0;
  }

  .footer-links li {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding-top: 20px;
  }

  .footer-bottom p {
    text-align: center;
    font-size: 0.8rem;
  }

  /* Toasts */
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: 100%;
    width: 100%;
  }
}

/* --- MÓVILES PEQUEÑOS (<= 480px: 320px - 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .logo-img {
    height: 34px !important;
    max-height: 34px !important;
  }

  .top-bar-right {
    flex-direction: column;
    gap: 6px;
  }

  .hero-content h1 {
    font-size: clamp(1.55rem, 6.8vw, 1.85rem);
  }

  .section-title {
    font-size: clamp(1.45rem, 6.2vw, 1.75rem);
  }

  .page-banner-title {
    font-size: clamp(1.45rem, 6.2vw, 1.8rem);
  }

  .hero-image-card img {
    height: 210px;
  }

  .feature-card,
  .testimonial-card,
  .contact-info-card,
  .schedule-form {
    padding: 18px 14px;
  }

  .hero-badge-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .hero-badge-text h4 {
    font-size: 0.9rem;
  }

  .floating-stat-card .stat-number {
    font-size: 1.15rem;
  }

  .floating-stat-card .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

