/* ==========================================================================
   SISTEMA DE DISEÑO Y VARIABLES (CSS VARIABLES)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Paleta Corporativa Principal: Azul y Plomo */
  --accent-blue: #2563eb;
  /* Azul Corporativo Vibrante */
  --accent-blue-light: #60a5fa;
  /* Azul Resplandor */
  --accent-blue-dark: #1d4ed8;
  /* Azul Profundo */
  --accent-lead: #94a3b8;
  /* Plomo Metálico / Gris Pizarra */
  --accent-lead-dark: #475569;
  /* Plomo Grafito / Titanio */
  --accent-cyan: #0284c7;
  /* Azul Técnico / Cyan */

  /* Semántica de acento corporativo */
  --accent-fire: var(--accent-blue);
  --accent-tools: var(--accent-lead);
  --accent-equip: var(--accent-cyan);

  /* Gradiantes Corporativos Azul & Plomo */
  --gradient-blue-lead: linear-gradient(135deg, #2563eb 0%, #64748b 100%);
  --gradient-lead-blue: linear-gradient(135deg, #94a3b8 0%, #1d4ed8 100%);
  --gradient-hero-text: linear-gradient(135deg, #60a5fa 0%, #2563eb 45%, #94a3b8 100%);

  /* Curvas de animación ultra premium */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  /* Fuentes */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radios de borde */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 20px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.3), 0 10px 15px -5px rgba(0, 0, 0, 0.1);
}

/* Modo Oscuro (Por defecto) */
:root,
[data-theme="dark"] {
  --bg-main: hsl(220, 38%, 7%);
  --bg-gradient: radial-gradient(circle at top right, hsl(220, 35%, 13%) 0%, hsl(220, 40%, 6%) 100%);
  --bg-card: hsla(220, 30%, 12%, 0.75);
  --bg-card-hover: hsla(220, 30%, 16%, 0.9);
  --bg-input: hsla(220, 35%, 8%, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-active: rgba(100, 150, 240, 0.22);
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 18%, 78%);
  --text-muted: hsl(215, 14%, 60%);
  --primary: hsl(217, 90%, 54%);
  --primary-hover: hsl(217, 90%, 62%);
  --shadow-glow: 0 0 25px hsla(217, 90%, 54%, 0.3);
  --navbar-bg: rgba(10, 16, 28, 0.85);
}

/* Modo Claro */
[data-theme="light"] {
  --bg-main: hsl(215, 25%, 95%);
  --bg-gradient: linear-gradient(135deg, hsl(215, 30%, 97%) 0%, hsl(215, 20%, 90%) 100%);
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-input: rgba(255, 255, 255, 0.95);
  --border-glass: rgba(30, 50, 80, 0.08);
  --border-glass-active: rgba(37, 99, 235, 0.2);
  --text-primary: hsl(220, 45%, 13%);
  --text-secondary: hsl(218, 20%, 35%);
  --text-muted: hsl(218, 14%, 55%);
  --primary: hsl(217, 90%, 48%);
  --primary-hover: hsl(217, 90%, 40%);
  --shadow-glow: 0 0 20px hsla(217, 90%, 48%, 0.2);
  --navbar-bg: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--border-glass-active);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.5s ease, color 0.5s ease;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

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

/* ==========================================================================
   ELEMENTOS DE AMBIENTACIÓN Y DECORACIÓN (GLOW ORBS)
   ========================================================================== */
.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--border-glass) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-glass) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -2;
  opacity: 0.4;
}

.blur-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
  animation: floatOrb 25s infinite alternate ease-in-out;
}

.blur-orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0) 70%);
  top: 5%;
  right: -5%;
}

.blur-orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.25) 0%, rgba(148, 163, 184, 0) 70%);
  bottom: -10%;
  left: -10%;
  animation-duration: 35s;
}

.blur-orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
  top: 45%;
  left: 25%;
  animation-duration: 20s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(60px, -40px) scale(1.15);
  }

  100% {
    transform: translate(-30px, 40px) scale(0.9);
  }
}

/* ==========================================================================
   COMPONENTES GENÉRICOS (BOTONES, TARJETAS, ETC.)
   ========================================================================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(37, 99, 235, 0.15);
  background: var(--bg-card-hover);
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #475569 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.55);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline {
  background: rgba(148, 163, 184, 0.08);
  border: 1.5px solid #64748b;
  color: var(--text-primary);
}

.btn-outline:hover {
  background: linear-gradient(135deg, #2563eb 0%, #64748b 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-danger {
  background: hsl(354, 70%, 50%);
  color: #fff;
  border-color: hsl(354, 70%, 50%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
  border: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-danger:hover {
  background: hsl(354, 75%, 45%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-danger:active {
  transform: translateY(-1px) scale(0.98);
}

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

.btn-block {
  display: flex;
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.badge.fire {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

.badge.tools {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.4);
}

.badge.equipment {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

/* Form inputs */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--border-glass-active);
  background: rgba(255, 255, 255, 0.02);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.01);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* ==========================================================================
   DISEÑO DEL HEADER & NAVEGACIÓN
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #3b82f6 70%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  white-space: nowrap;
}

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

.logo i {
  color: var(--accent-fire);
  -webkit-text-fill-color: initial;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 8px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  transform: rotate(20deg) scale(1.1);
}

.menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.35rem;
  padding: 8px;
  transition: var(--transition-fast);
  align-items: center;
  justify-content: center;
}

.menu-toggle-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

/* ==========================================================================
   SECCIÓN HERO (PRINCIPAL)
   ========================================================================== */
.hero {
  padding: 180px 24px 120px;
  position: relative;
  overflow: hidden;
  min-height: 95vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-text h1 span.gradient {
  background: var(--gradient-hero-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 44px;
  max-width: 600px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Hero Imagen */
.hero-img-wrapper {
  position: relative;
}

.hero-glass-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-color: var(--border-glass-active);
  box-shadow: var(--shadow-lg);
}

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

.hero-grid-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 160px;
  position: relative;
}

.hero-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-grid-item:hover img {
  transform: scale(1.08);
}

.hero-grid-item .item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background: linear-gradient(to top, rgba(8, 12, 21, 0.9), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.hero-grid-item .item-label i {
  color: var(--primary);
}

.hero-grid-item.wide {
  grid-column: span 2;
  height: 200px;
}

/* Decorative grid element */
.grid-dots {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(var(--border-glass-active) 2px, transparent 2px);
  background-size: 16px 16px;
  bottom: -30px;
  right: -30px;
  z-index: 1;
  opacity: 0.6;
}

/* ==========================================================================
   SECCIÓN DE CATEGORÍAS & CURSOS
   ========================================================================== */
.section {
  padding: 120px 24px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Filtros */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--border-glass-active);
  color: var(--text-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gradient-blue-lead);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

/* Custom Category Admin buttons */
.add-category-btn {
  background: transparent;
  border: 1px dashed var(--primary);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.add-category-btn:hover {
  background: var(--primary);
  color: #fff;
  border-style: solid;
  transform: translateY(-2px);
}

.delete-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transition: var(--transition-fast);
}

.delete-cat-btn:hover {
  color: #ff3333 !important;
  transform: scale(1.2);
}

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

/* Tarjeta de Curso Premium con Efecto Brillo y Glow en Hover */
.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 0;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 100%);
  transform: skewX(-25deg);
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.course-card:hover::after {
  left: 125%;
}

/* Glow adaptativo por categoría */
.course-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: var(--bg-card-hover);
}

.course-card.tools:hover {
  border-color: rgba(100, 116, 139, 0.4);
  box-shadow: var(--shadow-lg), 0 20px 40px -10px hsla(215, 18%, 55%, 0.25);
}

.course-card.fire:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-lg), 0 20px 40px -10px hsla(217, 90%, 54%, 0.25);
}

.course-card.equipment:hover {
  border-color: rgba(18, 249, 249, 0.4);
  box-shadow: var(--shadow-lg), 0 20px 40px -10px hsla(180, 85%, 40%, 0.25);
}

.course-card .course-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.course-card .course-badge.fire {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.course-card .course-badge.tools {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
  box-shadow: 0 2px 10px rgba(100, 116, 139, 0.4);
}

.course-card .course-badge.equipment {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

.course-img-wrapper {
  height: 230px;
  overflow: hidden;
  position: relative;
  background: #080c15;
}

.course-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.course-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.course-meta i {
  color: var(--primary);
  margin-right: 6px;
}

.course-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
  line-height: 1.3;
  transition: var(--transition-fast);
}

.course-card:hover .course-title {
  color: var(--primary);
}

.course-desc-short {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  flex-grow: 1;
}

.course-footer-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
  margin-top: auto;
}

.course-footer-buttons .btn {
  flex: 1;
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 10px 14px;
}

.course-highlights {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-highlights li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-highlights li i {
  color: var(--accent-equip);
  font-size: 0.85rem;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15);
}

.btn-whatsapp:hover {
  background: #20ba5a;
  border-color: #20ba5a;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   SECCIÓN DE ASISTENTE INTERACTIVO (QUIZ)
   ========================================================================== */
.quiz-section {
  position: relative;
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border-color: var(--border-glass-active);
}

.quiz-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--border-glass);
}

.quiz-progress-percent {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-fire), var(--accent-tools));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-header {
  text-align: center;
  margin-bottom: 40px;
}

.quiz-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.quiz-question-title {
  font-size: 1.4rem;
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.3;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.quiz-option-card {
  padding: 20px 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.quiz-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-radio {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-glass-active);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.quiz-option-card input[type="radio"]:checked~.custom-radio {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.quiz-option-card input[type="radio"]:checked~.custom-radio::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulseRadio 0.3s ease-out;
}

@keyframes pulseRadio {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.quiz-option-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-active);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.quiz-option-card:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md), 0 0 20px rgba(37, 99, 235, 0.15);
}

.quiz-option-card input[type="radio"]:checked~.option-text {
  color: var(--text-primary);
  font-weight: 600;
}

.option-text {
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition-fast);
}

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

/* Resultados del Quiz */
.quiz-result-card {
  text-align: center;
  padding: 32px 0;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-tools);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.quiz-result-card h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.result-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.result-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.result-meta span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.result-meta span i {
  color: var(--primary);
  margin-right: 8px;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==========================================================================
   SECCIÓN DE TESTIMONIOS (DE CONFIANZA)
   ========================================================================== */
.testimonials-section {
  position: relative;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 56px;
}

.testimonial-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  right: 30px;
  font-size: 8rem;
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--border-glass-active);
  line-height: 1;
  opacity: 0.3;
  pointer-events: none;
}

.testimonial-stars {
  color: var(--accent-tools);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--border-glass-active);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid var(--border-glass);
}

.testimonial-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   SECCIÓN DE PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-section {
  position: relative;
}

.faq-accordion {
  max-width: 850px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--border-glass-active);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.faq-trigger {
  width: 100%;
  padding: 24px 32px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  gap: 20px;
}

.faq-trigger i {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--primary);
  font-size: 1rem;
}

.faq-item.active .faq-trigger i {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-inner {
  padding: 0 32px 28px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   SECCIÓN DE CONTACTO & BENEFICIOS
   ========================================================================== */
.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

/* Beneficios */
.benefits-intro h2 {
  font-size: 2.8rem;
  margin-bottom: 24px;
}

.benefits-intro p {
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 1.1rem;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.benefit-item {
  display: flex;
  gap: 24px;
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.benefit-item h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.benefit-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Formulario de Contacto */
.contact-form-wrapper {
  padding: 48px;
  border-radius: var(--radius-lg);
  border-color: var(--border-glass-active);
}

.contact-form-wrapper h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.contact-form-wrapper p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 0.95rem;
}

/* ==========================================================================
   MODAL DE DETALLES DEL CURSO (DENTRO DE APP.JS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 1050px;
  max-height: 90vh;
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass-active);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(37, 99, 235, 0.12);
  transform: scale(0.94);
  transition: var(--transition-smooth);
  z-index: 2000;
  /* ensure modal is on top */
}

.modal-overlay.open .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 1.15rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-glass-active);
  transform: rotate(90deg) scale(1.05);
}

/* Modal Layout */
.modal-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  padding: 56px;
}

.modal-course-title {
  font-size: 2.4rem;
  margin-top: 10px;
  margin-bottom: 20px;
}

.modal-course-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.meta-val {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.meta-val.highlight {
  color: var(--accent-tools);
}

.modal-syllabus-section h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.syllabus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
}

.syllabus-list li {
  display: flex;
  align-items: start;
  gap: 14px;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.syllabus-list li i {
  color: var(--primary);
  margin-top: 4px;
  font-size: 1.1rem;
}

.modal-instructor {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border-glass);
}

.instructor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--border-glass-active);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

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

.inst-name {
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 600;
}

/* Sidebar form */
.modal-sidebar-form .form-wrapper {
  padding: 36px;
  position: sticky;
  top: 32px;
  border-color: var(--border-glass-active);
}

.modal-sidebar-form h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.modal-sidebar-form p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ==========================================================================
   TOASTS DE NOTIFICACIÓN
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toast {
  padding: 18px 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  border-left: 4px solid var(--primary);
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
  border-left-color: var(--accent-equip);
}

.toast-success i {
  color: var(--accent-equip);
}

.toast-warning {
  border-left-color: var(--accent-tools);
}

.toast-warning i {
  color: var(--accent-tools);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 500;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
.footer {
  position: relative;
  background: var(--bg-main);
  padding: 50px 24px 30px;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-fire) 0%, var(--accent-tools) 50%, var(--accent-equip) 100%);
  opacity: 0.85;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 35px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headings);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.footer-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.footer-logo span {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.footer-logo:hover img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.4));
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 1.28rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 360px;
}

.footer-socials {
  display: flex;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: hsla(222, 47%, 10%, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  transition: var(--transition-smooth);
  z-index: -1;
}

.social-link:hover::before {
  top: 0;
}

.social-link:hover {
  color: #fff;
  transform: translateY(-5px);
}

.social-link[aria-label="Facebook"]::before {
  background: #1877f2;
}

.social-link[aria-label="Facebook"]:hover {
  border-color: #1877f2;
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.social-link[aria-label="LinkedIn"]::before {
  background: #0077b5;
}

.social-link[aria-label="LinkedIn"]:hover {
  border-color: #0077b5;
  box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

.social-link[aria-label="YouTube"]::before {
  background: #ff0000;
}

.social-link[aria-label="YouTube"]:hover {
  border-color: #ff0000;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 32px;
  height: 2.5px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 1.28rem;
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  position: relative;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-contact p {
  color: var(--text-secondary);
  font-size: 1.28rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.footer-contact i {
  color: var(--primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: var(--transition-fast);
}

.footer-contact a:hover i {
  transform: scale(1.2);
  color: var(--primary-hover);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 25px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  font-size: 1.12rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ESTILOS DE VERIFICACIÓN DE CERTIFICADOS
   ========================================================================== */
.verification-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px;
  border-radius: var(--radius-lg);
  border-color: var(--border-glass-active);
  align-items: stretch;
}

.verif-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.verif-form-side h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.verif-form-side p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.input-with-icon {
  position: relative;
  width: 100%;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.input-with-icon input {
  padding-left: 52px;
}

.input-with-icon input:focus+.input-icon {
  color: var(--primary);
}

.verif-hints {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.verif-hints code {
  color: var(--accent-blue);
  font-weight: 600;
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.verif-result-side {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 32px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.verif-result-side.active {
  background: var(--bg-card);
  border-color: var(--border-glass-active);
}

/* Placeholder */
.verif-placeholder {
  text-align: center;
  max-width: 320px;
}

.placeholder-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--text-muted);
}

.placeholder-icon-wrapper .search-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.95rem;
  background: var(--primary);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
}

.verif-placeholder h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.verif-placeholder p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Loading/Scanning state */
.verif-loading {
  text-align: center;
  position: relative;
  z-index: 2;
}

.verif-shield-anim {
  font-size: 3.5rem;
  color: var(--accent-equip);
  margin-bottom: 20px;
  animation: pulseShield 1.5s infinite alternate ease-in-out;
}

.verif-code-searching {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: monospace;
  background: rgba(18, 249, 249, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(18, 249, 249, 0.2);
}

.verif-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-equip), transparent);
  box-shadow: 0 0 15px var(--accent-equip);
  animation: scanLine 2s infinite linear;
  pointer-events: none;
}

@keyframes scanLine {
  0% {
    top: 10%;
  }

  50% {
    top: 90%;
  }

  100% {
    top: 10%;
  }
}

@keyframes pulseShield {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(18, 249, 249, 0.4));
  }
}

/* Error Card */
.verif-error-card {
  text-align: center;
  padding: 20px;
}

.verif-error-icon {
  font-size: 3.5rem;
  color: var(--accent-fire);
  margin-bottom: 20px;
}

.verif-error-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.verif-error-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.verif-error-tip {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 24px !important;
}

/* Success Card & Diploma Design */
.verif-success-card {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.verif-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
}

.verif-success-icon {
  font-size: 1.8rem;
  color: #25d366;
}

.verif-card-header h3 {
  font-size: 1.25rem;
  flex-grow: 1;
}

.cert-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.cert-status-badge.activo {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.verif-diploma-preview {
  background: #fbf9f5;
  color: #1a1a1a;
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.06), var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.diploma-border {
  border: 2px solid #c5a880;
  outline: 6px double #c5a880;
  outline-offset: -10px;
  padding: 32px 24px;
  background: #fff;
  background-image: radial-gradient(circle at center, #ffffff 40%, #fcfbfa 100%);
  border-radius: 4px;
  position: relative;
}

.diploma-border::after {
  content: '★ CETAR SRL ★\nSEGURIDAD';
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 76px;
  height: 76px;
  border: 2px dashed rgba(197, 168, 128, 0.7);
  border-radius: 50%;
  color: #c5a880;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.45rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-15deg);
  opacity: 0.85;
  white-space: pre-line;
  background: rgba(197, 168, 128, 0.03);
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.1);
  pointer-events: none;
}

.diploma-content {
  text-align: center;
  font-family: 'Outfit', Georgia, serif;
}

.diploma-logo {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #1a202c;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
}

.diploma-logo i {
  color: var(--accent-fire);
}

.diploma-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #b09163;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.02);
}

.diploma-text-to {
  font-size: 0.72rem;
  font-style: italic;
  margin-bottom: 6px;
  color: #666;
}

.diploma-student-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  border-bottom: 1.5px solid #c5a880;
  display: inline-block;
  padding: 0 24px 6px;
}

.diploma-text-desc {
  font-size: 0.72rem;
  color: #555;
  max-width: 420px;
  margin: 0 auto 10px;
  line-height: 1.5;
}

.diploma-course-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 8px;
}

.diploma-text-meta {
  font-size: 0.68rem;
  color: #777;
  margin-bottom: 20px;
}

.diploma-signatures {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  margin-bottom: 20px;
}

.signature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 140px;
}

.signature-line {
  width: 120px;
  height: 1px;
  background: #bca374;
  margin-bottom: 8px;
  position: relative;
}

.signature-line::before {
  content: '✓';
  position: absolute;
  bottom: 2px;
  left: 6px;
  color: #25d366;
  font-size: 0.75rem;
  font-weight: bold;
}

.signature-line::after {
  content: 'S. Ramos';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Brush Script MT', 'Georgia', cursive, serif;
  font-size: 1.35rem;
  color: #1a365d;
  /* Blue ink signature */
  opacity: 0.8;
  font-style: italic;
  pointer-events: none;
}

.signature-name {
  font-size: 0.6rem;
  font-weight: 700;
  color: #222;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.signature-title {
  font-size: 0.52rem;
  color: #777;
  text-transform: uppercase;
}

.diploma-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 10px;
  font-size: 0.6rem;
  color: #777;
}

.diploma-footer strong {
  color: #1a1a1a;
}

.verif-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.verif-actions .btn {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* Adaptación del Diploma en Modo Claro */
[data-theme="light"] .verif-diploma-preview {
  background: #f0f2f5;
}


/* ==========================================================================
   ESTILOS DE TRABAJA CON NOSOTROS (CARRERAS)
   ========================================================================== */
.careers-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.vacancies-wrapper h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.vacancies-intro-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.vacancy-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vacancy-card {
  padding: 24px;
}

.vacancy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.vacancy-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.vacancy-badge.tag-fire {
  background: rgba(249, 57, 18, 0.1);
  color: var(--accent-fire);
}

.vacancy-badge.tag-tools {
  background: rgba(249, 175, 18, 0.1);
  color: var(--accent-tools);
}

.vacancy-badge.tag-equip {
  background: rgba(18, 249, 249, 0.1);
  color: var(--accent-equip);
}

.vacancy-type {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.vacancy-card h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.vacancy-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.vacancy-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
}

.vacancy-footer span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vacancy-footer span i {
  color: var(--primary);
}

.vacancy-footer .btn {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* Careers Form details */
.career-form-wrapper {
  padding: 40px;
  border-radius: var(--radius-lg);
  border-color: var(--border-glass-active);
}

.career-form-wrapper h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.career-form-wrapper p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* Custom CV File upload styling */
.file-upload-wrapper {
  position: relative;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px dashed var(--border-glass-active);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.file-upload-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.file-upload-btn.file-selected {
  border-style: solid;
  border-color: var(--accent-equip);
  color: var(--accent-equip);
  background: rgba(18, 249, 249, 0.04);
}

/* ==========================================================================
   ANIMACIONES & REVEAL ON SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVIDAD Y ADAPTABILIDAD (MEDIA QUERIES)
   ========================================================================== */

/* Media query de transición para pantallas intermedias (1025px a 1350px) */
@media (max-width: 1350px) and (min-width: 1025px) {
  .nav-menu {
    gap: 14px;
  }

  .nav-container {
    padding: 16px 16px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-actions .btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1024px) {
  .menu-toggle-btn {
    display: flex !important;
    font-size: 1.25rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-glass-active);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 8px;
    align-items: stretch;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    z-index: 10000;
  }

  .nav-menu.active {
    display: flex !important;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .nav-link {
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    transition: var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    padding-left: 20px;
  }

  .nav-link::after {
    display: none;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-text p {
    margin: 0 auto 40px;
  }

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

  .hero-img-wrapper {
    max-width: 580px;
    margin: 0 auto;
  }

  .contact-grid,
  .verification-wrapper,
  .careers-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .modal-sidebar-form .form-wrapper {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

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

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

  .quiz-container {
    padding: 32px 24px;
  }

  .verification-wrapper {
    padding: 24px;
  }

  .verif-result-side {
    padding: 16px;
    min-height: auto;
  }

  .diploma-border {
    padding: 12px;
  }

  .diploma-student-name {
    font-size: 1.15rem;
  }

  .diploma-signatures {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .verif-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .verif-card-header h3 {
    width: 100%;
    margin: 4px 0;
  }

  .diploma-footer {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }

  .verif-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .verif-actions .btn {
    width: 100%;
    justify-content: center;
  }

  code {
    word-break: break-all;
  }

  .careers-grid {
    gap: 40px;
  }

  .career-form-wrapper {
    padding: 24px;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   ESTILOS ADICIONALES PARA LOGIN, REGISTRO, ADMINISTRACIÓN Y PERFIL DE USUARIO
   ========================================================================== */

/* Medidas del Modal */
.modal-small {
  max-width: 480px !important;
  padding: 40px;
}

.modal-medium {
  max-width: 700px !important;
  padding: 40px;
}

#course-form-title {
  font-family: var(--font-headings);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0;
  margin-bottom: 6px;
}

.modal-large {
  max-width: 950px !important;
}

/* Scroll para Formularios Altos */
.modal-form-scroll {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 10px;
}

.modal-form-scroll::-webkit-scrollbar {
  width: 6px;
}

.modal-form-scroll::-webkit-scrollbar-thumb {
  background: var(--border-glass-active);
  border-radius: var(--radius-full);
}

/* Filas de Formulario lado a lado */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 580px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Pestañas de Autenticación */
.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  border: 1px solid var(--border-glass);
  position: relative;
  gap: 8px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  text-align: center;
  position: relative;
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(249, 57, 18, 0.35);
}

.auth-tab.active::after {
  display: none;
}

/* Formularios de Autenticación */
.auth-form-content {
  display: none;
}

.auth-form-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

.auth-form-content h3 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
  margin-bottom: 28px;
}

/* Selectores dentro de select */
.form-group select option {
  background: var(--bg-main);
  color: var(--text-primary);
}

/* Controles de Administrador en Cursos */
.course-admin-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.btn-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-glass-active);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: #fff;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-circle-edit {
  background: rgba(249, 175, 18, 0.25);
  border-color: rgba(249, 175, 18, 0.4);
}

.btn-circle-edit:hover {
  background: var(--accent-tools);
  color: #000;
  box-shadow: 0 0 12px var(--accent-tools);
  transform: translateY(-2px);
}

.btn-circle-delete {
  background: rgba(249, 57, 18, 0.25);
  border-color: rgba(249, 57, 18, 0.4);
}

.btn-circle-delete:hover {
  background: var(--accent-fire);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-fire);
  transform: translateY(-2px);
}

/* Dashboard de Usuario / Admin */
.dashboard-container {
  padding: 56px;
}

.dashboard-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 20px;
}

.dashboard-title-role {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.role-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.role-badge.admin {
  background: rgba(249, 57, 18, 0.15);
  color: var(--accent-fire);
  border: 1px solid rgba(249, 57, 18, 0.3);
}

.role-badge.user {
  background: rgba(18, 249, 249, 0.15);
  color: var(--accent-equip);
  border: 1px solid rgba(18, 249, 249, 0.3);
}

/* Layout del Perfil de Usuario */
.profile-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.profile-card-static {
  padding: 30px;
  text-align: center;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-fire) 0%, var(--accent-tools) 100%);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--border-glass-active);
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.profile-email {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.profile-meta-info {
  text-align: left;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-info-item i {
  color: var(--primary);
  width: 16px;
  text-align: center;
}

/* Panel de Administración de Usuarios */
.admin-users-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.users-list-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.user-row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.user-row-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-row-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--border-glass-active);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid var(--border-glass);
}

.user-row-details h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-row-details p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.user-row-details .user-meta-inline {
  display: flex;
  gap: 15px;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.user-row-details .user-meta-inline span i {
  color: var(--primary);
  margin-right: 4px;
}

/* ==========================================================================
   ZONA DE ARRASTRE DE IMÁGENES (DRAG & DROP)
   ========================================================================== */
.image-dropzone {
  border: 2px dashed var(--border-glass-active);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  background: var(--bg-input);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-dropzone:hover,
.image-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(249, 57, 18, 0.05);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.dropzone-content i {
  font-size: 2.5rem;
  color: var(--primary);
  transition: var(--transition-fast);
}

.image-dropzone:hover .dropzone-content i {
  transform: translateY(-5px);
}

.dropzone-content p {
  font-size: 0.9rem;
  font-weight: 500;
}

.dropzone-content .file-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dropzone-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
}

.dropzone-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-image {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.btn-remove-image:hover {
  background: var(--primary);
  transform: scale(1.1);
}

/* ==========================================================================
   OPTIMIZACIONES MÓVILES ADICIONALES (RESPONSIVENESS)
   ========================================================================== */

/* Ajustes para tabletas y móviles (< 768px) */
@media (max-width: 768px) {

  /* Ocultar el botón Contacto en el header móvil */
  .btn-contact {
    display: none !important;
  }

  /* Ocultar texto en los botones de autenticación del header */
  .nav-actions .btn-text {
    display: none !important;
  }

  /* Hacer que los botones del header con solo icono se vean como círculos pequeños */
  .nav-actions #auth-btn,
  .nav-actions #user-panel-btn {
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    min-width: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Alinear de forma compacta las acciones del header */
  .nav-actions {
    gap: 8px !important;
  }
}

/* Ajustes para móviles pequeños (< 580px) */
@media (max-width: 580px) {

  /* Forzar apilado vertical y ancho total de botones en Hero */
  .hero-actions {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Ajustar grid de estadísticas de Hero para que quepan */
  .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .hero-stats .stat-item:last-child {
    grid-column: span 2 !important;
    text-align: center !important;
  }

  /* Evitar desbordes de títulos largos */
  .hero-text h1 {
    font-size: 2.2rem !important;
    word-break: keep-all !important;
  }

  /* Ajustes en los modales para pantallas estrechas */
  .modal-container {
    max-height: 95vh !important;
    padding: 24px !important;
  }

  .modal-grid {
    padding: 20px 0 !important;
    gap: 32px !important;
  }

  .modal-close-btn {
    top: 16px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }

  .modal-course-title {
    font-size: 1.8rem !important;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .modal-sidebar-form .form-wrapper {
    padding: 20px !important;
  }

  .dashboard-container {
    padding: 24px !important;
  }

  .user-row-card {
    padding: 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .user-row-info {
    width: 100% !important;
  }
}

/* Ajustes para pantallas extra pequeñas (< 400px) */
@media (max-width: 400px) {

  /* Ocultar el texto CETAR SRL del logotipo en teléfonos muy pequeños */
  .logo span {
    display: none !important;
  }

  .hero-text h1 {
    font-size: 1.8rem !important;
  }

  .hero-text p {
    font-size: 1rem !important;
  }

  /* Ajustar la cabecera del nav container */
  .nav-container {
    padding: 16px 12px !important;
  }
}

/* ==========================================================================
   ESTILOS ZONA DRAG & DROP CERTIFICADOS & EDITOR PREGUNTAS ASISTENTE
   ========================================================================== */
.cert-drag-dropzone {
  border: 2px dashed var(--accent-blue);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  margin-bottom: 32px;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cert-drag-dropzone:hover,
.cert-drag-dropzone.drag-active {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

.cert-drag-dropzone .dropzone-icon {
  font-size: 3rem;
  color: var(--accent-blue);
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}

.cert-drag-dropzone:hover .dropzone-icon,
.cert-drag-dropzone.drag-active .dropzone-icon {
  transform: scale(1.15) translateY(-4px);
  color: #60a5fa;
}

.cert-drag-dropzone h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.cert-drag-dropzone p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.admin-cert-table-wrapper {
  margin-top: 32px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass-active);
  background: var(--bg-card);
}

.admin-cert-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-cert-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 18px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-glass);
}

.admin-cert-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.admin-cert-table tr:last-child td {
  border-bottom: none;
}

.admin-cert-table tr:hover {
  background: var(--bg-card-hover);
}

/* Modal Editor Preguntas del Asistente */
.quiz-editor-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 24px;
}

.quiz-editor-card {
  border: 1px solid var(--border-glass-active);
  border-radius: var(--radius-md);
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.quiz-editor-card .q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.quiz-editor-card .q-number {
  font-weight: 700;
  color: var(--accent-blue);
  font-size: 0.9rem;
}

.quiz-option-edit-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.quiz-option-edit-row input {
  flex: 1;
}

/* ==========================================================================
   ESTILOS PERFIL DE ESTUDIANTE Y DASHBOARD
   ========================================================================== */

/* Grid de Tarjetas de Estadísticas */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.profile-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.profile-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.3);
  border-color: var(--border-glass-active);
}

/* Wrappers de Íconos con Colores Distintivos */
.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon-wrapper.completados {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.stat-icon-wrapper.progreso {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.stat-icon-wrapper.horas {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.stat-icon-wrapper.certificados {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
}

/* Header de Pestañas de Navegación del Perfil */
.profile-tabs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: hsla(220, 35%, 8%, 0.6);
  border: 1px solid var(--border-glass);
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}

[data-theme="light"] .profile-tabs-header {
  background: rgba(0, 0, 0, 0.04);
}

.profile-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  outline: none;
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-tab-btn i {
  font-size: 0.95rem;
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.05);
}

.profile-tab-btn:hover i {
  opacity: 1;
  transform: scale(1.1);
}

.profile-tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue-dark) 100%);
  color: #ffffff;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 14px hsla(217, 90%, 54%, 0.35);
}

.profile-tab-btn.active i {
  opacity: 1;
  color: #ffffff;
}

.profile-tab-pane {
  animation: profilePaneFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   ESTILOS DE SECCIÓN DE EVENTOS
   ========================================================================== */
.event-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-active) !important;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.35);
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ==========================================
   WHATSAPP ICON & FLOATING BUBBLE BUTTON
   ========================================== */
.footer-contact .fa-whatsapp {
  color: #25d366;
  font-size: 1.25rem;
}

.footer-contact a:hover .fa-whatsapp {
  color: #20ba5a;
  transform: scale(1.2);
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff !important;
  border-radius: 50px;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;
  animation: whatsapp-glow 2.5s infinite;
}

.whatsapp-float i {
  color: #ffffff !important;
  font-size: 34px;
  line-height: 1;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  background: linear-gradient(135deg, #20ba5a, #0e7569);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

@keyframes whatsapp-glow {
  0% {
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float i {
    font-size: 28px;
  }
}

/* ==========================================================================
   CALENDARIO FLOTANTE DE ACTIVIDADES (TOP-RIGHT & EXPANDIBLE)
   ========================================================================== */
.calendar-backdrop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Widget Flotante Compacto (Superior Derecha) */
.calendar-floating-widget {
  position: fixed;
  top: 95px;
  right: 24px;
  width: 290px;
  max-width: 90vw;
  z-index: 99995;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(37, 99, 235, 0.25);
  backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.calendar-floating-widget .calendar-expand-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  color: var(--primary-hover);
  font-weight: 700;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.calendar-floating-widget .calendar-expand-hint:hover {
  background: var(--primary);
  color: #ffffff;
}

.calendar-floating-widget .calendar-back-btn {
  display: none;
}

/* Modo Expandido (Agrandado en Pantalla) */
.calendar-floating-widget.expanded {
  top: 50%;
  right: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  z-index: 100000;
  border-color: var(--primary-hover);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(37, 99, 235, 0.4);
  cursor: default;
}

.calendar-floating-widget.expanded .calendar-expand-hint {
  display: none;
}

.calendar-floating-widget.expanded .calendar-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass-active);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.calendar-floating-widget.expanded .calendar-back-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateX(-3px);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-floating-widget.expanded .calendar-header {
  margin-bottom: 24px;
}

.calendar-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-title-group h2 {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.calendar-floating-widget.expanded .calendar-title-group h2 {
  font-size: 1.45rem;
}

.calendar-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-floating-widget.expanded .calendar-nav-btn {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.calendar-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.calendar-month-display {
  font-family: var(--font-headings);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-hover);
  min-width: 100px;
  text-align: center;
}

.calendar-floating-widget.expanded .calendar-month-display {
  font-size: 1.25rem;
  min-width: 180px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 6px;
}

.calendar-floating-widget.expanded .calendar-grid {
  gap: 8px;
  margin-bottom: 16px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-glass);
}

.calendar-floating-widget.expanded .calendar-day-header {
  font-size: 0.85rem;
  padding: 10px 0;
}

.calendar-day-cell {
  min-height: 34px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 3px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.calendar-floating-widget.expanded .calendar-day-cell {
  min-height: 70px;
  padding: 8px;
}

.calendar-day-cell:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
}

.calendar-day-cell.other-month {
  opacity: 0.2;
  pointer-events: none;
}

.calendar-day-cell.today {
  border-color: var(--accent-blue-light);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.calendar-day-cell.has-events {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

.calendar-day-cell.has-events:hover {
  background: rgba(37, 99, 235, 0.38);
  border-color: var(--primary-hover);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.calendar-day-cell.selected {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.4) !important;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
}

.calendar-day-number {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-primary);
  line-height: 1;
}

.calendar-floating-widget.expanded .calendar-day-number {
  font-size: 0.95rem;
}

.calendar-event-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.calendar-event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 6px #60a5fa;
  display: block;
}

.calendar-floating-widget.expanded .calendar-event-dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 8px #60a5fa;
}

.calendar-event-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.calendar-floating-widget.expanded .calendar-event-badge {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 10px;
}

/* ==========================================================================
   MODAL DE CURSOS Y ACTIVIDADES DEL DÍA SELECCIONADO
   ========================================================================== */
.calendar-day-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.calendar-day-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.calendar-day-modal-card {
  background: hsl(220, 35%, 12%);
  border: 1px solid var(--border-glass-active);
  border-radius: 20px;
  width: 680px;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(37, 99, 235, 0.3);
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.calendar-day-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
}

.calendar-day-modal-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-day-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.calendar-day-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.calendar-day-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
}

.calendar-day-courses-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calendar-course-item-card {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px;
  transition: var(--transition-fast);
}

.calendar-course-item-card:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
}

.calendar-course-item-card img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
}

.calendar-course-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calendar-course-item-content h4 {
  font-size: 1rem;
  margin: 0 0 6px 0;
  color: var(--text-primary);
  font-family: var(--font-headings);
}

.calendar-course-item-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .calendar-floating-widget {
    position: static;
    width: 100%;
    margin-bottom: 30px;
  }
}

.calendar-course-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: var(--transition-fast);
}

.calendar-course-card:hover {
  border-color: var(--primary-hover);
  transform: translateY(-2px);
}

.calendar-course-card img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

.calendar-course-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-primary);
}

.calendar-course-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}

@media (max-width: 768px) {
  .calendar-day-cell {
    min-height: 54px;
    padding: 4px;
  }
  .calendar-day-number {
    font-size: 0.8rem;
  }
  .calendar-event-badge {
    font-size: 0.65rem;
    padding: 1px 4px;
  }
}

/* ==========================================================================
   SELECTOR DESPLEGABLE DE FECHA Y HORA (MINI CALENDARIO Y RELOJ DIGITAL)
   ========================================================================== */
.datetime-picker-wrapper {
  position: relative;
  width: 100%;
  z-index: 100;
}

.datetime-input-group {
  display: flex;
  position: relative;
  align-items: center;
}

.datetime-input-group input {
  width: 100%;
  padding-right: 44px !important;
  cursor: pointer;
}

.datetime-picker-trigger {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: var(--primary-hover);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.datetime-picker-trigger:hover {
  background: var(--primary);
  color: #ffffff;
}

.datetime-picker-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-width: 90vw;
  background: hsl(220, 30%, 12%);
  border: 1px solid var(--border-glass-active);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  z-index: 999999;
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.datetime-picker-popover.open {
  display: block;
}

.dtp-tab-bar {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.dtp-tab-btn {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dtp-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.dtp-mini-calendar {
  margin-bottom: 12px;
}

.dtp-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dtp-cal-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.dtp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.dtp-cal-day-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 4px;
}

.dtp-cal-day-cell {
  padding: 6px 0;
  font-size: 0.82rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.dtp-cal-day-cell:hover {
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary-hover);
}

.dtp-cal-day-cell.selected {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700;
}

.dtp-cal-day-cell.empty {
  pointer-events: none;
  opacity: 0.2;
}

.dtp-digital-clock-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.dtp-clock-display {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass-active);
  border-radius: 12px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.dtp-clock-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dtp-clock-val {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: 1px;
}

.dtp-clock-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 28px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.dtp-clock-btn:hover {
  background: var(--primary);
  color: #fff;
}

.dtp-clock-separator {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-muted);
  animation: pulse 1.5s infinite;
}

.dtp-footer-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}

/* ==========================================================================
   PESTAÑAS Y GALERÍA DE IMÁGENES PARA EL ADMINISTRADOR (DRAG & DROP)
   ========================================================================== */
.admin-nav-tabs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.admin-tab-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text-primary);
  border-color: var(--primary);
}

.admin-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-hover);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

/* Zona de Drag and Drop de Galería */
.gallery-dropzone {
  border: 2px dashed rgba(59, 130, 246, 0.4);
  background: rgba(37, 99, 235, 0.04);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 30px;
}

.gallery-dropzone:hover,
.gallery-dropzone.dragover {
  border-color: var(--primary-hover);
  background: rgba(37, 99, 235, 0.12);
  transform: scale(1.008);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.25);
}

.gallery-dropzone-icon {
  font-size: 3rem;
  color: var(--primary-hover);
  margin-bottom: 12px;
  display: inline-block;
  animation: floatIcon 3s ease-in-out infinite;
}

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

.gallery-dropzone h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  font-family: var(--font-headings);
}

.gallery-dropzone p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Grid de Imágenes de la Galería */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.gallery-image-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}

.gallery-image-card:hover {
  border-color: var(--primary-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.gallery-image-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 140px;
  background: #000;
  overflow: hidden;
}

.gallery-image-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-image-card:hover .gallery-image-thumb-wrapper img {
  transform: scale(1.05);
}

.gallery-image-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #60a5fa;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.gallery-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.gallery-card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 8px;
}

/* Compact Dropzone para formularios de Cursos y Eventos */
.file-dropzone-compact {
  border: 1.5px dashed rgba(59, 130, 246, 0.4);
  background: rgba(37, 99, 235, 0.04);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.file-dropzone-compact:hover,
.file-dropzone-compact.dragover {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--primary-hover);
  color: var(--text-primary);
}

.file-dropzone-compact i {
  font-size: 1.2rem;
  color: var(--primary-hover);
}

/* Modal Selector de Galería */
.gallery-picker-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 210000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gallery-picker-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.gallery-picker-card {
  background: hsl(220, 35%, 11%);
  border: 1px solid var(--border-glass-active);
  border-radius: 20px;
  width: 820px;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(37, 99, 235, 0.3);
  overflow: hidden;
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-glass);
}

.gallery-picker-body {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: calc(85vh - 75px);
}

.gallery-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.gallery-picker-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  position: relative;
}

.gallery-picker-item:hover {
  border-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.gallery-picker-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.gallery-picker-item span {
  display: block;
  padding: 6px 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   OVERRIDES MODO CLARO — Sistema Completo de Estilos y Contraste Premium
   ========================================================================== */

/* ── 1. Botones y Elementos Interactivos ── */
[data-theme="light"] .btn-outline {
  color: var(--text-primary) !important;
  border-color: #94a3b8;
  background: rgba(30, 50, 80, 0.04);
}

[data-theme="light"] .btn-outline:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .btn-circle {
  border-color: rgba(30, 50, 80, 0.15);
}

[data-theme="light"] .btn-circle-edit {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #b45309;
}

[data-theme="light"] .btn-circle-edit:hover {
  background: #f59e0b;
  color: #ffffff;
}

[data-theme="light"] .btn-circle-delete {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

[data-theme="light"] .btn-circle-delete:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ── 2. Badges y Etiquetas ── */
[data-theme="light"] .badge.fire {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .badge.tools {
  background: rgba(71, 85, 105, 0.1);
  color: #334155;
  border-color: rgba(71, 85, 105, 0.3);
}

[data-theme="light"] .badge.equipment {
  background: rgba(2, 132, 199, 0.1);
  color: #0369a1;
  border-color: rgba(2, 132, 199, 0.3);
}

/* ── 3. Tipografía y Gradientes ── */
[data-theme="light"] .gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .auth-form-content h3,
[data-theme="light"] .footer-logo span {
  background: linear-gradient(135deg, hsl(220, 45%, 13%) 30%, hsl(217, 90%, 48%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── 4. Navegación y Cabecera ── */
[data-theme="light"] .nav-link {
  color: var(--text-secondary);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--primary);
}

[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(30, 50, 80, 0.08);
}

/* ── 5. Cursos y Tarjetas ── */
[data-theme="light"] .course-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(30, 50, 80, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .course-card:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .course-img-wrapper {
  background: #f1f5f9;
}

[data-theme="light"] .course-meta {
  color: var(--text-secondary);
}

[data-theme="light"] .course-description {
  color: var(--text-secondary);
}

[data-theme="light"] .highlight-item {
  background: rgba(30, 50, 80, 0.04);
  color: var(--text-secondary);
  border-color: rgba(30, 50, 80, 0.08);
}

[data-theme="light"] .filter-btn {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(30, 50, 80, 0.12);
  color: var(--text-secondary);
}

[data-theme="light"] .filter-btn:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .filter-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.3);
}

/* ── 6. Eventos y Cuenta Regresiva ── */
[data-theme="light"] .featured-event-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 245, 255, 0.9) 100%) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .featured-event-card .event-countdown {
  background: rgba(30, 50, 80, 0.06) !important;
  border-color: rgba(30, 50, 80, 0.12) !important;
}

[data-theme="light"] .featured-event-card > div > div:last-child {
  background: rgba(30, 50, 80, 0.03) !important;
  border-color: rgba(30, 50, 80, 0.1) !important;
}

[data-theme="light"] .event-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(30, 50, 80, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .event-card:hover {
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35) !important;
}

[data-theme="light"] .event-filter-btn {
  background: rgba(30, 50, 80, 0.06) !important;
  color: var(--text-secondary) !important;
}

[data-theme="light"] .event-filter-btn.active,
[data-theme="light"] .event-filter-btn:first-child {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ── 7. Calendario Flotante y Expandido ── */
[data-theme="light"] .calendar-floating-widget {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 0 20px rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .calendar-floating-widget.expanded {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 0 40px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .calendar-floating-widget.expanded .calendar-back-btn {
  background: rgba(30, 50, 80, 0.06);
  color: var(--text-primary);
}

[data-theme="light"] .calendar-nav-btn {
  background: rgba(30, 50, 80, 0.06);
  color: var(--text-primary);
}

[data-theme="light"] .calendar-day-cell {
  background: rgba(30, 50, 80, 0.04);
}

[data-theme="light"] .calendar-day-cell:hover {
  background: rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .calendar-day-cell.has-events {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .calendar-day-cell.has-events:hover {
  background: rgba(37, 99, 235, 0.22);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .calendar-day-cell.today {
  border-color: var(--accent-blue);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .calendar-day-cell.selected {
  background: rgba(37, 99, 235, 0.2) !important;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .calendar-event-dot {
  background: var(--primary);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.5);
}

[data-theme="light"] .calendar-day-modal-card {
  background: hsl(215, 25%, 97%);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 35px rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .calendar-day-modal-header {
  background: rgba(37, 99, 235, 0.04);
  border-bottom-color: rgba(30, 50, 80, 0.1);
}

[data-theme="light"] .calendar-course-item-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(30, 50, 80, 0.1);
}

[data-theme="light"] .calendar-course-item-card:hover {
  background: rgba(37, 99, 235, 0.05);
}

[data-theme="light"] .calendar-backdrop-overlay {
  background: rgba(10, 20, 50, 0.4);
}

/* ── 8. Asistente y Quiz ── */
[data-theme="light"] .quiz-container {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(30, 50, 80, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .quiz-header {
  border-bottom-color: rgba(30, 50, 80, 0.1);
}

[data-theme="light"] .quiz-header p {
  color: var(--text-secondary);
}

[data-theme="light"] .quiz-question-title span {
  color: var(--text-primary);
}

[data-theme="light"] .quiz-option-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(30, 50, 80, 0.12);
}

[data-theme="light"] .quiz-option-card:hover {
  background: rgba(240, 245, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .quiz-option-card:has(input[type="radio"]:checked),
[data-theme="light"] .quiz-option-card.checked {
  background: rgba(235, 243, 255, 0.95);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .quiz-option-card .option-text {
  color: var(--text-primary);
}

[data-theme="light"] .result-badge {
  color: #1d4ed8;
}

[data-theme="light"] .result-desc {
  color: var(--text-secondary);
}

[data-theme="light"] .result-meta span {
  color: var(--text-secondary);
}

[data-theme="light"] .quiz-progress-bar {
  background: rgba(30, 50, 80, 0.08);
}

/* ── 9. Preguntas Frecuentes (FAQ) ── */
[data-theme="light"] .faq-item {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(30, 50, 80, 0.12);
}

[data-theme="light"] .faq-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .faq-item.active {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .faq-question h3 {
  color: var(--text-primary);
}

[data-theme="light"] .faq-answer p {
  color: var(--text-secondary);
}

[data-theme="light"] .faq-contact-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 245, 255, 0.9) 100%);
  border-color: rgba(37, 99, 235, 0.25);
}

/* ── 10. Bolsa de Trabajo y Carreras ── */
[data-theme="light"] .career-card,
[data-theme="light"] .job-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(30, 50, 80, 0.12);
}

[data-theme="light"] .career-card:hover,
[data-theme="light"] .job-card:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .job-department-tag {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .benefit-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(30, 50, 80, 0.1);
}

[data-theme="light"] .benefit-card:hover {
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ── 11. Modales y Formularios ── */
[data-theme="light"] .modal-container.glass-card,
[data-theme="light"] .auth-modal-card,
[data-theme="light"] .modal-wrapper {
  background: #ffffff;
  border-color: rgba(30, 50, 80, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 0 35px rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .modal-header {
  border-bottom-color: rgba(30, 50, 80, 0.1);
}

[data-theme="light"] .form-group label {
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-primary);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .form-group select option {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .auth-tab {
  color: var(--text-secondary);
}

[data-theme="light"] .auth-tab:hover {
  color: var(--text-primary);
}

[data-theme="light"] .auth-tab.active {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .auth-footer-links a {
  color: var(--primary);
}

[data-theme="light"] .auth-footer-links a:hover {
  color: var(--primary-hover);
}

/* ── 12. DatePicker / TimePicker ── */
[data-theme="light"] .datetime-picker-popover {
  background: hsl(215, 25%, 97%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .dtp-tab-bar {
  background: rgba(30, 50, 80, 0.08);
}

[data-theme="light"] .dtp-clock-display {
  background: rgba(30, 50, 80, 0.06);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .dtp-clock-val {
  color: var(--primary);
}

[data-theme="light"] .dtp-clock-btn {
  background: rgba(30, 50, 80, 0.08);
  color: var(--text-primary);
}

/* ── 13. Panel de Administrador y Galería ── */
[data-theme="light"] .admin-tab-btn {
  background: rgba(30, 50, 80, 0.05);
  color: var(--text-secondary);
}

[data-theme="light"] .admin-tab-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--text-primary);
}

[data-theme="light"] .gallery-image-card {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .gallery-image-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .gallery-image-thumb-wrapper {
  background: hsl(215, 20%, 88%);
}

[data-theme="light"] .gallery-image-badge {
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .gallery-picker-card {
  background: hsl(215, 25%, 97%);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 0 35px rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .gallery-picker-item {
  background: rgba(30, 50, 80, 0.04);
}

[data-theme="light"] .gallery-picker-item:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

/* ── 14. Panel de Perfil de Usuario ── */
[data-theme="light"] .profile-stat-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(30, 50, 80, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .stat-icon-wrapper.completados {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="light"] .stat-icon-wrapper.progreso {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.3);
}

[data-theme="light"] .stat-icon-wrapper.horas {
  background: rgba(147, 51, 234, 0.12);
  color: #9333ea;
  border-color: rgba(147, 51, 234, 0.3);
}

[data-theme="light"] .stat-icon-wrapper.certificados {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.3);
}

[data-theme="light"] .profile-tab-btn {
  color: var(--text-secondary);
}

[data-theme="light"] .profile-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(30, 50, 80, 0.06);
}

[data-theme="light"] .profile-tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* ── 15. Tablas y Certificados ── */
[data-theme="light"] .admin-cert-table-wrapper {
  background: #ffffff;
  border-color: rgba(30, 50, 80, 0.12);
}

[data-theme="light"] .admin-cert-table th {
  background: rgba(30, 50, 80, 0.04);
  color: var(--text-secondary);
  border-bottom-color: rgba(30, 50, 80, 0.1);
}

[data-theme="light"] .admin-cert-table td {
  color: var(--text-primary);
  border-bottom-color: rgba(30, 50, 80, 0.08);
}

[data-theme="light"] .admin-cert-table tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

[data-theme="light"] .cert-drag-dropzone {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.35);
}

[data-theme="light"] .cert-drag-dropzone:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--primary);
}

[data-theme="light"] .quiz-editor-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(30, 50, 80, 0.12);
}

/* ── 16. Testimonios y Footer ── */
[data-theme="light"] .testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(30, 50, 80, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .testimonial-avatar {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .testimonial-stars {
  color: #f59e0b;
}

[data-theme="light"] .footer {
  background: #f1f5f9;
  border-top: 1px solid rgba(30, 50, 80, 0.1);
}

[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-bottom p {
  color: var(--text-secondary);
}

[data-theme="light"] .footer-links a:hover {
  color: var(--primary);
}

[data-theme="light"] .social-link {
  background: rgba(30, 50, 80, 0.06);
  color: var(--text-secondary);
  border-color: rgba(30, 50, 80, 0.1);
}

[data-theme="light"] .social-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ── 17. Blur orbs ── */
[data-theme="light"] .blur-orb {
  opacity: 0.12;
}

/* ── 18. Iconos, Flechas, Botones de Cierre (x) y Símbolos en Modo Claro ── */
[data-theme="light"] .modal-close-btn,
[data-theme="light"] .calendar-day-modal-close,
[data-theme="light"] .gallery-picker-header button,
[data-theme="light"] button.modal-close-btn {
  background: rgba(30, 50, 80, 0.08) !important;
  color: #1e293b !important;
  border-color: rgba(30, 50, 80, 0.15) !important;
  opacity: 1 !important;
}

[data-theme="light"] .modal-close-btn i,
[data-theme="light"] .calendar-day-modal-close i,
[data-theme="light"] .modal-close-btn span,
[data-theme="light"] .calendar-day-modal-close span {
  color: #1e293b !important;
}

[data-theme="light"] .modal-close-btn:hover,
[data-theme="light"] .calendar-day-modal-close:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #dc2626 !important;
}

[data-theme="light"] .modal-close-btn:hover i,
[data-theme="light"] .calendar-day-modal-close:hover i {
  color: #dc2626 !important;
}

/* Flechas y Botones de Navegación */
[data-theme="light"] .calendar-back-btn,
[data-theme="light"] .calendar-floating-widget.expanded .calendar-back-btn {
  background: rgba(30, 50, 80, 0.08) !important;
  color: #1e293b !important;
  border-color: rgba(30, 50, 80, 0.15) !important;
}

[data-theme="light"] .calendar-back-btn i,
[data-theme="light"] .calendar-back-btn:hover i {
  color: inherit !important;
}

[data-theme="light"] .calendar-nav-btn {
  background: rgba(30, 50, 80, 0.08) !important;
  color: #1e293b !important;
  border-color: rgba(30, 50, 80, 0.15) !important;
}

[data-theme="light"] .calendar-nav-btn i {
  color: #1e293b !important;
}

[data-theme="light"] .calendar-nav-btn:hover i {
  color: #ffffff !important;
}

[data-theme="light"] .dtp-clock-btn {
  background: rgba(30, 50, 80, 0.08) !important;
  color: #1e293b !important;
  border-color: rgba(30, 50, 80, 0.15) !important;
}

[data-theme="light"] .dtp-clock-btn i {
  color: #1e293b !important;
}

[data-theme="light"] .dtp-clock-btn:hover i {
  color: #ffffff !important;
}

/* Botones de Tema y Menú Móvil */
[data-theme="light"] .theme-toggle-btn {
  color: #1e293b !important;
}

[data-theme="light"] .theme-toggle-btn i {
  color: #1e293b !important;
}

[data-theme="light"] .menu-toggle-btn {
  color: #1e293b !important;
}

[data-theme="light"] .menu-toggle-btn i {
  color: #1e293b !important;
}

/* Iconos de Cursos, Eventos, Acordeones y Flechas */
[data-theme="light"] .faq-icon,
[data-theme="light"] .faq-item i.fas {
  color: #2563eb !important;
}

[data-theme="light"] .quiz-controls .btn-outline i {
  color: inherit !important;
}

[data-theme="light"] .course-meta i,
[data-theme="light"] .event-card i.fa-calendar,
[data-theme="light"] .event-card i.fa-map-marker-alt,
[data-theme="light"] .event-card i.fa-user-tie {
  color: #2563eb !important;
}

[data-theme="light"] .btn-remove-image,
[data-theme="light"] .btn-remove-image i {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   SISTEMA DE RESPONSIVIDAD MAESTRO (MÓVILES, TABLETAS Y PANTALLAS PEQUEÑAS)
   ========================================================================== */

/* ── Reglas Generales de Prevención de Desborde Horizontal ── */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ── Pantallas de hasta 1024px (Tabletas y Laptops compactas) ── */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
  }
  
  .hero-text p {
    max-width: 650px;
    margin: 0 auto 32px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .contact-grid,
  .verification-wrapper,
  .careers-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ── Pantallas de hasta 900px (Tabletas en vertical y teléfonos grandes) ── */
@media (max-width: 900px) {
  /* Calendario Flotante en Eventos */
  .calendar-floating-widget {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 32px 0 !important;
    transform: none !important;
  }

  .calendar-floating-widget .calendar-expand-hint {
    margin-bottom: 12px;
  }

  .calendar-floating-widget.expanded {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    padding: 20px !important;
  }
}

/* ── Pantallas de hasta 768px (Móviles estándar y Phablets) ── */
@media (max-width: 768px) {
  /* Header y Navegación */
  .header {
    padding: 0;
  }

  .nav-container {
    padding: 14px 16px;
  }

  .logo {
    font-size: 1.15rem;
    gap: 8px;
  }

  .logo img {
    height: 38px;
    width: auto;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .nav-actions .btn-text {
    display: none !important;
  }

  .nav-actions .btn-contact {
    display: inline-flex !important;
    padding: 8px 10px !important;
    font-size: 0.85rem !important;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
  }

  .nav-actions [style*="display: none"],
  .nav-actions [style*="display:none"] {
    display: none !important;
  }

  .nav-actions .btn-sm:not([style*="display: none"]):not([style*="display:none"]) {
    padding: 8px 10px !important;
    font-size: 0.85rem !important;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .theme-toggle-btn,
  .menu-toggle-btn {
    font-size: 1.2rem;
    padding: 6px;
  }

  .nav-menu {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 20px 16px;
    gap: 12px;
  }

  /* Secciones y Espaciados */
  .section {
    padding: 60px 16px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    margin-bottom: 12px;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  /* Hero Section */
  .hero {
    padding: 110px 16px 50px;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
    margin-top: 24px;
  }

  .hero-stats .stat-item {
    padding: 14px 10px;
  }

  .hero-stats .stat-item:last-child {
    grid-column: span 2;
  }

  .hero-grid-item {
    height: 130px;
  }

  .hero-grid-item.wide {
    height: 160px;
  }

  /* Filtros horizontales deslizables para móviles */
  .filter-container,
  .events-filter-bar {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 28px;
    scrollbar-width: none;
  }

  .filter-container::-webkit-scrollbar,
  .events-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn,
  .event-filter-btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.84rem;
    flex-shrink: 0;
  }

  /* Cursos Grid */
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .course-card .course-img-wrapper {
    height: 190px;
  }

  .course-content {
    padding: 20px 16px;
  }

  .course-content h3 {
    font-size: 1.15rem;
  }

  /* Eventos y Tarjeta Destacada */
  .featured-event-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }

  .featured-event-card .event-countdown {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Calendario Móvil */
  .calendar-day-header {
    font-size: 0.65rem;
    padding: 4px 0;
  }

  .calendar-day-cell {
    min-height: 42px;
    padding: 3px;
  }

  .calendar-day-number {
    font-size: 0.78rem;
  }

  .calendar-month-display {
    font-size: 0.95rem;
    min-width: 120px;
  }

  /* Modal de Cursos del Día en Calendario */
  .calendar-day-modal-card {
    width: 95vw !important;
    max-height: 90vh !important;
    border-radius: 16px !important;
  }

  .calendar-day-modal-header {
    padding: 14px 16px;
  }

  .calendar-day-modal-title {
    font-size: 1.05rem;
  }

  .calendar-day-modal-body {
    padding: 14px 16px;
  }

  .calendar-course-item-card {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .calendar-course-item-card img {
    width: 100% !important;
    height: 130px !important;
  }

  /* Asistente / Quiz */
  #quiz-section {
    margin-top: 30px !important;
    padding: 40px 12px !important;
  }

  .quiz-container {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .quiz-question-title {
    font-size: 1.15rem !important;
    line-height: 1.35;
    margin-bottom: 16px;
    text-align: center;
  }

  .quiz-option-card {
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .quiz-controls {
    flex-direction: column-reverse;
    gap: 10px;
    width: 100%;
  }

  .quiz-controls > div,
  .quiz-controls .btn {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* Verificación de Certificados */
  .verification-wrapper {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .verif-search-box .form-group {
    flex-direction: column;
  }

  .verif-search-box .btn {
    width: 100%;
    justify-content: center;
  }

  .diploma-border {
    padding: 14px 10px;
    outline-width: 3px;
    outline-offset: -5px;
  }

  .diploma-border::after {
    display: none; /* Evitar que el sello tape texto en pantallas angostas */
  }

  .diploma-student-name {
    font-size: 1.15rem;
    padding: 0 6px 4px;
    word-break: break-word;
  }

  .diploma-course-name {
    font-size: 0.95rem;
  }

  .diploma-signatures {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }

  .diploma-footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 0.65rem;
  }

  .verif-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .verif-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Carreras y Bolsa de Trabajo */
  .career-card,
  .job-card {
    padding: 20px 16px;
  }

  .career-form-wrapper {
    padding: 20px 16px;
  }

  /* FAQ Accordion */
  .faq-item {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  /* Modales en Móviles */
  .modal-overlay {
    padding: 10px;
  }

  .modal-container,
  .auth-modal-card,
  .modal-small,
  .modal-medium,
  .modal-large {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 16px !important;
    border-radius: 16px !important;
    max-height: 92vh !important;
  }

  .modal-close-btn {
    top: 10px !important;
    right: 10px !important;
  }

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

  /* Botón Flotante WhatsApp */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 18px;
    right: 18px;
    font-size: 26px;
  }

  .whatsapp-float i {
    font-size: 26px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ── Pantallas muy pequeñas (< 380px como iPhone SE, Galaxy Mini) ── */
@media (max-width: 380px) {
  .logo span {
    display: none;
  }

  .hero-text h1 {
    font-size: 1.75rem !important;
  }

  .badge {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .calendar-day-cell {
    min-height: 36px;
  }

  .calendar-day-number {
    font-size: 0.72rem;
  }
}