/* ==========================================================================
   Profesor Gabriel - Cosmo-Ecológico Design System
   Fusión de Cielo Estelar, Cordillera de los Andes, Tecnología y Pedagogía
   ========================================================================== */

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

:root {
  /* Paleta Base Cósmica & Andina */
  --bg-space: #030712;
  --bg-night-sky: #070d1e;
  --bg-deep-blue: #0b1528;
  --bg-card: rgba(13, 23, 42, 0.68);
  --bg-card-hover: rgba(20, 35, 65, 0.78);
  --bg-glass-subtle: rgba(255, 255, 255, 0.04);

  /* Acentos de Luz & Naturaleza */
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.35);
  --accent-violet: #a855f7;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-teal: #14b8a6;

  /* Bordes & Sombras */
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-bright: rgba(255, 255, 255, 0.22);
  --border-glow: rgba(56, 189, 248, 0.3);
  --shadow-deep: 0 20px 45px -15px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 30px -5px rgba(56, 189, 248, 0.25);
  --shadow-emerald: 0 0 30px -5px rgba(16, 185, 129, 0.3);

  /* Tipografía */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Textos */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #e0f2fe;

  /* Layout */
  --nav-height: 74px;
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Temas Dinámicos */
body.theme-nebulosa {
  --accent-emerald: #ec4899;
  --accent-cyan: #c084fc;
  --accent-emerald-glow: rgba(236, 72, 153, 0.35);
  --border-glow: rgba(192, 132, 252, 0.35);
}

body.theme-aurora {
  --accent-emerald: #34d399;
  --accent-cyan: #2dd4bf;
  --accent-emerald-glow: rgba(52, 211, 153, 0.45);
  --border-glow: rgba(45, 212, 191, 0.35);
}

body.theme-srdongabo {
  --accent-emerald: #f59e0b;
  --accent-cyan: #e1306c;
  --accent-emerald-glow: rgba(245, 158, 11, 0.4);
  --border-glow: rgba(225, 48, 108, 0.45);
  --shadow-emerald: 0 0 35px -5px rgba(225, 48, 108, 0.35);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Canvas Cósmico Fijo de Fondo */
#cosmos-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Contenedor Principal con capas */
.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ==========================================================================
   Barra de Navegación Glassmorphic
   ========================================================================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(3, 7, 18, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-nav.scrolled {
  background: rgba(7, 13, 30, 0.88);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(56, 189, 248, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.35rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
  transition: var(--transition-smooth);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-selector {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 0.2rem;
  gap: 0.2rem;
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.theme-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-andino { background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot-atardecer { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.dot-cosmos { background: #a855f7; box-shadow: 0 0 6px #a855f7; }

.theme-btn.active {
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  color: #030712;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section: Cosmos y Montañas (Diseño Limpio y Espacioso)
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: calc(var(--nav-height) + 2.8rem);
  padding-bottom: 7.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.12);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  backdrop-filter: blur(8px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

/* Botones con estilo estelar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #0284c7 100%);
  color: #030712;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(56, 189, 248, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass-bright);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Tarjeta Holográfica del Hero */
.hero-avatar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.85rem 1.75rem;
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(6, 12, 28, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: var(--shadow-deep), 0 0 35px -10px rgba(56, 189, 248, 0.18);
  backdrop-filter: blur(16px);
  text-align: center;
}

.avatar-halo {
  position: relative;
  width: 135px;
  height: 135px;
  margin-bottom: 1.15rem;
}

.avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(56, 189, 248, 0.4);
  animation: rotate-slow 28s linear infinite;
  pointer-events: none;
}

.avatar-ring-inner {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-emerald);
  box-shadow: 0 0 20px var(--accent-emerald-glow);
  pointer-events: none;
}

.avatar-img-box {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 8px 25px rgba(0, 0, 0, 0.35);
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
  user-select: none;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-avatar-card:hover .avatar-photo {
  transform: scale(1.08);
}

.hero-profile-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hero-profile-role {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mini-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Siluetas de Montañas Andinas en la base del Hero */
.mountain-horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.mountain-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mountain-layer svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Centro de Monitoreo en Vivo (Clima, Vientos, Radiación UV, Dólar, Población, Luna)
   ========================================================================== */
.monitoring-section {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
  margin-bottom: 5.5rem;
}

.monitoring-dashboard {
  background: linear-gradient(135deg, rgba(13, 23, 42, 0.92), rgba(8, 15, 32, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: var(--shadow-deep), 0 0 45px -10px rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  backdrop-filter: blur(24px);
}

.monitoring-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

.monitoring-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse-glow 1.5s infinite;
}

.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.widget-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.widget-card:hover {
  border-color: var(--border-glow);
  background: rgba(20, 35, 65, 0.65);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.widget-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.widget-content {
  flex: 1;
  min-width: 0;
}

.widget-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Status pills para UV */
.uv-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.uv-green { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.uv-yellow { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.4); }
.uv-orange { background: rgba(249, 115, 22, 0.2); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.4); }
.uv-red { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.uv-purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }

.pulse-number {
  color: var(--accent-emerald) !important;
  transition: color 0.3s ease;
}

/* Moon visual en el dashboard */
.moon-visual-box {
  width: 52px;
  height: 52px;
  position: relative;
  flex-shrink: 0;
}

.moon-sphere {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

.moon-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #090e1a;
  border-radius: 50%;
  transition: opacity 0.5s ease;
}

.moon-craters {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 40%, rgba(0,0,0,0.15) 3px, transparent 4px),
                    radial-gradient(circle at 65% 30%, rgba(0,0,0,0.12) 5px, transparent 6px),
                    radial-gradient(circle at 50% 70%, rgba(0,0,0,0.18) 4px, transparent 5px);
  pointer-events: none;
}

/* Controles del Encabezado de Monitoreo */
.monitoring-header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.monitoring-sync-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Widget Especial: Selector de Atmósfera & Estilo Visual (Recuadro Tipo Widget) */
.widget-theme-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 27, 75, 0.4));
  border: 1px solid rgba(168, 85, 247, 0.28);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.45rem;
  transition: var(--transition-smooth);
}

.widget-theme-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 8px 24px -4px rgba(168, 85, 247, 0.2);
}

.widget-theme-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.widget-theme-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.widget-theme-info .widget-title {
  font-size: 0.85rem;
  color: #c084fc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.widget-theme-info .widget-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Estética & Componentes Instagram @srdongabo
   ========================================================================== */
.instagram-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.35);
  transition: var(--transition-smooth);
}

.instagram-pill:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(220, 39, 67, 0.55);
}

.instagram-avatar-ring {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 3px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 25px rgba(225, 48, 108, 0.4);
}

.handle-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fda4af;
  background: rgba(225, 48, 108, 0.15);
  border: 1px solid rgba(225, 48, 108, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

/* Feed / Galería de Crónicas de Terreno @srdongabo */
.stories-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 48, 108, 0.5);
  box-shadow: var(--shadow-deep), 0 0 30px rgba(225, 48, 108, 0.25);
}

.story-visual-box {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #0b1528;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-badge-top {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid var(--border-glass);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.story-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.story-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.story-caption {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.story-footer-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #f43f5e;
  font-weight: 600;
  text-decoration: none;
}

.story-footer-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Sección: Pilares Formativos & Visión Pedagógica
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.8rem;
}

.section-pretitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.pillar-card {
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep), var(--shadow-glow);
}

.card-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
}

.pillar-card:nth-child(2) .pillar-icon-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(52, 211, 153, 0.25));
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
}

.pillar-card:nth-child(3) .pillar-icon-box {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(56, 189, 248, 0.2));
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--accent-violet);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.pillar-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.pillar-action-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pillar-action-list li {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pillar-action-list li::before {
  content: '✦';
  color: var(--accent-emerald);
  font-size: 0.8rem;
}

/* ==========================================================================
   Sección: Directorio de Portales y Recursos Educativos
   ========================================================================== */
.resources-section {
  background: linear-gradient(180deg, transparent 0%, rgba(7, 13, 30, 0.7) 30%, rgba(7, 13, 30, 0.7) 70%, transparent 100%);
  padding: 6rem 0;
}

.resources-controls-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2.8rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-deep);
}

.search-and-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 600px;
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1.2rem 0.85rem 3.1rem;
  background: rgba(3, 7, 18, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.resources-count-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.resource-filter-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.resource-filter-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.filter-row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  min-width: 110px;
  flex-shrink: 0;
}

.category-pills,
.type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
}

.category-pill,
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-pill:hover,
.type-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: var(--border-glass-bright);
}

.category-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(56, 189, 248, 0.3));
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

.type-pill.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(56, 189, 248, 0.3));
  border-color: #a855f7;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
  font-weight: 600;
}

/* Grid de Recursos Compacto y Visual */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.resource-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-deep), var(--shadow-glow);
  transform: translateY(-2px);
}

.resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

/* Insignia de Clasificación de Tipo de Uso (Simulador, Software, 3D, etc.) */
.resource-classification-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.resource-classification-badge .use-badge-icon svg {
  width: 12px;
  height: 12px;
  display: block;
}

.badge-use-simulador {
  background: rgba(6, 182, 212, 0.18);
  color: #a5f3fc;
  border: 1px solid rgba(6, 182, 212, 0.45);
}

.badge-use-software {
  background: rgba(168, 85, 247, 0.18);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.badge-use-archivo {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.badge-use-portal {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.45);
}

.badge-use-3d {
  background: rgba(249, 115, 22, 0.18);
  color: #fed7aa;
  border: 1px solid rgba(249, 115, 22, 0.45);
}

.badge-use-biodiversidad {
  background: rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

/* Insignia de Asignatura Curricular */
.resource-subject-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.resource-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.resource-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.resource-icon-box svg {
  width: 20px;
  height: 20px;
}

.resource-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.resource-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Visión pedagógica compacta pero preservada */
.pedagogic-box.compact {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--accent-emerald);
  padding: 0.45rem 0.65rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0.75rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #cbd5e1;
}

.pedagogic-box.compact .pedagogic-icon {
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.pedagogic-box.compact .pedagogic-text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #e2e8f0;
}

.resource-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-resource-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.85rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-pill);
  color: var(--accent-cyan);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-resource-action:hover {
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
  color: #030712;
  border-color: transparent;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.no-results-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-lg);
}

.no-results-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  color: var(--accent-emerald);
}

/* ==========================================================================
   Sección: Bitácora de Proyectos & Expediciones
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-deep), var(--shadow-emerald);
}

.project-header-visual {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1528, #064e3b);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-visual-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(3, 7, 18, 0.8));
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid var(--border-glass);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.project-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.project-impact {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--accent-emerald);
  font-weight: 500;
}

/* ==========================================================================
   Sección: Contacto & Buzón Pedagógico
   ========================================================================== */
.contact-section {
  padding-bottom: 7rem;
}

.contact-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(13, 23, 42, 0.85), rgba(7, 13, 30, 0.95));
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-deep), 0 0 50px -10px rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(20px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(3, 7, 18, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px var(--accent-emerald-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-feedback {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-top: 1.25rem;
  display: none;
}

.form-feedback.show {
  display: block;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: #6ee7b7;
}

.form-feedback.error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid var(--accent-rose);
  color: #fda4af;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(3, 7, 18, 0.9);
  padding: 3.5rem 0 2rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  border-left: 2px solid var(--accent-cyan);
  padding-left: 1rem;
  margin-top: 1rem;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.footer-links-list a:hover {
  color: var(--accent-emerald);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-avatar-card {
    max-width: 460px;
    margin: 0 auto;
  }
  .monitoring-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .monitoring-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .monitoring-dashboard {
    padding: 1.4rem 1.15rem;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--nav-height));
    background: rgba(7, 13, 30, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2.5rem 1.8rem;
    align-items: flex-start;
    border-left: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-toggle {
    display: block;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .search-and-count {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-card {
    padding: 1.75rem;
  }
}

@media (max-width: 580px) {
  .brand-sub {
    display: none;
  }
  .theme-selector {
    padding: 0.15rem;
    gap: 0.15rem;
  }
  .theme-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   AstroBot: Laboratorio de Programación (Scratch + Lightbot)
   ========================================================================== */
.astrobot-game-section {
  position: relative;
  padding: 5rem 0;
  background: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
}

.astrobot-workbench {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  margin-top: 1.5rem;
}

/* Barra Superior de Misión */
.astrobot-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 2rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(3, 7, 18, 0.5);
  flex-wrap: wrap;
}

.astro-mission-info {
  flex: 1;
  min-width: 280px;
}

.astro-badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.astro-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.astro-hint-pill {
  font-size: 0.8rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.astro-level-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.astro-level-instruction {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Selector de Niveles */
.astro-level-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.astro-level-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.astro-level-pills {
  display: flex;
  gap: 0.4rem;
}

.level-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.level-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-2px);
}

.level-pill-btn.active {
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  color: #030712;
  border-color: transparent;
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.level-pill-btn .star-icon {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.65rem;
}

/* Grid Principal de 2 Columnas */
.astrobot-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 480px;
}

/* Panel 1: Escenario 3D */
.astro-stage-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-glass);
  background: rgba(7, 13, 28, 0.4);
}

.stage-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stage-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Controles de Rotación 3D del Laberinto */
.stage-rotation-controls {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 0.2rem;
  gap: 0.35rem;
}

.btn-stage-rotate {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-stage-rotate:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.view-compass-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #38bdf8;
  padding: 0.2rem 0.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.canvas-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
  background: #030712;
  cursor: grab;
}

.canvas-wrapper:active {
  cursor: grabbing;
}

.canvas-drag-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(3, 7, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

#astrobot-canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.stage-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-tile { background: #475569; border: 1px solid #64748b; }
.legend-target { background: #1d4ed8; border: 1px solid #93c5fa; }
.legend-lit { background: #10b981; border: 1px solid #6ee7b7; }
.legend-bot { background: #38bdf8; border-radius: 50%; }

/* Panel 2: Espacio de Programación Scratch */
.astro-code-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.3);
  gap: 1.15rem;
}

.panel-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.toolbox-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.toolbox-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Paleta de Bloques Scratch (con F1 y Bucle) */
.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.toolbox-command-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.6rem 0.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.toolbox-command-btn .cmd-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.toolbox-command-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.toolbox-command-btn:active {
  transform: translateY(0);
}

/* Colores estilo Scratch para cada comando */
.btn-cmd-forward {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: #3b82f6;
}
.btn-cmd-left {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border-color: #fbbf24;
}
.btn-cmd-right {
  background: linear-gradient(135deg, #c2410c, #ea580c);
  border-color: #fb923c;
}
.btn-cmd-jump {
  background: linear-gradient(135deg, #047857, #059669);
  border-color: #10b981;
}
.btn-cmd-light {
  background: linear-gradient(135deg, #ca8a04, #eab308);
  border-color: #fde047;
  color: #0f172a;
}
.btn-cmd-f1 {
  background: linear-gradient(135deg, #7e22ce, #9333ea);
  border-color: #c084fc;
}
.btn-cmd-loop {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  border-color: #67e8f9;
}

/* Pestañas de Edición: MAIN vs Función F1 */
.program-tabs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.program-tabs-bar {
  display: inline-flex;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 0.25rem;
  gap: 0.3rem;
}

.program-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
}

.program-tab-btn:hover {
  color: #ffffff;
}

.program-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(16, 185, 129, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

.program-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.optimal-hint {
  color: var(--accent-emerald);
  margin-left: 0.25rem;
}

/* Cola de Programa Ensamblado (Diseño Expandido con Vista Completa) */
.program-queue-container {
  flex: 1;
  min-height: 180px;
  max-height: 380px;
  background: rgba(3, 7, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  align-content: flex-start;
  gap: 0.5rem;
}

.empty-program-hint {
  grid-column: 1 / -1;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  gap: 0.5rem;
  padding: 1.5rem;
}

/* Bloque Scratch en la Cuadrícula Expandida */
.scratch-block {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left-width: 4px;
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  gap: 0.45rem;
  transition: var(--transition-smooth);
  animation: fadeIn 0.2s ease-out;
  user-select: none;
}

.scratch-block:hover {
  background: rgba(51, 65, 85, 0.95);
  transform: translateY(-1px);
}

.scratch-block.executing-active {
  background: rgba(14, 165, 233, 0.35);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  transform: scale(1.04);
}

.block-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  min-width: 14px;
}

.block-icon {
  font-size: 1rem;
  line-height: 1;
}

.block-label {
  flex: 1;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.block-remove-btn:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.2);
}

/* Bloque Bucle Estilo Corchete (Scratch / Blockly C-Block) */
.scratch-block-loop {
  grid-column: 1 / -1;
  background: rgba(8, 28, 48, 0.78);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-left: 4px solid #06b6d4;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: var(--transition-smooth);
  animation: fadeIn 0.2s ease-out;
  position: relative;
}

.scratch-block-loop:hover {
  background: rgba(12, 38, 66, 0.9);
  border-color: rgba(6, 182, 212, 0.55);
}

.scratch-block-loop.loop-executing-active {
  border-color: #38bdf8;
  background: rgba(14, 45, 80, 0.85);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.loop-bracket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 1px dashed rgba(6, 182, 212, 0.25);
  padding-bottom: 0.45rem;
}

.loop-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.loop-title-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  color: #38bdf8;
  letter-spacing: 0.02em;
}

.loop-select-wrapper {
  display: inline-flex;
  align-items: center;
}

.loop-count-select {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.6);
  border-radius: 4px;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.loop-count-select:hover,
.loop-count-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.loop-times-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: #e2e8f0;
  font-weight: 600;
}

.loop-iter-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid #06b6d4;
  color: #67e8f9;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  animation: pulse-glow 1.2s infinite;
}

.loop-bracket-body {
  margin-left: 0.75rem;
  padding-left: 0.9rem;
  border-left: 3px solid rgba(6, 182, 212, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.loop-inner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 38px;
  align-items: center;
}

.loop-empty-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.3rem 0;
}

.loop-inner-block {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left-width: 3px;
  border-radius: 5px;
  padding: 0.3rem 0.6rem;
  gap: 0.4rem;
  font-size: 0.8rem;
  user-select: none;
  transition: var(--transition-smooth);
}

.loop-inner-block:hover {
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-1px);
}

.loop-inner-block.executing-active {
  background: rgba(14, 165, 233, 0.4);
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
  transform: scale(1.06);
}

.inner-step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
}

.inner-block-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.78rem;
}

.inner-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0 0.2rem;
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.inner-remove-btn:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.2);
}

.loop-add-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(6, 182, 212, 0.2);
}

.loop-add-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.loop-add-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.btn-loop-add {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.btn-loop-add:hover {
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-loop-add-fwd:hover { background: rgba(37, 99, 235, 0.35); border-color: #2563eb; color: #93c5fd; }
.btn-loop-add-tl:hover { background: rgba(245, 158, 11, 0.35); border-color: #f59e0b; color: #fde68a; }
.btn-loop-add-tr:hover { background: rgba(234, 88, 12, 0.35); border-color: #ea580c; color: #fed7aa; }
.btn-loop-add-jump:hover { background: rgba(5, 150, 105, 0.35); border-color: #059669; color: #a7f3d0; }
.btn-loop-add-light:hover { background: rgba(234, 179, 8, 0.35); border-color: #eab308; color: #fef08a; }
.btn-loop-add-f1:hover { background: rgba(147, 51, 234, 0.35); border-color: #9333ea; color: #e9d5ff; }

.loop-bracket-footer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(6, 182, 212, 0.75);
  margin-left: 0.75rem;
  padding-top: 0.2rem;
  font-weight: 600;
}

/* Barra de Ejecución */
.execution-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-glass);
}

.btn-group-main {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-exec {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-exec:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

.btn-run {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}
.btn-run:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.btn-pause {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
}
.btn-pause:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.25);
}

.btn-reset {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-color: var(--border-glass);
}
.btn-reset:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-clear {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}
.btn-clear:hover {
  background: rgba(239, 68, 68, 0.2);
}

.speed-control-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.speed-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.speed-select {
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  outline: none;
}

/* Modal de Victoria AstroBot */
.astro-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.astro-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.astro-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}

.astro-modal-card {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(7, 13, 30, 0.98));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(16, 185, 129, 0.25);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.astro-modal.show .astro-modal-card {
  transform: scale(1);
}

.modal-confetti-badge {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.modal-stars {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.3rem;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.6));
}

.modal-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Responsividad para AstroBot */
@media (max-width: 980px) {
  .astrobot-grid-layout {
    grid-template-columns: 1fr;
  }
  .astro-stage-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
  }
  .toolbox-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 640px) {
  .astrobot-topbar {
    padding: 1rem 1.25rem;
  }
  .astro-stage-panel, .astro-code-panel {
    padding: 1.15rem;
  }
  .toolbox-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .btn-group-main {
    width: 100%;
    justify-content: space-between;
  }
  .speed-control-group {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Repositorio Digital & Entrega de Archivos Google Drive
   ========================================================================== */
.drive-repository-section {
  position: relative;
  padding: 5rem 0;
  background: radial-gradient(circle at 50% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}

/* Banner Principal de la Carpeta Oficial */
.drive-folder-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(7, 13, 30, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.85rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(16px);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.drive-folder-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 280px;
}

.drive-logo-box {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.drive-folder-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.4rem;
}

.drive-folder-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.drive-folder-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.folder-id-code {
  font-family: var(--font-mono);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.8rem;
}

.drive-folder-actions {
  flex-shrink: 0;
}

/* Tarjeta del Visor Embebido Google Drive */
.gdrive-embedded-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 3rem;
}

.gdrive-embedded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(3, 7, 18, 0.6);
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 1rem;
}

.gdrive-header-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.gdrive-header-title svg {
  color: var(--accent-cyan);
}

.gdrive-view-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-gdrive-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-gdrive-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-gdrive-toggle.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(16, 185, 129, 0.25));
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.gdrive-iframe-container {
  position: relative;
  width: 100%;
  background: #ffffff;
  min-height: 450px;
}

.gdrive-iframe-container iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
}

.gdrive-embed-footer {
  padding: 0.75rem 1.5rem;
  background: rgba(3, 7, 18, 0.75);
  border-top: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.gdrive-embed-footer svg {
  color: #fbbf24;
  flex-shrink: 0;
}

/* Catálogo de Descargas Directas por Tarjetas */
.drive-files-catalog {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.catalog-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.catalog-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.drive-filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.drive-filter-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.drive-filter-pill.active {
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  color: #030712;
  border-color: transparent;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.catalog-search-box {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  min-width: 260px;
}

.catalog-search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.catalog-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  width: 100%;
}

.catalog-search-box input::placeholder {
  color: var(--text-muted);
}

.catalog-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.direct-download-hint {
  color: var(--accent-emerald);
}

/* Grilla de Tarjetas de Archivos */
.drive-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.drive-file-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.drive-file-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.15);
}

.file-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.file-format-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid transparent;
  letter-spacing: 0.04em;
}

.file-size-info {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.file-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.file-card-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.15rem;
  flex: 1;
}

.file-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.file-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.file-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.file-date-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.file-actions-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-file-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-file-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
  filter: brightness(1.1);
}

.btn-file-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-file-preview:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
}

.empty-files-hint {
  grid-column: 1 / -1;
  background: rgba(15, 23, 42, 0.4);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-md);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

/* Acciones del Catálogo & Botón Indexar */
.catalog-actions-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-add-file-trigger {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.2));
  border: 1px solid var(--accent-emerald);
  color: #34d399;
  padding: 0.5rem 1rem;
  min-height: 40px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-add-file-trigger:hover {
  background: var(--accent-emerald);
  color: #030712;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-emerald-glow);
}

/* Modal de Indexación de Archivos */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1000;
}

.modal-dialog {
  background: #0b1528;
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.2);
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(15, 23, 42, 0.6);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close-btn:hover { color: #ffffff; }

.modal-body-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-height: 78vh;
  overflow-y: auto;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-glass);
}

/* Etiquetas Interactivas y Badges en Tarjetas */
.file-tag-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.file-tag-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-1px);
}

.file-custom-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.btn-file-delete {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.btn-file-delete:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
}

.is-custom-card {
  border-color: rgba(16, 185, 129, 0.35);
}

/* Responsividad para Repositorio Google Drive */
@media (max-width: 900px) {
  .widget-theme-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .widget-theme-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .catalog-actions-box {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .btn-add-file-trigger {
    justify-content: center;
    width: 100%;
  }
  .drive-folder-banner {
    padding: 1.4rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .drive-folder-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .drive-folder-actions {
    width: 100%;
  }
  .drive-folder-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .catalog-top-row {
    flex-direction: column;
    align-items: stretch;
  }
  .catalog-search-box {
    width: 100%;
  }
  .drive-files-grid {
    grid-template-columns: 1fr;
  }
  .gdrive-iframe-container iframe {
    height: 360px;
  }
}

/* ==========================================================================
   EXPLORADOR CURRICULAR MINEDUC (CHILE)
   ========================================================================== */
.curriculum-section {
  position: relative;
  z-index: 2;
}

.curriculum-explorer-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.curriculum-tabs-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: rgba(3, 7, 18, 0.7);
  border-bottom: 1px solid var(--border-glass);
  gap: 1px;
}

.curriculum-tab-btn {
  background: rgba(15, 23, 42, 0.4);
  border: none;
  padding: 1rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  position: relative;
}

.curriculum-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.curriculum-tab-btn.active {
  background: rgba(15, 23, 42, 0.95);
}

.curriculum-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  box-shadow: 0 0 10px var(--accent-cyan);
}

.curriculum-tab-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-cyan);
  transition: transform 0.2s;
}

.curriculum-tab-btn.active .curriculum-tab-icon {
  transform: scale(1.08);
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
}

.curriculum-tab-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.curriculum-tab-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.curriculum-tab-grade {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.curriculum-panel-view {
  padding: 2rem;
  border-left: 4px solid var(--accent-cyan);
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.05), transparent 70%);
}

.curriculum-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1.5rem;
}

.panel-header-title-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 680px;
}

.panel-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-subject-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.panel-grade-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.panel-mineduc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.panel-subject-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.panel-header-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Barra de Búsqueda Rápida en Curriculum */
.curriculum-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 240px;
}

.curriculum-search-box .search-icon-inline {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.curriculum-search-input {
  width: 100%;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 0.5rem 2rem 0.5rem 2.2rem;
  color: #f1f5f9;
  font-size: 0.82rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.curriculum-search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.btn-clear-curriculum-search {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.btn-clear-curriculum-search:hover {
  color: #ffffff;
}

/* Barra de Filtro de Nivel Escolar (Pills) */
.curriculum-grade-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  background: rgba(3, 7, 18, 0.4);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.grade-filter-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.grade-filter-pills-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-grade-pill {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-grade-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-grade-pill.active {
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.grade-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.grade-pill-count {
  font-size: 0.7rem;
  opacity: 0.75;
  font-family: var(--font-mono);
}

/* Barra de Sub-filtro por Unidad */
.curriculum-unit-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: -0.65rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  background: rgba(15, 23, 42, 0.45);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(56, 189, 248, 0.25);
}

.unit-filter-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.unit-filter-pills-wrap {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-unit-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-unit-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-unit-pill.active {
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Grilla de Unidades */
.curriculum-units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.35rem;
}

.curriculum-unit-card {
  background: rgba(3, 7, 18, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.curriculum-unit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.curriculum-unit-card.is-unit-open {
  background: rgba(15, 23, 42, 0.85);
}

.curriculum-unit-card.is-unit-closed .unit-card-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.btn-ver-oas:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.btn-guardar-oas:hover,
.btn-guardar-oas-header:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.unit-card-header {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.unit-card-top-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.unit-grade-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.unit-number-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.unit-oa-counter {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.unit-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.unit-desc-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.unit-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.unit-oa-section-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.unit-oa-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.oa-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.oa-code-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
  margin-top: 0.1rem;
}

.oa-text-body {
  flex: 1;
}

.curriculum-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  background: rgba(3, 7, 18, 0.4);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-md);
}

.curriculum-empty-state .empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.curriculum-empty-state h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.curriculum-empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================================================
   PESTAÑAS DE REPOSITORIO & ENTREGAS DE ESTUDIANTES
   ========================================================================== */
.drive-main-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.drive-tab-pill {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.2s ease;
}

.drive-tab-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.drive-tab-pill.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.25));
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

.student-deliveries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.student-delivery-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: transform 0.25s, box-shadow 0.25s;
}

.student-delivery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   VISOR MODAL UNIVERSAL DE DOCUMENTOS ADJUNTOS EN VIVO
   ========================================================================== */
.doc-viewer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease-out;
}

.doc-viewer-dialog {
  background: #0b1329;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1050px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(6, 182, 212, 0.2);
  transition: all 0.3s ease;
}

.doc-viewer-dialog.is-fullscreen {
  max-width: 98vw;
  height: 96vh;
}

.doc-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  background: rgba(3, 7, 18, 0.9);
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.doc-viewer-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 60%;
}

.doc-viewer-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.doc-viewer-badge-format {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.doc-viewer-badge-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.doc-viewer-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-viewer-tool {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-viewer-tool:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
}

.btn-viewer-close {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 1.4rem;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 0.25rem;
}

.btn-viewer-close:hover {
  background: #ef4444;
  color: #ffffff;
}

.doc-viewer-body {
  flex: 1;
  background: #030712;
  position: relative;
  overflow: hidden;
}

.doc-viewer-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #030712;
}

/* ==========================================================================
   SECCIÓN DE PLATAFORMAS EDUCATIVAS & EXTRAS
   ========================================================================== */
.extras-section {
  position: relative;
  z-index: 2;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.extra-platform-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.extra-platform-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.card-aula-conectada:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 20px 45px rgba(16, 185, 129, 0.15);
}

.card-artes-unidad3:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 20px 45px rgba(168, 85, 247, 0.15);
}

.extra-card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
}

.glow-emerald {
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
}

.glow-purple {
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
}

.extra-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.extra-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-backpack {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.icon-palette {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.extra-badge-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.extra-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.badge-live {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.badge-curriculum {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.extra-level-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
}

.extra-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.extra-platform-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.extra-platform-subtitle {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  line-height: 1.4;
}

.card-artes-unidad3 .extra-platform-subtitle {
  color: #d8b4fe;
}

.extra-platform-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.extra-features-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.extra-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.extra-features-list li svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.extra-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.btn-extra-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
}

.extra-path-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .extras-grid {
    grid-template-columns: 1fr;
  }
  .extra-platform-card {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Unidad 3 de Artes Visuales - Sección Showcase Curricular
   ========================================================================== */
.artes-unidad3-section {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(168, 85, 247, 0.09) 0%, transparent 70%);
}

.artes-showcase-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(168, 85, 247, 0.32);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7), 0 0 35px -5px rgba(168, 85, 247, 0.18);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.artes-showcase-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 45px -5px rgba(168, 85, 247, 0.3);
}

.artes-card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.artes-header-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.artes-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.artes-badge.badge-grade {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #e9d5ff;
}

.artes-badge.badge-time {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.artes-badge.badge-oa {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.artes-badge.badge-live {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.artes-showcase-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.artes-showcase-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 950px;
  margin-bottom: 2rem;
}

.artes-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.artes-feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.artes-feature-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-3px);
}

.artes-feat-icon {
  font-size: 1.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.artes-feat-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.artes-feat-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.artes-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-artes-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-artes-launch:hover {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.55);
}

.artes-path-indicator {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .artes-showcase-card {
    padding: 1.5rem;
  }
  .artes-showcase-title {
    font-size: 1.35rem;
  }
  .artes-features-grid {
    grid-template-columns: 1fr;
  }
  .artes-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   EquisUvePalitoPalito: Sección y Vista Previa del Conversor Interactivo
   ========================================================================== */
.equisuve-section {
  position: relative;
  padding: 5rem 0;
  background: radial-gradient(circle at 50% 12%, rgba(245, 158, 11, 0.09) 0%, transparent 65%);
}

/* Tarjeta Principal de Presentación y Acceso */
.equisuve-showcase-header {
  background: linear-gradient(135deg, rgba(30, 27, 20, 0.85), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(245, 158, 11, 0.12);
  backdrop-filter: blur(16px);
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.equisuve-header-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 280px;
}

.equisuve-icon-badge {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
}

.equisuve-title-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.equisuve-pill-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.equisuve-desc-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 680px;
}

.equisuve-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.btn-equisuve-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-equisuve-launch:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(245, 158, 11, 0.55);
}

.equisuve-modules-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Banco de Trabajo: Vista Previa del Conversor */
.equisuve-workbench {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

.equisuve-preview-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

.equisuve-preview-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.equisuve-preview-helper {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Grilla de Entradas Duales */
.equi-inputs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.equi-input-card {
  background: rgba(2, 6, 23, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: var(--transition);
  position: relative;
}

.equi-input-card:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.arabic-card:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.equi-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.equi-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.arabic-badge-color {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.roman-badge-color {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.equi-field-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.equi-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.equi-primary-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.equi-roman-input {
  font-family: var(--font-display), 'Times New Roman', serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fbbf24;
  padding-right: 5.5rem;
}

.equi-primary-input:focus {
  border-color: #f59e0b;
  background: rgba(15, 23, 42, 0.95);
}

.equi-copy-btn {
  position: absolute;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.equi-copy-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}

.equi-copy-btn.copied {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #6ee7b7;
}

.equi-field-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.equi-swap-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.equi-swap-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

/* Teclado Virtual Romano */
.equi-keypad-panel {
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.75rem;
}

.equi-keypad-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.equi-keypad-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.equi-keypad-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display), serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.equi-keypad-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  transform: translateY(-1px);
}

.equi-keypad-btn.action-key {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.equi-keypad-btn.action-key:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

/* Caja de Estado / Errores Pedagógicos */
.equi-status-box {
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  backdrop-filter: blur(10px);
}

.equi-status-box.status-info {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.equi-status-box.status-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.equi-status-box.status-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.equi-status-content {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.equi-status-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* Presets Históricos */
.equi-presets-panel {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.equi-preset-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.equi-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.equi-preset-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.equi-preset-pill:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  transform: translateY(-1px);
}

.equi-preset-pill.pill-chile {
  border-color: rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

.equi-preset-pill.pill-chile:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
}

/* Deslizador Continuo */
.equi-slider-panel {
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 2rem;
}

.equi-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.equi-slider-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.equi-slider-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.equi-step-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.equi-step-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}

.equi-step-btn.step-rnd {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
}

.equi-step-btn.step-rnd:hover {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
}

.equi-range-slider {
  flex: 1;
  min-width: 140px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
  accent-color: #f59e0b;
}

/* Área de Desglose Visual */
.equi-breakdown-wrapper {
  margin-top: 1.5rem;
}

.equi-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(2, 6, 23, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
}

.equi-empty-state .empty-icon {
  font-size: 2.75rem;
  display: block;
  margin-bottom: 0.75rem;
}

.equi-empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Hero Pill Bar */
.equi-hero-pill-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  flex-wrap: wrap;
}

.equi-pill-val {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.equi-pill-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.equi-pill-num {
  font-size: 1.85rem;
  font-weight: 900;
}

.equi-pill-num.arabic-gold {
  color: #38bdf8;
}

.equi-pill-num.roman-amber {
  font-family: var(--font-display), serif;
  color: #fbbf24;
  letter-spacing: 2px;
}

.equi-pill-sep {
  font-size: 1.6rem;
  color: rgba(245, 158, 11, 0.6);
}

/* Bloques del Desglose */
.equi-breakdown-block {
  margin-bottom: 2.25rem;
}

.equi-block-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.equi-block-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.equi-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.equi-block-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Tarjetas Posicionales */
.equi-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.equi-place-card {
  background: rgba(2, 6, 23, 0.55);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.equi-place-card.is-additive {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.08);
}

.equi-place-card.is-subtractive {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12);
}

.equi-place-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.equi-place-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.equi-place-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
}

.equi-place-roman {
  text-align: center;
  margin: 0.65rem 0;
}

.equi-token-badge {
  font-family: var(--font-display), serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  display: inline-block;
  padding: 0.2rem 0.85rem;
  border-radius: var(--radius-sm);
}

.equi-token-badge.add-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.equi-token-badge.sub-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.equi-rule-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-bottom: 0.35rem;
}

.equi-rule-pill.add-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.equi-rule-pill.sub-pill {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.equi-rule-formula {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.equi-token-pile {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.equi-mini-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  font-family: var(--font-display), serif;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Tira de la Ecuación */
.equi-equation-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.5rem;
}

.equi-eq-token {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.equi-eq-token.is-add {
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.equi-eq-token.is-sub {
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.equi-eq-token .token-sym {
  font-family: var(--font-display), serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.equi-eq-token .token-val {
  font-size: 0.75rem;
  opacity: 0.8;
}

.equi-eq-op {
  font-size: 1.25rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
}

.equi-eq-result {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
}

.equi-eq-result .res-roman {
  font-family: var(--font-display), serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 1px;
}

.equi-eq-result .res-num {
  font-size: 0.82rem;
  color: #fde68a;
}

/* Ábaco Romano con Ranuras */
.equi-abacus-wrapper {
  background: rgba(2, 6, 23, 0.65);
  border: 2px solid #854d0e;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.equi-abacus-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.equi-abacus-bronze-plate {
  font-family: var(--font-display), serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ca8a04;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  padding: 0.25rem 1.25rem;
  border: 1.5px solid #ca8a04;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #422006, #1c1917);
  margin-bottom: 1.25rem;
}

.equi-abacus-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 680px;
}

.equi-abacus-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
}

.equi-col-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.65rem;
}

.equi-col-header .col-symbol {
  font-family: var(--font-display), serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fbbf24;
}

.equi-col-header .col-name {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.equi-col-header .col-digit {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  margin-top: 0.2rem;
}

.equi-groove {
  position: relative;
  width: 48px;
  background: #090d16;
  border: 2px solid #334155;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
}

.groove-upper {
  height: 52px;
}

.groove-lower {
  height: 145px;
}

.groove-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #475569;
  transform: translateX(-50%);
  z-index: 1;
}

.equi-groove-divider {
  width: 60px;
  height: 8px;
  background: linear-gradient(90deg, #78350f, #b45309, #78350f);
  border-radius: 2px;
  margin: 5px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.equi-bead {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eab308, #a16207);
  border: 1.5px solid #fef08a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 2px;
}

.equi-bead .bead-text {
  font-family: var(--font-display), serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #422006;
}

.upper-bead.is-idle {
  margin-top: 0;
  opacity: 0.45;
  filter: grayscale(40%);
}

.upper-bead.is-active {
  margin-top: 20px;
  opacity: 1;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
}

.bead-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

.stack-active .equi-bead {
  opacity: 1;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.stack-idle .equi-bead {
  opacity: 0.45;
  filter: grayscale(40%);
}

.equi-col-footer {
  margin-top: 0.5rem;
}

.col-formula-tag {
  font-size: 0.72rem;
  color: #fbbf24;
  font-weight: 700;
}

.equi-abacus-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: center;
}

.equi-abacus-legend span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-active {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

.dot-idle {
  background: #475569;
}

/* Pie de la Sección con Botón Secundario de Lanzamiento */
.equisuve-footer-cta {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(2, 6, 23, 0.7));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.equisuve-footer-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.equisuve-footer-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Responsividad para EquisUvePalitoPalito */
@media (max-width: 900px) {
  .equi-inputs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .equi-swap-divider {
    transform: rotate(90deg);
  }
  .equisuve-showcase-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .equisuve-header-actions {
    align-items: flex-start;
    width: 100%;
  }
  .btn-equisuve-launch {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .equisuve-workbench {
    padding: 1.25rem;
  }
  .equi-abacus-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .equisuve-footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .equi-pill-num {
    font-size: 1.4rem;
  }
}
