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

/* ============================================================
   TEC CONSTRUCTORA - AULA VIRTUAL
   styles.css - Estilos globales
   ============================================================ */

/* === VARIABLES === */
:root {
  --primary: #1a237e;
  --primary-dark: #0d1757;
  --primary-light: #1565c0;
  --primary-glow: rgba(26, 35, 126, 0.12);
  --dark: #1a1a1a;
  --dark-2: #222222;
  --dark-3: #2d2d2d;
  --dark-4: #383838;
  --gray: #555555;
  --gray-light: #9a9a9a;
  --gray-lighter: #cccccc;
  --border: #e8e8e8;
  --bg-light: #f6f6f6;
  --bg-off: #fafafa;
  --white: #ffffff;
  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --shadow-orange: 0 8px 25px rgba(26, 35, 126, 0.30);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --navbar-h: 72px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); outline: none; }

/* === UTILIDADES === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-orange { color: var(--primary); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
#why-root article h3 { color: #ffffff !important; }

/* === BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #1a237e 0%, #1565c0 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(26,35,126,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0d1757 0%, #0d47a1 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,35,126,0.42);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover {
  background: var(--dark-3);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn svg { flex-shrink: 0; }

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-orange { background: var(--primary-glow); color: var(--primary); }
.badge-dark { background: var(--dark); color: var(--white); }
.badge-green { background: rgba(46, 204, 113, 0.15); color: var(--success); }
.badge-free { background: #e8eaf6; color: #1a237e; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.navbar.nav-transparent { background: transparent; }
.navbar.nav-solid {
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar.nav-white {
  background: var(--white);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon svg { display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .brand { font-size: 1rem; font-weight: 800; color: var(--white); letter-spacing: 0.5px; }
.logo-text .sub { font-size: 0.6rem; font-weight: 500; color: var(--primary); letter-spacing: 2px; text-transform: uppercase; }
.navbar.nav-white .logo-text .brand { color: var(--dark); }
/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-links a.active { color: #42a5f5; font-weight: 600; }
.navbar.nav-white .nav-links a { color: var(--gray); }
.navbar.nav-white .nav-links a:hover { color: var(--dark); background: var(--bg-light); }
.navbar.nav-white .nav-links a.active { color: var(--primary); }
/* Transparent/solid nav: force outline button to white */
.navbar.nav-transparent .btn-outline,
.navbar.nav-solid .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.navbar.nav-transparent .btn-outline:hover,
.navbar.nav-solid .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
  transform: none;
}
/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 9px 20px; font-size: 0.875rem; }
/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.nav-white .nav-toggle span { background: var(--dark); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--navbar-h);
  left: 0; right: 0;
  background: var(--dark-2);
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 999;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--primary); }
.nav-mobile .mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #080c1a 0%, #0d1b55 45%, #0a0e1a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-h);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(41,121,255,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(26,35,126,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  width: 100%;
  padding: 80px 0;
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,35,126,0.12);
  border: 1px solid rgba(26,35,126,0.3);
  color: var(--primary-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-tag svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero h1 span {
  background: linear-gradient(135deg, #42a5f5, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.hero-stats { display: flex; gap: 32px; justify-content: center; }
.hero-stat .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}
.hero-stat .label { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.hero-stat-divider { width: 1px; background: rgba(255,255,255,0.1); height: 40px; align-self: center; }
/* Hero Visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card-stack { position: relative; width: 100%; max-width: 420px; margin: 0 auto; }
.hero-main-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-main-card img { width: 100%; height: 240px; object-fit: cover; }
.hero-card-body { padding: 20px; }
.hero-card-body h3 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.hero-card-body p { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.hero-badge-float {
  position: absolute;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  box-shadow: var(--shadow-orange);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.hero-badge-float.top-left { top: -20px; left: -20px; }
.hero-badge-float.bottom-right { bottom: -20px; right: -20px; background: var(--dark); border: 1px solid rgba(255,255,255,0.1); }
.hero-badge-float .big { font-size: 1.4rem; display: block; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-dark { background: var(--dark); }
.section-orange { background: var(--primary); }
.section-light { background: var(--bg-light); }
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(26,35,126,0.08), rgba(21,101,192,0.12));
  border: 1px solid rgba(26,35,126,0.18);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 20px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 16px;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, #7c4dff, #42a5f5, #1565c0);
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(66,165,245,0.35);
}
.section-dark .section-header h2::after {
  background: linear-gradient(90deg, #42a5f5, #00b8d9);
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p { color: rgba(255,255,255,0.6); }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c4dff, #42a5f5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(26,35,126,0.13); border-color: rgba(26,35,126,0.15); }
.stat-card:hover::before { opacity: 1; }
.stat-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #1a237e, #1565c0);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(26,35,126,0.10);
}
.stat-icon svg { color: #fff; }
.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #1a237e, #1565c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-num span {
  background: linear-gradient(135deg, #1a237e, #1565c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.88rem; color: var(--gray); font-weight: 500; }

/* ============================================================
   COURSE CARDS
   ============================================================ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(26,35,126,0.14);
  border-color: rgba(26,35,126,0.18);
}
.course-thumb {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.course-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover .course-thumb img { transform: scale(1.05); }
.course-level {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--dark);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.course-thumb .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-orange);
}
.course-thumb .play-btn svg { color: white; margin-left: 3px; }
.course-card:hover .play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.course-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.course-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}
.course-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.instructor-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.instructor-name { font-size: 0.82rem; color: var(--gray); }
.course-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.course-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--gray);
}
.course-meta-item svg { color: var(--gray-light); width: 14px; height: 14px; }
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-price { display: flex; align-items: center; gap: 8px; }
.price-current { font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.price-old { font-size: 0.85rem; color: var(--gray-light); text-decoration: line-through; }
.price-gratis { display: inline-block; background: #dcfce7; color: #15803d; font-size: 1rem; font-weight: 800; padding: 3px 12px; border-radius: 20px; letter-spacing: 0.5px; }
.course-rating { display: flex; align-items: center; gap: 4px; }
.stars { color: #f59e0b; font-size: 0.9rem; }
.rating-num { font-size: 0.82rem; color: var(--gray); }

/* ============================================================
   FEATURES / WHY TEC
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid rgba(255,255,255,0.2);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(255,255,255,0.02);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.35); }
.feature-card:hover::after { opacity: 1; }
/* Colored top border variants */
.feature-card.fc-blue  { border-top-color: #2979ff; background: linear-gradient(145deg, rgba(41,121,255,0.12) 0%, rgba(41,121,255,0.03) 100%); }
.feature-card.fc-green { border-top-color: #00c853; background: linear-gradient(145deg, rgba(0,200,83,0.12) 0%, rgba(0,200,83,0.03) 100%); }
.feature-card.fc-gold  { border-top-color: #ffd600; background: linear-gradient(145deg, rgba(255,214,0,0.12) 0%, rgba(255,214,0,0.03) 100%); }
.feature-card.fc-purple{ border-top-color: #d500f9; background: linear-gradient(145deg, rgba(213,0,249,0.12) 0%, rgba(213,0,249,0.03) 100%); }
.feature-card.fc-cyan  { border-top-color: #00b8d9; background: linear-gradient(145deg, rgba(0,184,217,0.12) 0%, rgba(0,184,217,0.03) 100%); }
.feature-card.fc-orange{ border-top-color: #ff6d00; background: linear-gradient(145deg, rgba(255,109,0,0.12) 0%, rgba(255,109,0,0.03) 100%); }
.feature-icon {
  width: 68px; height: 68px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-3deg); }
.fc-blue  .feature-icon { background: rgba(41,121,255,0.2);  color: #2979ff; }
.fc-green .feature-icon { background: rgba(0,200,83,0.2);    color: #00c853; }
.fc-gold  .feature-icon { background: rgba(255,214,0,0.2);   color: #ffd600; }
.fc-purple.feature-icon,.fc-purple .feature-icon { background: rgba(213,0,249,0.2);   color: #d500f9; }
.fc-cyan  .feature-icon { background: rgba(0,184,217,0.2);   color: #00b8d9; }
.fc-orange.feature-icon,.fc-orange .feature-icon { background: rgba(255,109,0,0.2);   color: #ff6d00; }
.feature-card h3 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px; right: 24px;
  font-size: 7rem;
  font-weight: 900;
  color: rgba(26,35,126,0.06);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial-card:hover { box-shadow: 0 16px 48px rgba(26,35,126,0.12); transform: translateY(-6px); border-color: rgba(26,35,126,0.14); }
.testimonial-stars { color: #f59e0b; margin-bottom: 14px; font-size: 1.05rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.93rem; color: var(--gray); line-height: 1.75; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(26,35,126,0.12); }
.author-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.author-role { font-size: 0.78rem; color: var(--gray-light); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #1a237e 0%, #1565c0 50%, #0d1757 100%);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,35,126,0.35);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60%; right: -8%;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -5%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(124,77,255,0.12);
  pointer-events: none;
}
.cta-content h2 { color: var(--white); font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-content p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(41,121,255,0.14), rgba(41,121,255,0) 1px),
    radial-gradient(1200px 360px at 50% -18%, rgba(41,121,255,0.16), transparent 62%),
    linear-gradient(145deg, #050916 0%, #07101f 46%, #040812 100%);
  color: #b9c7da;
  padding: 76px 0 0;
  border-top: 1px solid rgba(64,145,255,0.24);
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0, rgba(66,165,245,0.07) 50%, transparent 100%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 56px;
  pointer-events: none;
}
.footer::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66,165,245,0.85), transparent);
  box-shadow: 0 0 22px rgba(41,121,255,0.35);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.05fr) minmax(145px, 0.65fr) minmax(190px, 0.82fr) minmax(340px, 1.35fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-bottom: 64px;
}
/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.footer-logo-link {
  display: inline-flex;
  width: fit-content;
  border-radius: 10px;
}
.footer-logo {
  width: min(152px, 70vw);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(66,165,245,0.22));
}
.footer-brand .footer-desc {
  max-width: 340px;
  margin-top: 24px;
  margin-bottom: 30px;
  color: #b9c7da;
  font-size: 1rem;
  line-height: 1.75;
}
.footer-brand .footer-desc span {
  color: #42a5f5;
  font-weight: 800;
}
/* Social icons */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-btn {
  width: 46px;
  height: 46px;
  background: rgba(10,28,60,0.74);
  border: 1px solid rgba(66,165,245,0.46);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8fc4ff;
  font-size: 1.02rem;
  box-shadow: inset 0 0 18px rgba(66,165,245,0.08), 0 0 0 rgba(66,165,245,0);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.social-btn:hover {
  background: rgba(41,121,255,0.22);
  border-color: rgba(144,202,249,0.92);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(41,121,255,0.22), 0 0 18px rgba(66,165,245,0.18);
}
/* Footer columns */
.footer-col h4 {
  position: relative;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  padding-bottom: 18px;
}
.footer-col h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e88ff, #6ec6ff);
  box-shadow: 0 0 14px rgba(41,121,255,0.55);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col ul li a {
  width: fit-content;
  max-width: 100%;
  font-size: 0.96rem;
  color: #c7d2e2;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.footer-col ul li a::before {
  content: '\203A';
  color: #42a5f5;
  font-size: 1.18rem;
  line-height: 1;
  filter: drop-shadow(0 0 5px rgba(66,165,245,0.55));
  transition: transform 0.25s ease;
}
.footer-col ul li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}
.footer-col ul li a:hover::before { transform: translateX(2px); }
/* Contact column */
.footer-contact-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 20px;
  color: #c0cbe0;
  font-size: 0.97rem;
  line-height: 1.65;
}
.footer-contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, rgba(20,49,97,0.96), rgba(8,25,56,0.94));
  border: 1px solid rgba(66,165,245,0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f9bff;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 18px rgba(66,165,245,0.08), 0 8px 22px rgba(0,0,0,0.18);
}
.footer-contact-item strong {
  display: block;
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
}
.footer-contact-item a {
  color: #d8e7ff;
  overflow-wrap: anywhere;
}
.footer-contact-item a:hover { color: #90caf9; }
.footer a:focus-visible {
  outline: 2px solid #64b5f6;
  outline-offset: 4px;
  border-radius: 8px;
}
.btn-whatsapp {
  width: min(100%, 360px);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #0dbb57 0%, #18c872 54%, #13a8ad 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(13,187,87,0.18), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-whatsapp span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.btn-whatsapp .fa-whatsapp { font-size: 1.35rem; }
.btn-whatsapp:hover {
  color: #ffffff;
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 18px 42px rgba(13,187,87,0.28), 0 0 18px rgba(37,211,102,0.14);
}
/* Divider */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(66,165,245,0.16);
  margin: 0;
  box-shadow: 0 -1px 18px rgba(41,121,255,0.08);
}
/* Bottom bar */
.footer-bottom {
  min-height: 92px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #a9b9ce;
  font-size: 0.9rem;
}
.footer-bottom-premium {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, auto) minmax(220px, 1fr);
}
.footer-bottom-copy {
  color: #d8e2f2;
  font-weight: 600;
}
.footer-bottom-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #d6e4f5;
}
.footer-bottom-badges span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: 0.84rem;
  white-space: nowrap;
}
.footer-bottom-badges i {
  color: #5aaeff;
  font-size: 1.05rem;
  filter: drop-shadow(0 0 8px rgba(66,165,245,0.42));
}
.footer-bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
}
.footer-bottom-links a {
  position: relative;
  color: #aebbd0;
  font-size: 0.9rem;
  white-space: nowrap;
}
.footer-bottom-links a + a::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2979ff;
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(41,121,255,0.8);
}
.footer-bottom-links a:hover { color: #ffffff; }
@media (prefers-reduced-motion: reduce) {
  .footer *,
  .footer *::before,
  .footer *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
/* Responsive footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px 36px;
  }
  .footer-bottom-premium {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-bottom-badges { flex-wrap: wrap; }
  .footer-bottom-links { justify-content: center; }
}
@media (max-width: 600px) {
  .footer {
    padding-top: 56px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-bottom: 42px;
  }
  .footer-logo { width: min(142px, 70vw); }
  .footer-brand .footer-desc {
    max-width: 100%;
    font-size: 0.98rem;
  }
  .footer-social { gap: 14px; }
  .social-btn {
    width: 48px;
    height: 48px;
  }
  .footer-col h4 {
    margin-bottom: 22px;
  }
  .footer-col ul {
    gap: 11px;
  }
  .footer-contact-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .footer-contact-icon {
    width: 46px;
    height: 46px;
  }
  .btn-whatsapp {
    width: 100%;
    min-height: 60px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-bottom-premium {
    padding: 26px 0;
  }
  .footer-bottom-badges {
    width: 100%;
    flex-direction: column;
    gap: 4px;
  }
  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 14px 24px;
  }
}

/* ============================================================
   PAGE HEADER (Banner de páginas internas)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, #080c1a 0%, #0d1b55 55%, #0a0e1a 100%);
  padding: calc(var(--navbar-h) + 50px) 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(41,121,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(124,77,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 30%, transparent 100%);
}
.page-header-content { position: relative; z-index: 1; }
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.page-breadcrumb a { color: rgba(255,255,255,0.5); }
.page-breadcrumb a:hover { color: var(--primary); }
.page-breadcrumb svg { width: 12px; height: 12px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.6); font-size: 1rem; max-width: 560px; }

/* ============================================================
   COURSES PAGE
   ============================================================ */
.filters-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.filter-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--dark);
  transition: var(--transition);
}
.filter-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.filter-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-light); width: 16px; height: 16px; }
.filter-select {
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--dark);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tag {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}
.filter-tag:hover, .filter-tag.active { background: var(--primary); border-color: var(--primary); color: white; }
.results-info { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.results-info span { font-size: 0.9rem; color: var(--gray); }
.courses-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ============================================================
   COURSE DETAIL PAGE
   ============================================================ */
.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.video-player-wrap {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
  padding-top: 56.25%;
}
.video-player-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.course-detail-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.course-detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--gray);
}
.detail-meta-item svg { color: var(--primary); width: 16px; height: 16px; }
.course-tabs { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 2px solid var(--border); }
.course-tab {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.course-tab:hover { color: var(--dark); }
.course-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
/* Curriculum accordion */
.curriculum-section { margin-bottom: 16px; }
.curriculum-header {
  background: var(--bg-light);
  padding: 14px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.curriculum-header:hover { background: var(--border); }
.curriculum-header .chevron { transition: var(--transition); color: var(--gray-light); }
.curriculum-header.open .chevron { transform: rotate(180deg); }
.curriculum-lessons {
  display: none;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.curriculum-lessons.open { display: block; }
.lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
  transition: var(--transition);
}
.lesson-item:last-child { border-bottom: none; }
.lesson-item:hover { background: var(--bg-light); }
.lesson-icon { color: var(--gray-light); flex-shrink: 0; }
.lesson-icon.free { color: var(--primary); }
.lesson-name { flex: 1; color: var(--dark); }
.lesson-duration { color: var(--gray-light); font-size: 0.8rem; flex-shrink: 0; }
/* Sidebar enrollment */
.course-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: calc(var(--navbar-h) + 20px);
}
.sidebar-video-preview { position: relative; }
.sidebar-video-preview img { width: 100%; height: 200px; object-fit: cover; }
.sidebar-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(26,35,126,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 0 8px rgba(26,35,126,0.2);
}
.sidebar-body { padding: 24px; }
.sidebar-price { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sidebar-price .current { font-size: 2rem; font-weight: 900; color: var(--dark); }
.sidebar-price .old { font-size: 1.1rem; color: var(--gray-light); text-decoration: line-through; }
.sidebar-price .discount { background: #e8eaf6; color: var(--primary); padding: 3px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; }
.sidebar-price .gratis { font-size: 2rem; font-weight: 900; background: #dcfce7; color: #15803d; padding: 4px 20px; border-radius: 10px; letter-spacing: 1px; }
.sidebar-includes { margin-top: 20px; }
.sidebar-includes h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.include-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--gray); margin-bottom: 8px; }
.include-item svg { color: var(--success); width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   AUTH PAGES (Login & Registro)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #080c1a 0%, #0d1b55 55%, #0a0e1a 100%);
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 100%);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}
.auth-logo .logo-nav { display: flex; align-items: center; gap: 10px; }
.auth-logo .brand-big { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.auth-logo .sub { font-size: 0.65rem; color: var(--primary); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }
.auth-header { margin-bottom: 28px; }
.auth-header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.auth-header p { color: var(--gray); font-size: 0.9rem; }
/* Form styles */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.87rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.form-label span { color: var(--danger); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(231,76,60,0.1); }
.form-control.success { border-color: var(--success); }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 5px; display: none; }
.form-error.show { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-group { position: relative; }
.input-group .form-control { padding-left: 42px; }
.input-group .form-control.has-toggle { padding-right: 42px; }
.input-group > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-light); width: 18px; height: 18px; pointer-events: none; }
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--gray-light);
  padding: 4px;
}
.password-toggle:hover { color: var(--primary); }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.form-check label { font-size: 0.85rem; color: var(--gray); cursor: pointer; line-height: 1.5; }
.form-check a { color: var(--primary); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 0.8rem; color: var(--gray-light); }
.auth-footer-text { text-align: center; font-size: 0.87rem; color: var(--gray); margin-top: 20px; }
.auth-footer-text a { color: var(--primary); font-weight: 600; }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 10px;
}
.alert.show { display: flex; }
.alert-success { background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.3); color: #155724; }
.alert-danger { background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.3); color: #721c24; }

/* ============================================================
   STUDENT DASHBOARD (aula.html)
   ============================================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--navbar-h));
  margin-top: var(--navbar-h);
}
.sidebar {
  background: var(--dark-2);
  padding: 32px 0;
  position: sticky;
  top: var(--navbar-h);
  height: calc(100vh - var(--navbar-h));
  overflow-y: auto;
}
.sidebar-user {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 16px;
}
.sidebar-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  margin-bottom: 10px;
}
.sidebar-user-name { color: var(--white); font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.sidebar-user-email { color: rgba(255,255,255,0.45); font-size: 0.77rem; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.sidebar-nav a.active { color: var(--white); background: rgba(26,35,126,0.12); border-left-color: var(--primary); }
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-nav .nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  padding: 16px 24px 8px;
}
.dashboard-main { background: var(--bg-light); padding: 36px; overflow-y: auto; }
.dashboard-header { margin-bottom: 28px; }
.dashboard-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.dashboard-header p { color: var(--gray); font-size: 0.9rem; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.dash-stat {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
}
.dash-stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-stat-icon.orange { background: rgba(26,35,126,0.12); color: var(--primary); }
.dash-stat-icon.blue { background: rgba(52,152,219,0.12); color: #3498db; }
.dash-stat-icon.green { background: rgba(46,204,113,0.12); color: var(--success); }
.dash-stat-icon.purple { background: rgba(155,89,182,0.12); color: #9b59b6; }
.dash-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.dash-stat-label { font-size: 0.78rem; color: var(--gray); }
.dashboard-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dashboard-section-title a { font-size: 0.82rem; color: var(--primary); font-weight: 500; }
.enrolled-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.enrolled-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.enrolled-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.enrolled-thumb { height: 140px; overflow: hidden; }
.enrolled-thumb img { width: 100%; height: 100%; object-fit: cover; }
.enrolled-body { padding: 16px; }
.enrolled-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.progress-bar-wrap { margin-bottom: 8px; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.77rem; color: var(--gray); margin-bottom: 5px; }
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 3px; transition: width 0.6s ease; }
.enrolled-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.last-lesson { font-size: 0.77rem; color: var(--gray-light); display: flex; align-items: center; gap: 4px; }
/* Activity feed */
.activity-list { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg-light); }
.activity-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.activity-icon.orange { background: rgba(26,35,126,0.12); color: var(--primary); }
.activity-icon.green { background: rgba(46,204,113,0.12); color: var(--success); }
.activity-icon.blue { background: rgba(52,152,219,0.12); color: #3498db; }
.activity-text { flex: 1; font-size: 0.85rem; color: var(--dark); }
.activity-text span { color: var(--primary); font-weight: 600; }
.activity-time { font-size: 0.75rem; color: var(--gray-light); }

/* ============================================================
   QUIZ / EVALUACION
   ============================================================ */
.quiz-page {
  min-height: 100vh;
  background: var(--bg-light);
  padding: calc(var(--navbar-h) + 40px) 0 60px;
}
.quiz-container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.quiz-header {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.quiz-course-info { font-size: 0.82rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.quiz-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }
.quiz-progress-info { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--gray); margin-bottom: 8px; }
.quiz-progress { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 4px; transition: width 0.5s ease; }
.quiz-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-weight: 700;
  font-size: 1rem;
}
.quiz-body {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.question-number { font-size: 0.82rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.question-text { font-size: 1.1rem; font-weight: 700; color: var(--dark); line-height: 1.5; margin-bottom: 28px; }
.options-list { display: flex; flex-direction: column; gap: 12px; }
.option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.option-item:hover { border-color: var(--primary); background: var(--primary-glow); }
.option-item.selected { border-color: var(--primary); background: var(--primary-glow); }
.option-item.correct { border-color: var(--success); background: rgba(46,204,113,0.08); }
.option-item.wrong { border-color: var(--danger); background: rgba(231,76,60,0.08); }
.option-item.disabled { cursor: not-allowed; }
.option-letter {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
}
.option-item.selected .option-letter { border-color: var(--primary); background: var(--primary); color: white; }
.option-item.correct .option-letter { border-color: var(--success); background: var(--success); color: white; }
.option-item.wrong .option-letter { border-color: var(--danger); background: var(--danger); color: white; }
.option-text { font-size: 0.92rem; color: var(--dark); line-height: 1.4; }
.quiz-explanation {
  background: rgba(52,152,219,0.08);
  border-left: 4px solid var(--info);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--dark);
  display: none;
}
.quiz-explanation.show { display: block; }
.quiz-explanation strong { color: var(--info); }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; }
.quiz-nav-btn { display: flex; gap: 10px; }
/* Quiz Results */
.quiz-result {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.result-circle {
  width: 140px; height: 140px;
  border-radius: 50%;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--primary);
  background: var(--primary-glow);
}
.result-circle.pass { border-color: var(--success); background: rgba(46,204,113,0.1); }
.result-circle.fail { border-color: var(--danger); background: rgba(231,76,60,0.08); }
.result-score { font-size: 2.8rem; font-weight: 900; color: var(--dark); line-height: 1; }
.result-score-label { font-size: 0.8rem; color: var(--gray); }
.result-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.result-message { color: var(--gray); font-size: 0.95rem; margin-bottom: 32px; max-width: 400px; margin-left: auto; margin-right: auto; }
.result-breakdown { display: flex; gap: 24px; justify-content: center; margin-bottom: 36px; }
.breakdown-item { text-align: center; }
.breakdown-num { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.breakdown-num.correct { color: var(--success); }
.breakdown-num.wrong { color: var(--danger); }
.breakdown-num.skipped { color: var(--gray-light); }
.breakdown-label { font-size: 0.78rem; color: var(--gray); }
.result-actions { display: flex; gap: 14px; justify-content: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .courses-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .course-detail-layout { grid-template-columns: 1fr 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:last-child { grid-column: auto; }
}
@media (max-width: 992px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px; }
  .cta-actions { justify-content: center; }
  .course-detail-layout { grid-template-columns: 1fr; }
  .course-sidebar { position: static; }
  .courses-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .enrolled-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --navbar-h: 64px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: 1fr; }
  .courses-grid-4 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 32px 24px; }
  .cta-banner .cta-actions { flex-direction: column; }
  .quiz-body { padding: 24px 20px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .result-breakdown { gap: 16px; }
}

/* ============================================================
   DESIGN ENHANCEMENTS v2
   ============================================================ */

/* Hero tag mejorado */
.hero-tag {
  background: rgba(66,165,245,0.08);
  border: 1px solid rgba(66,165,245,0.22);
  color: #90caf9;
  backdrop-filter: blur(10px);
  font-weight: 600;
  letter-spacing: 1px;
}
.hero-tag svg { color: #42a5f5; }

/* Hero stats mejorados */
.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  display: block;
  line-height: 1.1;
}
.hero-stat .label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

/* Precio con gradiente */
.price-current {
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1a237e, #1565c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Filter tags mejorados */
.filter-tag:hover, .filter-tag.active {
  background: linear-gradient(135deg, #1a237e, #1565c0);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(26,35,126,0.3);
}

/* Section dark tag */
.section-dark .section-tag {
  background: rgba(66,165,245,0.12);
  border-color: rgba(66,165,245,0.2);
  color: #90caf9;
}

/* Navbar logo efecto hover */
.nav-logo:hover { opacity: 0.9; }

/* Reveal más suave */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Footer oscuro ligeramente mejorado */
.footer {
  background:
    linear-gradient(180deg, rgba(41,121,255,0.14), rgba(41,121,255,0) 1px),
    radial-gradient(1200px 360px at 50% -18%, rgba(41,121,255,0.16), transparent 62%),
    linear-gradient(145deg, #050916 0%, #07101f 46%, #040812 100%);
}

/* Social buttons hover más vibrante */
.social-btn:hover {
  background: rgba(41,121,255,0.22);
  border-color: rgba(144,202,249,0.92);
  box-shadow: 0 12px 28px rgba(41,121,255,0.22), 0 0 18px rgba(66,165,245,0.18);
}

/* Course category gradient text */
.course-category {
  background: linear-gradient(135deg, #1a237e, #1565c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sidebar nav active mejorado */
.sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(26,35,126,0.18), rgba(21,101,192,0.10));
  border-left-color: #42a5f5;
}

/* WhatsApp btn más vibrante */
.btn-whatsapp {
  background: linear-gradient(135deg, #0dbb57 0%, #18c872 54%, #13a8ad 100%);
  box-shadow: 0 14px 36px rgba(13,187,87,0.18), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #0dbb57 0%, #18c872 54%, #13a8ad 100%);
  box-shadow: 0 18px 42px rgba(13,187,87,0.28), 0 0 18px rgba(37,211,102,0.14);
}

/* Progress bar gradiente */
.progress-bar-fill {
  background: linear-gradient(90deg, #1a237e, #42a5f5);
}

/* Form focus mejorado */
.form-control:focus {
  border-color: #42a5f5;
  box-shadow: 0 0 0 3px rgba(66,165,245,0.15);
}

/* Btn outline mejorado */
.btn-outline:hover {
  background: linear-gradient(135deg, #1a237e, #1565c0);
  border-color: transparent;
  color: white;
}

/* Scrollbar personalizado */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #1a237e, #42a5f5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1565c0; }

/* Selection color */
::selection { background: rgba(66,165,245,0.22); color: var(--dark); }

/* ============================================================
   POLISH FINAL
   ============================================================ */

/* Headings más refinados */
h1, h2, h3 { letter-spacing: -0.2px; }

/* Input focus global más sutil */
.form-control:focus {
  border-color: #42a5f5;
  box-shadow: 0 0 0 3px rgba(66,165,245,0.13);
  outline: none;
}

/* Stat card número refinado en section-dark */
.section-dark .stat-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
.section-dark .stat-num { background: linear-gradient(135deg, #42a5f5, #90caf9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-dark .stat-label { color: rgba(255,255,255,0.5); }

/* Navbar logo transition */
.nav-logo { transition: opacity 0.2s ease; }

/* Curso card title hover */
.course-title:hover { color: var(--primary-light); }

/* Enrolled card progress bar más vibrante */
.progress-bar-fill { background: linear-gradient(90deg, #1a237e, #42a5f5, #7c4dff); }

/* Boton primario en section-dark */
.section-dark .btn-primary,
.section-orange .btn-primary { box-shadow: 0 4px 20px rgba(0,0,0,0.25); }

/* Brands section texto más legible */
.brand-item {
  color: #b0bec5;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 2px;
  transition: color 0.2s ease;
}
.brand-item:hover { color: #fff; }

/* Footer link hover más suave */
.footer-col ul li a:hover { color: #90caf9; }

/* Mejor visibilidad de estrellas */
.testimonial-stars { font-size: 1.1rem; letter-spacing: 3px; }

/* ============================================================
   DESIGN ENHANCEMENTS v3
   ============================================================ */

/* CTA banner — fondo con patrón de grilla sutil */
.cta-banner {
  background: linear-gradient(135deg, #0d1757 0%, #1a237e 40%, #1565c0 100%);
  box-shadow: 0 24px 80px rgba(26,35,126,0.45);
}
.cta-banner::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  top: 0; left: 0; right: 0; bottom: 0;
  width: auto; height: auto;
  border-radius: 0;
  background-color: transparent;
}
.cta-content h2 { font-size: 2.1rem; font-weight: 900; }

/* Stats section — fondo con línea de acento superior */
.stats-section-wrap { position: relative; }

/* Stat card — icon glow en hover */
.stat-card:hover .stat-icon {
  box-shadow: 0 8px 28px rgba(26,35,126,0.35);
  transform: scale(1.08);
}
.stat-icon { transition: transform 0.3s ease, box-shadow 0.3s ease; }

/* Stat número más grande y contrastado */
.stat-num {
  font-size: 3rem;
  letter-spacing: -0.03em;
}

/* Section light — patrón de puntos muy sutil */
.section-light {
  background-color: #f4f6fb;
  background-image: radial-gradient(rgba(26,35,126,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Course cards — sombra y borde más refinados en hover */
.course-card:hover {
  box-shadow: 0 24px 56px rgba(26,35,126,0.16);
  border-color: rgba(26,35,126,0.22);
}
.course-card { border-radius: 20px; }
.course-thumb { border-radius: 20px 20px 0 0; }

/* Testimonial — comilla más visible */
.testimonial-card::before {
  color: rgba(26,35,126,0.09);
  font-size: 8rem;
  top: 8px; right: 20px;
}

/* Feature cards text */
.feature-card h3 { font-size: 1.05rem; letter-spacing: -0.2px; }

/* Instructores section — separador entre secciones más limpio */
.section + .section-light { border-top: 1px solid rgba(26,35,126,0.07); }
.section-dark + .section { border-top: none; }

/* Btn primary — efecto más brillante */
.btn-primary {
  background: linear-gradient(135deg, #1a237e 0%, #1976d2 100%);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0d1757 0%, #1565c0 100%);
  box-shadow: 0 10px 32px rgba(26,35,126,0.46);
}

/* Section header — subrayado ligeramente más ancho */
.section-header h2::after { width: 80px; }

/* Stats grid — alineación y separación de cards */
.stat-card { padding: 40px 24px; }

/* Footer brand desc */
.footer-brand .footer-desc { max-width: 340px; }

/* ============================================================
   CATALOG SECTION — animations & visual improvements
   ============================================================ */

/* ── Catalog 3D canvas ───────────────────────────────── */
.catalog-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #e8f0ff 0%, #f0f6ff 50%, #eaefff 100%);
}
#catalogCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* "Ver todos" row */
.catalog-ver-todos-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
  margin-bottom: 40px;
}
@media (max-width: 640px) {
  .catalog-ver-todos-row { justify-content: center; margin-bottom: 28px; }
}

/* ── Skeleton loading ──────────────────────────────────── */
@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.course-skeleton {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(26,35,126,0.07);
  box-shadow: 0 4px 16px rgba(26,35,126,0.06);
}
.skeleton-thumb {
  height: 200px;
  background: linear-gradient(90deg, #e8eef8 25%, #d0ddf5 50%, #e8eef8 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.skeleton-body { padding: 20px; }
.skeleton-line {
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8eef8 25%, #d0ddf5 50%, #e8eef8 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  margin-bottom: 11px;
}
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-65 { width: 65%; }
.skeleton-line.w-85 { width: 85%; }
.skeleton-line.w-full { width: 100%; }
.skeleton-line.tall { height: 18px; margin-bottom: 14px; animation-delay: .1s; }
.skeleton-line.w-40 { animation-delay: .05s; }
.skeleton-line.w-65 { animation-delay: .15s; }
.skeleton-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(90deg, #e8eef8 25%, #d0ddf5 50%, #e8eef8 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.skeleton-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.skeleton-row .skeleton-line { margin-bottom: 0; flex: 1; height: 10px; }

/* ── Card entrance animation ───────────────────────────── */
@keyframes catalogCardIn {
  from { opacity: 0; transform: translateY(36px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.course-card.card-entering {
  animation: catalogCardIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* ── Course card improvements ─────────────────────────── */
.course-card {
  position: relative;
}
.course-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1.5px solid rgba(26,35,126,0.22);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.course-card:hover::after { opacity: 1; }

/* Shimmer glow on thumb hover */
.course-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(66,165,245,0.25) 0%, rgba(124,77,255,0.18) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.course-card:hover .course-thumb::after { opacity: 1; }

/* Featured catalog images should show the full course cover. */
.catalog-section .course-thumb {
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 80% 0%, rgba(96,165,250,0.16), transparent 36%),
    linear-gradient(135deg, #071226, #0c1c34);
}
.catalog-section .course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  background: transparent;
}
.catalog-section .course-card:hover .course-thumb img {
  transform: none;
}

/* Play button improved */
.play-btn {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* CTA button in catalog */
.catalog-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.catalog-cta-sub {
  font-size: 0.82rem;
  color: rgba(26,35,126,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
.catalog-cta-sub::before,
.catalog-cta-sub::after {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: rgba(26,35,126,0.2);
}

/* ── Section tag pulse on catalog ─────────────────────── */
.catalog-section .section-tag {
  position: relative;
}
.catalog-section .section-tag::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(26,35,126,0.12), rgba(66,165,245,0.12));
  animation: tagPulse 3s ease-in-out infinite;
  z-index: -1;
}
@keyframes tagPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.04); }
}

/* ── Floating accent deco ─────────────────────────────── */
.catalog-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.catalog-deco-1 {
  width: 320px; height: 320px;
  top: -80px; left: -120px;
  background: radial-gradient(circle, rgba(66,165,245,0.07) 0%, transparent 70%);
  animation: pulseOrb 8s ease-in-out infinite;
}
.catalog-deco-2 {
  width: 240px; height: 240px;
  bottom: 40px; right: -80px;
  background: radial-gradient(circle, rgba(124,77,255,0.07) 0%, transparent 70%);
  animation: pulseOrb 10s ease-in-out infinite;
  animation-delay: -4s;
}

/* ============================================================
   MOBILE POLISH — tweaks for small screens
   ============================================================ */

/* ── ≤ 768px (tablets pequeñas y móviles) ────────────────── */
@media (max-width: 768px) {
  .stat-card { padding: 32px 18px !important; }
  .stat-num  { font-size: 2.4rem !important; }
  .stat-icon { width: 54px !important; height: 54px !important; }
  .cta-content h2 { font-size: 1.75rem !important; }
}

/* ── ≤ 640px (móviles) ───────────────────────────────────── */
@media (max-width: 640px) {
  /* Espaciado de secciones */
  .section-header { margin-bottom: 32px !important; }
  .section-header p { font-size: 0.9rem; }

  /* Stat cards — 2 columnas × pantalla pequeña */
  .stat-card { padding: 26px 14px !important; }
  .stat-num  { font-size: 2rem !important; letter-spacing: -.02em; }
  .stat-icon { width: 48px !important; height: 48px !important; }
  .stat-icon svg { width: 22px; height: 22px; }

  /* Brands strip */
  .brands-section { padding: 22px 0; }
  .brands-inner   { gap: 16px 20px; }

  /* Ver todos link — centrar en móvil */
  [style*="text-align:right"][style*="margin-top:-28px"] {
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
  }

  /* CTA banner */
  .cta-content h2 { font-size: 1.45rem !important; line-height: 1.22 !important; }
  .cta-content p  { font-size: 0.88rem !important; }
  .cta-tag        { font-size: 0.7rem; padding: 4px 12px; }
  .cta-trust      { gap: 8px 14px; font-size: 0.8rem; }
  .cta-trust span { font-size: 0.8rem; }
  .cta-actions    { width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Testimoniales */
  .testimonial-card { padding: 22px 18px 20px; }
  .testimonial-text { font-size: 0.88rem; }

  /* Footer */
  .footer { padding-top: 56px; }
  .footer-grid { padding-bottom: 42px; }
  .footer-brand .footer-desc { max-width: 100%; }

  /* Cursos destacados — card thumb */
  .course-thumb { height: 180px; }

  /* Instructores — portrait en móvil */
  .instructor-card img { height: 180px; }

  /* Sección Why TEC (React/Tailwind) — reducir padding vertical */
  #why-root section { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
  #why-root .mt-16 { margin-top: 2.5rem !important; }
}

/* ── ≤ 400px (teléfonos muy pequeños) ───────────────────── */
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr !important; }
  .stat-card  { padding: 28px 20px !important; }
  .stat-num   { font-size: 2.5rem !important; }
  .stat-icon  { width: 56px !important; height: 56px !important; }
  .section-header h2 { font-size: clamp(1.4rem, 6vw, 1.8rem) !important; }
  .cta-content h2    { font-size: 1.35rem !important; }
}

/* ============================================================
   VISUAL OVERHAUL v4 — 3D · Animations · Color · Polish
   ============================================================ */

/* ── KEYFRAMES ──────────────────────────────────────────── */
@keyframes float3d      { 0%,100%{transform:translateY(0) rotateX(0)} 50%{transform:translateY(-10px) rotateX(3deg)} }
@keyframes shimmerSwipe { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes pulseOrb     { 0%,100%{transform:scale(1);opacity:.6} 50%{transform:scale(1.18);opacity:1} }
@keyframes fadeSlideUp  { from{opacity:0;transform:translateY(32px)} to{opacity:1;transform:none} }
@keyframes spinSlow     { to{transform:rotate(360deg)} }
@keyframes glowPulse    { 0%,100%{box-shadow:0 0 0 0 rgba(99,102,241,.35)} 50%{box-shadow:0 0 0 14px rgba(99,102,241,0)} }

/* ── STAT CARDS — color variants + 3D ────────────────────── */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .45s ease;
  cursor: default;
}
.stat-card:hover {
  transform: translateY(-14px) perspective(700px) rotateX(4deg) scale(1.02);
}

/* Decorative large emoji (blurred background) */
.stat-deco {
  position: absolute;
  top: -10px; right: -6px;
  font-size: 5.5rem;
  opacity: .07;
  pointer-events: none;
  line-height: 1;
  transform: rotate(12deg);
  transition: opacity .4s ease, transform .4s ease;
}
.stat-card:hover .stat-deco { opacity: .13; transform: rotate(6deg) scale(1.1); }

/* Per-card accent colors */
.sc-indigo .stat-icon { background: linear-gradient(135deg,#3730a3,#6366f1); box-shadow: 0 6px 20px rgba(99,102,241,.4); }
.sc-indigo .stat-num span { background: linear-gradient(135deg,#4338ca,#818cf8) !important; -webkit-background-clip:text !important; -webkit-text-fill-color:transparent !important; background-clip:text !important; }
.sc-indigo:hover { box-shadow: 0 24px 56px rgba(99,102,241,.18), 0 2px 8px rgba(99,102,241,.10); border-color:rgba(99,102,241,.2); }
.sc-indigo::before { background: linear-gradient(90deg,#6366f1,#818cf8) !important; }

.sc-emerald .stat-icon { background: linear-gradient(135deg,#065f46,#10b981); box-shadow: 0 6px 20px rgba(16,185,129,.4); }
.sc-emerald .stat-num span { background: linear-gradient(135deg,#047857,#34d399) !important; -webkit-background-clip:text !important; -webkit-text-fill-color:transparent !important; background-clip:text !important; }
.sc-emerald:hover { box-shadow: 0 24px 56px rgba(16,185,129,.18); border-color:rgba(16,185,129,.2); }
.sc-emerald::before { background: linear-gradient(90deg,#10b981,#34d399) !important; }

.sc-violet .stat-icon { background: linear-gradient(135deg,#5b21b6,#8b5cf6); box-shadow: 0 6px 20px rgba(139,92,246,.4); }
.sc-violet .stat-num span { background: linear-gradient(135deg,#6d28d9,#a78bfa) !important; -webkit-background-clip:text !important; -webkit-text-fill-color:transparent !important; background-clip:text !important; }
.sc-violet:hover { box-shadow: 0 24px 56px rgba(139,92,246,.18); border-color:rgba(139,92,246,.2); }
.sc-violet::before { background: linear-gradient(90deg,#8b5cf6,#c4b5fd) !important; }

.sc-amber .stat-icon { background: linear-gradient(135deg,#b45309,#f59e0b); box-shadow: 0 6px 20px rgba(245,158,11,.4); }
.sc-amber .stat-num span { background: linear-gradient(135deg,#d97706,#fcd34d) !important; -webkit-background-clip:text !important; -webkit-text-fill-color:transparent !important; background-clip:text !important; }
.sc-amber:hover { box-shadow: 0 24px 56px rgba(245,158,11,.18); border-color:rgba(245,158,11,.2); }
.sc-amber::before { background: linear-gradient(90deg,#f59e0b,#fde68a) !important; }

/* Shimmer sweep on stat card hover */
.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.stat-card:hover::after { opacity:1; animation: shimmerSwipe .7s ease forwards; }

/* ── FEATURE CARDS v4 — dark card matching reference image ── */

/* Reset all colored variants to uniform dark */
.feature-card,
.feature-card.fc-blue,
.feature-card.fc-green,
.feature-card.fc-gold,
.feature-card.fc-purple,
.feature-card.fc-cyan,
.feature-card.fc-orange {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-top: 1px solid rgba(255,255,255,.09) !important;
  padding: 28px !important;
  border-radius: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 210px !important;
  position: relative !important;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .45s ease, border-color .3s !important;
}
.feature-card:hover {
  transform: translateY(-10px) perspective(800px) rotateX(3deg) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,.4) !important;
  border-color: rgba(255,255,255,.16) !important;
}

/* Icon wrap — colored box top of card */
.fc-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.feature-card:hover .fc-icon-wrap { transform: scale(1.1) rotate(-4deg); }

/* Icon colors per variant */
.fc-blue   .fc-icon-wrap { background: rgba(59,130,246,.18);  color: #60a5fa; }
.fc-gold   .fc-icon-wrap { background: rgba(245,158,11,.18);  color: #fbbf24; }
.fc-purple .fc-icon-wrap { background: rgba(139,92,246,.18);  color: #a78bfa; }
.fc-cyan   .fc-icon-wrap { background: rgba(6,182,212,.18);   color: #22d3ee; }
.fc-orange .fc-icon-wrap { background: rgba(249,115,22,.18);  color: #fb923c; }
.fc-green  .fc-icon-wrap { background: rgba(16,185,129,.18);  color: #34d399; }

/* Title */
.feature-card h3 {
  color: #ffffff !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  letter-spacing: -.1px !important;
}
/* Description */
.feature-card p {
  color: rgba(255,255,255,.5) !important;
  font-size: .875rem !important;
  line-height: 1.65 !important;
  flex: 1;
}
/* Arrow bottom-right */
.fc-arrow {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  color: rgba(255,255,255,.22);
  font-size: .88rem;
  transition: color .2s ease, transform .25s ease;
}
.feature-card:hover .fc-arrow {
  color: rgba(255,255,255,.7);
  transform: translateX(6px);
}

/* ── TESTIMONIAL CARDS — glass 3D ───────────────────────── */
.testimonial-card {
  backdrop-filter: blur(2px);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .45s ease !important;
}
.testimonial-card:hover {
  transform: translateY(-10px) perspective(800px) rotateX(2deg) scale(1.015) !important;
  box-shadow: 0 24px 56px rgba(26,35,126,.16) !important;
}
.testimonial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.testimonial-stars { margin-bottom: 0 !important; }
.testimonial-verified {
  font-size: .72rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22,163,74,.1);
  border: 1px solid rgba(22,163,74,.25);
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.author-role { font-size: .76rem; color: var(--gray-light); margin-top: 2px; }

/* ── COURSE CARDS — 3D hover ────────────────────────────── */
.course-card {
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .45s ease, border-color .3s !important;
}
.course-card:hover {
  transform: translateY(-12px) perspective(700px) rotateX(3deg) scale(1.015) !important;
  box-shadow: 0 28px 60px rgba(26,35,126,.18) !important;
}

/* ── VER TODOS LINK ─────────────────────────────────────── */
.ver-todos-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 700;
  color: #1565c0;
  transition: color .2s, gap .2s;
}
.ver-todos-link:hover { color: #1a237e; gap: 10px; }

/* ── CTA BANNER v4 ──────────────────────────────────────── */
.cta-deco-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: pulseOrb 5s ease-in-out infinite;
}
.cta-orb-1 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  top: -120px; right: -60px;
}
.cta-orb-2 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(124,77,255,.18) 0%, transparent 70%);
  bottom: -80px; left: 5%;
  animation-delay: -2.5s;
}
.cta-tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.cta-content h2 { color: #fff !important; }
.cta-content p  { color: rgba(255,255,255,.85) !important; }
.cta-content strong { color: #fff !important; }
.cta-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff !important;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.cta-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.cta-trust span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  color: rgba(255,255,255,.8) !important;
  font-weight: 500;
}
.cta-trust span i { color: rgba(255,255,255,.65); font-size: .8rem; }
.cta-btn-main {
  box-shadow: 0 6px 24px rgba(255,255,255,.18);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--primary) !important;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s !important;
}
.cta-btn-main:hover { transform: translateY(-4px) scale(1.04) !important; box-shadow: 0 12px 32px rgba(255,255,255,.28) !important; }
.cta-btn-secondary {
  border: 2px solid rgba(255,255,255,.45) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,.08) !important;
  transition: background .25s, border-color .25s, transform .3s !important;
}
.cta-btn-secondary:hover { background: rgba(255,255,255,.16) !important; border-color: rgba(255,255,255,.75) !important; transform: translateY(-3px) !important; }

/* ── STATS SECTION BG ───────────────────────────────────── */
.stats-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 60%, #f1f3fc 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(99,102,241,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ── SECTION TAG polish ─────────────────────────────────── */
.section-tag {
  font-size: .72rem;
  letter-spacing: .14em;
  transition: transform .25s;
}

/* ── REVEAL — spring easing ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(.98);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94), transform .7s cubic-bezier(.25,.46,.45,.94) !important;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1) !important;
}

/* ── SECTION WAVE SEPARATOR (dark→light) ────────────────── */
.section-dark { position: relative; }
.section-dark::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--bg-light);
  clip-path: ellipse(55% 100% at 50% 100%);
  pointer-events: none;
}

/* ── INSTRUCTOR CARD enhancements ───────────────────────── */
.instructors-grid > div {
  border: 1px solid transparent;
  transition: border-color .3s !important;
}
.instructors-grid > div:hover { border-color: rgba(99,102,241,.2) !important; }

/* ============================================================
   STATS SECTION REFRESH
   ============================================================ */
.stats-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background:
    radial-gradient(900px 360px at 12% 12%, rgba(41,121,255,0.18), transparent 62%),
    radial-gradient(720px 340px at 88% 16%, rgba(16,185,129,0.12), transparent 64%),
    linear-gradient(180deg, #070b15 0%, #091222 54%, #07101d 100%) !important;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 18%, #000 34%, transparent 86%);
  mask-image: radial-gradient(70% 60% at 50% 18%, #000 34%, transparent 86%);
  pointer-events: none;
}
.stats-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66,165,245,0.42), transparent);
  pointer-events: none;
}
.stats-section .container {
  position: relative;
  z-index: 1;
}
.stats-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid rgba(111,170,255,0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    rgba(4,10,22,0.74);
  box-shadow: 0 28px 80px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
}
.stats-shell::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.88), transparent);
  box-shadow: 0 0 24px rgba(96,165,250,0.32);
  pointer-events: none;
}
.stats-header {
  margin-bottom: clamp(34px, 4vw, 48px) !important;
}
.stats-section .section-tag {
  color: #93c5fd;
  background: rgba(41,121,255,0.11);
  border-color: rgba(96,165,250,0.28);
}
.stats-section .section-header h2 {
  color: #ffffff;
  text-wrap: balance;
}
.stats-section .section-header h2::after {
  background: linear-gradient(90deg, #22d3ee, #60a5fa, #a78bfa);
  box-shadow: 0 0 20px rgba(96,165,250,0.38);
}
.stats-section .section-header p {
  color: #b8c7de;
}
.stats-section .stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.stats-section .stat-card {
  --accent: #60a5fa;
  --accent-soft: rgba(96,165,250,0.16);
  min-height: 218px;
  padding: 24px !important;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.032)),
    rgba(10,22,43,0.78);
  box-shadow: none;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
.stats-section .stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  height: auto;
  opacity: 1;
  background:
    radial-gradient(220px 120px at 88% 10%, var(--accent-soft), transparent 64%),
    linear-gradient(90deg, var(--accent), transparent 42%) top left / 100% 2px no-repeat !important;
  pointer-events: none;
}
.stats-section .stat-card::after {
  content: attr(data-stat);
  position: absolute;
  right: -12px;
  bottom: -24px;
  color: rgba(255,255,255,0.035);
  font-size: clamp(3.8rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}
.stats-section .stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(96,165,250,0.38);
  box-shadow: 0 22px 52px rgba(0,0,0,0.26), 0 0 28px var(--accent-soft);
}
.stats-section .stat-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.stats-section .stat-icon {
  width: 54px !important;
  height: 54px !important;
  margin: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(96,165,250,0.96), rgba(30,64,175,0.96));
  box-shadow: 0 12px 28px var(--accent-soft), inset 0 1px 0 rgba(255,255,255,0.24);
}
.stats-section .stat-icon svg {
  width: 26px;
  height: 26px;
  color: #ffffff;
}
.stats-section .stat-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: #c9d8ec;
  background: rgba(255,255,255,0.045);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stats-section .stat-num {
  position: relative;
  z-index: 1;
  margin-bottom: 9px;
  font-size: clamp(2.35rem, 3.9vw, 3.35rem) !important;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
}
.stats-section .stat-num span {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 86%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.stats-section .stat-label {
  position: relative;
  z-index: 1;
  color: #d7e3f4;
  font-size: 0.96rem;
  font-weight: 700;
}
.stats-section .sc-indigo { --accent: #60a5fa; --accent-soft: rgba(96,165,250,0.16); }
.stats-section .sc-emerald { --accent: #34d399; --accent-soft: rgba(52,211,153,0.14); }
.stats-section .sc-violet { --accent: #a78bfa; --accent-soft: rgba(167,139,250,0.15); }
.stats-section .sc-amber { --accent: #fbbf24; --accent-soft: rgba(251,191,36,0.15); }
.stats-section .sc-emerald .stat-icon { background: linear-gradient(135deg,#34d399,#047857); }
.stats-section .sc-violet .stat-icon { background: linear-gradient(135deg,#a78bfa,#6d28d9); }
.stats-section .sc-amber .stat-icon { background: linear-gradient(135deg,#fbbf24,#b45309); }

@media (max-width: 980px) {
  .stats-section { padding: 78px 0; }
  .stats-section .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  .stats-section { padding: 64px 0; }
  .stats-shell {
    padding: 28px 18px;
    border-radius: 22px;
  }
  .stats-section .stats-grid {
    grid-template-columns: 1fr !important;
  }
  .stats-section .stat-card {
    min-height: 190px;
    padding: 22px !important;
  }
  .stats-section .stat-card-head {
    margin-bottom: 22px;
  }
  .stats-section .stat-icon {
    width: 50px !important;
    height: 50px !important;
  }
  .stats-section .stat-num {
    font-size: 2.55rem !important;
  }
}

/* ============================================================
   TOOLS LOGO MARQUEE
   ============================================================ */
.tools-strip {
  border-top: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(4,8,18,0.96), rgba(4,8,18,0.88));
  padding: 28px 0 36px;
  overflow: hidden;
}
.tools-strip-inner {
  width: 100%;
  margin: 0 auto;
}
.tools-strip-title {
  margin: 0 auto 28px;
  max-width: 760px;
  padding: 0 20px;
  color: rgba(200,215,240,0.88);
  font-family: 'IBM Plex Sans', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.tools-strip-title span {
  color: #ffffff;
  font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(96,165,250,0.24);
}
.tools-strip-title small {
  color: rgba(190,205,230,0.78);
  font-size: clamp(0.84rem, 1.1vw, 0.98rem);
  font-weight: 500;
  line-height: 1.35;
}
.tools-strip-title::before,
.tools-strip-title::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,175,220,0.45));
}
.tools-strip-title::after {
  background: linear-gradient(90deg, rgba(148,175,220,0.45), transparent);
}
.tools-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.tools-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: toolsMarquee 68s linear infinite;
  will-change: transform;
}
.tools-marquee:hover .tools-marquee-track,
.tools-marquee:focus-within .tools-marquee-track {
  animation-play-state: paused;
}
.tools-marquee-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 24px;
  padding-right: 24px;
}
.tools-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 128px;
  min-width: 250px;
  padding: 0 38px;
  border: 1px solid rgba(226,232,240,0.82);
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 34px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tools-brand:hover {
  transform: translateY(-2px);
  border-color: rgba(96,165,250,0.45);
  box-shadow: 0 18px 42px rgba(0,0,0,0.28), 0 0 22px rgba(96,165,250,0.16);
}
.tools-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 260px;
  max-height: 86px;
  object-fit: contain;
}
.tools-logo-tint-csi {
  filter: brightness(0) saturate(100%) invert(15%) sepia(58%) saturate(1767%) hue-rotate(197deg) brightness(91%) contrast(102%);
}
.tools-brand-autodesk { min-width: 360px; }
.tools-brand-autodesk .tools-logo-img { width: 324px; max-width: 324px; max-height: 72px; }
.tools-brand-trimble { min-width: 352px; }
.tools-brand-trimble .tools-logo-img { width: 308px; max-width: 308px; max-height: 78px; }
.tools-brand-oracle { min-width: 332px; }
.tools-brand-oracle .tools-logo-img { width: 292px; max-width: 292px; max-height: 62px; }
.tools-brand-p6 { min-width: 162px; padding: 0 30px; }
.tools-brand-p6 .tools-logo-img { width: 108px; max-width: 108px; max-height: 108px; }
.tools-brand-etabs { min-width: 230px; }
.tools-brand-etabs .tools-logo-img { width: 192px; max-width: 192px; max-height: 72px; }
.tools-brand-sap2000 { min-width: 320px; }
.tools-brand-sap2000 .tools-logo-img { width: 278px; max-width: 278px; max-height: 74px; }
.tools-brand-safe { min-width: 270px; }
.tools-brand-safe .tools-logo-img { width: 230px; max-width: 230px; max-height: 74px; }
.tools-brand-idea { min-width: 406px; }
.tools-brand-idea .tools-logo-img { width: 356px; max-width: 356px; max-height: 78px; }
.tools-brand-mathcad { min-width: 238px; }
.tools-brand-mathcad .tools-logo-img { width: 202px; max-width: 202px; max-height: 54px; }
.tools-brand-presto { min-width: 352px; }
.tools-brand-presto .tools-logo-img { width: 304px; max-width: 304px; max-height: 74px; }
.tools-brand-arcgis { min-width: 390px; }
.tools-brand-arcgis .tools-logo-img { width: auto; height: 104px; max-width: 342px; max-height: 104px; }
.tools-logo-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.tools-brand-agisoft { min-width: 286px; }
.tools-brand-agisoft .tools-logo-img { width: auto; max-width: 230px; }
.tools-brand-agisoft .tools-logo-img:first-child { height: 34px; max-height: 34px; }
.tools-brand-agisoft .tools-logo-img:last-child { height: 54px; max-height: 54px; filter: none; }
.tools-logo-delphin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.tools-logo-symbol {
  display: block;
  width: auto;
  height: auto;
  max-width: 64px;
  max-height: 68px;
  object-fit: contain;
}
.tools-delphin-word {
  color: #2356d8;
  font-family: "Inter", "Arial Black", Arial, sans-serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
}
.tools-delphin-word small {
  color: #ff3026;
  font-size: 11px;
  font-weight: 900;
  margin-left: 2px;
}
.tools-brand-delphin { min-width: 286px; }

@keyframes toolsMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 640px) {
  .tools-strip {
    padding: 20px 0 26px;
  }
  .tools-strip-title {
    margin-bottom: 16px;
    padding: 0 12px;
    flex-direction: column;
    gap: 5px;
  }
  .tools-strip-title span { white-space: normal; }
  .tools-strip-title::before,
  .tools-strip-title::after { display: none; }
  .tools-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  }
  .tools-marquee-track {
    animation-duration: 56s;
  }
  .tools-marquee-group {
    gap: 14px;
    padding-right: 14px;
  }
  .tools-brand {
    height: 92px;
    min-width: 184px;
    padding: 0 24px;
    border-radius: 16px;
  }
  .tools-logo-img {
    max-width: 188px;
    max-height: 62px;
  }
  .tools-brand-autodesk { min-width: 256px; }
  .tools-brand-autodesk .tools-logo-img { width: 218px; max-width: 218px; max-height: 54px; }
  .tools-brand-trimble { min-width: 254px; }
  .tools-brand-trimble .tools-logo-img { width: 216px; max-width: 216px; max-height: 56px; }
  .tools-brand-oracle { min-width: 236px; }
  .tools-brand-oracle .tools-logo-img { width: 200px; max-width: 200px; max-height: 48px; }
  .tools-brand-p6 { min-width: 116px; padding: 0 18px; }
  .tools-brand-p6 .tools-logo-img { width: 74px; max-width: 74px; max-height: 74px; }
  .tools-brand-etabs { min-width: 178px; }
  .tools-brand-etabs .tools-logo-img { width: 146px; max-width: 146px; max-height: 54px; }
  .tools-brand-sap2000 { min-width: 244px; }
  .tools-brand-sap2000 .tools-logo-img { width: 210px; max-width: 210px; max-height: 56px; }
  .tools-brand-safe { min-width: 210px; }
  .tools-brand-safe .tools-logo-img { width: 176px; max-width: 176px; max-height: 56px; }
  .tools-brand-idea { min-width: 282px; }
  .tools-brand-idea .tools-logo-img { width: 244px; max-width: 244px; max-height: 58px; }
  .tools-brand-delphin { min-width: 226px; }
  .tools-logo-symbol { max-width: 46px; max-height: 50px; }
  .tools-delphin-word { font-size: 21px; }
  .tools-delphin-word small { font-size: 9px; }
  .tools-brand-agisoft { min-width: 222px; }
  .tools-brand-agisoft .tools-logo-img { width: auto; max-width: 176px; }
  .tools-brand-agisoft .tools-logo-img:first-child { height: 28px; max-height: 28px; }
  .tools-brand-agisoft .tools-logo-img:last-child { height: 42px; max-height: 42px; filter: none; }
  .tools-brand-mathcad { min-width: 190px; }
  .tools-brand-mathcad .tools-logo-img { width: 156px; max-width: 156px; max-height: 42px; }
  .tools-brand-presto { min-width: 260px; }
  .tools-brand-presto .tools-logo-img { width: 224px; max-width: 224px; max-height: 58px; }
  .tools-brand-arcgis { min-width: 284px; }
  .tools-brand-arcgis .tools-logo-img { width: auto; height: 74px; max-width: 246px; max-height: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .tools-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .tools-marquee-track {
    animation: none !important;
  }
  .tools-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* ============================================================
   TEAM / INSTRUCTORES SECTION
   ============================================================ */

.team-section {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 8vw, 112px) 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(900px 460px at 50% 0%, rgba(59,130,246,0.18), transparent 68%),
    linear-gradient(180deg, #06101f 0%, #07172a 52%, #050b16 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
  border-top: 1px solid rgba(96,165,250,0.12);
  border-bottom: 1px solid rgba(96,165,250,0.12);
}
.team-section::before,
.team-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.46), transparent);
  pointer-events: none;
}
.team-section::before { top: 0; }
.team-section::after { bottom: 0; }
.team-section .container {
  position: relative;
  z-index: 1;
}

/* Decorative orbital rings */
.team-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(65,115,235,0.13);
  pointer-events: none;
  top: 50%;
  left: 50%;
}
.team-ring.tr1 {
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  animation: teamRingPulse 6s ease-in-out infinite;
}
.team-ring.tr2 {
  width: 980px; height: 980px;
  margin: -490px 0 0 -490px;
  animation: teamRingPulse 9s ease-in-out infinite 1.5s;
}
.team-ring.tr3 {
  width: 1320px; height: 1320px;
  margin: -660px 0 0 -660px;
  animation: teamRingPulse 12s ease-in-out infinite 3s;
}
@keyframes teamRingPulse {
  0%, 100% { opacity: 0.18;  transform: scale(1); }
  50%       { opacity: 0.42; transform: scale(1.04); }
}

/* Section header overrides for dark background */
.team-section .section-tag {
  color: #60a5fa;
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.22);
}
.team-section .section-header h2 { color: #f1f5f9; }
.team-section .section-header p  { color: #94a3b8; }
.team-section .section-header {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.team-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 30px;
}
.team-summary-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 16px;
  color: #dbeafe;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(148,163,184,0.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  font-size: 0.86rem;
  font-weight: 800;
}
.team-summary-item i {
  color: #93c5fd;
  font-size: 1rem;
}

/* Skeleton cards */
.instr-skeleton {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: 22px;
  padding: 32px 24px 28px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.instr-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.055) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: instrShimmer 1.6s ease-in-out infinite;
}
@keyframes instrShimmer {
  to { transform: translateX(100%); }
}
.skel-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  margin: 0 auto 16px;
}
.skel-line {
  height: 11px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  margin: 9px auto;
}
.skel-line.w55 { width: 55%; }
.skel-line.w40 { width: 40%; }
.skel-line.w70 { width: 70%; }

/* Instructor cards */
@keyframes instrCardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.instr-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  min-height: 100%;
  background:
    radial-gradient(circle at 88% 0%, rgba(96,165,250,0.13), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 22px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 18px 46px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  opacity: 0;
  overflow: hidden;
}
.instr-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(96,165,250,0.12), transparent 46%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.instr-card.card-visible {
  animation: instrCardIn 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
}
.instr-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.38), 0 0 0 1px rgba(96,165,250,0.28);
  border-color: rgba(96,165,250,0.34);
}
.instr-card:hover::before {
  opacity: 1;
}

/* Photo with spinning gradient ring */
.instr-photo-col {
  position: relative;
  z-index: 1;
}
.instr-photo-wrap {
  position: relative;
  width: 112px; height: 112px;
  margin: 0 auto 14px;
}
.instr-photo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #3b82f6, #a855f7, #ec4899, #3b82f6);
  animation: instrRingSpin 4s linear infinite;
  opacity: 0.8;
}
@keyframes instrRingSpin {
  to { transform: rotate(360deg); }
}
.instr-photo-wrap img {
  position: relative;
  z-index: 1;
  width: 106px; height: 106px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 3px auto 0;
  border: 3px solid #0a1628;
}
.instr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(96,165,250,0.13);
  border: 1px solid rgba(96,165,250,0.22);
  font-size: 0.7rem;
  font-weight: 900;
}
.instr-info {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.instr-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 9px;
}
.instr-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bbf7d0;
  font-size: 0.7rem;
  font-weight: 900;
}
.instr-status i {
  color: #22c55e;
  font-size: 0.48rem;
  filter: drop-shadow(0 0 7px rgba(34,197,94,0.75));
}
.instr-name {
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #f8fafc;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.instr-role {
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.instr-company {
  color: #9fb1c8;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.instr-stars {
  color: #fbbf24;
  font-size: 0.92rem;
  letter-spacing: 1px;
  text-shadow: 0 0 16px rgba(251,191,36,0.24);
}
.instr-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 16px;
}
.instr-stats span {
  display: grid;
  gap: 3px;
  min-height: 66px;
  padding: 10px 8px;
  border-radius: 14px;
  color: #cbd5e1;
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(148,163,184,0.11);
}
.instr-stats i {
  color: #60a5fa;
  font-size: 0.9rem;
}
.instr-stats strong {
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1;
}
.instr-stats small {
  color: #8ea2bb;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.instr-bio {
  font-size: 0.82rem;
  color: #aebed2;
  line-height: 1.58;
  margin: 0;
}

/* Grid */
#instructoresGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
#instructoresGrid.single-instructor {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}
#instructoresGrid.single-instructor .instr-card {
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 26px;
  text-align: left;
  padding: 30px;
}
#instructoresGrid.single-instructor .instr-photo-wrap {
  width: 150px;
  height: 150px;
}
#instructoresGrid.single-instructor .instr-photo-wrap img {
  width: 144px;
  height: 144px;
}
#instructoresGrid.single-instructor .instr-photo-col {
  text-align: center;
}
#instructoresGrid.single-instructor .instr-topline {
  justify-content: flex-start;
  margin-top: 0;
}
#instructoresGrid.single-instructor .instr-name {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}
#instructoresGrid.single-instructor .instr-stats {
  max-width: 520px;
}
#instructoresGrid.single-instructor .instr-bio {
  max-width: 560px;
}
@media (max-width: 992px) {
  #instructoresGrid { grid-template-columns: repeat(2, 1fr); }
  #instructoresGrid.single-instructor {
    grid-template-columns: minmax(0, 680px);
  }
  #instructoresGrid.single-instructor .instr-card {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .team-summary-strip {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}
@media (max-width: 560px) {
  #instructoresGrid,
  #instructoresGrid.single-instructor {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  #instructoresGrid.single-instructor .instr-card,
  .instr-card,
  .instr-skeleton {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 22px 16px 20px;
    border-radius: 18px;
    text-align: center;
  }
  #instructoresGrid.single-instructor .instr-topline {
    justify-content: center;
    margin-top: 14px;
  }
  .instr-photo-wrap,
  #instructoresGrid.single-instructor .instr-photo-wrap {
    width: 104px;
    height: 104px;
  }
  .instr-photo-wrap img,
  #instructoresGrid.single-instructor .instr-photo-wrap img {
    width: 98px;
    height: 98px;
  }
  .instr-stats {
    grid-template-columns: 1fr;
  }
  .team-summary-item {
    justify-content: flex-start;
  }
  .team-ring.tr2, .team-ring.tr3 { display: none; }
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */

.testimonials-section {
  background: #f8faff;
  overflow: hidden;
  position: relative;
  padding-bottom: 80px;
  border-top: 1px solid rgba(99,102,241,0.07);
  border-bottom: 1px solid rgba(99,102,241,0.07);
}

/* Marquee wrapper */
.testi-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  margin-top: 52px;
  padding: 8px 0 12px;
}
.testi-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: testiScroll 42s linear infinite;
}
.testi-marquee:hover .testi-track {
  animation-play-state: paused;
}
@keyframes testiScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Individual card */
.testi-card {
  width: 360px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(99,102,241,0.10);
  border-radius: 20px;
  padding: 28px 26px 24px;
  box-shadow: 0 4px 20px rgba(99,102,241,0.07);
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
}
.testi-card:hover {
  box-shadow: 0 14px 40px rgba(99,102,241,0.14);
  transform: translateY(-4px);
}

/* Large decorative quote */
.testi-quote {
  position: absolute;
  top: 14px; right: 20px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 6rem;
  line-height: 1;
  color: rgba(99,102,241,0.10);
  pointer-events: none;
  user-select: none;
}

.testi-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.testi-text {
  font-size: 0.915rem;
  color: #475569;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.testi-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99,102,241,0.18);
  flex-shrink: 0;
}
.testi-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
  line-height: 1.2;
}
.testi-role {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}
.testi-badge {
  margin-left: auto;
  font-size: 0.67rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .testimonials-section { padding-bottom: 60px; }
  .testi-marquee {
    margin-top: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }
  .testi-track { animation-duration: 52s; gap: 14px; }
  /* Cards: same design, just narrower */
  .testi-card {
    width: 286px;
    padding: 22px 18px 20px;
    background: #ffffff;
    color: #0f172a;
  }
  .testi-text  { color: #475569; font-size: 0.875rem; line-height: 1.7; }
  .testi-name  { color: #0f172a; }
  .testi-role  { color: #94a3b8; }
  /* Badge wraps below so footer never overflows on narrow cards */
  .testi-footer { flex-wrap: wrap; row-gap: 6px; }
  .testi-badge  { order: 3; flex-basis: 100%; margin-left: 0; text-align: center; }
}

@media (max-width: 480px) {
  .testi-card  { width: 264px; padding: 20px 16px 18px; }
  .testi-track { animation-duration: 46s; }
}

@media (max-width: 360px) {
  .testi-card  { width: 244px; padding: 18px 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .testi-track { animation: none !important; }
}

/* ============================================================
   MOBILE APP POLISH - TEC AULA
   Final responsive layer for phone-first views
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none) and (pointer: coarse) {
  .course-card:hover,
  .stat-card:hover,
  .feature-card:hover,
  .testimonial-card:hover,
  .testi-card:hover,
  .tools-brand:hover {
    transform: none !important;
  }
}

@media (max-width: 992px) {
  .navbar .nav-links {
    display: none !important;
  }

  .navbar:has(.nav-toggle) .nav-actions {
    display: none !important;
  }

  .navbar:not(:has(.nav-toggle)) .nav-actions {
    display: flex !important;
  }
}

@media (max-width: 760px) {
  :root {
    --navbar-h: 64px;
  }

  body {
    min-width: 0;
  }

  .container,
  .container-sm {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .navbar {
    min-height: var(--navbar-h);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav-inner {
    min-height: var(--navbar-h);
    gap: 10px;
  }

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

  .nav-toggle {
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
  }

  .nav-mobile {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--navbar-h));
    overflow-y: auto;
    padding: 12px 16px 18px;
    z-index: 9998;
    box-shadow: 0 22px 50px rgba(0,0,0,0.34);
  }

  .nav-mobile a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    padding: 0 14px;
  }

  .nav-mobile .mobile-actions {
    gap: 12px;
  }

  .nav-mobile .btn,
  .btn,
  button,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  .nav-actions {
    gap: 6px !important;
  }

  #navUserName,
  #userMenuTrigger > svg {
    display: none !important;
  }

  #bellTrigger,
  #userMenuTrigger {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  #notifPanel,
  #userDropdown {
    position: fixed !important;
    top: calc(var(--navbar-h) + 10px) !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none !important;
  }

  .section {
    padding-top: 48px !important;
    padding-bottom: 54px !important;
  }

  .section-header {
    margin-bottom: 26px !important;
  }

  .section-header h2,
  .page-header h1,
  .dashboard-header h1 {
    font-size: clamp(1.85rem, 8vw, 2.55rem) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
  }

  .section-header p,
  .page-header p,
  .dashboard-header p {
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
  }

  .page-header {
    padding-top: calc(var(--navbar-h) + 28px) !important;
    padding-bottom: 36px !important;
  }

  .page-breadcrumb {
    gap: 7px;
    flex-wrap: wrap;
    font-size: 0.78rem;
  }

  .hero,
  .hero-premium {
    min-height: auto !important;
    padding-top: calc(var(--navbar-h) + 28px) !important;
    padding-bottom: 40px !important;
  }

  .hero-content h1,
  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }

  .hero-content p,
  .hero-subtitle {
    font-size: 0.96rem !important;
    line-height: 1.7 !important;
  }

  .hero-actions,
  .cta-actions,
  .aula-hero-actions,
  .result-actions,
  .quiz-actions {
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .aula-hero-actions .btn,
  .result-actions .btn,
  .quiz-actions .btn,
  .btn-block {
    width: 100% !important;
    justify-content: center !important;
  }

  .filters-bar,
  .results-info {
    border-radius: 16px !important;
  }

  .filters-bar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .filter-search,
  .filter-select {
    width: 100% !important;
    max-width: none !important;
  }

  .filter-search input,
  .filter-select {
    min-height: 48px !important;
    font-size: 0.92rem !important;
  }

  .filter-tags {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tags::-webkit-scrollbar {
    display: none;
  }

  .filter-tag {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  .courses-grid,
  .courses-grid-4,
  .features-grid,
  .testimonials-grid,
  .team-grid,
  #instructoresGrid,
  .dashboard-stats,
  .stats-row,
  .quiz-selector,
  .cert-grid {
    grid-template-columns: 1fr !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .stat-card,
  .dash-stat,
  .course-card,
  .course-card-enrolled,
  .feature-card,
  .testimonial-card,
  .aula-widget,
  .admin-card,
  .forum-card,
  .cert-card {
    border-radius: 16px !important;
  }

  .course-card,
  .course-card-enrolled {
    min-width: 0 !important;
  }

  .course-thumb,
  .enrolled-thumb {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    min-height: 190px !important;
  }

  .course-body,
  .enrolled-body {
    padding: 16px !important;
  }

  .course-title,
  .enrolled-title {
    min-height: 0 !important;
    font-size: 1rem !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }

  .course-meta,
  .enrolled-meta {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .course-footer,
  .enrolled-footer {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .course-cta,
  .course-footer .btn,
  .enrolled-footer .btn {
    width: 100% !important;
    min-height: 46px !important;
  }

  .dashboard-main {
    padding: 16px !important;
    padding-bottom: calc(22px + env(safe-area-inset-bottom)) !important;
  }

  .dashboard-header,
  .aula-hero {
    padding: 22px 18px !important;
    border-radius: 18px !important;
  }

  .aula-content-grid,
  .evaluation-dashboard,
  .forum-layout,
  .profile-layout,
  .settings-layout,
  .course-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .course-sidebar {
    position: static !important;
    border-radius: 18px !important;
  }

  .video-player-wrap {
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .course-detail-layout,
  .course-detail-layout > *,
  .course-detail-layout > div {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .video-player-wrap iframe,
  .video-player-wrap .yt-privacy-mask,
  .video-player-wrap .yt-click-shield.bottom-bar,
  .video-player-wrap #videoLockOverlay {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .video-player-wrap .yt-click-shield.logo {
    width: min(38vw, 132px) !important;
  }

  .video-player-wrap .yt-click-shield.watermark {
    width: min(42vw, 158px) !important;
  }

  .video-player-wrap .yt-click-shield.top-right {
    width: min(48vw, 176px) !important;
  }

  .course-video-toolbar {
    border-radius: 14px !important;
    padding: 10px !important;
  }

  .course-player-controls {
    grid-template-columns: repeat(4, minmax(44px, auto)) !important;
    gap: 8px !important;
  }

  .course-progress-wrap,
  .course-volume-group {
    grid-column: 1 / -1 !important;
  }

  .course-player-btn,
  .video-control-btn {
    min-width: 44px !important;
    min-height: 42px !important;
  }

  .course-video-actions,
  .course-quality-group {
    width: 100% !important;
  }

  .course-video-actions .video-control-btn,
  .course-quality-group .course-video-select {
    flex: 1 1 auto !important;
  }

  .course-tabs {
    display: flex !important;
    overflow-x: auto;
    gap: 8px !important;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .course-tabs::-webkit-scrollbar {
    display: none;
  }

  .course-tab {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px !important;
    border-radius: 10px !important;
  }

  .quiz-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .quiz-card,
  .quiz-result,
  .question-card {
    border-radius: 16px !important;
  }

  .quiz-body {
    padding: 18px 16px !important;
  }

  .option-item {
    align-items: flex-start;
    min-height: 48px;
  }

  .footer-contact-item {
    grid-template-columns: 44px minmax(0, 1fr) !important;
  }

  .footer-bottom-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn-whatsapp {
    width: 100% !important;
    min-height: 52px;
  }

  .modal,
  [id$="Modal"] {
    padding: 12px !important;
  }

  [id$="Modal"] > div {
    width: min(100%, 94vw) !important;
    max-height: calc(100vh - 28px) !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
  }

  table {
    font-size: 0.84rem;
  }

  .table-wrap,
  .admin-table-wrap,
  .cert-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .container,
  .container-sm {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

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

  .hero-content h1,
  .hero-title,
  .page-header h1,
  .section-header h2 {
    font-size: clamp(1.75rem, 9vw, 2.35rem) !important;
  }

  .stats-grid,
  .dashboard-stats,
  .aula-hero-kpis {
    grid-template-columns: 1fr !important;
  }

  .stat-card,
  .dash-stat {
    min-height: 104px !important;
    padding: 18px !important;
  }

  .course-thumb,
  .enrolled-thumb {
    min-height: 172px !important;
  }

  .course-player-controls {
    grid-template-columns: repeat(2, minmax(44px, 1fr)) !important;
  }

  .course-player-btn {
    width: 100% !important;
  }

  .course-player-btn.primary {
    grid-column: 1 / -1;
  }

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

/* ============================================================
   HERRAMIENTAS TEC - Marketplace de aplicaciones
   ============================================================ */
body.tools-body {
  min-height: 100vh;
  color: #e5edf8;
  background:
    radial-gradient(circle at 82% 8%, rgba(34,211,238,0.12), transparent 34%),
    radial-gradient(circle at 8% 24%, rgba(59,130,246,0.16), transparent 30%),
    linear-gradient(180deg, #050b16 0%, #07111f 54%, #050914 100%);
}

body.tools-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(96,165,250,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.58), rgba(0,0,0,0.08));
}

.tools-nav.navbar.nav-solid,
.tools-nav.navbar.nav-white {
  background: rgba(5,10,22,0.88) !important;
  border-bottom: 1px solid rgba(96,165,250,0.16) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tools-nav .nav-links a {
  color: rgba(226,232,240,0.82) !important;
  border-radius: 11px;
  font-weight: 700;
}

.tools-nav .nav-links a:hover,
.tools-nav .nav-links a.active {
  color: #ffffff !important;
  background: rgba(96,165,250,0.16) !important;
  box-shadow: inset 0 0 0 1px rgba(96,165,250,0.22);
}

.tools-nav .nav-actions span,
.tools-nav .nav-actions strong {
  color: #ffffff !important;
}

.tools-nav .btn-outline,
.tools-body .nav-mobile .btn-outline {
  color: #eaf2ff !important;
  border-color: rgba(255,255,255,0.24) !important;
  background: rgba(255,255,255,0.06) !important;
}

.tools-nav .btn-primary,
.tools-body .nav-mobile .btn-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%) !important;
  border: 1px solid rgba(191,219,254,0.30) !important;
  box-shadow: 0 14px 30px rgba(37,99,235,0.30) !important;
}

.tools-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--navbar-h) + 58px) 0 56px;
  border-bottom: 1px solid rgba(96,165,250,0.16);
}

.tools-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.75), transparent);
}

.tools-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.tools-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(96,165,250,0.10);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  color: #ffffff;
  font-family: 'Space Grotesk', var(--font);
  font-size: clamp(2.45rem, 5.8vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.tools-hero h1.tools-commercial-title {
  font-size: clamp(2.45rem, 4.3vw, 4rem);
  line-height: 1.02;
}

.tools-hero p {
  max-width: 690px;
  color: #b8c7de;
  font-size: clamp(1rem, 1.6vw, 1.17rem);
  line-height: 1.68;
}

.tools-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tools-hero-actions .btn-outline {
  color: #eaf2ff;
  border-color: rgba(191,219,254,0.42);
  background: rgba(5,10,22,0.28);
}

.tools-hero-actions .btn-outline:hover {
  color: #ffffff;
  border-color: rgba(125,211,252,0.72);
  background: rgba(96,165,250,0.14);
}

.tools-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at 86% 12%, rgba(34,211,238,0.15), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.078), rgba(255,255,255,0.030));
  box-shadow: 0 24px 68px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.07);
}

.tools-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.32;
}

.tools-hero-card > * {
  position: relative;
  z-index: 1;
}

.tools-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 800;
}

.tools-card-chip i {
  color: #60a5fa;
}

.tools-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.tools-kpi {
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(148,163,184,0.14);
  border-radius: 16px;
  background: rgba(5,10,20,0.44);
}

.tools-kpi strong {
  display: block;
  color: #ffffff;
  font-family: 'Space Grotesk', var(--font);
  font-size: 1.35rem;
  line-height: 1;
}

.tools-kpi span {
  display: block;
  margin-top: 8px;
  color: #a8bbd6;
  font-size: 0.76rem;
  line-height: 1.35;
}

.tools-section {
  padding: 48px 0 70px;
}

.tools-section.compact {
  padding-top: 28px;
}

.tools-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.tools-section-head h2 {
  color: #ffffff;
  font-family: 'Space Grotesk', var(--font);
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  line-height: 1.04;
}

.tools-section-head p {
  max-width: 600px;
  color: #9fb0ca;
}

.tools-grid,
.my-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tools-grid.tools-grid-single {
  grid-template-columns: minmax(0, 680px);
}

.tool-card,
.my-tool-card,
.tool-detail-card,
.tool-access-card,
.tool-flow-step,
.aula-tools-banner {
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.028));
  box-shadow: 0 20px 54px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.06);
}

.tool-card {
  position: relative;
  overflow: hidden;
  min-height: 355px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96,165,250,0.34);
  box-shadow: 0 26px 70px rgba(0,0,0,0.34), 0 0 0 1px rgba(96,165,250,0.08) inset;
}

.tool-card.disabled {
  opacity: 0.92;
}

.tool-card::after {
  content: '';
  position: absolute;
  inset: auto 20px 0 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.85), transparent);
}

.tool-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.tool-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96,165,250,0.22);
  border-radius: 16px;
  color: #7dd3fc;
  background: rgba(96,165,250,0.12);
  box-shadow: 0 14px 30px rgba(37,99,235,0.20);
}

.tool-card-icon i {
  font-size: 1.45rem;
}

.tool-card-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255,255,255,0.06);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tool-card h3,
.my-tool-card h3,
.tool-detail-card h2,
.tool-access-card h3,
.tool-flow-step h3 {
  color: #ffffff;
  font-family: 'Space Grotesk', var(--font);
  letter-spacing: 0;
}

.tool-card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.16;
}

.tool-card p,
.my-tool-card p,
.tool-detail-card p,
.tool-access-card p,
.tool-flow-step p {
  color: #a8bbd6;
  line-height: 1.6;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(96,165,250,0.11);
  font-size: 0.74rem;
  font-weight: 750;
}

.tool-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}

.tool-price {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 850;
}

.tool-price small {
  display: block;
  margin-top: 2px;
  color: #8ea0bb;
  font-size: 0.74rem;
  font-weight: 650;
}

.tools-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-flow-step {
  padding: 22px;
}

.tool-flow-step .step-num {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  color: #07111f;
  background: linear-gradient(135deg, #7dd3fc, #60a5fa);
  font-weight: 900;
}

.tools-empty {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed rgba(148,163,184,0.28);
  border-radius: 22px;
  color: #b8c7de;
  text-align: center;
  background: rgba(255,255,255,0.035);
}

.tools-empty i {
  display: block;
  margin-bottom: 12px;
  color: #60a5fa;
  font-size: 2rem;
}

.tools-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.tool-detail-media {
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 70% 18%, rgba(34,211,238,0.18), transparent 34%),
    linear-gradient(145deg, rgba(12,29,56,0.95), rgba(5,10,20,0.96));
  box-shadow: 0 24px 68px rgba(0,0,0,0.30);
}

.tool-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.tool-detail-placeholder {
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.tool-detail-placeholder i {
  margin-bottom: 18px;
  color: #7dd3fc;
  font-size: 4rem;
}

.tool-detail-card,
.tool-access-card {
  padding: 24px;
}

.tool-detail-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.06;
}

.tool-feature-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.tool-feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #dbeafe;
}

.tool-feature-list i {
  margin-top: 4px;
  color: #22c55e;
}

.tool-launch-message {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: 12px;
  color: #bfdbfe;
  background: rgba(96,165,250,0.09);
  font-size: 0.82rem;
}

.tool-launch-message[hidden] {
  display: none;
}

.tool-access-card {
  position: sticky;
  top: calc(var(--navbar-h) + 18px);
}

.tool-access-price {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(96,165,250,0.18);
  border-radius: 16px;
  background: rgba(96,165,250,0.09);
}

.tool-access-price strong {
  display: block;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.tool-access-price span {
  display: block;
  margin-top: 6px;
  color: #a8bbd6;
  font-size: 0.83rem;
}

.my-tool-card {
  padding: 22px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.my-tool-card .license-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34,197,94,0.13);
  font-size: 0.74rem;
  font-weight: 850;
}

.my-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.aula-tools-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 12%, rgba(34,211,238,0.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.028));
}

.aula-tools-banner h3 {
  margin-bottom: 6px;
  color: #ffffff;
  font-family: 'Space Grotesk', var(--font);
  font-size: 1.25rem;
}

.aula-tools-banner p {
  color: #a8bbd6;
}

.aula-tools-banner .banner-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #7dd3fc;
  background: rgba(96,165,250,0.12);
}

.tools-preview-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 12%, rgba(34,211,238,0.11), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #050914 100%);
  border-top: 1px solid rgba(96,165,250,0.12);
  border-bottom: 1px solid rgba(96,165,250,0.12);
}

@media (max-width: 960px) {
  .tools-hero-grid,
  .tools-detail-layout {
    grid-template-columns: 1fr;
  }

  .tools-grid,
  .my-tools-grid,
  .tools-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-access-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .tools-hero {
    padding: calc(var(--navbar-h) + 30px) 0 38px;
  }

  .tools-kpis {
    gap: 7px;
    margin-top: 14px;
  }

  .tools-kpi {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .tools-kpi strong {
    flex: 0 0 auto;
    font-size: 1.05rem;
  }

  .tools-kpi span {
    margin-top: 0;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .tools-hero-actions,
  .my-tool-actions {
    flex-direction: column;
  }

  .tools-hero-actions .btn,
  .my-tool-actions .btn,
  .tool-card-footer .btn {
    width: 100%;
  }

  .tools-kpis,
  .tools-grid,
  .my-tools-grid,
  .tools-flow {
    grid-template-columns: 1fr;
  }

  .tools-grid.tools-grid-single {
    grid-template-columns: 1fr;
  }

  .tools-section-head,
  .aula-tools-banner,
  .tool-card-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tools-section-head {
    display: grid;
  }

  .tool-card {
    min-height: 320px;
  }

  .tool-detail-media,
  .tool-detail-media img,
  .tool-detail-placeholder {
    min-height: 260px;
  }
}
