/* ============================================================
   VCyT – Universidad Don Bosco | Design System v2
   Colores: Manual de Marca UDB 2024 | Tipografía: Figtree
   ============================================================ */

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

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Brand */
  --udb-blue:      #274193;
  --udb-navy:      #29356D;
  --udb-dark:      #0B1222;
  --udb-darker:    #070D1A;
  --udb-yellow:    #FFE000;
  --udb-amber:     #F9AE00;
  --udb-gold:      #FFD000;
  --udb-cyan:      #2FAEE5;
  --udb-sky:       #A6CAE5;
  --udb-mist:      #EBEDF8;
  --udb-green:     #76B82A;
  --udb-red:       #E53E3E;

  /* Surfaces */
  --bg-primary:    #0B1222;
  --bg-surface:    #0F1A30;
  --bg-elevated:   #131F38;
  --bg-card:       #131F38;
  --bg-card-hover: #172540;
  --bg-glass:      rgba(19, 31, 56, 0.7);

  /* Text */
  --text-primary:  #F0F4FF;
  --text-secondary:#9BAFD0;
  --text-muted:    #566882;

  /* Borders */
  --border-subtle: rgba(166,202,229,0.1);
  --border-medium: rgba(166,202,229,0.18);
  --border-accent: rgba(47,174,229,0.35);
  --border-yellow: rgba(255,224,0,0.35);

  /* Typography */
  --font: 'Figtree', system-ui, sans-serif;

  /* Spacing */
  --section-gap: 6rem;
  --container:   1200px;

  /* Radius */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;

  /* Shadows */
  --shadow-sm:     0 1px 8px rgba(0,0,0,0.3);
  --shadow-card:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 40px rgba(39,65,147,0.45);
  --shadow-cyan:   0 0 30px rgba(47,174,229,0.3);
  --shadow-yellow: 0 0 30px rgba(255,224,0,0.3);

  /* Transitions */
  --t-fast:   0.18s ease;
  --t-base:   0.28s ease;
  --t-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-slow:   0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Gradients */
  --grad-hero:       radial-gradient(ellipse at 15% 50%, rgba(39,65,147,0.5) 0%, transparent 55%), radial-gradient(ellipse at 80% 20%, rgba(47,174,229,0.25) 0%, transparent 45%), linear-gradient(180deg, #070d1a 0%, #0b1222 100%);
  --grad-dark:       linear-gradient(160deg, #070d1a 0%, #0b1222 50%, #0d1535 100%);
  --grad-surface:    linear-gradient(180deg, #0f1629 0%, #0b1222 100%);
  --grad-blue-btn:   linear-gradient(135deg, #274193 0%, #2faee5 100%);
  --grad-yellow-btn: linear-gradient(135deg, #FFE000 0%, #f0b000 100%);
  --grad-card:       linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(39,65,147,0.07) 100%);
  --grad-cta:        linear-gradient(135deg, #1a2d6e 0%, #274193 50%, #1e5fa8 100%);
}

/* ── Skip link ───────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--udb-yellow); color: #111;
  padding: 0.6rem 1.25rem; border-radius: var(--r-sm);
  font-size: 0.86rem; font-weight: 700;
  transition: top 0.15s ease;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea, select { font-family: var(--font); }

/* ── Focus visible ───────────────────────────────────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--udb-yellow);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ── Selection & Scrollbar ──────────────────────────────────── */
::selection { background: var(--udb-yellow); color: var(--udb-dark); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--udb-darker); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--udb-blue), var(--udb-cyan)); border-radius: 3px; }

/* ── Layout ──────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: var(--section-gap) 0; }
.section--dark    { background: var(--grad-dark); }
.section--surface { background: var(--grad-surface); }
.section--blue    { background: var(--udb-blue); }
.section--navy    { background: var(--udb-navy); }
.section--light   { background: var(--udb-mist); color: var(--udb-dark); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center  { text-align: center; }

/* ── Typography ──────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--text-secondary); }
.lead { font-size: 1.1rem; font-weight: 400; color: var(--text-secondary); max-width: 640px; line-height: 1.75; }

.label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--udb-cyan); display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.label::before { content: ''; width: 18px; height: 2px; background: var(--udb-cyan); border-radius: 1px; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--udb-yellow) 0%, var(--udb-amber) 60%, #FF9500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-cyan {
  background: linear-gradient(135deg, var(--udb-cyan) 0%, #5BC8F5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Accent Line ─────────────────────────────────────────────── */
.accent-line {
  display: block; width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--udb-yellow), var(--udb-amber));
  border-radius: 2px; margin: 0.75rem 0 1.5rem;
}
.text-center .accent-line { margin-left: auto; margin-right: auto; }

/* ── Section Header ─────────────────────────────────────────── */
.section-header { margin-bottom: 3.5rem; }
.section-header .lead { margin-top: 1rem; }
.section-header.text-center .lead { margin-left: auto; margin-right: auto; }

/* ── Glass Card ──────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.07);
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.75rem; border-radius: var(--r-sm);
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.02em;
  border: 1.5px solid transparent; transition: all var(--t-base);
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-yellow-btn); color: #111;
  border-color: var(--udb-yellow);
  box-shadow: 0 4px 14px rgba(255,224,0,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f0e000 0%, #d89a00 100%); border-color: var(--udb-amber);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,174,0,0.4);
}
.btn-outline {
  background: transparent; color: var(--text-primary);
  border-color: var(--border-medium);
}
.btn-outline:hover {
  border-color: var(--udb-yellow); color: var(--udb-yellow);
  transform: translateY(-2px);
}
.btn-blue {
  background: var(--grad-blue-btn); color: #fff;
  border-color: var(--udb-blue);
}
.btn-blue:hover {
  background: linear-gradient(135deg, #1e347d 0%, #27a0d0 100%); border-color: #1e347d;
  transform: translateY(-2px); box-shadow: var(--shadow-glow);
}
.btn-ghost {
  background: transparent; color: var(--udb-cyan);
  border-color: transparent; padding-left: 0;
}
.btn-ghost:hover { color: var(--udb-yellow); letter-spacing: 0.04em; }
.btn-danger {
  background: rgba(229,62,62,0.12); color: #FC8181;
  border-color: rgba(229,62,62,0.3);
}
.btn-danger:hover { background: rgba(229,62,62,0.2); transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 0.22rem 0.7rem; border-radius: 100px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-cyan   { background: rgba(47,174,229,0.15); color: var(--udb-cyan); }
.badge-yellow { background: rgba(255,224,0,0.15);  color: var(--udb-yellow); }
.badge-blue   { background: rgba(39,65,147,0.35);  color: var(--udb-sky); }
.badge-green  { background: rgba(118,184,42,0.18); color: #8FC93A; }
.badge-red    { background: rgba(229,62,62,0.15);  color: #FC8181; }

/* ── Tags ────────────────────────────────────────────────────── */
.tag {
  display: inline-block; padding: 0.18rem 0.6rem; border-radius: var(--r-xs);
  font-size: 0.68rem; font-weight: 600;
  background: rgba(166,202,229,0.08); color: var(--udb-sky);
  border: 1px solid rgba(166,202,229,0.15);
  transition: all var(--t-fast);
}
.tag:hover { background: rgba(166,202,229,0.14); border-color: var(--border-accent); }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
  background: rgba(7, 13, 26, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: linear-gradient(135deg, rgba(7,13,26,0.97), rgba(11,18,34,0.97));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
  height: 62px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.navbar-brand { display: flex; align-items: center; gap: 0.75rem; }
.navbar-brand img { height: 42px; width: auto; }
.navbar-brand-vcyt {
  display: flex; flex-direction: column; line-height: 1.25;
  border-left: 2px solid var(--udb-yellow); padding-left: 0.75rem;
}
.brand-name { font-size: 0.78rem; font-weight: 900; color: #fff; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-sub  { font-size: 0.62rem; color: var(--udb-sky); font-weight: 500; }
.navbar-nav { display: flex; align-items: center; gap: 0.15rem; }
.nav-link {
  padding: 0.45rem 0.85rem; border-radius: var(--r-sm);
  font-size: 0.84rem; font-weight: 600; color: rgba(255,255,255,0.65);
  transition: all var(--t-fast); position: relative;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0.85rem; right: 0.85rem;
  height: 2px; background: var(--udb-yellow); border-radius: 1px;
}
.nav-cta { margin-left: 1.25rem; }
.navbar-toggle {
  display: none; background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle);
  color: #fff; font-size: 1.1rem; padding: 0.5rem 0.7rem; border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.navbar-toggle:hover { background: rgba(255,255,255,0.1); }
.navbar-mobile {
  display: none; position: fixed; top: 62px; left: 0; right: 0;
  background: rgba(7,13,26,0.98); backdrop-filter: blur(24px);
  padding: 1.25rem 1.5rem; flex-direction: column; gap: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 999; animation: slideDown 0.25s ease;
}
.navbar-mobile.open { display: flex; }
.navbar-mobile .nav-link { padding: 0.8rem 1rem; font-size: 0.95rem; border-radius: var(--r-sm); }
.navbar-mobile .nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--grad-hero);
}

/* Grid lines */
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(47,174,229,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,174,229,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 75%);
}

.hero-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape {
  position: absolute; border-radius: 50%;
  animation: floatShape 14s ease-in-out infinite;
}
.hero-shape-1 {
  width: 700px; height: 700px; right: -250px; top: -150px; animation-delay: 0s;
  background: radial-gradient(circle, rgba(39,65,147,0.18), transparent 65%);
}
.hero-shape-2 {
  width: 450px; height: 450px; right: 15%; bottom: -180px; animation-delay: -5s;
  background: radial-gradient(circle, rgba(47,174,229,0.1), transparent 65%);
}
.hero-shape-3 {
  width: 320px; height: 320px; left: 3%; top: 25%; animation-delay: -9s;
  background: radial-gradient(circle, rgba(255,224,0,0.06), transparent 65%);
}

@keyframes floatShape {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(24px,-28px) scale(1.04); }
  66%      { transform: translate(-16px,20px) scale(0.96); }
}

.hero-content { position: relative; z-index: 2; padding: 7rem 0 5rem; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 5rem; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(47,174,229,0.1); border: 1px solid rgba(47,174,229,0.28);
  color: var(--udb-cyan); padding: 0.45rem 1.1rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-badge-dot {
  width: 7px; height: 7px; background: var(--udb-cyan); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); box-shadow:0 0 0 0 rgba(47,174,229,0.6); }
  50%      { opacity:0.7; transform:scale(1.3); box-shadow:0 0 0 4px rgba(47,174,229,0); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 900;
  line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
}
.hero-title .highlight {
  display: inline-block; position: relative;
}
.hero-subtitle {
  font-size: 1.05rem; color: var(--text-secondary); line-height: 1.75;
  max-width: 490px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 0; margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat {
  padding: 0 2rem 0 0;
  border-right: 1px solid var(--border-subtle);
  margin-right: 2rem;
}
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat-num {
  font-size: 2.1rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--udb-yellow), var(--udb-amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* Hero Visual Panel */
.hero-visual { display: flex; align-items: flex-start; justify-content: center; }
.hero-shield-wrap {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem; animation: heroFloat 7s ease-in-out infinite; width: 420px;
}
@keyframes heroFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-14px);} }
.hero-shield-wrap > img { width: 260px; filter: drop-shadow(0 24px 64px rgba(39,65,147,0.9)); flex-shrink: 0; }
.hero-glow {
  position: absolute; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(39,65,147,0.35), transparent 65%);
  border-radius: 50%; pointer-events: none; z-index: -1;
  animation: glowPulse 4s ease-in-out infinite; top: 0;
}
@keyframes glowPulse {
  0%,100% { transform:scale(1); opacity:1; }
  50%      { transform:scale(1.1); opacity:0.7; }
}
.hero-tech-tags {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; width: 100%;
}
.hero-tech-tag {
  background: rgba(11,18,34,0.9); border: 1px solid var(--border-accent);
  padding: 0.5rem 0.75rem; border-radius: var(--r-sm);
  font-size: 0.68rem; font-weight: 700; color: var(--udb-cyan);
  backdrop-filter: blur(12px); display: flex; align-items: center; gap: 0.4rem;
  animation: tagFloat 4.5s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.hero-tech-tag svg { width: 13px; height: 13px; flex-shrink: 0; }
.hero-tech-tag:nth-child(odd)  { animation-delay: -0.8s; }
.hero-tech-tag:nth-child(even) { animation-delay: -2.2s; color: rgba(255,224,0,0.9); border-color: var(--border-yellow); }
@keyframes tagFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-5px);} }

/* ── Tech Strip ─────────────────────────────────────────────── */
.tech-strip {
  background: var(--bg-surface); padding: 1.4rem 0; overflow: hidden;
  border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.tech-strip::before, .tech-strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.tech-strip::before { left: 0; background: linear-gradient(90deg, var(--bg-surface), transparent); }
.tech-strip::after  { right: 0; background: linear-gradient(270deg, var(--bg-surface), transparent); }
.tech-strip-inner { display: flex; align-items: center; overflow: hidden; }
.tech-strip-label {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-right: 2.5rem; white-space: nowrap; flex-shrink: 0;
}
.tech-strip-items { display: flex; align-items: center; gap: 2.25rem; animation: marquee 24s linear infinite; white-space: nowrap; }
.tech-strip-item { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.82rem; font-weight: 600; }
.tech-strip-item span { color: var(--udb-cyan); font-size: 0.9rem; opacity: 0.7; }
@keyframes marquee { from{transform:translateX(0);} to{transform:translateX(-50%);} }

/* ══════════════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: center; }
.about-graphic {
  background: linear-gradient(145deg, #1a2e6b 0%, #1e3580 50%, var(--udb-navy) 100%);
  border-radius: var(--r-xl); padding: 3rem 2.5rem; text-align: center;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}
.about-graphic::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.about-graphic-shield { height: 150px; margin: 0 auto 1.5rem; filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5)); position: relative; z-index: 1; }
.about-stat-chips { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; justify-content: center; position: relative; z-index: 1; }
.stat-chip {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-sm); padding: 0.6rem 1.1rem;
  font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.85); text-align: center;
  backdrop-filter: blur(8px);
}
.stat-chip-num { display: block; font-size: 1.35rem; font-weight: 900; color: var(--udb-yellow); line-height: 1.2; }

.about-features { display: flex; flex-direction: column; gap: 1.15rem; margin: 1.75rem 0; }
.about-feature { display: flex; gap: 1rem; align-items: flex-start; }
.about-feature-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm); flex-shrink: 0;
  background: rgba(47,174,229,0.1); border: 1px solid rgba(47,174,229,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--udb-cyan); font-size: 1rem;
  transition: all var(--t-base);
}
.about-feature:hover .about-feature-icon { background: rgba(47,174,229,0.18); transform: scale(1.05); }
.about-feature h4 { font-size: 0.9rem; color: var(--text-primary); margin-bottom: 0.2rem; }
.about-feature p  { font-size: 0.82rem; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   INSTITUTE CARDS
══════════════════════════════════════════════════════════════ */
.institutes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.institute-card {
  background: var(--grad-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg); padding: 1.75rem;
  transition: all var(--t-base); position: relative; overflow: hidden; cursor: pointer;
}
.institute-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-from, var(--udb-cyan)), var(--accent-to, var(--udb-blue)));
}
.institute-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.03), transparent 70%);
  pointer-events: none;
}
.institute-card:hover {
  background: linear-gradient(135deg, rgba(19,31,56,0.95) 0%, rgba(23,37,64,0.95) 100%);
  border-color: rgba(47,174,229,0.25);
  transform: translateY(-7px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255,255,255,0.04), 0 0 30px rgba(47,174,229,0.08);
}

.institute-card--energy        { --accent-from: #F9AE00; --accent-to: #FFE000; }
.institute-card--electronics   { --accent-from: #2FAEE5; --accent-to: #5BC8F5; }
.institute-card--manufacturing { --accent-from: #76B82A; --accent-to: #2FAEE5; }
.institute-card--metrology     { --accent-from: #A6CAE5; --accent-to: #274193; }
.institute-card--ctic          { --accent-from: #274193; --accent-to: #2FAEE5; }
.institute-card--research      { --accent-from: #FFD000; --accent-to: #F9AE00; }
.institute-card--services      { --accent-from: #76B82A; --accent-to: #FFD000; }

.institute-icon {
  width: 50px; height: 50px; border-radius: var(--r-md);
  background: rgba(47,174,229,0.1); border: 1px solid rgba(47,174,229,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.25rem; color: var(--udb-cyan);
  transition: all var(--t-base);
}
.institute-card:hover .institute-icon { background: rgba(47,174,229,0.18); transform: scale(1.1); }
.institute-acronym { font-size: 0.65rem; font-weight: 800; color: var(--udb-cyan); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.institute-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; line-height: 1.3; }
.institute-card p  { font-size: 0.8rem; line-height: 1.65; margin-bottom: 1.25rem; }
.institute-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1.25rem; }
.institute-services-count {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.1rem; border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem; color: var(--text-muted); font-weight: 600;
}
.institute-services-count strong { color: var(--udb-yellow); }
.institute-arrow { color: var(--text-muted); transition: all var(--t-fast); font-size: 0.82rem; }
.institute-card:hover .institute-arrow { color: var(--udb-cyan); transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════════
   SERVICE CARDS
══════════════════════════════════════════════════════════════ */
.service-card {
  background: var(--grad-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); padding: 1.75rem; transition: all var(--t-base);
}
.service-card:hover {
  border-color: var(--border-accent); transform: translateY(-5px);
  box-shadow: var(--shadow-card), var(--shadow-cyan);
}
.service-card-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.service-card-icon {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: rgba(47,174,229,0.1); border: 1px solid rgba(47,174,229,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--udb-cyan); flex-shrink: 0;
}
.service-card h3 { font-size: 0.95rem; line-height: 1.3; }
.service-card p  { font-size: 0.8rem; line-height: 1.65; margin-bottom: 1rem; }
.service-card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* ══════════════════════════════════════════════════════════════
   COURSE CARDS
══════════════════════════════════════════════════════════════ */
.courses-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.45rem 1.1rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; border: 1px solid var(--border-subtle);
  background: transparent; color: var(--text-secondary);
  transition: all var(--t-fast);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--udb-blue); color: #fff; border-color: var(--udb-blue);
}

.course-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all var(--t-base); display: flex; flex-direction: column;
}
.course-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-card);
  border-color: var(--border-accent);
}
.course-card-banner {
  height: 128px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--banner-from, #0e2456), var(--banner-to, #1a4db5));
  display: flex; align-items: center; justify-content: center;
}
.course-card-banner::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.course-card-banner::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 50% 55%, var(--banner-glow, rgba(80,160,255,0.18)) 0%, transparent 60%);
}
.course-card-banner-icon { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.course-card-banner .badge { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; }
.course-card-banner .course-level { position: absolute; top: 0.75rem; left: auto; right: 0.75rem; z-index: 2; }
.course-card-featured {
  position: absolute; bottom: 0.65rem; left: 0.75rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.67rem; font-weight: 700; color: var(--udb-yellow);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.course-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.course-card-body h3 { font-size: 0.92rem; line-height: 1.4; margin-bottom: 0.6rem; }
.course-card-body p  { font-size: 0.79rem; margin-bottom: 1rem; flex: 1; }
.course-card-meta {
  display: flex; gap: 0.8rem; font-size: 0.72rem; color: var(--text-muted);
  margin-bottom: 1rem; flex-wrap: wrap;
}
.course-card-meta span { display: flex; align-items: center; gap: 0.3rem; }
.course-card-footer {
  padding: 0.9rem 1.4rem; border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
}
.course-price { font-size: 1.2rem; font-weight: 900; color: var(--udb-yellow); }
.course-price-free { color: #8FC93A; }

/* Banner colors by technology */
.banner-ai        { --banner-from: #1a1a4e; --banner-to: #312e81; }
.banner-ml        { --banner-from: #1a1a4e; --banner-to: #4c1d95; }
.banner-cyber     { --banner-from: #1a0a2e; --banner-to: #7c3aed; }
.banner-iot       { --banner-from: #042f2e; --banner-to: #0f766e; }
.banner-industry  { --banner-from: #1c1917; --banner-to: #292524; }
.banner-cloud     { --banner-from: #0c1445; --banner-to: #1e3a8a; }
.banner-energy    { --banner-from: #1c1200; --banner-to: #713f12; }
.banner-robot     { --banner-from: #0b2540; --banner-to: #274193; }
.banner-devops    { --banner-from: #0f2027; --banner-to: #203a43; }
.banner-bi        { --banner-from: #0f0c29; --banner-to: #302b63; }

/* ══════════════════════════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item {
  padding: 3rem 2rem; text-align: center; position: relative;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-item::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,255,255,0.03), transparent 70%);
}
.stat-number {
  font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 900; line-height: 1; display: block;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255,224,0,0.4));
}
.stat-label {
  font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.55);
  margin-top: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════════ */
.cta-section {
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(255,255,255,0.04), transparent),
    var(--grad-cta);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-content { position: relative; z-index: 1; text-align: center; }
.cta-content h2 { color: #fff; margin-bottom: 1rem; }
.cta-content p  { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 1.05rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; }

/* Contact type tabs */
.contact-type-tabs {
  display: flex; gap: 0.4rem; margin-bottom: 2rem;
  background: rgba(255,255,255,0.05); border-radius: var(--r-md);
  padding: 0.35rem; width: fit-content;
}
.contact-type-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem; border-radius: var(--r-sm); border: none;
  background: transparent; color: var(--text-muted);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.contact-type-tab.active { background: var(--udb-blue); color: #fff; }
.contact-type-tab:not(.active):hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }

/* Contact panels show/hide */
.contact-panels [data-tab-panel] { display: none; }
.contact-panels [data-tab-panel].active { display: block; }

/* Course card dual buttons */
.course-card-footer--stack { flex-direction: column; gap: 0.75rem; align-items: stretch; }
.course-card-btns { display: flex; gap: 0.5rem; }
.course-card-btns .btn { flex: 1; justify-content: center; display: flex; align-items: center; gap: 0.35rem; }
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block; font-size: 0.79rem; font-weight: 700; color: var(--text-secondary);
  margin-bottom: 0.5rem; letter-spacing: 0.02em;
}
.form-control {
  width: 100%; padding: 0.82rem 1.1rem;
  background: rgba(15,26,48,0.9); border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm); color: var(--text-primary);
  font-size: 0.88rem; transition: all var(--t-fast); outline: none;
  min-height: 44px;
}
.form-control:focus { border-color: var(--udb-cyan); box-shadow: 0 0 0 3px rgba(47,174,229,0.12); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236A7FA8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.form-success { background: rgba(118,184,42,0.1); border: 1px solid rgba(118,184,42,0.3); color: #8FC93A; border-radius: var(--r-sm); padding: 1rem; font-size: 0.88rem; margin-bottom: 1rem; }
.form-error   { background: rgba(229,62,62,0.1);  border: 1px solid rgba(229,62,62,0.3);  color: #FC8181; border-radius: var(--r-sm); padding: 1rem; font-size: 0.88rem; margin-bottom: 1rem; }
.form-message { display: none; }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm); flex-shrink: 0;
  background: rgba(39,65,147,0.12); border: 1px solid rgba(39,65,147,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--udb-cyan);
}
.contact-info-item h4 { font-size: 0.84rem; margin-bottom: 0.2rem; }
.contact-info-item p, .contact-info-item a { font-size: 0.81rem; color: var(--text-secondary); }
.contact-info-item a:hover { color: var(--udb-cyan); }

/* ══════════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════════════════════ */
.page-hero {
  padding: 9rem 0 4.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(39,65,147,0.25), transparent),
    linear-gradient(160deg, var(--udb-darker) 0%, #0D1530 60%, var(--udb-navy) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(47,174,229,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,174,229,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, black 20%, transparent 80%);
}
.page-hero-content { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1rem; font-size: 0.78rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--udb-cyan); }
.breadcrumb-sep { opacity: 0.4; }

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-subtle); }
.tab-btn {
  padding: 0.55rem 1.15rem; border-radius: var(--r-sm);
  font-size: 0.8rem; font-weight: 700; border: 1px solid var(--border-subtle);
  background: transparent; color: var(--text-secondary); transition: all var(--t-fast);
  display: flex; align-items: center; gap: 0.4rem;
}
.tab-btn:hover  { color: #fff; border-color: rgba(39,65,147,0.5); background: rgba(39,65,147,0.1); }
.tab-btn.active { background: var(--udb-blue); color: #fff; border-color: var(--udb-blue); }
.tab-icon { font-size: 0.95rem; }
.tab-panel { display: none; }
.tab-panel.active { display: grid; }

/* ══════════════════════════════════════════════════════════════
   EMPRESAS ALIADAS
══════════════════════════════════════════════════════════════ */
.aliadas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem; margin-bottom: 2rem;
}
.aliadas-grid--lg { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.75rem; }
.aliada-item {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md); padding: 1.5rem 1.25rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.aliada-item:hover { border-color: var(--border-accent); background: rgba(255,255,255,0.07); }
.aliada-item img { width: auto; height: auto; max-width: 140px; max-height: 55px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.55; transition: opacity .2s, filter .2s; }
.aliada-item:hover img { filter: brightness(0) invert(1); opacity: 0.85; }

.aliada-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md); padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  transition: border-color .2s, transform .2s, background .2s;
}
.aliada-card:hover { border-color: var(--udb-cyan); transform: translateY(-4px); background: rgba(255,255,255,0.07); }
.aliada-card img { width: auto; height: auto; max-width: 160px; max-height: 65px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.55; transition: opacity .2s, filter .2s; }
.aliada-card:hover img { filter: brightness(0) invert(1); opacity: 0.9; }
.aliada-nombre { font-size: 0.75rem; color: var(--text-muted); text-align: center; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Text-only partner card (companies without logo files) */
.aliada-text-card {
  background: var(--grad-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md); padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.65rem; text-align: center;
  transition: border-color .2s, transform .2s, background .2s;
  min-height: 110px;
}
.aliada-text-card:hover { border-color: var(--border-accent); transform: translateY(-4px); background: linear-gradient(135deg, rgba(47,174,229,0.06), rgba(39,65,147,0.1)); }
.aliada-text-initial {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(39,65,147,0.4), rgba(47,174,229,0.25));
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: var(--udb-cyan); flex-shrink: 0;
}
.aliada-text-name {
  font-size: 0.7rem; color: var(--text-secondary); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.3;
}

.aliadas-placeholder {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.25rem; margin-bottom: 1rem;
}
.aliada-placeholder-item {
  background: rgba(255,255,255,0.03); border: 1px dashed var(--border-subtle);
  border-radius: var(--r-md); padding: 2rem; display: flex; align-items: center; justify-content: center;
  min-height: 100px;
}

/* Page hero (empresas, etc.) */
.page-hero { padding: 5rem 0 3.5rem; background: var(--grad-dark); }
.page-hero-content { max-width: 640px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0.75rem; line-height: 1.15; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, #050a14 0%, #070d1a 100%); position: relative;
  padding: 4.5rem 0 2rem;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--udb-blue) 30%, var(--udb-cyan) 50%, var(--udb-blue) 70%, transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img { height: 48px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: 0.81rem; color: var(--text-muted); line-height: 1.75; max-width: 280px; }
.footer-col h4 { font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-secondary); margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul a { font-size: 0.81rem; color: var(--text-muted); transition: all var(--t-fast); display: flex; align-items: center; gap: 0.4rem; }
.footer-col ul a:hover { color: var(--udb-cyan); padding-left: 4px; }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.76rem; color: var(--text-muted);
}
.footer-bottom a { color: rgba(166,202,229,0.6); transition: color var(--t-fast); }
.footer-bottom a:hover { color: var(--udb-cyan); }
.social-links { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social-link {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; color: var(--text-secondary); font-weight: 700;
  transition: all var(--t-base); text-transform: uppercase; font-style: normal;
}
.social-link:hover { background: var(--udb-blue); color: #fff; border-color: var(--udb-blue); transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════════════ */
.alert { padding: 0.9rem 1.2rem; border-radius: var(--r-sm); margin-bottom: 1.25rem; font-size: 0.86rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.alert-success { background: rgba(118,184,42,0.1); border: 1px solid rgba(118,184,42,0.3); color: #8FC93A; }
.alert-danger  { background: rgba(229,62,62,0.1);  border: 1px solid rgba(229,62,62,0.3);  color: #FC8181; }
.alert-info    { background: rgba(47,174,229,0.1);  border: 1px solid rgba(47,174,229,0.25); color: var(--udb-sky); }

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.32s; }
.reveal-delay-4 { transition-delay: 0.44s; }
.reveal-delay-5 { transition-delay: 0.56s; }

/* ══════════════════════════════════════════════════════════════
   ADMIN — LAYOUT
══════════════════════════════════════════════════════════════ */
.admin-body { background: #090F1E; }
.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 256px; background: #0A1020;
  border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; flex-shrink: 0;
  position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 100;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.admin-sidebar-brand {
  padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 0.75rem;
}
.admin-sidebar-brand img { height: 38px; }
.admin-sidebar-brand-text { line-height: 1.2; border-left: 2px solid var(--udb-yellow); padding-left: 0.65rem; }
.admin-sidebar-brand-text .t1 { font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.07em; color: #fff; }
.admin-sidebar-brand-text .t2 { font-size: 0.58rem; color: var(--udb-sky); font-weight: 500; }

.admin-sidebar-label {
  font-size: 0.58rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); padding: 1.4rem 1.5rem 0.4rem;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1.5rem; color: rgba(168,184,216,0.7); font-size: 0.86rem; font-weight: 600;
  transition: all var(--t-fast); border-left: 2px solid transparent;
  position: relative;
}
.admin-nav-item:hover  { color: #fff; background: rgba(255,255,255,0.04); }
.admin-nav-item.active { color: #fff; background: rgba(39,65,147,0.2); border-left-color: var(--udb-yellow); }
.admin-nav-item .nav-icon { font-size: 1rem; color: var(--udb-cyan); width: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admin-nav-item.active .nav-icon { color: var(--udb-yellow); }
.admin-nav-badge { margin-left: auto; }

/* Main area */
.admin-main { margin-left: 256px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* Topbar */
.admin-topbar {
  background: rgba(10,16,32,0.97); padding: 0.9rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
}
.admin-topbar-left { display: flex; align-items: center; gap: 1rem; }
.admin-topbar-title { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.admin-topbar-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }
.admin-topbar-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Mobile sidebar toggle */
.admin-sidebar-toggle {
  display: none; padding: 0.45rem 0.6rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: 1rem; cursor: pointer;
  transition: all var(--t-fast); flex-shrink: 0;
}
.admin-sidebar-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); z-index: 99;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* Content */
.admin-content { padding: 1.75rem; flex: 1; }

/* Stat cards */
.admin-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-bottom: 1.75rem; }
.admin-stat-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-md); padding: 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  transition: all var(--t-fast); position: relative; overflow: hidden;
}
.admin-stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--stat-from, var(--udb-cyan)), var(--stat-to, var(--udb-blue)));
}
.admin-stat-card:hover { border-color: var(--border-medium); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.admin-stat-card.yellow { --stat-from: var(--udb-yellow); --stat-to: var(--udb-amber); }
.admin-stat-card.cyan   { --stat-from: var(--udb-cyan);   --stat-to: #5BC8F5; }
.admin-stat-card.blue   { --stat-from: var(--udb-blue);   --stat-to: var(--udb-cyan); }
.admin-stat-card.green  { --stat-from: var(--udb-green);  --stat-to: #8FC93A; }

.admin-stat-icon {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.admin-stat-card.yellow .admin-stat-icon { background: rgba(255,224,0,0.12); color: var(--udb-yellow); }
.admin-stat-card.cyan   .admin-stat-icon { background: rgba(47,174,229,0.12); color: var(--udb-cyan); }
.admin-stat-card.blue   .admin-stat-icon { background: rgba(39,65,147,0.2);   color: var(--udb-sky); }
.admin-stat-card.green  .admin-stat-icon { background: rgba(118,184,42,0.12); color: var(--udb-green); }

.admin-stat-num   { font-size: 1.9rem; font-weight: 900; color: var(--text-primary); line-height: 1; }
.admin-stat-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }

/* Admin card */
.admin-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-md); overflow: hidden; }
.admin-card-header {
  padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.admin-card-header h3 { font-size: 0.95rem; font-weight: 800; }
.admin-card-body { padding: 1.4rem; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.data-table th {
  text-align: left; padding: 0.75rem 1rem;
  font-size: 0.68rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.015); white-space: nowrap;
}
.data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr:last-child td { border-bottom: none; }
.data-table .actions { display: flex; gap: 0.4rem; }

.btn-icon {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; border: 1px solid var(--border-subtle); background: transparent;
  color: var(--text-secondary); transition: all var(--t-fast); cursor: pointer;
}
.btn-icon:hover             { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.btn-icon.btn-edit:hover    { background: rgba(39,65,147,0.2); color: var(--udb-sky); border-color: rgba(39,65,147,0.5); }
.btn-icon.btn-delete:hover  { background: rgba(229,62,62,0.12); color: #FC8181; border-color: rgba(229,62,62,0.3); }

.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 0.35rem; }
.status-dot.active   { background: var(--udb-green); box-shadow: 0 0 6px rgba(118,184,42,0.6); }
.status-dot.inactive { background: var(--text-muted); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 1rem; opacity: 0; pointer-events: none;
  transition: opacity var(--t-base); backdrop-filter: blur(6px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #0F1A2E; border: 1px solid var(--border-medium);
  border-radius: var(--r-lg); width: 100%; max-width: 680px; max-height: 92vh;
  overflow-y: auto; transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 1.4rem; border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: #0F1A2E; z-index: 1;
}
.modal-header h3 { font-size: 1rem; font-weight: 800; }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--r-sm); background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--t-fast);
}
.modal-close:hover { background: rgba(229,62,62,0.15); color: #FC8181; border-color: rgba(229,62,62,0.3); }
.modal-body   { padding: 1.4rem; }
.modal-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--border-subtle); display: flex; gap: 0.75rem; justify-content: flex-end; }

/* Login page */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(39,65,147,0.2), transparent),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(11,18,34,0.8), transparent),
    var(--udb-darker);
  padding: 2rem;
}
.login-card {
  background: var(--bg-card); border: 1px solid var(--border-medium);
  border-radius: var(--r-xl); padding: 3rem; width: 100%; max-width: 420px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
.login-brand { text-align: center; margin-bottom: 2.5rem; }
.login-brand img { height: 56px; margin: 0 auto 1rem; }
.login-brand h1 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.3rem; }
.login-brand p  { font-size: 0.8rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   LUCIDE ICON STYLES
══════════════════════════════════════════════════════════════ */
.lucide, [data-lucide] {
  display: inline-block; vertical-align: middle;
  width: 1em; height: 1em; stroke-width: 2; flex-shrink: 0;
}
.icon-sm  { font-size: 0.95rem; }
.icon-md  { font-size: 1.2rem; }
.icon-lg  { font-size: 1.5rem; }
.icon-xl  { font-size: 2rem; }

/* Icon sizes inside component containers */
.institute-icon    svg { width: 22px; height: 22px; stroke-width: 1.75; }
.about-feature-icon svg { width: 19px; height: 19px; stroke-width: 1.75; }
.contact-info-icon  svg { width: 19px; height: 19px; stroke-width: 1.75; }
.course-card-banner-icon svg { width: 40px; height: 40px; stroke-width: 1.4; filter: drop-shadow(0 2px 10px currentColor); }
.hero-tech-tag      svg { width: 11px; height: 11px; flex-shrink: 0; }
.admin-stat-icon    svg { width: 22px; height: 22px; stroke-width: 1.75; }
.admin-nav-item .nav-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.navbar-toggle      svg { width: 20px; height: 20px; stroke-width: 2; }

/* ── Required field indicator ────────────────────────────────── */
.required-star {
  color: #FC8181; font-style: normal; text-decoration: none;
  margin-left: 0.15rem; font-size: 0.9em;
}

/* ── Form search icon wrapper ────────────────────────────────── */
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
  display: flex; align-items: center;
}
.input-icon-wrap .input-icon svg { width: 16px; height: 16px; }
.input-icon-wrap .form-control { padding-left: 2.75rem; }

/* ══════════════════════════════════════════════════════════════
   INFO CARD (contact DSP box)
══════════════════════════════════════════════════════════════ */
.info-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); padding: 1.5rem; position: relative;
  overflow: hidden;
}
.info-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--udb-yellow), var(--udb-amber));
}
.info-card-title {
  font-size: 0.88rem; font-weight: 800; color: var(--udb-yellow);
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.6rem;
}
.info-card-title svg { width: 16px; height: 16px; stroke-width: 2; }
.info-card p { font-size: 0.82rem; line-height: 1.65; }

/* ── Hero title gradient refinement ─────────────────────────── */
.hero-title .highlight-line {
  background: linear-gradient(135deg, var(--udb-yellow) 0%, var(--udb-amber) 55%, #FF9500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Hero h1 main text gradient (white-to-cyan) */
.hero-title .hero-title-main {
  background: linear-gradient(135deg, #fff 30%, rgba(47,174,229,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero visual improvements ────────────────────────────────── */
.hero-tech-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
}

/* ── Button loading state ────────────────────────────────────── */
.btn[disabled] { opacity: 0.7; cursor: not-allowed; transform: none !important; }
.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block; vertical-align: middle; margin-left: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Course card banner icon ──────────────────────────────────── */
.course-card-banner-icon {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.92);
}

/* ── Section elevation divider ───────────────────────────────── */
.section--elevated {
  box-shadow: 0 -1px 0 var(--border-subtle), 0 1px 0 var(--border-subtle);
}

/* ── Page hero breadcrumb refinement ─────────────────────────── */
.breadcrumb svg { width: 12px; height: 12px; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
══════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 990;
  display: flex; align-items: center; gap: 0.7rem;
  background: #25D366; color: #fff;
  padding: 0.75rem 1.25rem 0.75rem 0.9rem;
  border-radius: 100px;
  box-shadow: 0 8px 28px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.25);
  text-decoration: none; font-family: var(--font);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 260px;
}
.wa-float:hover {
  background: #20c05a;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(37,211,102,0.55), 0 2px 8px rgba(0,0,0,0.25);
}
.wa-float:active { transform: scale(0.97); }
.wa-float svg { flex-shrink: 0; }
.wa-float-label {
  font-size: 0.84rem; font-weight: 700; white-space: nowrap;
  line-height: 1.2;
}
@media (max-width: 500px) {
  .wa-float { padding: 0.85rem; border-radius: 50%; }
  .wa-float-label { display: none; }
  .wa-float { bottom: 1.25rem; right: 1.25rem; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .institutes-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .admin-stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .hero-grid     { grid-template-columns: 1fr; }
  .hero-visual   { display: none; }
  .about-grid    { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .stat-item     { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child, .stat-item:nth-child(even) { border-right: none; }
  .grid-3        { grid-template-columns: repeat(2,1fr); }
  .grid-4        { grid-template-columns: repeat(2,1fr); }
  .navbar-nav, .nav-cta { display: none; }
  .navbar-toggle { display: flex; }
  .admin-sidebar { width: 260px; }
  .admin-main    { margin-left: 260px; }
  .navbar { padding: 0 1.25rem; }
}

@media (max-width: 768px) {
  /* Admin mobile sidebar */
  .admin-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .admin-sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0,0,0,0.5);
  }
  .admin-sidebar-overlay.open { display: block; }
  .admin-sidebar-toggle { display: flex; }
  .admin-main { margin-left: 0 !important; }
  .admin-stats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  :root { --section-gap: 4rem; }
  .institutes-grid   { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid        { grid-template-columns: repeat(2,1fr); }
  .form-row          { grid-template-columns: 1fr; }
  .hero-stats        { flex-wrap: wrap; gap: 1.5rem; }
  .hero-stat         { border-right: none; margin-right: 0; padding-right: 0; }
  .footer-grid       { grid-template-columns: 1fr; }
  .admin-stats-grid  { grid-template-columns: 1fr 1fr; }
  .admin-content     { padding: 1.25rem; }
  .tabs              { gap: 0.35rem; }
  .tab-btn           { padding: 0.45rem 0.85rem; font-size: 0.75rem; }
  .hero-badge        { font-size: 0.62rem; }
}

@media (max-width: 400px) {
  .admin-stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
}

/* ══════════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════════ */
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.hidden         { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-yellow    { color: var(--udb-yellow) !important; }
.text-cyan      { color: var(--udb-cyan) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-primary   { color: var(--text-primary) !important; }
.fw-900         { font-weight: 900; }
.fw-700         { font-weight: 700; }
.fw-600         { font-weight: 600; }
