/*
  NOA Tecnología — Modern Design System
  Inspirado en: Framer, Linear, Cursor, Stripe, Vercel (awesome-design-md)
  Animaciones, glassmorphism, gradientes, micro-interacciones
*/

/* =============================================
   VARIABLES MODERNAS
   ============================================= */
:root {
  --primary: #10b981;
  --secondary: #e8a84a;
  --accent: #e8a84a;
  --dark: #f5f0e8;
  --text-muted: #8a9bb0;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   LOGO — Circular image in navbar & footer
   ============================================= */
.noa-nav-logo {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid rgba(232, 168, 74,0.5);
  box-shadow: 0 0 12px rgba(232, 168, 74,0.35);
  transition: var(--transition);
  flex-shrink: 0;
}

.noa-brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
}

.noa-brand-logo:hover .noa-nav-logo {
  box-shadow: 0 0 28px rgba(232, 168, 74,0.75);
  border-color: var(--accent);
  transform: rotate(8deg) scale(1.08);
}

/* =============================================
   BODY — Offset for fixed navbar
   ============================================= */
body {
  padding-top: 110px;
}
@media (max-width: 991px) {
  body { padding-top: 68px; }
}

/* =============================================
   SCROLL PROGRESS BAR (Vercel / Linear style)
   ============================================= */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent);
}

/* =============================================
   NAVBAR — Legacy Bootstrap styles (no longer used in dual-bar header)
   Se mantienen solo para compatibilidad con footer .navbar-brand
   ============================================= */
.navbar-brand {
  text-decoration: none;
}

/* =============================================
   HERO SECTION — Cinematic split layout
   ============================================= */
.hero-section {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 45%, #065f46 70%, #059669 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}





/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(232, 168, 74,0.15);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* Grid overlay (Vercel style) */




.custom-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong), 0 8px 30px rgba(0,0,0,0.2);
  color: white;
}



.custom-btn span, .custom-btn i {
  position: relative;
  z-index: 1;
}

.custom-btn > * {
  position: relative;
  z-index: 1;
}

.custom-btn:active {
  transform: translateY(0px) scale(0.98);
}

.custom-border-btn {
  background: transparent;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  box-shadow: none;
}

.custom-border-btn:hover {
  background: rgba(232, 168, 74,0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(232, 168, 74,0.2);
}

/* =============================================
   STATS SECTION — Animated counters
   ============================================= */
.section-stats {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f7f5 100%);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.section-stats::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 168, 74,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.stat-box {
  text-align: center;
  padding: 20px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(232, 168, 74,0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(232, 168, 74,0.15);
}

.stat-box:hover::before {
  transform: scaleX(1);
}

.stat-box h3 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-box p {
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.3px;
}

/* =============================================
   CARDS — Glassmorphism + hover glow (Linear / Framer style)
   ============================================= */
.custom-block {
  border: 1px solid rgba(232, 168, 74,0.1);
  border-radius: 20px;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  background: white;
}



.custom-block:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(232, 168, 74,0.2), 0 8px 20px rgba(0,0,0,0.08);
  border-color: rgba(232, 168, 74,0.35);
}



/* Animated badge dots */
.custom-block .rounded-pill {
  position: relative;
}

/* =============================================
   AVAL BOXES — Modern cards
   ============================================= */
.aval-box {
  border: 1px solid rgba(232, 168, 74,0.15);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}





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

.aval-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(232, 168, 74,0.15);
  border-color: var(--secondary);
}

.aval-box i {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   SECTION HEADINGS — Gradient (Stripe / Framer)
   ============================================= */
.gradient-heading {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(232, 168, 74,0.08);
  border: 1px solid rgba(232, 168, 74,0.2);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

/* =============================================
   EXPLORE / TABS SECTION — Linear style
   ============================================= */
.nav-tabs {
  position: relative;
  gap: 4px;
}

.nav-tabs .nav-link {
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  font-weight: 600;
  color: #6b7280;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-tabs .nav-link:hover {
  background: rgba(232, 168, 74,0.06);
  border-color: rgba(232, 168, 74,0.2) !important;
  color: var(--secondary);
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--primary), #1a6a9e) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}

/* =============================================
   TIMELINE SECTION — Modern (Framer Motion style)
   ============================================= */
.timeline-section {
  background: linear-gradient(135deg, #f5f0e8 0%, #059669 50%, #0a3d5a 100%);
  position: relative;
  overflow: hidden;
}



.timeline-section .section-overlay {
  display: none;
}

.timeline-container .vertical-scrollable-timeline .list-progress {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
}

.timeline-container .vertical-scrollable-timeline .list-progress .inner {
  background: linear-gradient(180deg, var(--secondary), var(--accent));
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(232, 168, 74,0.5);
}

.timeline-container .vertical-scrollable-timeline li .icon-holder {
  background: rgba(232, 168, 74,0.1);
  border: 2px solid rgba(232, 168, 74,0.3);
  box-shadow: 0 0 0 0 rgba(232, 168, 74,0.4);
  transition: var(--transition);
}

.timeline-container .vertical-scrollable-timeline li .icon-holder::before {
  background: rgba(232, 168, 74,0.06);
  border-color: rgba(232, 168, 74,0.15);
}

.timeline-container .vertical-scrollable-timeline li.active .icon-holder {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(232, 168, 74,0.6);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(232, 168, 74,0.4); }
  50%       { box-shadow: 0 0 40px rgba(232, 168, 74,0.8); }
}

.timeline-container .vertical-scrollable-timeline li.active .icon-holder::before {
  background: rgba(232, 168, 74,0.15);
}

/* =============================================
   FAQ SECTION — Modern cards
   ============================================= */
.faq-section .accordion-item {
  background: white;
  border-radius: 16px !important;
  border: 1px solid rgba(232, 168, 74,0.1) !important;
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-section .accordion-item:hover {
  border-color: rgba(232, 168, 74,0.3) !important;
  box-shadow: 0 6px 24px rgba(232, 168, 74,0.1);
}

.faq-section .accordion-button {
  background: white;
  border-radius: 16px !important;
  font-size: 16px !important;
  font-weight: 600;
  color: #f5f0e8;
  padding: 20px 24px;
}

.faq-section .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(5,150,105,0.04) 0%, rgba(232, 168, 74,0.04) 100%);
}

.faq-section .accordion-button::after {
  background-color: var(--secondary);
  border-radius: 50%;
  padding: 3px;
}

/* =============================================
   FEATURED SECTION — Modern gradient bg
   ============================================= */
.featured-section {
  background: linear-gradient(180deg, #e8f7f5 0%, #c8ecea 100%);
}

/* =============================================
   FOOTER — Dark modern
   ============================================= */
.site-footer {
  background: linear-gradient(135deg, #f5f0e8 0%, #065f46 100%) !important;
  border-bottom: 3px solid var(--secondary);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.site-footer .navbar-brand {
  font-size: 1.4rem;
}

/* =============================================
   WHATSAPP BUTTON — Animated pulse
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}



.whatsapp-float:hover {
  animation: none;
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal="up"] {
  transform: translateY(40px);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="scale"] {
  transform: scale(0.9);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Staggered delays for grid items */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* =============================================
   CONTACT SECTION — Modern glass card
   ============================================= */
.contact-section {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f7f5 100%);
}

/* =============================================
   BADGE IMPROVEMENTS
   ============================================= */
.badge-duracion {
  background: linear-gradient(135deg, var(--secondary), #0ab8a8);
  box-shadow: 0 2px 10px rgba(232, 168, 74,0.3);
  font-weight: 700;
}

.badge-modalidad {
  background: rgba(232, 168, 74,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 168, 74,0.25);
  transition: var(--transition);
}

.badge-modalidad:hover {
  background: rgba(232, 168, 74,0.12);
  border-color: rgba(232, 168, 74,0.5);
  transform: translateY(-2px);
}

/* =============================================
   SECTION DIVIDER WAVE
   ============================================= */
.wave-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* =============================================
   STICKY NAVBAR improvement
   ============================================= */
.sticky-wrapper.is-sticky .navbar {
  background: rgba(9, 27, 47, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* =============================================
   SECTION STATS — animated gradient border
   ============================================= */
.explore-section {
  position: relative;
  background: #fff;
}

/* =============================================
   CUSTOM SOCIAL ICONS — glow
   ============================================= */
.social-icon-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
  }

/* =============================================
   HERO — Floating badge animation
   ============================================= */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-anim-1 { animation: fadeInDown 0.7s ease 0.1s both; }
.hero-anim-2 { animation: fadeInUp 0.7s ease 0.3s both; }
.hero-anim-3 { animation: fadeInUp 0.7s ease 0.5s both; }
.hero-anim-4 { animation: fadeInUp 0.7s ease 0.7s both; }

/* =============================================
   FLOATING ELEMENTS in hero
   ============================================= */






/* =============================================
   COURSE CARDS — Modern hover chip
   ============================================= */
.curso-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5,150,105,0.06);
  border: 1px solid rgba(5,150,105,0.12);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin: 3px 2px;
}

/* =============================================
   GLASSMORPHISM CARD
   ============================================= */
.glass-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(232, 168, 74,0.15);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.glass-card:hover {
  box-shadow: 0 12px 40px rgba(232, 168, 74,0.15);
  border-color: rgba(232, 168, 74,0.3);
  transform: translateY(-4px);
}

/* =============================================
   GLOW TEXT SELECTION
   ============================================= */
::selection {
  background: rgba(232, 168, 74,0.25);
  color: var(--primary);
}

/* =============================================
   SMOOTH SCROLLBAR
   ============================================= */
html {
  scroll-behavior: smooth;
}

/* =============================================
   CHECK ITEMS — animated
   ============================================= */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: var(--transition);
  margin-bottom: 8px;
}

.check-item:hover {
  background: rgba(232, 168, 74,0.05);
  transform: translateX(4px);
}

.check-item i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* =============================================
   COUNTER ANIMATION
   ============================================= */
.counter-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary, #10b981);
    line-height: 1.1;
  }

/* =============================================
   RESPONSIVE TWEAKS
   ============================================= */
@media (max-width: 768px) {
  .hero-gradient-text {
    font-size: 2rem;
  }

  .stat-box h3 {
    font-size: 2.2rem;
  }

  .hero-section {
    min-height: 85vh;
    padding-top: 120px;
    padding-bottom: 56px;
  }
}

/* =============================================
   AVAL BOX — Equal height + uniform layout
   ============================================= */
.aval-box--equal {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.aval-box--equal p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #344767;
  line-height: 1.4;
}
.aval-box--equal:hover {
  box-shadow: 0 0 0 3px rgba(232, 168, 74,0.15), 0 12px 32px rgba(232, 168, 74,0.18);
}

/* =============================================
   VIDEO NOSOTROS — Standalone block (nosotros.html)
   ============================================= */
.video-nosotros-label {
  color: #10b981;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0;
}
.video-nosotros-label i { color: #e8a84a; }

.video-nosotros-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(5,150,105,0.18);
  border: 2px solid rgba(232, 168, 74,0.25);
  background: #f5f0e8;
  line-height: 0;
  transition: box-shadow 0.3s;
  position: sticky;
  top: 100px;
}
.video-nosotros-wrap:hover {
  box-shadow: 0 22px 60px rgba(232, 168, 74,0.22);
}
.video-nosotros-wrap video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 320px;
  object-fit: cover;
}

  /* =============================================
     ADDITIONAL RESPONSIVE FIXES (appended)
     ============================================= */

  /* Ensure footer columns align properly on medium screens */
  @media (min-width: 576px) and (max-width: 991px) {
    .site-footer .col-lg-2 {
      flex: 0 0 25%;
      max-width: 25%;
    }

    .site-footer .col-md-4.col-6 {
      flex: 0 0 33.333%;
      max-width: 33.333%;
    }
  }

  /* Video nosotros fix for tablet */
  @media (max-width: 991px) {
    .video-nosotros-wrap {
      position: static !important;
      top: auto;
    }
  }

  /* Prevent horizontal scroll from absolute/fixed elements */
  .hero-section,
  .timeline-section,
  .cta-banner,
  .featured-section {
    overflow-x: hidden;
  }

  /* Fix hero badge text overflow on very small screens */
  @media (max-width: 360px) {
    .hero-badge span {
      font-size: 11px;
    }

    .hero-gradient-text {
      font-size: 1.5rem !important;
    }

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

  /* Consistent button sizing on mobile */
  @media (max-width: 575px) {
    .btn.px-5 {
      padding-left: 24px !important;
      padding-right: 24px !important;
    }

    .btn.px-4 {
      padding-left: 18px !important;
      padding-right: 18px !important;
    }
  }
  