/* --- Variables & Theme --- */
:root {
  --nav-height: 80px;

  /* Colors */
  --bg-dark: #020617;        /* Deeper navy base */
  --bg-surface: #0f172a;     /* Lighter navy for cards */
  --bg-glass: rgba(15, 23, 42, 0.6); 
  
  --primary: #d4af37;        /* Corporate Gold */
  --primary-light: #f1d570;
  --primary-dark: #b5952f;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.3);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Orbs for Premium feel */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.glow-orb.primary {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -200px;
}

.glow-orb.secondary {
  width: 500px;
  height: 500px;
  background: #1e3a8a; /* Deep blue accent */
  bottom: -100px;
  left: -100px;
}

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

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

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

ul {
  list-style: none;
}

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

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section {
  padding: var(--section-padding);
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* --- Components --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-dark);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--primary);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.header.scrolled {
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--bg-dark);
  font-size: 1.2rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle, .nav-close {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-height);
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--bg-dark);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.service-link i {
  transition: var(--transition);
}

.service-link:hover i {
  transform: translateX(4px);
}

/* --- Why Us --- */
.why-us-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-us-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

.why-us-visual {
  position: relative;
}

.visual-card {
  padding: 32px;
  border-top: 4px solid var(--primary);
}

.vc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 32px;
}

.vc-header i {
  color: var(--primary);
  font-size: 1.5rem;
}

/* Impact panel metrics */
.vc-metric {
  margin-bottom: 20px;
}

.vc-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.vc-metric-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vc-metric-label i {
  color: var(--primary);
}

.vc-metric-delta {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.vc-metric-delta.down {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.vc-metric-delta.up {
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary);
}

.vc-bar-track {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  height: 24px;
  margin-bottom: 5px;
  overflow: hidden;
}

.vc-bar-before,
.vc-bar-after {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  width: 0;
  transition: width 1.4s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
  overflow: hidden;
}

/* Triggered by JS when visible */
.vc-bar-before.animated {
  width: var(--target-w);
}

.vc-bar-after.animated {
  width: var(--target-w);
}

.vc-bar-before {
  background: #334155;
  color: #f8fafc;
  border: none;
}

.vc-bar-after {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border: none;
  color: var(--bg-dark);
  font-weight: 700;
}

.vc-disclaimer {
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  opacity: 0.7;
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-dark));
  border: 1px solid var(--border-gold);
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}

.floating-badge i {
  color: var(--primary);
  font-size: 1.5rem;
}

/* --- YouTube Academy Section --- */
.youtube-academy {
  position: relative;
}

.academy-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px;
  align-items: center;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.8), rgba(15, 23, 42, 0.6));
  border: 1px solid var(--border-gold);
}

.academy-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.academy-features {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.academy-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.academy-feature i {
  color: var(--primary);
  font-size: 1.1rem;
}

.btn-youtube {
  background: #ff0000;
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.academy-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0; /* Prevents grid blowout */
}

/* --- YouTube Academy Section - Functional Player --- */
.video-player-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0; /* Prevents flex blowout */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 2px solid var(--primary); /* Gold border reinforced */
  border-radius: 12px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.8), 
    0 0 35px rgba(212, 175, 55, 0.25); /* Premium glow */
  transition: var(--transition);
}

.video-main:hover {
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.9), 
    0 0 45px rgba(212, 175, 55, 0.35);
}

.video-main iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 15px 5px;
  scrollbar-width: none; /* Hide scrollbar for cleaner look */
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

.video-gallery::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari/Edge */
}

.video-thumb {
  flex: 0 0 140px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
  opacity: 0.6;
}

.video-thumb:hover, .video-thumb.active {
  opacity: 1;
  transform: translateY(-3px);
}

.thumb-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.video-thumb.active .thumb-img {
  border-color: var(--primary);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.video-thumb span {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.video-thumb.active span {
  color: var(--primary);
}

@media (max-width: 768px) {
  .academy-card {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }
  
  .video-gallery {
    padding: 10px 0;
    margin-top: 10px;
    /* Allow gallery to extend to edges if needed, but container padding usually prevents this */
    scroll-snap-type: x mandatory;
  }

  .video-thumb {
    flex: 0 0 160px; /* Slightly larger thumbs for mobile touch */
    scroll-snap-align: start;
  }

  .thumb-img {
    height: 90px; /* Fixed height for consistency */
  }
}
/* --- Strategic Partner Section --- */
.partner-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px;
  align-items: center;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.7));
  border: 1px solid var(--border-gold);
  border-radius: 16px;
}

.partner-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.partner-desc strong {
  color: var(--text-main);
}

.partner-benefits {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.benefit-item:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--border-gold);
}

.benefit-icon {
  color: var(--primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-item span {
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--text-main);
  font-weight: 500;
}

.partner-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.siigo-badge-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.siigo-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: #0055ff;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  z-index: 0;
  animation: pulse-glow 4s infinite alternate;
}

.siigo-badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0055ff, #0033aa);
  padding: 20px 40px;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 85, 255, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.siigo-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 85, 255, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.siigo-badge i {
  color: #ffffff;
  font-size: 2.5rem;
}

.siigo-text {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -1px;
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.2); opacity: 0.5; }
}

@media (max-width: 992px) {
  .partner-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px 20px;
  }
}

/* --- News Section --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.news-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.news-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.news-card:hover .news-icon {
  background: var(--primary);
  color: var(--bg-dark);
}

.news-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.news-link i {
  transition: var(--transition);
}

.news-card:hover .news-link {
  color: var(--primary-light);
}

.news-card:hover .news-link i {
  transform: translate(4px, -4px);
}

/* --- Contact Section --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.method-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.method-details span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
}

.method-details h4 {
  font-size: 1.1rem;
}

.contact-form {
  padding: 40px;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 32px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}

.req {
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.select-wrapper {
  position: relative;
}

.select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

select option {
  background: var(--bg-surface);
  color: var(--text-main);
}

.btn-submit {
  width: 100%;
  margin-top: 16px;
}

.form-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* --- Footer --- */
.footer {
  background: #020617;
  border-top: 1px solid var(--border-light);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 20px 0;
  max-width: 400px;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-main);
}

.social-link:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
}

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

.footer-legal {
  display: flex;
  gap: 24px;
}

/* --- Animations & Utilities --- */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- Media Queries --- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  .why-us-container, .contact-container, .footer-grid, .academy-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 80px 40px;
    transition: var(--transition);
    border-left: 1px solid var(--border-light);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-close {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 32px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* --- Chatbot Widget --- */
.chatbot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  font-family: var(--font-body);
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

/* Estado abierto: muestra X en el toggle como alternativa de cierre */
.chatbot-toggle.open {
  background: linear-gradient(135deg, #374151, #1f2937);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.chatbot-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.chatbot-header {
  background: rgba(2, 6, 23, 0.8);
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
}

.chatbot-header i {
  color: var(--primary);
}

.chatbot-close {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  /* Asegurar que no hereda el color dorado del header */
  color: var(--text-muted) !important;
}

.chatbot-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444 !important;
}

.chatbot-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-msg.bot {
  background: rgba(255, 255, 255, 0.05);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: rgba(212, 175, 55, 0.2);
  color: var(--text-main);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.chatbot-input {
  padding: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  background: rgba(2, 6, 23, 0.5);
}

.chatbot-input input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.chatbot-input input:focus {
  outline: none;
}

.chatbot-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.chatbot-btn:hover {
  transform: translateX(2px) scale(1.1);
}

/* Botón micrófono */
.chatbot-mic {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.chatbot-mic:hover {
  color: var(--primary);
  background: rgba(212, 175, 55, 0.1);
}

/* Estado: grabando — botón rojo pulsante */
.chatbot-mic.recording {
  color: #ef4444;
  animation: mic-pulse 1s ease-in-out infinite;
}

/* Estado: transcribiendo — icono dorado */
.chatbot-mic.transcribing {
  color: var(--primary);
}

@keyframes mic-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.2); opacity: 0.7; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 968px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .contact-container, .why-us-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Mobile Navigation */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    padding: 80px 30px;
    transition: right 0.4s ease;
    z-index: 1001; /* Above header */
    border-left: 1px solid var(--border-gold);
  }
  
  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 30px;
    margin-top: 2rem;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .nav-toggle, .nav-close {
    display: flex;
  }

  .nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
  }

  .hidden-mobile {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .chatbot-window {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 90px;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .service-card, .method-card, .news-card {
    padding: 24px;
  }
}

/* --- Services Modals --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

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

.service-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(212, 175, 55, 0.1);
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  display: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-modal.active {
  display: block;
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(212, 175, 55, 0.05);
}

.modal-header h3 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0;
}

.modal-close {
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
}

.modal-body p {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-item i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 3px;
}

.feature-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-item strong {
  color: var(--text-main);
}

.modal-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 14px;
  background: var(--primary);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.modal-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

@media screen and (max-width: 480px) {
  .modal-header {
    padding: 20px;
  }
  .modal-header h3 {
    font-size: 1.2rem;
  }
  .modal-body {
    padding: 20px;
  }
}
