/* ===== VARIABLES ===== */
:root {
  --blue: #0e2d7a;
  --blue-dark: #071a52;
  --blue-light: #1a4abf;
  --gold: #F5C518;
  --gold-dark: #d4a017;
  --red: #CC2200;
  --white: #ffffff;
  --gray: #f4f6fb;
  --gray-dark: #6b7280;
  --black: #0a0a0a;
  --whatsapp: #25D366;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(14,45,122,0.18);
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--black); overflow-x: hidden; }
img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
section { padding: 80px 0; }

/* ===== UTILITY ===== */
.container { width:90%; max-width:1200px; margin:0 auto; }
.btn {
  display: inline-flex; align-items:center; gap:10px;
  padding: 14px 30px; border-radius: 50px; font-weight:700;
  font-family:'Montserrat',sans-serif; font-size:1rem;
  cursor:pointer; border:none; transition: var(--transition);
  text-decoration:none;
}
.btn-gold { background: var(--gold); color: var(--blue-dark); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(245,197,24,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-dark); transform: translateY(-3px); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-light); transform: translateY(-3px); box-shadow: var(--shadow); }

.section-tag {
  display:inline-block; background: rgba(245,197,24,0.15); color: var(--gold-dark);
  border: 1px solid var(--gold); padding: 6px 18px; border-radius:50px;
  font-size:.82rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
  margin-bottom:16px;
}
.section-title {
  font-family:'Montserrat',sans-serif; font-weight:900;
  font-size: clamp(1.8rem, 4vw, 2.8rem); line-height:1.2;
  color: var(--blue-dark); margin-bottom:16px;
}
.section-title span { color: var(--red); }
.section-sub { font-size:1.05rem; color: var(--gray-dark); max-width:600px; line-height:1.7; }
.text-center { text-align:center; }
.text-center .section-sub { margin:0 auto; }

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}
@keyframes floatSign {
  0%,100% { transform: translateY(0px) rotate(-8deg); }
  50% { transform: translateY(-22px) rotate(5deg); }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(40px); }
  to { opacity:1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity:0; transform: translateX(-40px); }
  to { opacity:1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity:0; transform: translateX(40px); }
  to { opacity:1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity:0; transform: scale(0.85); }
  to { opacity:1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.reveal { opacity:0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity:1; transform: translateY(0); }
.reveal-left { opacity:0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity:1; transform: translateX(0); }
.reveal-right { opacity:0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity:1; transform: translateX(0); }

/* ===== LOADING SCREEN ===== */
#loader {
  position:fixed; inset:0; z-index:9999;
  background: var(--blue-dark);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hide { opacity:0; visibility:hidden; }
.loader-lion {
  width:80px; height:80px; margin-bottom:20px;
  border:5px solid rgba(245,197,24,0.2);
  border-top-color: var(--gold);
  border-radius:50%; animation: spin 0.9s linear infinite;
}
.loader-text { color:var(--white); font-family:'Montserrat',sans-serif; font-weight:700; font-size:1.1rem; letter-spacing:2px; }

/* ===== NAVBAR ===== */
#navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding: 16px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: #0e2d7a !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  padding: 10px 0;
}
.nav-inner {
  display:flex; align-items:center; justify-content:space-between;
}
.nav-logo {
  display:flex; align-items:center; gap:12px;
}
.nav-logo img {
  height:52px; width:52px; object-fit:contain; border-radius:50%;
  border:2px solid var(--gold);
}
.nav-brand {
  line-height:1.2;
}
.nav-brand-name {
  font-family:'Montserrat',sans-serif; font-weight:900;
  font-size:1.25rem; color:var(--white);
  letter-spacing:1px;
}
.nav-brand-sub {
  font-size:.7rem; color:var(--gold); letter-spacing:2px; text-transform:uppercase;
}

.nav-links {
  display:flex; align-items:center; gap:32px;
}
.nav-links a {
  color: rgba(255,255,255,0.85); font-weight:500; font-size:.95rem;
  transition: var(--transition); position:relative;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0; right:0; height:2px;
  background: var(--gold); transform:scaleX(0); transition: var(--transition);
}
.nav-links a:hover { color:var(--white); }
.nav-links a:hover::after { transform:scaleX(1); }

.nav-cta { margin-left:16px; }

/* Hamburger */
.hamburger {
  display:none; flex-direction:column; gap:5px;
  cursor:pointer; background:none; border:none; padding:5px;
}
.hamburger span {
  display:block; width:26px; height:3px; background:var(--white);
  border-radius:3px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 8px); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }

.mobile-menu {
  display:none; position:fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(7,26,82,0.98); backdrop-filter:blur(20px);
  z-index:999; flex-direction:column; align-items:center; justify-content:center; gap:36px;
}
.mobile-menu.open { display:flex; }
.mobile-menu a { color:var(--white); font-family:'Montserrat',sans-serif; font-size:1.8rem; font-weight:700; }
.mobile-menu a:hover { color:var(--gold); }

/* ===== HERO VIDEO SCRUB ===== */
#hero-video-container {
  /* La altura se define inline (400vh) para dar espacio al scrub */
}
.hero-sticky {
  display: flex; align-items: center; justify-content: center;
}
.hero-video-fallback {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, #071a52 0%, #0a1f6b 50%, #071052 100%);
  background-size: 400% 400%;
  animation: heroGradientShift 8s ease infinite;
}
/* Si hay video real, ocultar el fallback */
#heroVideo[src]:not([src=""]) + .hero-video-fallback { display: none; }
@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-video-dark-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, rgba(7,26,82,0.55) 0%, rgba(7,26,82,0.3) 60%, rgba(7,26,82,0.6) 100%);
  transition: opacity 0.1s linear;
}
.hero-overlay-content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 0 max(5%, calc((100% - 1200px) / 2 + 5%));
  padding-top: 90px;
  transition: opacity 0.1s linear, transform 0.1s linear;
}
/* Reutiliza clases del hero anterior (.hero-badge, .hero-title, etc.) */

/* ===== HERO (legado - clases reutilizadas por overlay) ===== */
#hero {
  min-height:100vh; position:relative; overflow:hidden;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0a1f6b 50%, #071052 100%);
  display:flex; align-items:center; padding-top:90px;
}
.hero-bg-pattern {
  position:absolute; inset:0; overflow:hidden; pointer-events:none;
}
.hero-bg-pattern::before {
  content:''; position:absolute; top:-30%; right:-10%;
  width:600px; height:600px; border-radius:50%;
  background: radial-gradient(circle, rgba(245,197,24,0.12) 0%, transparent 70%);
}
.hero-bg-pattern::after {
  content:''; position:absolute; bottom:-20%; left:-10%;
  width:400px; height:400px; border-radius:50%;
  background: radial-gradient(circle, rgba(26,74,191,0.3) 0%, transparent 70%);
}

/* Floating traffic signs */
.sign { position:absolute; opacity:0.12; pointer-events:none; }
.sign-1 { top:15%; left:5%; animation: floatSign 5s ease-in-out infinite; }
.sign-2 { top:60%; right:4%; animation: floatSign 7s ease-in-out infinite 1s; }
.sign-3 { bottom:15%; left:15%; animation: floatSign 6s ease-in-out infinite 2s; }
.sign-4 { top:30%; right:20%; animation: floatSign 8s ease-in-out infinite 0.5s; }

.hero-inner {
  display:grid; grid-template-columns:1fr 1fr; gap:60px;
  align-items:center; width:100%;
}
.hero-content { animation: fadeInLeft 1s ease both; }
.hero-badge {
  display:inline-flex; align-items:center; gap:10px;
  background: rgba(245,197,24,0.15); border:1px solid rgba(245,197,24,0.4);
  padding:8px 20px; border-radius:50px; margin-bottom:28px;
}
.hero-badge img { height:28px; }
.hero-badge span { color:var(--gold); font-size:.85rem; font-weight:700; letter-spacing:1px; }

.hero-title {
  font-family:'Montserrat',sans-serif; font-weight:900;
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height:1.1;
  color:var(--white); margin-bottom:20px;
}
.hero-title .highlight {
  color: var(--gold);
  background: linear-gradient(90deg, var(--gold), #fff59d, var(--gold));
  background-size:200% auto;
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
  animation: shimmer 3s linear infinite;
}
.hero-sub {
  font-size:1.1rem; color:rgba(255,255,255,0.8); line-height:1.7;
  margin-bottom:36px; max-width:480px;
}
.hero-buttons { display:flex; flex-wrap:wrap; gap:16px; margin-bottom:40px; }

.hero-stats {
  display:flex; gap:32px; flex-wrap:wrap;
}
.hero-stat { text-align:center; }
.hero-stat-num { font-family:'Montserrat',sans-serif; font-weight:900; font-size:1.8rem; color:var(--gold); }
.hero-stat-label { font-size:.78rem; color:rgba(255,255,255,0.65); text-transform:uppercase; letter-spacing:1px; }

.hero-image {
  display:flex; justify-content:center; align-items:flex-end;
  position:relative; animation: fadeInRight 1s ease both 0.3s;
}
.mascot-wrap {
  position:relative; animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}
.mascota-img {
  width:100%; max-width:420px; object-fit:contain;
}
.hero-glow {
  position:absolute; bottom:-20px; left:50%; transform:translateX(-50%);
  width:280px; height:40px; border-radius:50%;
  background: radial-gradient(ellipse, rgba(245,197,24,0.4), transparent);
  filter:blur(10px);
}

.scroll-indicator {
  position:absolute; bottom:30px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  animation: fadeInUp 1s ease both 1.5s; z-index:4;
}
/* Cuando está dentro del overlay-content, el position:absolute lo posiciona
   relativo al hero-sticky que es position:sticky */
.scroll-indicator span { color:rgba(255,255,255,0.5); font-size:.75rem; letter-spacing:2px; text-transform:uppercase; }
.scroll-arrow {
  width:24px; height:24px; border-right:2px solid rgba(255,255,255,0.4);
  border-bottom:2px solid rgba(255,255,255,0.4);
  transform:rotate(45deg); animation: float 1.5s ease-in-out infinite;
}

/* ===== STATS BAND ===== */
#stats {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 60px 0;
}
.stats-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:30px;
}
.stat-card {
  text-align:center; padding:30px 20px;
  border: 1px solid rgba(245,197,24,0.2); border-radius:var(--radius);
  background: rgba(255,255,255,0.05);
  transition: var(--transition);
}
.stat-card:hover { background: rgba(245,197,24,0.1); border-color:var(--gold); transform:translateY(-5px); }
.stat-icon { font-size:2.2rem; margin-bottom:12px; display:flex; justify-content:center; }
.stat-num {
  font-family:'Montserrat',sans-serif; font-weight:900;
  font-size:2.8rem; color:var(--gold); line-height:1;
}
.stat-label { font-size:.85rem; color:rgba(255,255,255,0.7); margin-top:6px; text-transform:uppercase; letter-spacing:1px; }

/* ===== SERVICES ===== */
#servicios { background: var(--gray); }
.services-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:50px;
}
.service-card {
  background:var(--white); border-radius:var(--radius);
  padding:36px 28px; text-align:center;
  border:2px solid transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--transition); cursor:default;
  position:relative; overflow:hidden;
}
.service-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform:scaleX(0); transform-origin:left; transition: var(--transition);
}
.service-card:hover {
  border-color:var(--gold); transform:translateY(-8px);
  box-shadow: 0 20px 50px rgba(14,45,122,0.15);
}
.service-card:hover::before { transform:scaleX(1); }
.service-icon {
  width:70px; height:70px; border-radius:50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 20px; font-size:1.8rem;
  transition: var(--transition);
}
.service-card:hover .service-icon { transform:scale(1.1) rotate(-5deg); background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
.service-title { font-family:'Montserrat',sans-serif; font-weight:700; font-size:1.1rem; color:var(--blue-dark); margin-bottom:10px; }
.service-desc { font-size:.9rem; color:var(--gray-dark); line-height:1.6; }
.service-badge {
  display:inline-block; margin-top:16px;
  background:rgba(14,45,122,0.08); color:var(--blue);
  padding:4px 14px; border-radius:50px; font-size:.78rem; font-weight:600;
}

/* ===== WHY US ===== */
#nosotros { background:var(--white); }
.why-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; margin-top:20px;
}
.why-image-wrap { position:relative; }
.why-main-img {
  width:100%; border-radius:24px;
  box-shadow: 0 30px 80px rgba(14,45,122,0.2);
}
.why-cert-badge {
  position:absolute; bottom:-20px; right:-20px;
  background:var(--white); border-radius:16px; padding:16px 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  display:flex; align-items:center; gap:12px;
}
.why-cert-badge img { height:50px; }
.why-cert-text p:first-child { font-weight:700; font-size:.85rem; color:var(--blue-dark); }
.why-cert-text p:last-child { font-size:.75rem; color:var(--gray-dark); }

.why-list { margin-top:24px; display:flex; flex-direction:column; gap:16px; }
.why-item {
  display:flex; align-items:flex-start; gap:16px;
  padding:16px 20px; border-radius:12px;
  background:var(--gray); transition: var(--transition);
}
.why-item:hover { background:rgba(14,45,122,0.06); transform:translateX(6px); }
.why-check {
  min-width:32px; height:32px; border-radius:50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display:flex; align-items:center; justify-content:center; margin-top:2px;
}
.why-check svg { width:16px; height:16px; fill:var(--white); }
.why-item-title { font-weight:700; font-size:.95rem; color:var(--blue-dark); }
.why-item-sub { font-size:.85rem; color:var(--gray-dark); margin-top:2px; }

/* ===== GRADUATES ===== */
#egresados { background: var(--gray); }
.graduates-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:50px;
}
.grad-card {
  background:var(--white); border-radius:var(--radius);
  padding:28px; box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: var(--transition); position:relative;
  border:2px solid transparent;
}
.grad-card:hover { border-color:var(--gold); transform:translateY(-6px); box-shadow: 0 20px 50px rgba(14,45,122,0.12); }
.grad-header { display:flex; align-items:center; gap:16px; margin-bottom:16px; }
.grad-avatar {
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:'Montserrat',sans-serif; font-weight:900; font-size:1.4rem;
  color:var(--white); flex-shrink:0;
}
.grad-info-name { font-weight:700; font-size:1rem; color:var(--blue-dark); }
.grad-stars { color:var(--gold); font-size:.95rem; margin-top:2px; }
.grad-badge {
  position:absolute; top:16px; right:16px;
  background:rgba(14,45,122,0.08); color:var(--blue);
  padding:4px 12px; border-radius:50px; font-size:.72rem; font-weight:700;
}
.grad-quote { font-size:.9rem; color:var(--gray-dark); line-height:1.65; font-style:italic; }
.grad-quote::before { content:'"'; font-size:2rem; color:var(--gold); line-height:0; vertical-align:-10px; margin-right:4px; }

.graduates-cta { text-align:center; margin-top:50px; }

/* ===== GALLERY / CONSTANCIA ===== */
#constancia { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); color:var(--white); }
.cert-inner {
  display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center;
}
.cert-content .section-title { color:var(--white); }
.cert-content .section-title span { color:var(--gold); }
.cert-desc { font-size:1rem; color:rgba(255,255,255,0.8); line-height:1.7; margin-bottom:28px; }
.cert-features { display:flex; flex-direction:column; gap:14px; }
.cert-feat {
  display:flex; align-items:center; gap:14px;
  background:rgba(255,255,255,0.07); border-radius:12px; padding:14px 18px;
}
.cert-feat-icon { font-size:1.4rem; display:flex; align-items:center; flex-shrink:0; }
.cert-feat-text { font-size:.9rem; color:rgba(255,255,255,0.85); }
.cert-feat-text strong { color:var(--white); }
.cert-image-wrap {
  position:relative; display:flex; justify-content:center;
}
.constancia-img {
  width:100%; max-width:480px; border-radius:20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform:rotate(-2deg); transition: var(--transition);
}
.constancia-img:hover { transform:rotate(0deg) scale(1.02); }

/* ===== TESTIMONIALS ===== */
#testimonios { background:var(--white); }
.testimonials-slider { margin-top:50px; position:relative; overflow:hidden; }
.testimonials-track { display:flex; gap:28px; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.testimonial-card {
  min-width:360px; background:var(--gray); border-radius:var(--radius);
  padding:32px; border-left:4px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.test-stars { color:var(--gold); font-size:1.1rem; margin-bottom:16px; }
.test-text { font-size:.95rem; color:#374151; line-height:1.7; font-style:italic; margin-bottom:20px; }
.test-author { display:flex; align-items:center; gap:14px; }
.test-avatar {
  width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:1rem; color:var(--white);
}
.test-name { font-weight:700; font-size:.9rem; color:var(--blue-dark); }
.test-date { font-size:.78rem; color:var(--gray-dark); }
.slider-dots { display:flex; gap:10px; justify-content:center; margin-top:32px; }
.dot {
  width:10px; height:10px; border-radius:50%;
  background:rgba(14,45,122,0.2); cursor:pointer; transition: var(--transition);
  border:none;
}
.dot.active { background:var(--blue); width:28px; border-radius:5px; }

/* ===== CTA BAND ===== */
#cta-final {
  background: linear-gradient(135deg, #0a1a5c 0%, var(--blue) 50%, #1a4abf 100%);
  text-align:center; padding:100px 0;
  position:relative; overflow:hidden;
}
#cta-final::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.03'%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");
}
.cta-title {
  font-family:'Montserrat',sans-serif; font-weight:900;
  font-size: clamp(2rem, 4.5vw, 3.2rem); color:var(--white); margin-bottom:16px;
}
.cta-title span { color:var(--gold); }
.cta-sub { font-size:1.1rem; color:rgba(255,255,255,0.8); margin-bottom:40px; }
.cta-phone {
  display:inline-flex; align-items:center; gap:10px; margin-bottom:32px;
  background:rgba(255,255,255,0.1); border-radius:50px; padding:12px 28px;
  color:var(--white); font-size:1.4rem; font-weight:700; letter-spacing:2px;
}
.cta-buttons { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; }
.btn-whatsapp-big {
  background:var(--whatsapp); color:var(--white);
  font-size:1.1rem; padding:18px 40px;
}
.btn-whatsapp-big:hover { background:#1da851; transform:translateY(-4px); box-shadow:0 15px 40px rgba(37,211,102,0.4); }

/* ===== FOOTER ===== */
footer {
  background:var(--black); color:rgba(255,255,255,0.7);
  padding:60px 0 30px;
}
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:50px;
}
.footer-brand img { height:60px; margin-bottom:16px; }
.footer-brand-name { font-family:'Montserrat',sans-serif; font-weight:900; color:var(--white); font-size:1.2rem; }
.footer-brand-sub { font-size:.8rem; color:var(--gold); letter-spacing:1px; margin-bottom:12px; }
.footer-brand-desc { font-size:.875rem; line-height:1.6; }
.footer-col h4 { font-family:'Montserrat',sans-serif; font-weight:700; color:var(--white); margin-bottom:20px; font-size:.95rem; }
.footer-col ul { display:flex; flex-direction:column; gap:10px; }
.footer-col li a { font-size:.875rem; color:rgba(255,255,255,0.6); transition:var(--transition); }
.footer-col li a:hover { color:var(--gold); }
.footer-contact-item { display:flex; align-items:center; gap:10px; font-size:.875rem; margin-bottom:10px; }
.footer-contact-item svg { width:18px; height:18px; fill:var(--gold); flex-shrink:0; }
.footer-divider { border:none; border-top:1px solid rgba(255,255,255,0.08); margin-bottom:24px; }
.footer-bottom {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
}
.footer-bottom p { font-size:.8rem; }
.footer-reg { font-size:.8rem; color:var(--gold); font-weight:600; }

/* ===== WHATSAPP FLOAT ===== */
#wa-float {
  position:fixed; bottom:28px; right:28px; z-index:900;
  width:62px; height:62px; border-radius:50%;
  background:var(--whatsapp); display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 25px rgba(37,211,102,0.5);
  animation: pulse-glow 2.5s infinite;
  transition: var(--transition);
}
#wa-float:hover { transform:scale(1.1) translateY(-3px); }
#wa-float svg { width:32px; height:32px; fill:var(--white); }
.wa-tooltip {
  position:absolute; right:74px; white-space:nowrap;
  background:var(--black); color:var(--white);
  padding:8px 16px; border-radius:8px; font-size:.8rem; font-weight:600;
  opacity:0; pointer-events:none; transition:var(--transition);
}
#wa-float:hover .wa-tooltip { opacity:1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 768px) {
  /* --- Global mobile fixes --- */
  section { padding:50px 0; }
  .container { width:92%; }
  .section-title { margin-bottom:12px; }
  .section-sub { font-size:.95rem; }
  .section-tag { font-size:.75rem; padding:5px 14px; margin-bottom:12px; }
  .nav-links, .nav-cta { display:none; }
  .hamburger { display:flex; }
  .sign { display:none; }

  /* --- Hero --- keep full height like desktop */
  .hero-inner { grid-template-columns:1fr; gap:40px; text-align:center; }
  .hero-content { order:2; }
  .hero-image { order:1; }
  .mascota-img { max-width:280px; margin:0 auto; }
  .hero-sub { max-width:100%; }
  .hero-buttons { justify-content:center; flex-wrap:wrap; }
  .hero-stats { justify-content:center; }
  /* Hide scroll indicator on mobile */
  .scroll-indicator { display:none; }

  /* --- Stats --- */
  .stats-grid { grid-template-columns:repeat(2,1fr); gap:14px; }
  .stat-card { padding:24px 14px; }
  .stat-num { font-size:2rem; }
  .stat-label { font-size:.75rem; }

  /* --- Services --- */
  .services-grid { grid-template-columns:1fr; gap:16px; margin-top:30px; }
  .service-card { padding:28px 22px; }

  /* --- Why Us --- */
  .why-grid { grid-template-columns:1fr; gap:30px; }
  .why-image-wrap { overflow:visible; padding-bottom:30px; }
  .why-main-img { border-radius:16px; }
  .why-cert-badge {
    position:relative; right:auto; bottom:auto;
    margin-top:-20px; margin-left:16px; margin-right:16px;
    padding:12px 14px;
  }
  .why-cert-badge img { height:36px; }
  .why-list { gap:12px; }
  .why-item { padding:14px 16px; }
  .why-item-title { font-size:.9rem; }
  .why-item-sub { font-size:.82rem; }

  /* --- Constancia --- */
  .cert-inner { grid-template-columns:1fr; gap:30px; }
  .cert-image-wrap { overflow:hidden; border-radius:16px; }
  .constancia-img { transform:none; max-width:100%; border-radius:16px; }
  .constancia-img:hover { transform:scale(1.02); }
  .cert-desc { font-size:.92rem; }
  .cert-feat { padding:12px 14px; }
  .cert-feat-text { font-size:.85rem; }

  /* --- Graduates --- */
  .graduates-grid { grid-template-columns:1fr; gap:16px; margin-top:30px; }
  .grad-card { padding:22px; }
  .grad-quote { font-size:.85rem; }

  /* --- Testimonials --- */
  .testimonial-card { min-width:260px; padding:24px; }
  .testimonials-slider { margin-top:30px; }

  /* --- Proceso: horizontal cards, equal height --- */
  .proceso-steps { grid-template-columns:1fr; gap:12px; margin-top:30px; }
  .proceso-step {
    display:grid;
    grid-template-columns:50px 1fr;
    grid-template-rows:auto auto;
    gap:2px 16px;
    text-align:left;
    padding:18px 20px;
    position:relative;
    min-height:90px;
    align-content:center;
  }
  .proceso-num {
    position:absolute; top:12px; right:14px;
    font-size:1.3rem; margin-bottom:0;
    opacity:0.4;
  }
  .proceso-icon {
    grid-row:1 / 3; grid-column:1;
    width:50px; height:50px;
    margin:0; align-self:center;
  }
  .proceso-icon svg { width:22px; height:22px; }
  .proceso-title { grid-column:2; font-size:.9rem; margin-bottom:2px; align-self:end; }
  .proceso-desc { grid-column:2; font-size:.8rem; align-self:start; }

  /* --- FAQ: centered compact items --- */
  #faq .container { overflow:hidden; }
  .faq-grid {
    grid-template-columns:1fr; gap:10px; margin-top:30px;
    max-width:500px; margin-left:auto; margin-right:auto;
  }
  .faq-item {
    padding:14px 18px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
  }
  .faq-question { gap:12px; }
  .faq-question h3 { font-size:.88rem; line-height:1.4; }
  .faq-question svg { width:18px; height:18px; min-width:18px; }
  .faq-answer p { font-size:.84rem; }
  .faq-item.open .faq-answer { max-height:250px; margin-top:10px; }

  /* --- Map / Ubicacion --- */
  .map-grid { grid-template-columns:1fr; gap:24px; }
  .map-info-cards { gap:10px; }
  .map-info-card { padding:14px 16px; gap:12px; border-radius:10px; }
  .map-info-card:hover { transform:none; }
  .map-info-title { font-size:.85rem; }
  .map-info-text { font-size:.82rem; }
  .map-embed {
    height:0; padding-bottom:75%;
    border-radius:12px;
  }

  /* --- CTA Final --- */
  #cta-final { padding:60px 0; }
  .cta-sub { font-size:.95rem; margin-bottom:28px; }
  .cta-phone { font-size:1.1rem; padding:10px 22px; }

  /* --- Footer --- */
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { flex-direction:column; text-align:center; gap:8px; }
  .footer-brand img { height:46px; }
  .footer-brand-name { font-size:1.1rem; }
  .footer-col h4 { margin-bottom:14px; font-size:.9rem; }

  /* --- Mobile CTA bar --- */
  .mobile-cta-bar { display:block; }
  #wa-float { bottom:80px; }
}

@media (max-width: 480px) {
  section { padding:40px 0; }
  .container { width:92%; }

  /* Stats */
  .stat-num { font-size:1.8rem; }
  .stat-card { padding:20px 12px; }
  .stat-label { font-size:.72rem; }

  /* Services */
  .service-card { padding:24px 18px; }
  .service-title { font-size:1rem; }
  .service-desc { font-size:.85rem; }

  /* Graduates */
  .grad-card { padding:20px; }
  .grad-header { gap:12px; }

  /* Proceso — tighter */
  .proceso-step { padding:16px; gap:2px 12px; grid-template-columns:44px 1fr; }
  .proceso-num { font-size:1.1rem; top:10px; right:12px; }
  .proceso-icon { width:44px; height:44px; }
  .proceso-icon svg { width:20px; height:20px; }
  .proceso-title { font-size:.85rem; }
  .proceso-desc { font-size:.78rem; }

  /* CTA band */
  .cta-buttons { flex-direction:column; align-items:center; gap:12px; }
  .cta-phone { font-size:1rem; }

  /* Testimonials */
  .testimonial-card { min-width:240px; padding:22px 18px; }

  /* FAQ */
  .faq-item { padding:12px 16px; }
  .faq-question h3 { font-size:.84rem; }

  /* Map — use aspect ratio for proportion */
  .map-embed { padding-bottom:80%; }
  .map-info-card { padding:12px 14px; gap:10px; }

  /* Why cert badge */
  .why-cert-badge { padding:10px 12px; gap:8px; margin-left:10px; margin-right:10px; }
  .why-cert-badge img { height:30px; }

  /* WhatsApp float */
  #wa-float { bottom:80px; right:16px; width:54px; height:54px; }
}

@media (max-width: 360px) {
  .container { width:94%; }
  section { padding:36px 0; }
  .section-title { font-size:1.4rem; }

  /* Hero - only minor adjustments on very small */
  .hero-title { font-size:1.9rem; }
  .hero-buttons { flex-direction:column; gap:10px; }
  .hero-buttons .btn { width:100%; justify-content:center; }

  /* Stats */
  .stat-num { font-size:1.6rem; }
  .stat-card { padding:16px 10px; }

  /* Proceso — smallest */
  .proceso-steps { gap:10px; }
  .proceso-step { padding:14px; grid-template-columns:40px 1fr; gap:2px 10px; }
  .proceso-num { font-size:1rem; top:8px; right:10px; }
  .proceso-icon { width:40px; height:40px; }
  .proceso-icon svg { width:18px; height:18px; }

  /* FAQ */
  .faq-item { padding:12px 14px; }
  .faq-question h3 { font-size:.8rem; }
  .faq-question { gap:8px; }

  /* Map */
  .map-embed { padding-bottom:85%; }
  .map-info-card { padding:10px 12px; }

  /* Testimonials */
  .testimonial-card { min-width:200px; padding:18px 14px; }
  .test-text { font-size:.85rem; }

  /* Why cert badge */
  .why-cert-badge { flex-direction:column; gap:6px; text-align:center; }

  /* Footer */
  .footer-brand img { height:38px; }
  .footer-brand-name { font-size:.95rem; }

  /* Buttons */
  .btn { font-size:.85rem; padding:11px 20px; }
  .btn-whatsapp-big { font-size:.95rem; padding:14px 24px; }
}

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
  position:fixed; top:0; left:0; height:3px; z-index:9999;
  background:var(--gold); width:0%; transition:width 0.08s linear;
}

/* ===== PROCESO SECTION ===== */
#proceso {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  position:relative; overflow:hidden;
}
.proceso-steps {
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
  margin-top:50px;
}
.proceso-step {
  text-align:center; padding:36px 20px;
  background:rgba(255,255,255,0.05); border-radius:var(--radius);
  border:1px solid rgba(245,197,24,0.15);
  transition: var(--transition);
}
.proceso-step:hover {
  background:rgba(245,197,24,0.1); border-color:var(--gold);
  transform:translateY(-6px); box-shadow:0 12px 30px rgba(0,0,0,0.2);
}
.proceso-num {
  font-family:'Montserrat',sans-serif; font-weight:900;
  font-size:2.6rem; color:rgba(245,197,24,0.2); line-height:1;
  margin-bottom:12px;
}
.proceso-icon {
  width:60px; height:60px; margin:0 auto 16px;
  border-radius:50%; border:2px solid rgba(245,197,24,0.3);
  display:flex; align-items:center; justify-content:center;
  transition: var(--transition);
}
.proceso-step:hover .proceso-icon {
  background:var(--gold); border-color:var(--gold);
}
.proceso-step:hover .proceso-icon svg { stroke:var(--blue-dark); }
.proceso-icon svg {
  width:26px; height:26px; stroke:var(--gold); fill:none;
  stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
  transition: var(--transition);
}
.proceso-title {
  font-family:'Montserrat',sans-serif; font-weight:700;
  font-size:.95rem; color:var(--white); margin-bottom:8px;
}
.proceso-desc {
  font-size:.85rem; color:rgba(255,255,255,0.6); line-height:1.6;
}

/* ===== FAQ SECTION ===== */
#faq { background:var(--gray); }
.faq-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:50px; }
.faq-item {
  background:var(--white); padding:24px 28px; border-radius:var(--radius);
  border:2px solid transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--transition); cursor:pointer;
}
.faq-item:hover,.faq-item.open {
  border-color:var(--gold); box-shadow: 0 12px 30px rgba(14,45,122,0.12);
}
.faq-question {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.faq-question h3 {
  font-family:'Montserrat',sans-serif; font-weight:700;
  font-size:.95rem; color:var(--blue-dark);
}
.faq-question svg {
  width:20px; height:20px; stroke:var(--gray-dark); fill:none;
  stroke-width:2; flex-shrink:0; transition:transform 0.3s ease;
}
.faq-item.open .faq-question svg { transform:rotate(180deg); stroke:var(--gold); }
.faq-answer {
  max-height:0; overflow:hidden;
  transition:max-height 0.4s ease, margin 0.3s ease;
}
.faq-item.open .faq-answer { max-height:200px; margin-top:16px; }
.faq-answer p {
  font-size:.9rem; color:var(--gray-dark); line-height:1.7;
}

/* ===== UBICACION ===== */
#ubicacion { background:var(--white); }
.map-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center;
}
.map-info-cards { display:flex; flex-direction:column; gap:14px; }
.map-info-card {
  display:flex; align-items:flex-start; gap:14px; padding:18px 20px;
  background:var(--gray); border-radius:12px;
  transition: var(--transition);
}
.map-info-card:hover {
  background:var(--blue-dark); color:var(--white);
  transform:translateX(6px); box-shadow: var(--shadow);
}
.map-info-card:hover .map-info-title { color:var(--white); }
.map-info-card:hover .map-info-text { color:rgba(255,255,255,0.7); }
.map-info-card:hover svg { stroke:var(--gold); }
.map-info-card svg {
  width:22px; height:22px; stroke:var(--blue); fill:none;
  stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
  flex-shrink:0; margin-top:2px; transition:var(--transition);
}
.map-info-title {
  font-family:'Montserrat',sans-serif; font-weight:700;
  font-size:.9rem; color:var(--blue-dark); margin-bottom:4px;
}
.map-info-text { font-size:.85rem; color:var(--gray-dark); line-height:1.5; }
.map-embed {
  width:100%; height:400px; border-radius:var(--radius);
  box-shadow: var(--shadow); overflow:hidden;
}
.map-embed iframe { width:100%; height:100%; border:0; display:block; }

/* ===== MOBILE CTA BAR ===== */
.mobile-cta-bar {
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:800;
  background:var(--blue-dark); padding:12px 16px;
  box-shadow:0 -4px 20px rgba(0,0,0,0.3);
}
.mobile-cta-bar a {
  display:flex; align-items:center; justify-content:center; gap:10px;
  background:var(--whatsapp); color:var(--white);
  padding:14px; border-radius:50px; font-weight:700; font-size:.9rem;
  text-transform:uppercase; letter-spacing:1px;
  font-family:'Montserrat',sans-serif;
}
.mobile-cta-bar svg { width:20px; height:20px; fill:var(--white); }

/* ===== MISIÓN VISIÓN VALORES ===== */
#mision-vision {
  background: var(--gray);
  padding: 90px 0;
}
#mision-vision .section-sub { max-width:600px; margin:0 auto 50px; }

.mv-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 50px 0 70px;
}
.mv-big-card {
  background: var(--white);
  border-radius: 24px;
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.mv-big-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(14,45,122,0.14);
  border-color: rgba(14,45,122,0.15);
}
.mv-big-card-gold {
  background: linear-gradient(135deg, #fefce8 0%, #fffbeb 100%);
}
.mv-big-card-gold:hover {
  border-color: rgba(245,197,24,0.35);
  box-shadow: 0 20px 60px rgba(245,197,24,0.18);
}
.mv-big-card-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(14,45,122,0.25);
}
.mv-big-card-icon-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  box-shadow: 0 8px 24px rgba(245,197,24,0.35);
}
.mv-big-card-num {
  position: absolute;
  top: 20px; right: 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(14,45,122,0.05);
  pointer-events: none;
}
.mv-big-card-num-gold { color: rgba(180,140,0,0.08); }
.mv-big-card-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(14,45,122,0.07);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.mv-big-card-label-gold {
  color: var(--gold-dark);
  background: rgba(245,197,24,0.15);
}
.mv-big-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--blue-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}
.mv-big-card-desc {
  font-size: 0.93rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 20px;
}
.mv-big-card-quote {
  border-left: 3px solid var(--blue);
  padding: 12px 16px;
  background: rgba(14,45,122,0.04);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.65;
}
.mv-big-card-quote-gold {
  border-left-color: var(--gold-dark);
  background: rgba(245,197,24,0.08);
}

/* Valores grid */
.mv-valores-header { margin-bottom: 36px; }
.mv-valores-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.mv-valores-title span { color: var(--red); }

.mv-valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mv-valor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14,45,122,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: var(--transition);
  cursor: default;
}
.mv-valor-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.mv-valor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(14,45,122,0.13);
  border-color: transparent;
}
.mv-valor-card:hover::after { transform: scaleX(1); }

.mv-valor-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: var(--transition);
}
.mv-valor-icon.navy { background: rgba(14,45,122,0.08); color: var(--blue); }
.mv-valor-icon.gold { background: rgba(245,197,24,0.14); color: var(--gold-dark); }
.mv-valor-icon.red  { background: rgba(204,34,0,0.08);  color: var(--red); }
.mv-valor-card:hover .mv-valor-icon.navy { background: var(--blue); color: var(--white); }
.mv-valor-card:hover .mv-valor-icon.gold { background: var(--gold); color: var(--blue-dark); }
.mv-valor-card:hover .mv-valor-icon.red  { background: var(--red);  color: var(--white); }

.mv-valor-bg-num {
  position: absolute;
  top: 14px; right: 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(14,45,122,0.04);
  line-height: 1;
  pointer-events: none;
}
.mv-valor-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.mv-valor-card p {
  font-size: 0.87rem;
  color: var(--gray-dark);
  line-height: 1.75;
}

/* Responsive */
@media (max-width: 900px) {
  .mv-duo-grid { grid-template-columns: 1fr; }
  .mv-valores-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-big-card { padding: 32px 26px; }
}
@media (max-width: 580px) {
  .mv-valores-grid { grid-template-columns: 1fr; }
  .mv-big-card-title { font-size: 1.25rem; }
}

