/*
Theme Name: Especial La Mirada V3
Author: La Mirada Norte
Version: 11.0
Text Domain: la-mirada-v3
*/
/* =========================================================================
   ESPECIAL COLEGIOS 2026 - LA MIRADA NORTE
   ========================================================================= */

:root {
  /* Brand Colors - La Mirada Norte Identity */
  --primary: #6abaed; /* Cyan/Blue main brand color */
  --primary-hover: #52a3d6; /* Slightly darker for hover states */
  --support-dark: #1e3a8a; /* Old Primary, now secondary dark blue text/bg support */
  --support-light: #4299e1; 
  
  /* Neutral Colors */
  --bg-light: #f7fafc;
  --bg-dark: #1a202c;
  --text-dark: #1f2937; /* Darker text for great contrast */
  --text-muted: #4a5568;
  --white: #ffffff;
  --border: #e2e8f0;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Shadows & Transitions */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-hover: 0 25px 50px -12px rgba(0,0,0,0.15), 0 15px 15px -5px rgba(0,0,0,0.04);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================================
   BASE STYLES
   ========================================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
button, input, select { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* UTILITIES */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-pad { padding: 7rem 0; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.m-auto { margin: 0 auto; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.75rem; }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--white); }
.bg-dark-blue { background-color: #111827; color: var(--white); }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text-dark); margin-bottom: 1rem; }
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; color: var(--support-dark); }
h3 { font-size: 1.15rem; }
.bg-dark-blue h3, .hero h1, .hero p, .hero-label { color: var(--white); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary { background-color: var(--primary); color: var(--white); box-shadow: 0 4px 14px rgba(106, 186, 237, 0.4); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(106, 186, 237, 0.6); }
.btn-outline { border: 2px solid var(--border); color: var(--text-dark); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-full { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-full:hover { background: var(--primary); color: var(--white); }
.btn-outline-sm { border: 1.5px solid var(--border); padding: 0.5rem 1rem; font-size: 0.875rem; border-radius: 0.375rem; }
.btn-outline-sm:hover { border-color: var(--text-dark); }
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; }

/* Effects */
.tilt-element { transition: transform 0.1s ease-out; transform-style: preserve-3d; will-change: transform; }
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================================================
   HEADER
   ========================================================================= */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.header-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.header-logo-img { height: 35px; width: auto; object-fit: contain; }
.logo-bold { font-weight: 800; color: var(--support-dark); font-size: 1.25rem; }
.main-nav { display: none; gap: 1.5rem; align-items: center; font-weight: 500; font-size: 0.95rem; }
@media (min-width: 768px) {
  .main-nav { display: flex; }
}
.main-nav a:not(.btn) { color: var(--text-muted); }
.main-nav a:not(.btn):hover { color: var(--primary); }

/* =========================================================================
   1) HERO PRINCIPAL
   ========================================================================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, #111827 0%, var(--support-dark) 100%);
  padding: 6rem 0 8rem 0;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; position: relative; z-index: 2; }
.hero-label { display: inline-block; color: var(--primary); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 1rem; }
.hero-content h1 { font-size: 3rem; margin-bottom: 1.5rem; text-wrap: balance; }
.hero-content .subtitle { font-size: 1.25rem; font-weight: 300; opacity: 0.9; margin-bottom: 1rem; text-wrap: balance; }
.hero-content .description { font-size: 1.05rem; opacity: 0.75; margin-bottom: 2.5rem; max-width: 540px; }

.hero-visual { position: relative; height: 300px; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
.abstract-shape { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.6; animation: floatShape 8s ease-in-out infinite alternate; }
.shape-1 { width: 250px; height: 250px; background: var(--primary); top: -20px; right: 20px; }
.shape-2 { width: 200px; height: 200px; background: #c084fc; bottom: -20px; left: 40px; animation-delay: -4s; }

.abstract-card {
  position: relative;
  width: 220px; height: 280px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 1.5rem;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); z-index: 10;
}
.abstract-card i { font-size: 4rem; color: #fff; margin-bottom: 2rem; opacity: 0.9; }
.abstract-lines { width: 70%; display: flex; flex-direction: column; gap: 0.75rem; }
.abstract-lines .line { height: 6px; background: rgba(255, 255, 255, 0.3); border-radius: 3px; width: 100%; }
.abstract-lines .w-75 { width: 75%; }

@keyframes floatShape {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-20px, 30px) scale(1.1); }
}

/* =========================================================================
   2) 4 SOLUCIONES
   ========================================================================= */
.solutions { position: relative; padding-top: 2rem; padding-bottom: 6rem; }
.solutions-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.solution-card {
  background: var(--white); padding: 2.5rem 2rem; border-radius: 1rem;
  box-shadow: var(--shadow-md); color: var(--text-dark); text-align: center;
  border: 1px solid var(--border); transition: box-shadow 0.3s ease;
}
.solution-card:hover { box-shadow: var(--shadow-hover); }
.solution-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--support-dark); }
.solution-card p { font-size: 0.95rem; color: var(--text-muted); }
.icon-wrapper {
  width: 60px; height: 60px;
  background: rgba(106, 186, 237, 0.1); color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 1.5rem auto;
}

/* =========================================================================
   3) CARRUSEL PUBLICIDAD
   ========================================================================= */
.sponsors-section { background-color: rgba(106, 186, 237, 0.03); border-top: 1px solid rgba(106, 186, 237, 0.15); border-bottom: 1px solid rgba(106, 186, 237, 0.15); }
.sponsors-section .section-header { max-width: 600px; margin: 0 auto 3rem auto; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); }

.carousel-wrapper { position: relative; display: flex; align-items: center; gap: 1rem; }
.carousel-nav {
  background: var(--white); border: 1px solid var(--border); width: 44px; height: 44px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--primary); box-shadow: var(--shadow-sm); z-index: 10;
  transition: var(--transition); flex-shrink: 0;
}
.carousel-nav:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.carousel-track-container {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none;
  border-radius: 0.5rem; padding: 1rem 0;
}
.carousel-track-container::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 1.5rem; margin: 0; padding: 0; }

.carousel-slide {
  flex: 0 0 280px; height: 280px; scroll-snap-align: center; border-radius: 1.5rem;
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); padding: 0; transition: transform 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}
.carousel-slide:hover { transform: translateY(-5px); }
.carousel-slide.panoramic { flex: 0 0 350px; }

.slide-content { position: relative; z-index: 2; padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); }
.slide-content h3 { color: var(--white); margin-bottom: 0.5rem; font-size: 1.25rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.slide-content span, .slide-content strong { display: block; font-size: 0.9rem; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.btn-slide { background: var(--white); color: var(--support-dark); border: none; padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.8rem; font-weight: 700; cursor: pointer; margin-top: 0.5rem; transition: var(--transition); }
.btn-slide:hover { background: var(--primary); color: var(--white); }

/* Banner image covering the slide */
.carousel-slide img.banner-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.5s ease; }
.carousel-slide:hover img.banner-img { transform: scale(1.03); }


/* =========================================================================
   4) ARTÍCULO INTRODUCTORIO
   ========================================================================= */
.intro-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.intro-text h2 { color: var(--support-dark); margin-bottom: 1.5rem; }
.intro-text p { margin-bottom: 1.25rem; font-size: 1.05rem; color: var(--text-muted); }
.intro-text p:first-of-type { font-weight: 500; color: var(--text-dark); font-size: 1.15rem; }
.intro-visual { display: flex; justify-content: center; position: relative; }
.illustration-box {
  width: 100%; max-width: 400px; height: 350px;
  border-radius: 1.5rem; background: var(--bg-light);
  position: relative; display: flex; justify-content: center; align-items: center;
  box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border);
}
.illustration-box .bg-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 80% 20%, rgba(106, 186, 237, 0.2), transparent 60%); }
.icon-center { font-size: 6rem; color: var(--primary); position: relative; z-index: 2; opacity: 0.8; }
.floating-bubble {
  position: absolute; background: var(--white); width: 60px; height: 60px;
  border-radius: 50%; display: flex; justify-content: center; align-items: center;
  box-shadow: var(--shadow-md); color: var(--support-dark); font-size: 1.5rem; z-index: 3;
}
.bubble-1 { top: 20%; right: 15%; animation: floatShape 6s infinite alternate; }
.bubble-2 { bottom: 20%; left: 15%; animation: floatShape 5s infinite alternate-reverse; }

/* =========================================================================
   5) GRID DE 14 COLEGIOS
   ========================================================================= */
.schools-grid-section h2 { text-align: center; color: var(--support-dark); margin-bottom: 2rem; }
.filters-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 3rem; }
.filter-group { display: flex; align-items: center; background: var(--white); padding: 0.5rem 1rem; border-radius: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.filter-group i { color: var(--primary); margin-right: 0.5rem; }
.filter-group select { border: none; outline: none; background: transparent; font-size: 0.95rem; color: var(--text-dark); cursor: pointer; padding-right: 0.5rem; font-weight: 500;}

.schools-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.school-card {
  background: var(--white); border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: box-shadow 0.3s ease;
}
.school-card:hover { box-shadow: var(--shadow-hover); }

/* Updated Image Space for Schools */
.card-image {
  width: 100%;
  aspect-ratio: 16 / 9; /* Ensures uniform photography layout */
  height: 200px; /* Fixed height for mobile to avoid jumping */
  overflow: hidden;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .card-image { height: auto; }
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.school-card:hover .card-image img {
  transform: scale(1.04);
}

.card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.school-card h3 { margin-bottom: 0.25rem; font-size: 1.2rem; color: var(--support-dark); }
.location-line { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; font-weight: 500; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { background: var(--bg-light); border: 1px solid var(--border); font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 1rem; color: var(--text-dark); font-weight: 500; }
.chip-primary { background: rgba(106, 186, 237, 0.1); color: var(--primary-hover); border-color: rgba(106, 186, 237, 0.2); }
.chip-outline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.school-card .desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.school-card.hidden { display: none; }

/* =========================================================================
   6) ARTÍCULOS DESTACADOS: Hablamos con los colegios
   ========================================================================= */
.featured-articles h2 { margin-bottom: 1rem; }
.articles-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
.article-card {
  display: flex; flex-direction: column;
  background: var(--bg-light); border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--border); transition: var(--transition);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.article-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--border);
}
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-image img { transform: scale(1.03); }

.article-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; background: var(--white); }
.article-content h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--support-dark); }
.article-content p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.link-external { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; }

/* =========================================================================
   7) NEWSLETTER / CONTACTO
   ========================================================================= */
.newsletter-section { overflow: hidden; }
.newsletter-box {
  background: var(--white); border-radius: 1.5rem; box-shadow: var(--shadow-lg); padding: 3rem 2rem;
  display: grid; grid-template-columns: 1fr; gap: 3rem; border: 1px solid var(--border); position: relative; z-index: 2;
}
.newsletter-text h2 { color: var(--support-dark); }
.newsletter-text p { font-size: 1.05rem; color: var(--text-muted); }

.form-group { margin-bottom: 1.25rem; }
.form-group input[type="text"], .form-group input[type="email"], .form-group select {
  width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--border); border-radius: 0.5rem;
  background: var(--bg-light); font-size: 1rem; color: var(--text-dark); transition: var(--transition);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(106, 186, 237, 0.2); }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.5rem; }
.checkbox-group input { margin-top: 0.3rem; }
.checkbox-group label { font-size: 0.85rem; color: var(--text-muted); }
.checkbox-group a { color: var(--primary); text-decoration: underline; }

.newsletter-section .bg-pattern {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--bg-light); background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 30px 30px; z-index: 1;
}
.relative { position: relative; }
.z-10 { z-index: 10; }

/* =========================================================================
   8) FOOTER
   ========================================================================= */
.main-footer { background: var(--bg-dark); color: var(--bg-light); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }

.footer-logo-img { height: 45px; width: auto; object-fit: contain; }
.footer-brand .logo-bold { color: var(--white); }
.badge-footer { background: rgba(255,255,255,0.1); margin-left: 0; display: inline-block; margin-top: 0.5rem;}
.footer-brand p { color: #a0aec0; font-size: 0.9rem; margin-top: 1.5rem; max-width: 320px; }

.footer-links h4, .footer-social h4 { color: var(--white); margin-bottom: 1rem; font-size: 1.1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.75rem; list-style: none;}
.footer-links a { color: #a0aec0; font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); }

.social-icons { display: flex; gap: 1rem; }
.social-icons a {
  display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--white); transition: var(--transition);
}
.social-icons a:hover { background: var(--primary); transform: translateY(-3px); }

/* Decor Map */
.map-illustration { position: relative; width: 100%; max-width: 200px; height: 150px; background: rgba(255,255,255,0.05); border-radius: 1rem; padding: 1rem; overflow: hidden; }
.map-path { position: absolute; top: 50%; left: 10%; right: 10%; height: 2px; background: dashed 2px rgba(255,255,255,0.2); }
.map-pin { position: absolute; color: var(--primary); font-size: 1.25rem; filter: drop-shadow(0 0 5px rgba(106, 186, 237, 0.5)); cursor: help; }
.pin-1 { top: 20%; left: 30%; } /* La Moraleja */
.pin-2 { top: 40%; left: 50%; } /* Alcobendas */
.pin-3 { top: 30%; left: 70%; } /* Sanse */
.pin-4 { top: 70%; left: 20%; } /* Tres Cantos */

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; }
.footer-bottom p { color: #718096; font-size: 0.85rem; }

/* =========================================================================
   9) RESPONSIVE & BREAKPOINTS
   ========================================================================= */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  .section-pad { padding: 7rem 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; text-align: left; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 3fr 2fr; }
  
  .schools-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  
  .newsletter-box { grid-template-columns: 1fr 1fr; align-items: center; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  
  .carousel-slide { flex: 0 0 350px; height: 320px; }
  .carousel-slide.panoramic { flex: 0 0 450px; }
}

@media (min-width: 1024px) {
  .hero-content h1 { font-size: 3.5rem; }
  .schools-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- 🚀 MEJORAS DE V11 (SEO, ICONOS SVG Y GRID PUBLICIDAD MÓVIL) --- */

/* 1. MÓDULO DE GALERÍA DE PATROCINADORES (SIN CARRUSEL) */
.sponsors-grid-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil SIEMPRE */
    gap: 15px;
    margin-top: 20px;
}
@media(min-width: 600px) {
    .sponsors-grid-mobile { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media(min-width: 900px) {
    .sponsors-grid-mobile { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
.sponsor-card-css {
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3; /* Fija un cuadro perfecto */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.sponsor-card-css img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important; /* El logo NUNCA se corta */
}
.sponsor-card-css:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(106, 186, 237, 0.3);
}

/* 2. ICONOS SVG PUROS (BYPASS DE FUENTES ROTAS) */
.social-icons a {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
}
.social-icons a:hover {
    background: var(--primary); color: white !important;
}

/* Resto de animaciones (V10 heredadas puestas aquí por seguridad) */
.reveal-fade { opacity: 0; transition: opacity 0.8s ease-out; }
.reveal-fade.visible { opacity: 1; }
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 100ms; } .delay-2 { transition-delay: 200ms; } .delay-3 { transition-delay: 300ms; }

.school-card, .article-card { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); background: #ffffff; border: 1px solid var(--border); overflow: hidden; }
.school-card:hover, .article-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 30px 60px -15px rgba(106, 186, 237, 0.25); border-color: rgba(106, 186, 237, 0.4); z-index: 2; }
.image-hover-zoom img { transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.school-card:hover .image-hover-zoom img, .article-card:hover .image-hover-zoom img { transform: scale(1.06); }

.shine-button { position: relative; overflow: hidden; }
.shine-button::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: rgba(255, 255, 255, 0.2); transform: rotate(45deg); transition: all 0.3s; opacity: 0; margin-left: -100%; }
.shine-button:hover::after { margin-left: 100%; opacity: 1; transition: all 0.6s ease-in-out; }
.btn-hover-fill { transition: background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.4s; }
.btn-hover-fill:hover { background: var(--primary) !important; color: white !important; }

.pulse-btn { box-shadow: 0 0 0 0 rgba(106, 186, 237, 0.7); animation: pulseGlow 2s infinite cubic-bezier(0.66, 0, 0, 1); }
@keyframes pulseGlow { to { box-shadow: 0 0 0 15px rgba(106, 186, 237, 0); } }

.icon-bounce { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.icon-bounce:hover { transform: translateY(-5px) scale(1.2); }

.hover-underline { position: relative; }
.hover-underline::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; right: 0; background-color: var(--primary); transition: width 0.3s ease; }
.hover-underline:hover::after { width: 100%; left: 0; right: auto; }

.dynamic-3d-card { background: linear-gradient(135deg, rgba(106, 186, 237, 0.2), rgba(30, 58, 138, 0.4)) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important; border: 2px solid rgba(106, 186, 237, 0.5) !important; transition: transform 0.1s linear; will-change: transform; }
.dynamic-3d-card i { font-size: 5rem; text-shadow: 0 10px 20px rgba(0,0,0,0.5); color: var(--primary); animation: floatingIcon 4s ease-in-out infinite alternate !important; }
@keyframes floatingIcon { from { transform: translateY(0) scale(1); } to { transform: translateY(-10px) scale(1.1); color: #ffffff; } }

@keyframes popScaleFront { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
