/* ==========================================================================
   ESCONUDI (eUDI) - Modern Design System & Interactive Stylesheet
   ========================================================================== */

/* --- CSS Variables & Theme Design Tokens --- */
:root {
  /* Dark Theme Default Palette */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-alt: #161e31;
  --bg-glass: rgba(17, 24, 39, 0.7);
  --bg-glass-card: rgba(22, 30, 49, 0.65);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(0, 242, 254, 0.3);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-violet: #7f00ff;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-wa: #25d366;
  --accent-tg: #0088cc;

  --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7f00ff 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  --gradient-hero: radial-gradient(circle at 50% 0%, rgba(127, 0, 255, 0.25) 0%, rgba(11, 15, 25, 0) 70%);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-violet-glow: 0 0 30px rgba(127, 0, 255, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-card: rgba(255, 255, 255, 0.8);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(79, 172, 254, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --gradient-hero: radial-gradient(circle at 50% 0%, rgba(79, 172, 254, 0.15) 0%, rgba(248, 250, 252, 0) 70%);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(79, 172, 254, 0.2);
}

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

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

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

/* Background Canvas */
#bg-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
  pointer-events: none !important;
  opacity: 0.4 !important;
  display: block !important;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glassmorphism General Helper */
.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-glow);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-glass-card);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-whatsapp {
  background: var(--accent-wa);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #1eb957;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.btn-telegram {
  background: var(--accent-tg);
  color: #ffffff;
}

.btn-telegram:hover {
  background: #0077b5;
  box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass-card);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: scale(1.05);
}

/* Badge Pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.2rem;
}

.badge-pill.centered {
  margin-left: auto;
  margin-right: auto;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: padding var(--transition-fast);
}

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

.brand-logo {
  margin-right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
}

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

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  line-height: 1.15;
  transition: all var(--transition-fast);
}

.nav-link span {
  display: inline-block;
  text-align: left;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 9rem;
  padding-bottom: 5rem;
  background: var(--gradient-hero);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
}

.stat-plus, .stat-percent {
  font-size: 1.5rem;
  color: var(--accent-blue);
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Hero Canvas Card */
.interactive-node-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-violet-glow);
}

.node-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.status-live {
  color: var(--accent-emerald);
  font-size: 0.8rem;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 340px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
}

#interactive-nodes-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  pointer-events: none;
}

/* ==========================================================================
   Section Base & Header
   ========================================================================== */
.section {
  padding: 6rem 0;
}

.alt-bg {
  background: var(--bg-secondary);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Workshops Section Cards
   ========================================================================== */
.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 500px));
  justify-content: center;
  gap: 2rem;
}

.workshop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.card-badge {
  position: relative;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.badge-ia {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.badge-reqursos {
  background: rgba(127, 0, 255, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(127, 0, 255, 0.3);
}

.workshop-image-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.speaker-avatar-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.reqursos-avatar {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.speaker-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.speaker-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.workshop-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.workshop-hook {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.workshop-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.meta-item i {
  color: var(--accent-cyan);
}

.workshop-learn-highlights h5 {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.workshop-learn-highlights ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.workshop-learn-highlights li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.workshop-learn-highlights li i {
  color: var(--accent-emerald);
  margin-top: 3px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  gap: 0.8rem;
}

.card-footer .btn {
  flex: 1;
}

/* ==========================================================================
   Nodos Grid Section
   ========================================================================== */
.nodos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.node-feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.node-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
}

.bg-cyan { background: linear-gradient(135deg, #00f2fe, #4facfe); }
.bg-violet { background: linear-gradient(135deg, #7f00ff, #e100ff); }
.bg-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.bg-rose { background: linear-gradient(135deg, #f43f5e, #fb7185); }

.node-feature-card h3 {
  font-size: 1.25rem;
}

.node-feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   ReQursos Section
   ========================================================================== */
.reqursos-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  align-items: center;
  background: linear-gradient(135deg, rgba(127, 0, 255, 0.15), rgba(0, 242, 254, 0.05));
  border: 1px solid rgba(127, 0, 255, 0.3);
}

.reqursos-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(127, 0, 255, 0.2);
  color: #d8b4fe;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.reqursos-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.reqursos-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.reqursos-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.floating-mug-card {
  background: var(--bg-glass-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-violet-glow);
  animation: float 4s ease-in-out infinite;
}

.floating-mug-card i {
  font-size: 3.5rem;
  color: #ec4899;
}

.floating-mug-card span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

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

/* ==========================================================================
   Contacto Grid
   ========================================================================== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contacto-info, .contacto-form-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.contacto-info h3, .contacto-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.contacto-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--border-glass);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.channel-card:hover {
  transform: translateX(6px);
  border-color: var(--accent-cyan);
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.channel-card.wa .channel-icon { background: var(--accent-wa); }
.channel-card.tg .channel-icon { background: var(--accent-tg); }
.channel-card.ig .channel-icon { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.channel-details h4 {
  font-size: 1.05rem;
}

.channel-details p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.channel-card .arrow {
  margin-left: auto;
  color: var(--text-muted);
}

/* Contact Form */
.form-group {
  margin-bottom: 1.2rem;
}

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

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(0,0,0,0.2);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

select option, select optgroup {
  background-color: #0d1322 !important;
  color: #ffffff !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

.form-toast {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-emerald);
  color: #34d399;
  font-size: 0.9rem;
  text-align: center;
}

.hidden { display: none !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem 0;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 400px;
}

.footer-links h4, .footer-social h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-icons a:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Modales Informáticos
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 1.5rem;
}

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

.modal-content {
  position: relative;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-violet-glow);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent-rose);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.8rem;
  margin-top: 0.5rem;
}

.modal-speaker {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.modal-body {
  margin-bottom: 2rem;
}

.lead-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-body h4 {
  font-size: 1.1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--accent-cyan);
}

.modal-info-list, .temario-list {
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.modal-info-list li, .temario-list li {
  margin-bottom: 0.5rem;
}

.modal-footer {
  text-align: right;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.2rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .reqursos-box, .contacto-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transition: left var(--transition-normal);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .reqursos-box {
    padding: 1.8rem 1.2rem;
  }
  .reqursos-content h2 {
    font-size: 1.6rem;
  }
  .reqursos-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .valores-cloud {
    gap: 0.5rem;
  }
  .valor-tag {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}



/* --- Subpage Header Spacing & Title Size Fixes --- */
.socio-title, .te-title {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin-top: 0.8rem !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: -0.5px !important;
}

@media (max-width: 768px) {
  .socio-title, .te-title {
    font-size: 1.75rem !important;
  }
}

.section-anchor {
  scroll-margin-top: 6.5rem !important;
}

/* ==========================================================================
   Floating FAQ Chatbot Widget (eUDI Virtual Assistant)
   ========================================================================== */
.chatbot-widget-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
}

.chatbot-toggle-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe 0%, #7f00ff 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.chatbot-toggle-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(127, 0, 255, 0.6);
}

.chatbot-badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid #0b0f19;
  border-radius: 50%;
}

.chatbot-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(127, 0, 255, 0.2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe, #7f00ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.chatbot-title h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.chatbot-title span {
  font-size: 0.75rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: color 0.2s;
}

.chatbot-close-btn:hover {
  color: #fff;
}

.chatbot-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scroll-behavior: smooth;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: fadeInMsg 0.3s ease;
}

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

.chat-bubble.bot {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #0b0f19;
  font-weight: 600;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.chat-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.quick-reply-btn {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  padding: 0.55rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-reply-btn:hover {
  background: rgba(0, 242, 254, 0.25);
  color: #fff;
  transform: translateX(4px);
}

.chatbot-footer {
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 15, 25, 0.8);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  padding: 0.65rem 1rem;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.chatbot-input:focus {
  border-color: #00f2fe;
}

.chatbot-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe, #7f00ff);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.chatbot-send-btn:hover {
  transform: scale(1.08);
}