/* ==========================================================================
   CECiD UNLu - Design System & Modern Stylesheet
   Palette: Data Science Emerald, Deep Cyber Slate, Mint & Glow
   Multi-Page Website & Interactive Map Styles
   ========================================================================== */

:root {
  --bg-primary: #0b111e;
  --bg-secondary: #111a2d;
  --bg-tertiary: #17233d;
  --bg-card: rgba(19, 31, 54, 0.75);
  --bg-card-hover: rgba(26, 42, 73, 0.9);
  --bg-glass: rgba(16, 26, 46, 0.65);
  --border-glass: rgba(34, 197, 94, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Brand Colors from CECiD Logo & UNLu Identity */
  --primary: #00d26a;
  --primary-hover: #00b85c;
  --primary-glow: rgba(0, 210, 106, 0.35);
  --accent-teal: #06b6d4;
  --accent-cyan: #38bdf8;
  --accent-green-dark: #0f5132;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;

  /* Social Brands */
  --brand-instagram: #e1306c;
  --brand-discord: #5865f2;
  --brand-facebook: #1877f2;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #4ade80;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --max-width: 1200px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Animated Canvas */
#data-network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

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

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

/* ==========================================================================
   Top Banner
   ========================================================================== */
.election-top-banner {
  background: linear-gradient(90deg, #093b22, #0d5431, #0a3d24);
  border-bottom: 1px solid rgba(74, 222, 128, 0.25);
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  position: relative;
  z-index: 100;
}

.banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  text-align: center;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.banner-btn {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: #fff;
  transition: all var(--transition-fast);
}

.banner-btn:hover {
  background: var(--primary);
  color: #0b111e;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 17, 30, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal);
}

.nav-container {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.nav-side-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-logo {
  display: block;
  flex-shrink: 0;
}

.brand-logo-cecid {
  height: 46px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-brand {
  justify-self: center;
  max-width: min(680px, calc(100vw - 240px));
  min-width: 0;
  text-align: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.nav-menu {
  position: absolute;
  top: 100%;
  z-index: 100;
  left: max(1rem, calc((100% - var(--max-width)) / 2 + 1.5rem));
  width: min(340px, calc(100vw - 2rem));
  max-height: min(540px, calc(100vh - 110px));
  overflow-y: auto;
  background: rgba(11, 17, 30, 0.98);
  backdrop-filter: blur(14px);
  flex-direction: column;
  align-items: stretch;
  padding: 0.65rem;
  gap: 0.25rem;
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  display: none;
}

.nav-menu.open {
  display: flex;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.65rem 0.75rem;
  white-space: normal;
  border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0;
  width: 3px;
  height: auto;
  background: var(--primary);
  border-radius: 2px;
}

.nav-link.highlight-pill {
  background: rgba(0, 210, 106, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 210, 106, 0.3);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-link.highlight-pill:hover {
  background: var(--primary);
  color: #0b111e;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
}

.brand-logo-unlu {
  height: 44px;
  width: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-toggle {
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.4rem;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(0, 210, 106, 0.12);
  border-color: var(--border-glass);
}

.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   Hero & Page Headers
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, rgba(0, 210, 106, 0.15) 0%, rgba(11, 17, 30, 0) 70%);
}

.hero-container {
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(0, 210, 106, 0.1);
  border: 1px solid rgba(0, 210, 106, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #00d26a 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Page Hero for Subpages */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 210, 106, 0.12) 0%, rgba(11, 17, 30, 0) 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.blog-card-visual {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 75% 25%, rgba(56, 189, 248, 0.36), transparent 40%), linear-gradient(135deg, #123d36, #17233d);
}

.blog-card-visual span {
  color: rgba(248, 250, 252, 0.9);
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 600;
}

.blog-card-visual img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.blog-visual-data {
  background: radial-gradient(circle at 25% 35%, rgba(56, 189, 248, 0.4), transparent 42%), linear-gradient(135deg, #123443, #17233d);
}

.blog-visual-community {
  background: radial-gradient(circle at 75% 25%, rgba(0, 210, 106, 0.36), transparent 40%), linear-gradient(135deg, #164334, #17233d);
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 245px;
}

.blog-category {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card h2 {
  font-size: 1.18rem;
  margin: 0.65rem 0;
}

.blog-card h2 a:hover,
.blog-read-link:hover,
.blog-related-link:hover {
  color: var(--primary);
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.blog-read-link,
.blog-related-link {
  color: var(--accent-cyan);
  font-size: 0.86rem;
  font-weight: 700;
  margin-top: auto;
}

.blog-card-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}

.blog-card-featured .blog-card-visual {
  height: 100%;
}

.blog-card-featured .blog-card-content {
  justify-content: center;
}

.home-news-grid .blog-card-featured,
.home-news-card {
  grid-column: auto;
  display: flex;
  flex-direction: column;
}

.home-news-card .blog-card-content {
  min-height: 245px;
}

.blog-articles {
  max-width: 860px;
}

.blog-article {
  scroll-margin-top: 100px;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-article:first-child {
  padding-top: 0;
}

.blog-article:last-child {
  border-bottom: 0;
}

.blog-article h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0.55rem 0 1rem;
}

.blog-article p {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.blog-article .blog-related-link {
  display: inline-block;
  margin-top: 0.35rem;
}

.supabase-status {
  min-height: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.supabase-status:empty {
  display: none;
}

.supabase-status.success {
  color: var(--primary);
}

.supabase-status.error {
  color: #fca5a5;
}

.database-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.database-event-card {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.database-event-cover {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

.database-event-content {
  padding: 1.5rem;
}

.database-event-content .event-date {
  margin-bottom: 0.75rem;
}

.database-event-content .event-title {
  margin-bottom: 0.75rem;
}

.database-event-content .event-lead,
.database-event-content .event-text {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary);
  color: #0b111e;
  box-shadow: 0 4px 18px var(--primary-glow);
}

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

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-outline:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(0, 210, 106, 0.05);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 210, 106, 0.4);
}

.stat-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: 4.5rem 1.5rem;
}

.section-dark {
  background: rgba(14, 23, 41, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

.subheading {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   Mapa Interactivo de la UNLu & Sedes (mapa.html)
   ========================================================================== */
.map-controls-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.map-view-tabs {
  display: flex;
  gap: 0.5rem;
}

.map-tab-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.map-tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.map-tab-btn.active {
  background: var(--primary);
  color: #0b111e;
  border-color: var(--primary);
  font-weight: 700;
}

.sede-quick-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sede-quick-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.btn-sede-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sede-chip:hover {
  color: #fff;
  border-color: var(--primary);
}

.btn-sede-chip.active {
  background: rgba(0, 210, 106, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* Map Frame & Leaflet Custom Dark Styling */
.map-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  margin-bottom: 3.5rem;
}

.interactive-map-frame {
  height: 520px;
  width: 100%;
  background: #111a2d;
  z-index: 10;
}

/* Leaflet Custom Overrides */
.leaflet-container {
  font-family: var(--font-sans) !important;
}

.leaflet-popup-content-wrapper {
  background: #111a2d !important;
  color: #f8fafc !important;
  border: 1px solid rgba(74, 222, 128, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
  padding: 4px !important;
}

.leaflet-popup-tip {
  background: #111a2d !important;
}

.leaflet-popup-content h4 {
  color: #00d26a;
  font-size: 1rem;
  margin-bottom: 4px;
}

.leaflet-popup-content p {
  color: #94a3b8;
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.4;
}

/* Floating overlay */
.map-info-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 20;
  background: rgba(11, 17, 30, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.overlay-header {
  margin-bottom: 0.5rem;
}

.overlay-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
  text-transform: uppercase;
}

.overlay-header h3 {
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.overlay-address {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.overlay-features {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  margin-bottom: 1rem;
}

.overlay-features strong {
  color: var(--text-main);
}

/* Campus Croquis */
.campus-croquis-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
}

.croquis-header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.croquis-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.croquis-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.campus-layout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}

.campus-map-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.campus-zone-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all var(--transition-fast);
}

.campus-zone-box:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.campus-zone-box.active-zone {
  border-color: var(--primary);
  background: rgba(15, 81, 50, 0.4);
  box-shadow: 0 0 16px var(--primary-glow);
}

.zone-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.zone-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}

.zone-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.zone-badge.highlight-badge {
  color: var(--primary);
  font-weight: 700;
}

.campus-middle-row,
.campus-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.campus-bottom-row {
  grid-template-columns: 1fr 1fr;
}

/* Zone Detail Card */
.campus-zone-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.detail-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: block;
}

.detail-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.detail-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.detail-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.detail-meta strong {
  color: var(--text-main);
}

/* Transport Cards */
.transport-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.transport-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.transport-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

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

.bus-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
}

.bus-operator {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.transport-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.bus-routes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.bus-routes-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.bus-routes-list strong {
  color: var(--text-main);
}

.ticket-tag {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 210, 106, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

/* ==========================================================================
   Portal Grid (Home Navigation Cards)
   ========================================================================== */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.portal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 210, 106, 0.15);
}

.portal-card.highlight-portal {
  background: linear-gradient(135deg, rgba(23, 35, 61, 0.9), rgba(15, 81, 50, 0.35));
  border-color: rgba(74, 222, 128, 0.35);
}

.portal-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.portal-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(0, 210, 106, 0.15);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.portal-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.portal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.portal-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Event Banner Card (Home highlight) */
.event-banner-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.event-banner-content {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-banner-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.event-banner-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.event-banner-media {
  position: relative;
  background: #000;
}

.event-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* ==========================================================================
   Participaciones & Eventos (participaciones.html)
   ========================================================================== */
.event-featured-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  margin-bottom: 2rem;
}

.event-featured-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.event-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.event-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.35rem;
}

.event-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

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

/* Expo Highlights Grid */
.expo-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.expo-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.expo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 106, 0.4);
}

.expo-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.expo-card h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.expo-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Deepdive Grid */
.expo-deepdive {
  background: rgba(11, 17, 30, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.deepdive-title {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.deepdive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.deepdive-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.deepdive-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 0.35rem;
}

.deepdive-box h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.deepdive-box p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Practical Info & Transport */
.expo-practical-info {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.practical-col h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.practical-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.practical-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.2rem;
}

.practical-list li::before {
  content: '•';
  color: var(--primary);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.practical-list strong {
  color: var(--text-main);
}

.practical-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.buses-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bus-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-main);
}

.bus-pill.highlight-bus {
  background: rgba(0, 210, 106, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* CACIC 2026 Card */
.cacic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.cacic-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.cacic-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

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

.cacic-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cacic-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pillar-bullet {
  color: var(--primary);
  font-weight: 800;
}

.cacic-photo-frame {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cacic-photo {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.cacic-caption {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

/* ==========================================================================
   Biblioteca Digital Estudiantil & Banco de Recursos
   ========================================================================== */
.library-toolbar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.library-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.2rem;
  transition: border-color var(--transition-fast);
}

.library-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.library-search-box svg {
  color: var(--text-dim);
}

.library-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  width: 100%;
}

.library-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lib-filter-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lib-filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.lib-filter-btn.active {
  background: var(--primary);
  color: #0b111e;
  border-color: var(--primary);
  font-weight: 700;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.library-empty-state {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.library-empty-state h2 {
  margin-bottom: 0.75rem;
  color: #fff;
}

.library-empty-state p {
  color: var(--text-muted);
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 210, 106, 0.12);
}

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

.resource-type-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.type-apuntes { background: rgba(0, 210, 106, 0.15); color: var(--primary); }
.type-guias { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }
.type-examenes { background: rgba(245, 158, 11, 0.15); color: var(--accent-yellow); }
.type-cheatsheets { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.type-propuestas { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.resource-format-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.resource-materia {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}

.resource-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.resource-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.resource-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-top: auto;
}

.resource-author {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.btn-download-resource {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.btn-download-resource:hover {
  text-decoration: underline;
}

/* Contribute Banner */
.contribute-banner {
  background: linear-gradient(135deg, rgba(17, 26, 45, 0.9), rgba(15, 81, 50, 0.4));
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contribute-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 750px;
}

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

.contribute-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.contribute-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Propuestas & Proyectos del CECiD
   ========================================================================== */
.proposals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.proposal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.proposal-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.proposal-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.status-active {
  background: rgba(0, 210, 106, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 210, 106, 0.3);
}

.status-progress {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.proposal-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.proposal-title {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.proposal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.proposal-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.proposal-meta strong {
  color: var(--text-main);
}

/* ==========================================================================
   Nuestro Equipo
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 106, 0.4);
}

.team-card.highlight-card {
  background: linear-gradient(135deg, rgba(23, 35, 61, 0.8), rgba(15, 81, 50, 0.25));
  border-color: rgba(74, 222, 128, 0.4);
}

.team-avatar-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.team-avatar-gradient {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0f5132, #00d26a);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.team-avatar-gradient.highlight {
  background: linear-gradient(135deg, #0284c7, #00d26a);
}

.team-avatar-gradient[src] {
  object-fit: cover;
}

.team-role-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.team-cargo {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

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

.vocales-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
}

.vocales-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.vocales-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.vocal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
}

.vocal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ==========================================================================
   Plan de Estudios Interactivo & Recursos
   ========================================================================== */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.quick-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.quick-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.quick-link-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(0, 210, 106, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-link-icon svg {
  width: 22px;
  height: 22px;
}

.quick-link-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.quick-link-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.external-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.quick-link-card:hover .external-arrow {
  color: var(--primary);
}

.plan-tool-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.plan-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.plan-tool-title {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.plan-tool-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-progress-wrapper {
  min-width: 240px;
}

.plan-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.plan-progress-info strong {
  color: var(--primary);
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d26a, #38bdf8);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.cuatri-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--primary);
  color: #0b111e;
  border-color: var(--primary);
  font-weight: 700;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.subject-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subject-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.subject-card.approved {
  background: rgba(15, 81, 50, 0.35);
  border-color: var(--primary);
}

.subject-card.available {
  border-color: rgba(56, 189, 248, 0.4);
}

.subject-card.locked {
  opacity: 0.65;
  filter: grayscale(0.4);
}

.subject-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.subject-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.subject-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.subject-card.approved .subject-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.subject-card.approved .subject-checkbox::after {
  content: '✓';
  color: #0b111e;
  font-size: 0.75rem;
  font-weight: 800;
}

.subject-name {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.subject-cuatri {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.subject-correlatives {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.4rem;
}

.subject-status-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.subject-card.approved .subject-status-badge {
  background: rgba(0, 210, 106, 0.15);
  color: var(--primary);
}

.subject-card.available .subject-status-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.subject-card.locked .subject-status-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.plan-tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.legend-color.approved { background: var(--primary); }
.legend-color.available { background: var(--accent-cyan); }
.legend-color.locked { background: var(--accent-red); opacity: 0.7; }

/* ==========================================================================
   Sedes Cards
   ========================================================================== */
.sedes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.sede-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.sede-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 210, 106, 0.15);
}

.sede-card.featured {
  border-color: rgba(56, 189, 248, 0.4);
}

.sede-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.sede-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 106, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sede-icon svg {
  width: 24px;
  height: 24px;
}

.sede-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
}

.sede-name {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.sede-address {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.sede-time {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.sede-time svg {
  width: 18px;
  height: 18px;
}

.sede-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Redes Sociales Oficiales
   ========================================================================== */
.social-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.social-card:hover {
  transform: translateY(-4px);
}

.instagram-card:hover { border-color: var(--brand-instagram); box-shadow: 0 8px 24px rgba(225, 48, 108, 0.2); }
.discord-card:hover { border-color: var(--brand-discord); box-shadow: 0 8px 24px rgba(88, 101, 242, 0.2); }
.facebook-card:hover { border-color: var(--brand-facebook); box-shadow: 0 8px 24px rgba(24, 119, 242, 0.2); }
.email-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(0, 210, 106, 0.2); }

.social-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.instagram-card .social-badge-icon { background: rgba(225, 48, 108, 0.15); color: var(--brand-instagram); }
.discord-card .social-badge-icon { background: rgba(88, 101, 242, 0.15); color: var(--brand-discord); }
.facebook-card .social-badge-icon { background: rgba(24, 119, 242, 0.15); color: var(--brand-facebook); }
.email-card .social-badge-icon { background: rgba(0, 210, 106, 0.15); color: var(--primary); }

.social-badge-icon svg {
  width: 24px;
  height: 24px;
}

.social-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
}

.social-handle {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.social-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.email-btn-group {
  display: flex;
  gap: 0.5rem;
}

.email-text {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  word-break: break-all;
}

/* ==========================================================================
   Contacto & Buzón
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

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

.channel-card h4 {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.channel-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.channel-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}

.channel-link:hover {
  text-decoration: underline;
}

/* Contact Form Card */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.form-title {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.form-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

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

.form-feedback {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.form-feedback.success {
  background: rgba(0, 210, 106, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--accent-red);
  color: #fca5a5;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(8px);
}

.modal-box {
  position: relative;
  z-index: 2;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal.active .modal-box {
  transform: scale(1);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.1rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  text-align: center;
}

.folleto-full-img {
  max-width: 100%;
  max-height: 60vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #070b14;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo-cecid {
  height: 40px;
  background: #fff;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
}

.footer-logo-unlu {
  height: 38px;
  width: 38px;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 340px;
}

.footer-links-group h4 {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  color: #fff;
}

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

.footer-links-group a {
  font-size: 0.84rem;
  color: var(--text-muted);
}

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

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

.footer-credit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-legal-links a {
  color: var(--text-muted);
  font-size: 0.78rem;
}

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

.legal-document {
  max-width: 900px;
  color: var(--text-muted);
}

.legal-document section + section {
  margin-top: 2rem;
}

.legal-document h2 {
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-size: 1.35rem;
}

.legal-document p + p {
  margin-top: 0.75rem;
}

.legal-document ul {
  padding-left: 1.4rem;
}

.legal-document li + li {
  margin-top: 0.5rem;
}

.legal-document a,
.form-privacy-note a,
.consent-field a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-notice {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-yellow);
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-main);
}

.form-privacy-note,
.consent-field {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.consent-field > label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.consent-field input {
  margin-top: 0.3rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.consent-field p {
  margin-top: 0.65rem;
}

.student-verification-fields {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: rgba(0, 210, 106, 0.05);
}

.student-verification-fields[hidden] {
  display: none;
}

.student-verification-fields > p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.comments-section {
  max-width: 1000px;
}

.comments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.comments-list-panel > label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 600;
}

.comments-list-panel > select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font: inherit;
}

.comments-list {
  display: grid;
  gap: 1rem;
}

.comment-card {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.comment-card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.comment-card-header h3 {
  font-size: 0.95rem;
}

.comment-card > p {
  color: var(--text-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-student-badge {
  padding: 0.15rem 0.5rem;
  color: var(--primary);
  background: rgba(0, 210, 106, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .contact-grid,
  .event-banner-card,
  .cacic-grid,
  .deepdive-grid,
  .expo-practical-info,
  .campus-layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .comments-layout {
    grid-template-columns: 1fr;
  }
  .contribute-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-card-featured {
    grid-column: auto;
  }
  .campus-middle-row,
  .campus-bottom-row {
    grid-template-columns: 1fr;
  }
  .map-info-overlay {
    position: static;
    max-width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    min-height: 72px;
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }

  .nav-side-left {
    gap: 0.45rem;
  }

  .brand-logo-cecid {
    height: 40px;
    padding: 3px 6px;
  }

  .brand-logo-unlu {
    height: 38px;
    width: 38px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .nav-brand {
    max-width: calc(100vw - 180px);
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-menu {
    left: 0.75rem;
  }

  .hero {
    padding: 3.5rem 1rem 2.5rem;
  }

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

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

  .blog-card-featured {
    display: block;
  }

  .blog-card-featured .blog-card-visual {
    min-height: 150px;
  }

  .interactive-map-frame {
    height: 380px;
  }
}
