/* ═══════════════════════════════════════════════════════════════
   PREPARATORIA IMA — Stylesheet
   Light Mode + Fantasmas Dark Mode
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --orange: #DB923A;
  --orange-dark: #c07a28;
  --orange-light: #f0a84d;
  --green: #336633;
  --green-dark: #264d26;
  --green-light: #4a8c4a;

  /* Light Mode */
  --bg: #fafaf8;
  --bg-alt: #f0ede7;
  --bg-card: #ffffff;
  --bg-section: #f5f2ec;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --text-light: #8a8a8a;
  --border: #e0dbd2;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --nav-bg: rgba(250, 250, 248, 0.92);
  --nav-border: rgba(219, 146, 58, 0.15);
  --hero-overlay: linear-gradient(to bottom, rgba(26, 26, 26, 0.6) 0%, rgba(26, 26, 26, 0.35) 50%, rgba(26, 26, 26, 0.7) 100%);
  --tag-bg: rgba(219, 146, 58, 0.12);
  --tag-color: #c07a28;
  --sadie-bg: #1a1a1a;
  --sadie-text: #ffffff;
}

[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-alt: #0f0f18;
  --bg-card: #12121e;
  --bg-section: #0d0d17;
  --text: #e8e8f0;
  --text-muted: #9090b0;
  --text-light: #6060a0;
  --border: rgba(100, 80, 180, 0.2);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
  --nav-bg: rgba(10, 10, 15, 0.95);
  --nav-border: rgba(219, 146, 58, 0.25);
  --hero-overlay: linear-gradient(to bottom, rgba(5, 5, 15, 0.7) 0%, rgba(5, 5, 15, 0.4) 50%, rgba(5, 5, 15, 0.85) 100%);
  --tag-bg: rgba(219, 146, 58, 0.15);
  --tag-color: #f0a84d;
  --sadie-bg: #0a0a0f;
  --sadie-text: #e8e8f0;
}

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

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

section {
  position: relative;
  z-index: 1;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

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

/* ── Typography ── */
h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--orange);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(219, 146, 58, 0.35);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(219, 146, 58, 0.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-ghost-sm {
  display: inline-flex;
  padding: 10px 22px;
  border: 2px solid var(--orange);
  color: var(--orange);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.btn-ghost-sm:hover {
  background: var(--orange);
  color: #fff;
}

.btn-nav {
  display: inline-flex;
  padding: 10px 22px;
  background: var(--orange);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-nav:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  padding: 16px;
  font-size: 1rem;
}

/* ── Section tag + header ── */
.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--tag-bg);
  color: var(--tag-color);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--text);
}

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

.section-header.light h2 {
  color: #fff;
}

.section-header.light p {
  color: rgba(255, 255, 255, 0.75);
}

.section-header.light .section-tag {
  background: rgba(219, 146, 58, 0.2);
  color: var(--orange-light);
}

/* ══════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════ */
.topbar {
  width: 100%;
  height: 40px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  font-size: 0.8rem;
}

[data-theme="dark"] .topbar {
  background: rgba(5, 5, 15, 0.95);
  border-bottom-color: rgba(219, 146, 58, 0.15);
}

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

.topbar__contact-info {
  display: flex;
  align-items: center;
  gap: 32px;
}

.topbar__address-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(219, 146, 58, 0.12);
  color: var(--orange-dark, #cc781b) !important;
  padding: 4px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(219, 146, 58, 0.25);
  transition: all 0.2s ease;
}

[data-theme="dark"] .topbar__address-badge {
  color: var(--orange) !important;
  background: rgba(219, 146, 58, 0.18);
}

.topbar__address-badge:hover {
  background: var(--orange);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(219, 146, 58, 0.3);
  border-color: var(--orange);
}

.topbar__address-badge:hover svg {
  color: #fff;
}

.topbar__schedule {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 32px;
  padding-left: 32px;
  border-left: 1px solid rgba(219, 146, 58, 0.2);
}

.topbar__social-link {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s, transform 0.2s;
}

.topbar__social-link:hover {
  color: var(--orange);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s, box-shadow 0.3s, border-color 0.4s;
  transform: translateY(0);
}

.navbar.scrolled {
  transform: translateY(-40px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  transition: opacity 0.2s;
}

.logo-img:hover {
  opacity: 0.85;
}

/* Logo switching por tema */
.logo-dark {
  display: none;
  height: 28px;
  width: auto;
  max-width: 160px;
}

.logo-light {
  display: block;
  height: 44px;
  width: auto;
  max-width: 160px;
}

[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--orange);
  background: var(--tag-bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.theme-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

[data-theme="light"] .dark-icon,
[data-theme="dark"] .light-icon {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════
   HERO — Split layout
══════════════════════════════════════════ */
.hero {
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  position: relative;
}

.hero-split {
  display: grid;
  grid-template-columns: 54% 46%;
  height: 100%;
}

/* ── Left panel ── */
.hero-content {
  background: linear-gradient(145deg, #0b1a0b 0%, #132613 55%, #0d1d0d 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 56px 56px 48px;
  color: #fff;
  position: relative;
  z-index: 2;
}

/* Diagonal edge blending into image */
.hero-content::after {
  content: '';
  position: absolute;
  top: 0;
  right: -48px;
  bottom: 0;
  width: 96px;
  background: linear-gradient(145deg, #0b1a0b 0%, #132613 55%, #0d1d0d 100%);
  clip-path: polygon(0 0, 40% 0, 100% 100%, 0 100%);
  z-index: 3;
}

[data-theme="dark"] .hero-content {
  background: linear-gradient(145deg, #050a05 0%, #0a150a 55%, #060d06 100%);
}

[data-theme="dark"] .hero-content::after {
  background: linear-gradient(145deg, #050a05 0%, #0a150a 55%, #060d06 100%);
}

/* ── Right panel (image) ── */
.hero-img-panel {
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transform: scale(1.04);
  transition: transform 8s ease;
}

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

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11, 26, 11, 0.65) 0%, rgba(11, 26, 11, 0.1) 50%, transparent 100%);
  z-index: 1;
}

/* Floating info card on image */
.hero-float-card {
  position: absolute;
  bottom: 40px;
  right: 32px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(219, 146, 58, 0.3);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.8s 0.6s ease both;
}

.hf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(219, 146, 58, 0.7);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

.hero-float-card strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.hero-float-card span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* ── Hero text elements ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(219, 146, 58, 0.18);
  border: 1px solid rgba(219, 146, 58, 0.35);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--orange-light);
  width: fit-content;
  animation: fadeUp 0.6s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-light);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse {

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

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-size: clamp(2.6rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.04;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-highlight {
  color: var(--orange-light);
  display: block;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  opacity: 0.78;
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.65;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* Ghost button variant for dark hero background */
.btn-ghost-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.btn-ghost-green:hover {
  border-color: var(--orange-light);
  color: var(--orange-light);
  background: rgba(219, 146, 58, 0.08);
}

.hero-stats {
  display: flex;
  align-items: center;
  margin-top: 52px;
  animation: fadeUp 0.6s 0.4s ease both;
}

.stat {
  text-align: left;
  padding: 0 24px;
}

.stat:first-child {
  padding-left: 0;
}

.stat-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange-light);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeUp 1s 0.8s ease both;
  z-index: 2;
}

.scroll-line {
  position: relative;
  width: 2px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.scroll-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: var(--orange-light);
  border-radius: 2px;
  animation: scrollComet 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  box-shadow: 0 0 10px rgba(219, 146, 58, 0.8);
}

@keyframes scrollComet {
  0% { transform: translateY(-100%); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(280%); opacity: 0; }
}

/* ══════════════════════════════════════════
   ADMISIONES BANNER
══════════════════════════════════════════ */
.admisiones-banner {
  padding: 80px 0;
  background: var(--green);
  position: relative;
  overflow: hidden;
}

.admisiones-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] .admisiones-banner {
  background: #0f1a0f;
}

.banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.banner-text {
  color: #fff;
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(219, 146, 58, 0.3);
  border: 1px solid rgba(219, 146, 58, 0.5);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--orange-light);
}

.banner-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 12px;
  color: #fff;
}

.banner-text p {
  opacity: 0.8;
  margin-bottom: 32px;
}

.banner-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-countdown {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(12px);
}

.countdown-label {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(219, 146, 58, 0.2);
  border: 1px solid rgba(219, 146, 58, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 64px;
  flex: 1;
  max-width: 80px;
}

.count-item span {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--orange-light);
  line-height: 1;
}

.count-item small {
  font-size: 0.65rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
  white-space: nowrap;
}

.count-sep {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  opacity: 0.4;
  flex-shrink: 0;
  margin-bottom: 20px;
}

.countdown-date {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* ══════════════════════════════════════════
   RAZONES
══════════════════════════════════════════ */
.razones {
  padding: 100px 0;
  background: var(--bg);
}

.razones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.razon-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.razon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.razon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}

.razon-card:hover::before {
  transform: scaleX(1);
}

.razon-card.featured {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

[data-theme="dark"] .razon-card.featured {
  background: #0f1a0f;
  border-color: var(--green-light);
}

.razon-card.featured::before {
  background: var(--orange);
}

.razon-card.featured h3 {
  color: #fff;
}

.razon-card.featured p {
  color: rgba(255, 255, 255, 0.8);
}

.razon-card.featured .card-link {
  color: var(--orange-light);
}

.razon-card.featured .razon-tag {
  background: rgba(219, 146, 58, 0.25);
  color: var(--orange-light);
}

.razon-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tag-bg);
  border: 1px solid rgba(219, 146, 58, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--orange);
  transition: background 0.2s;
}

.razon-card:hover .razon-icon {
  background: rgba(219, 146, 58, 0.18);
}

.razon-card.featured .razon-icon {
  background: rgba(219, 146, 58, 0.2);
  border-color: rgba(219, 146, 58, 0.35);
  color: var(--orange-light);
}

.razon-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--tag-bg);
  color: var(--tag-color);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.razon-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.razon-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
  transition: gap 0.2s;
}

.card-link:hover {
  gap: 10px;
}

/* ══════════════════════════════════════════════════════════════
   VIDEO SCROLL — FANTASMAS FULL-SCREEN
   ──────────────────────────────────────────────────────────────
   CÓMO FUNCIONA EL CÁLCULO:
   · section.offsetHeight = 300vh (espacio de scroll total)
   · scrollRange = section.offsetHeight − window.innerHeight = 200vh
   · progress = −section.getBoundingClientRect().top / scrollRange
   · Cuando top = 0:          progress = 0  (usuario llegó a la sección)
   · Cuando top = −scrollRange: progress = 1  (usuario terminó de scrollear)
   · video.currentTime = progress × video.duration
══════════════════════════════════════════════════════════════ */

.video-section {
  position: relative;
  height: 300vh;
}

/* Sticky ocupa exactamente la pantalla */
.video-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh; /* iOS Safari: excluye la barra de dirección dinámica */
  width: 100%;
  overflow: hidden;
}

/* ── Video full-screen ── */
.scroll-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  /* Hardware acceleration hints for Safari */
  will-change: transform;
  transform: translateZ(0);
}

.scroll-image-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .scroll-video {
    opacity: 0 !important;
    visibility: hidden;
  }
  .scroll-image-mobile {
    display: block !important;
  }
}

/* ── Gradiente de legibilidad ── */
.vs-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, transparent 45%),
    linear-gradient(to left, rgba(0, 0, 0, 0.60) 0%, transparent 45%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
}

/* ── Panels sobre el video ── */
.vs-panel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 300px;
  display: flex;
  flex-direction: column;
}

.vs-panel-left {
  left: max(52px, 5vw);
}

.vs-panel-right {
  right: max(52px, 5vw);
}

/* ── Ghost badge (siempre sobre fondo oscuro) ── */
.ghost-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(219, 146, 58, 0.18);
  border: 1px solid rgba(219, 146, 58, 0.5);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f0a84d;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

/* ── Headings y texto del panel ── */
.vs-panel h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.15;
}

.vs-panel p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

/* ── Stats ── */
.vs-stats {
  display: flex;
  gap: 0;
}

.vs-stat {
  display: flex;
  flex-direction: column;
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.vs-stat:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.vs-stat strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.vs-stat span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

/* ── Lista panel derecho ── */
.vs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.vs-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.vs-list li svg {
  color: var(--orange);
  flex-shrink: 0;
}

/* ── Animaciones scroll-driven (direccionales + stagger) ── */
.anim-item {
  opacity: 0;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.vs-panel-left .anim-item {
  transform: translateX(-40px) scale(0.96);
  filter: blur(6px);
}

.vs-panel-right .anim-item {
  transform: translateX(40px) scale(0.96);
  filter: blur(6px);
}

.anim-item.anim-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Stagger delays para items consecutivos */
.anim-item[data-thresh]:nth-child(1) { transition-delay: 0ms; }
.anim-item[data-thresh]:nth-child(2) { transition-delay: 80ms; }
.anim-item[data-thresh]:nth-child(3) { transition-delay: 160ms; }
.anim-item[data-thresh]:nth-child(4) { transition-delay: 240ms; }
.anim-item[data-thresh]:nth-child(5) { transition-delay: 320ms; }
.anim-item[data-thresh]:nth-child(6) { transition-delay: 400ms; }

/* ── Barra de progreso ── */
.vs-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 3;
}

.vs-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--orange-dark), var(--orange));
  width: 0%;
  transition: width 0.08s linear;
}

/* ── Scroll hint ── */
.vs-scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 3;
  opacity: 1;
  transition: opacity 0.6s ease;
  animation: vs-bounce 1.8s ease-in-out infinite;
  pointer-events: none;
}

.vs-scroll-hint.hidden {
  opacity: 0;
}

@keyframes vs-bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(7px);
  }
}

/* ══════════════════════════════════════════
   FANTASMAS SECTION (solo galería)
══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   FANTASMAS SECTION
══════════════════════════════════════════ */
.fantasmas {
  padding: 100px 0;
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .fantasmas {
  background: #080f08;
}

.fantasmas::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 146, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.fantasmas-teams {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 64px;
}

.team-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  padding: 40px;
}

.team-card.reverse {
  direction: rtl;
}

.team-card.reverse>* {
  direction: ltr;
}

.team-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.team-img-wrap:hover .team-img {
  transform: scale(1.04);
}

.femenil-img {
  filter: hue-rotate(30deg) brightness(1.05);
}

.team-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-badge.varonil {
  background: var(--orange);
  color: #fff;
}

.team-badge.femenil {
  background: #9b4dca;
  color: #fff;
}

.team-info {
  color: #fff;
}

.team-info h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #fff;
}

.team-info p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  line-height: 1.7;
}

.team-logros {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-logros span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(219, 146, 58, 0.15);
  border: 1px solid rgba(219, 146, 58, 0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Section header sobre fondo verde oscuro ── */
.fgal-header h2 {
  color: #ffffff;
}

.fgal-header p {
  color: rgba(255, 255, 255, 0.60);
}

.fgal-header .section-tag {
  background: rgba(219, 146, 58, 0.18);
  color: var(--orange);
  border: 1px solid rgba(219, 146, 58, 0.35);
}

/* ── Expanding Accordion Gallery ── */
.fgal-accordion {
  display: flex;
  width: 100%;
  height: 500px;
  gap: 16px;
}

/* ── Cada item en el acordeón ── */
.fgal-item {
  position: relative;
  flex: 1;
  /* Todos empiezan pequeños */
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* CSS-only Expandable Logic */
.fgal-accordion:not(:hover) .fgal-item.active {
  flex: 4;
}

.fgal-accordion:hover .fgal-item {
  flex: 1;
}

.fgal-accordion .fgal-item:hover {
  flex: 4;
}

/* Imagen ocupa toda la celda sin deformarse */
.fgal-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fgal-item:hover img,
.fgal-accordion:not(:hover) .fgal-item.active img {
  transform: scale(1.05);
}

/* Gradiente inferior para legibilidad */
.fgal-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  height: 140px;
  transition: all 0.5s ease;
  z-index: 2;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

/* El Glassmorphism se activa cuando el item está expandido */
.fgal-item:hover .fgal-caption,
.fgal-accordion:not(:hover) .fgal-item.active .fgal-caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.6) 80%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Layout del texto vs ícono */
.fgal-caption {
  display: flex;
  gap: 16px;
  align-items: center;
}

.fgal-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(219, 146, 58, 0.22);
  color: #f0a84d;
  border: 1px solid rgba(219, 146, 58, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s ease, background 0.4s, color 0.4s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.fgal-item:hover .fgal-icon-box,
.fgal-accordion:not(:hover) .fgal-item.active .fgal-icon-box {
  background: var(--orange);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(219, 146, 58, 0.4);
}

.fgal-text {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(15px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  white-space: nowrap;
  overflow: hidden;
}

.fgal-item:hover .fgal-text,
.fgal-accordion:not(:hover) .fgal-item.active .fgal-text {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.1s;
}

.fgal-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.fgal-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Responsividad para móviles */
@media (max-width: 900px) {
  .fgal-accordion {
    height: 600px;
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .fgal-accordion {
    height: 500px;
  }

  .fgal-caption {
    padding: 16px;
    height: 110px;
  }
}

/* ══════════════════════════════════════════
   BECAS V2
══════════════════════════════════════════ */
.becas {
  padding: 100px 0;
  background: var(--bg-alt);
}

.becas-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.beca-v2-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .beca-v2-card {
  background: rgba(18, 18, 30, 0.6);
  border-color: rgba(219, 146, 58, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.beca-v2-card:hover {
  transform: translateY(-8px);
  border-color: var(--orange);
  box-shadow: 0 20px 50px rgba(219, 146, 58, 0.15);
}

/* Wide Cards */
.b-excellence, .b-help {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

/* Excellence Card Specifics */
.b-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--tag-bg);
  color: var(--tag-color);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.beca-v2-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.2;
}

.b-req-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin: 24px 0 12px;
}

.b-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.b-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}

.b-list.checkmark li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 900;
}

.b-list.dot li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.b-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.b-percentage {
  text-align: center;
  margin-bottom: 20px;
}

.b-percentage strong {
  display: block;
  font-size: 5rem;
  line-height: 1;
  font-weight: 900;
  color: var(--orange);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -3px;
}

.b-percentage span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.b-illus {
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

/* Tall Cards */
.b-sport, .b-socio {
  grid-column: span 1;
}

.b-icon-circle {
  width: 56px;
  height: 56px;
  background: var(--tag-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--orange);
}

.b-percentage-small {
  font-size: 3rem;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.b-spacer { flex-grow: 1; }

.full-width { width: 100%; justify-content: center; }

/* Help Card Bottom */
.b-help {
  margin-top: 0;
}

.b-help-content {
  flex: 1;
}

.b-help-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.btn-help {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-help:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.b-help-img {
  flex: 1.5;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
}

.b-help-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive Becas */
@media (max-width: 1100px) {
  .becas-v2-grid {
    grid-template-columns: 1fr 1fr;
  }
  .b-excellence, .b-help {
    grid-column: span 2;
  }
}

@media (max-width: 800px) {
  .becas-v2-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .b-excellence, .b-sport, .b-socio, .b-help {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
  }
  .b-visual {
    width: 100%;
    margin-top: 30px;
  }
  .b-help-actions {
    flex-direction: column;
  }
  .b-help-img {
    display: none;
  }
  .b-percentage strong {
    font-size: 4rem;
  }
}

/* ══════════════════════════════════════════
   INSTALACIONES
══════════════════════════════════════════ */
.instalaciones {
  padding: 100px 0;
  background: var(--bg);
}

.campus-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 12px;
  margin-bottom: 48px;
}

.campus-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.campus-item.main-img {
  grid-row: span 2;
}

.campus-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.campus-item:hover img {
  transform: scale(1.05);
}

.campus-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.campus-item:hover .campus-label {
  transform: translateY(0);
}

.campus-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.feature:hover {
  border-color: var(--orange);
  color: var(--text);
}

.f-icon {
  flex-shrink: 0;
  color: var(--orange);
}

/* ══════════════════════════════════════════
   PLAN DE ESTUDIOS
══════════════════════════════════════════ */
.plan {
  padding: 100px 0;
  background: var(--bg-alt);
}

.plan-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 56px;
}

.plan-img-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.plan-floating-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
  animation: float-png 6s ease-in-out infinite;
}

[data-theme="dark"] .plan-floating-img {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.plan-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 16px;
  color: var(--text);
}

.plan-content>p {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.mapa-curricular-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.mapa-curricular-box:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
}

.mapa-preview-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: #fff;
}

.mapa-img-preview {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.mapa-preview-wrapper:hover .mapa-img-preview {
  transform: scale(1.02);
}

.mapa-zoom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mapa-preview-wrapper:hover .mapa-zoom-overlay {
  opacity: 1;
}

.mapa-zoom-overlay svg {
  margin-bottom: 8px;
}

.mapa-zoom-overlay span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.mapa-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* Lightbox overlay global */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--orange);
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-overlay.active img {
  transform: scale(1);
}

/* ══════════════════════════════════════════
   CONVENIOS
══════════════════════════════════════════ */
.convenios {
  padding: 100px 0;
  background: var(--bg);
}

/* ── Split Layout for Convenios ── */
.convenios-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Imagen flotante sin contenedor de fondo */
.conv-layout-img {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.floating-png {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
  animation: float-png 6s ease-in-out infinite;
}

@keyframes float-png {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

[data-theme="dark"] .floating-png {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* Stack de tarjetas a la derecha */
.conv-layout-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.conv-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  gap: 16px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.conv-list-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}

.conv-list-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--tag-bg);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.conv-list-text h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text);
}

.conv-list-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Lista de viñetas para idiomas */
.conv-bullet-list {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.conv-bullet-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.conv-bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Logos de Cambridge y CELE */
.conv-logo-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.conv-partner-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  filter: grayscale(100%);
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

.conv-list-card:hover .conv-partner-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Responsividad para móviles */
@media (max-width: 900px) {
  .convenios-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ══════════════════════════════════════════
   SADIE
══════════════════════════════════════════ */
.sadie {
  padding: 100px 0;
  background: var(--sadie-bg);
  position: relative;
  overflow: hidden;
}

.sadie::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 102, 51, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .sadie::before {
  background: radial-gradient(circle, rgba(51, 102, 51, 0.25) 0%, transparent 70%);
}

.sadie-inner {
  position: relative;
  z-index: 1;
}

.sadie-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.sadie-header h2 {
  color: var(--sadie-text);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.sadie-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
}

[data-theme="light"] .sadie-header p {
  color: rgba(255, 255, 255, 0.75);
}

.sadie-list-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 48px;
  text-transform: uppercase;
}

.sadie-items {
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sadie-item {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 32px;
  transition: background 0.3s;
}

.sadie-item:hover {
  background: rgba(255, 255, 255, 0.01);
}

.sadie-letter-box {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.sadie-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
}

.sadie-big-letter {
  font-family: 'Montserrat', sans-serif;
  font-size: 100px;
  font-weight: 900;
  line-height: 0.8;
  background: linear-gradient(135deg, #db923a 0%, #824911 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.sadie-main h3 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.sadie-tags {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.sadie-description p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsividad SADIE */
@media (max-width: 900px) {
  .sadie-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
  }
  
  .sadie-letter-box {
    margin-bottom: 8px;
  }

  .sadie-big-letter {
    font-size: 80px;
  }

  .sadie-main h3 {
    font-size: 1.8rem;
  }
  
  .sadie-list-header {
    font-size: 0.6rem;
  }
}

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

.sadie-quote blockquote {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 12px;
}

.sadie-quote cite {
  font-size: 0.875rem;
  color: var(--orange-light);
  font-style: normal;
}

/* ══════════════════════════════════════════
   CASOS DE ÉXITO
══════════════════════════════════════════ */
.exitos {
  padding: 100px 0;
  background: var(--bg-alt);
}

.exitos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.exito-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.exito-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.exito-card.featured {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(219, 146, 58, 0.05) 100%);
}

.avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--green));
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exito-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exito-content h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text);
}

.exito-tag {
  display: block;
  font-size: 0.75rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 10px;
}

.exito-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}

.exito-destino {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}

[data-theme="dark"] .exito-destino {
  color: var(--green-light);
}

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
.contacto {
  padding: 100px 0;
  background: var(--bg);
}

.contacto-container-simple {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contacto-map {
  width: 100%;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.contacto-info-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contacto-info-full .contacto-datos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  width: 100%;
  text-align: left;
}

.contacto-info-full .social-links {
  margin-top: 48px;
  justify-content: center;
}

.contacto-form-col .section-tag {
  display: block;
  margin-bottom: 12px;
}

.contacto-form-col h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 12px;
  color: var(--text);
}

.contacto-form-col>p {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(219, 146, 58, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--orange);
  border-radius: 4px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(51, 102, 51, 0.12);
  border: 1px solid rgba(51, 102, 51, 0.3);
  border-radius: 12px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-success.show {
  display: flex;
}

[data-theme="dark"] .form-success {
  color: var(--green-light);
}

.contacto-map {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.contacto-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2);
}

[data-theme="dark"] .contacto-map iframe {
  filter: invert(0.9) hue-rotate(180deg) grayscale(0.2);
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.dato-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dato-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

.dato-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.dato-item p,
.dato-item a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.dato-item a:hover {
  color: var(--orange);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.social-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

[data-theme="dark"] .footer {
  background: #080808;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  width: auto;
  margin-bottom: 16px;
}

.footer-logo.logo-light {
  height: 40px;
}

.footer-logo.logo-dark {
  height: 26px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.f-badge {
  padding: 4px 10px;
  background: var(--tag-bg);
  color: var(--tag-color);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer-theme-hint {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ══════════════════════════════════════════
   DARK / FANTASMAS MODE ENHANCEMENTS
══════════════════════════════════════════ */
[data-theme="dark"] .navbar {
  background: rgba(5, 5, 15, 0.95);
  border-bottom-color: rgba(219, 146, 58, 0.15);
}

[data-theme="dark"] .razon-card {
  background: #12121e;
  border-color: rgba(100, 80, 180, 0.15);
}

[data-theme="dark"] .razon-card:hover {
  border-color: var(--orange);
  box-shadow: 0 12px 48px rgba(219, 146, 58, 0.1);
}

[data-theme="dark"] .beca-card,
[data-theme="dark"] .convenio-card,
[data-theme="dark"] .exito-card,
[data-theme="dark"] .feature,
[data-theme="dark"] .campus-item,
[data-theme="dark"] .extra-item {
  background: #12121e;
  border-color: rgba(100, 80, 180, 0.15);
}

[data-theme="dark"] .theme-toggle {
  background: #12121e;
  border-color: rgba(100, 80, 180, 0.25);
}

[data-theme="dark"] .theme-toggle:hover {
  border-color: var(--orange);
}

/* Fantasmas Mode ghost glow effects */
[data-theme="dark"] .hero-highlight {
  text-shadow: 0 0 40px rgba(219, 146, 58, 0.5);
}

[data-theme="dark"] .letter-circle {
  box-shadow: 0 4px 24px rgba(219, 146, 58, 0.5), 0 0 60px rgba(219, 146, 58, 0.2);
}

[data-theme="dark"] .sadie-letter:hover {
  box-shadow: 0 0 40px rgba(51, 102, 51, 0.2);
}

[data-theme="dark"] .razon-card.featured {
  box-shadow: 0 0 60px rgba(51, 102, 51, 0.15);
}

[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(51, 102, 51, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(219, 146, 58, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal[data-delay="100"] {
  transition-delay: 0.1s;
}

.reveal[data-delay="200"] {
  transition-delay: 0.2s;
}

.reveal[data-delay="300"] {
  transition-delay: 0.3s;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .razones-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .becas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sadie-letters {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .banner-inner {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: none;
  }

  .navbar {
    top: 0 !important;
  }
  
  .navbar.scrolled {
    transform: translateY(0) !important;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .theme-label {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    gap: 2px;
  }

  .nav-links.open a {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
  }

  /* Hero en tablet/mobile — stacked */
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .hero-img-panel {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .hero-img-overlay {
    background: linear-gradient(to bottom, rgba(11, 26, 11, 0.65) 0%, rgba(11, 26, 11, 0.35) 55%, rgba(11, 26, 11, 0.60) 100%);
  }

  /* Dark mode mobile: el hero-content también es transparente */
  [data-theme="dark"] .hero-img-overlay {
    background: linear-gradient(to bottom, rgba(2, 5, 2, 0.60) 0%, rgba(2, 5, 2, 0.25) 55%, rgba(2, 5, 2, 0.55) 100%);
  }

  .hero-content {
    background: transparent;
    padding: 120px 28px 40px;
    position: relative;
    z-index: 2;
    justify-content: center;
  }

  .hero-content::after,
  [data-theme="dark"] .hero-content::after {
    display: none;
  }

  /* Dark mode: hero-content sigue siendo transparente en mobile */
  [data-theme="dark"] .hero-content {
    background: transparent;
  }

  .hero-float-card {
    display: none;
  }

  .banner-inner {
    grid-template-columns: 1fr;
  }

  .plan-split {
    grid-template-columns: 1fr;
  }

  .plan-img-col {
    display: none;
  }

  .contacto-split {
    grid-template-columns: 1fr;
  }

  .fgal-grid {
    gap: 8px;
  }

  .team-card {
    grid-template-columns: 1fr;
  }

  .team-card.reverse {
    direction: ltr;
  }

  /* Video section tablet — panels en la parte inferior */
  .video-section {
    height: 280vh;
  }

  .vs-panel {
    top: auto;
    transform: none;
    bottom: 20px;
    max-width: 44vw;
    padding: 16px 18px;
    background: rgba(5, 5, 18, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--orange);
    border-radius: 14px;
  }

  .vs-panel-left {
    left: 12px;
  }

  .vs-panel-right {
    right: 12px;
  }

  .vs-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .vs-panel p {
    display: none;
  }

  .vs-stats {
    gap: 0;
  }

  .vs-stat strong {
    font-size: 1.4rem;
  }

  /* En tablet: animaciones desde abajo con blur */
  .vs-panel-left .anim-item {
    transform: translateY(28px) scale(0.95);
    filter: blur(5px);
  }

  .vs-panel-right .anim-item {
    transform: translateY(28px) scale(0.95);
    filter: blur(5px);
  }

  .anim-item.anim-visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }

  .campus-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .campus-item.main-img {
    grid-row: span 1;
    grid-column: span 2;
  }

  .campus-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .convenios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

.footer-devcom {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-devcom:hover {
  color: var(--orange);
}

.devcom-logo {
  height: 22px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s, filter 0.3s;
}

[data-theme="dark"] .devcom-logo {
  filter: brightness(0) invert(1);
}

.footer-devcom:hover .devcom-logo {
  opacity: 1;
}

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsappBounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

[data-theme="dark"] .whatsapp-float {
  background-color: rgba(219, 146, 58, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(219, 146, 58, 0.5);
  color: var(--orange-light);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(219, 146, 58, 0.3);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: #fff;
}

[data-theme="dark"] .whatsapp-float:hover {
  background-color: var(--orange);
  border-color: var(--orange);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(219, 146, 58, 0.6);
}

@keyframes whatsappBounceIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 24px;
    right: 24px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .stat-divider {
    display: none;
  }

  .scroll-hint {
    display: none !important;
  }

  .stat {
    padding: 0;
  }

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

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

  .sadie-letters {
    grid-template-columns: repeat(2, 1fr);
  }

  .sadie-letters .sadie-letter:last-child {
    grid-column: span 2;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

  /* Countdown — ajuste mobile para que no se salga */
  .banner-countdown {
    padding: 20px 16px;
  }

  .countdown-grid {
    gap: 4px;
  }

  .count-item {
    min-width: 0;
    padding: 8px 6px;
  }

  .count-sep {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  /* Video section mobile: paneles compactos en esquinas sin tapar el video */
  .video-section {
    height: 300vh;
  }

  .vs-panel {
    max-width: calc(100% - 32px);
    width: 100%;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.15); /* Maximum transparency */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 2px solid var(--orange);
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  .vs-panel-left {
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    bottom: 20px !important; /* Stacked at the bottom */
  }

  .vs-panel-right {
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    bottom: 20px !important; /* Both in the same spot, they will swap via scroll */
  }

  .vs-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #fff;
  }

  .vs-panel p {
    display: block;
    font-size: 0.75rem;
    line-height: 1.4;
    opacity: 0.9;
    margin-bottom: 8px;
  }

  .vs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 12px;
  }

  .vs-list li {
    font-size: 0.65rem !important;
    padding: 0 !important;
  }

  .vs-panel .btn-primary {
    display: inline-flex;
    padding: 8px 16px;
    font-size: 0.75rem;
    width: auto;
  }

  .vs-stats {
    gap: 0;
    flex-wrap: nowrap;
  }

  .vs-stat {
    padding-right: 10px;
    margin-right: 10px;
  }

  .vs-stat strong {
    font-size: 1.1rem;
  }

  .vs-stat span {
    font-size: 0.6rem;
  }

  .ghost-badge {
    font-size: 0.6rem;
    padding: 3px 7px;
    margin-bottom: 6px;
  }

  /* Mobile: animaciones desde abajo con blur */
  .vs-panel-left .anim-item,
  .vs-panel-right .anim-item {
    transform: translateY(24px) scale(0.95);
    filter: blur(5px);
  }

  .anim-item.anim-visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }

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

  .campus-item.main-img {
    grid-column: span 1;
  }

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

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

  /* Galería fantasmas: columna única en mobile con fotos más altas */
  .fgal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fgal-item {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .fgal-tag {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
    text-align: center;
  }

  section {
    padding: 72px 0;
  }

  .razones,
  .becas,
  .instalaciones,
  .plan,
  .convenios,
  .sadie,
  .exitos,
  .contacto {
    padding: 72px 0;
  }
  .contacto-info-full .contacto-datos {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ══════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 3px;
}

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

/* ══════════════════════════════════════════
   SELECTION
══════════════════════════════════════════ */
::selection {
  background: rgba(219, 146, 58, 0.25);
  color: var(--text);
}

/* ══════════════════════════════════════════
   FANTASMAS PARALLAX & TRAIL
══════════════════════════════════════════ */
.fps-parallax-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.fps-ball {
  position: absolute;
  color: var(--orange-light);
  filter: drop-shadow(0 0 10px rgba(219, 146, 58, 0.4));
  will-change: transform;
}

.fps-ball-svg {
  width: 100%;
  height: 100%;
  animation: fpsFloat 5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  will-change: transform, opacity;
}

.fps-reverse-anim {
  animation-name: fpsFloatReverse;
}

@keyframes fpsFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  100% { transform: translateY(-30px) rotate(15deg); opacity: 0.5; }
}

@keyframes fpsFloatReverse {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  100% { transform: translateY(30px) rotate(-15deg); opacity: 0.5; }
}

.fps-trail-ball {
  position: absolute;
  color: var(--orange-light);
  will-change: transform, opacity;
  animation: fpsTrailFloat 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes fpsTrailFloat {
  0% {
    transform: translate(0, 0) scale(0.6) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(1.4) rotate(var(--rot));
    opacity: 0;
  }
}

/* ══════════════════════════════════════════
   MODERN GALLERY CAROUSEL (Campus)
══════════════════════════════════════════ */
.modern-carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 40px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  background: var(--bg-card);
}

[data-theme="dark"] .modern-carousel-wrapper {
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  background: #12121e;
  border: 1px solid rgba(100, 80, 180, 0.15);
}

.carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar */
  scrollbar-width: none;
}
.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  height: 50vh;
  min-height: 400px;
  max-height: 600px;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

.carousel-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 50px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.c-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.c-btn:hover {
  background: var(--orange);
  color: #fff !important;
  transform: scale(1.1);
}

.carousel-indicators {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .carousel-track {
    height: 40vh;
    min-height: 300px;
  }
}