@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --primary-color: #4f46e5;       /* Azul Índigo vibrante: Confianza, educación, enfoque */
  --primary-hover: #4338ca;       
  --accent-color: #f59e0b;        /* Ámbar/Naranja para CTAs: Energía, juventud, atención */
  --accent-hover: #d97706;
  --dark-color: #1e1b4b;          /* Azul marino ultra oscuro para textos (elegante) */
  --light-bg: #f8fafc;            /* Gris azulado muy claro */
  --white: #ffffff;
  --text-main: #334155;           
  --text-muted: #64748b;          
  
  --font-heading: 'Outfit', sans-serif;
  --font-main: 'Inter', sans-serif;
  --max-width: 1140px;            
  --border-radius: 12px;          
  --transition: all 0.3s ease;
  --shadow: 0 10px 25px rgba(30, 27, 75, 0.08); 
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
  font-size: 16px;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--dark-color); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

.container { max-width: var(--max-width); margin: auto; padding: 80px 20px; }

.section-header { text-align: center; max-width: 650px; margin: 0 auto 50px auto; }
.section-header h2 { font-size: 38px; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); font-size: 18px; }

.section { background-color: var(--white); scroll-margin-top: 80px; }
.alt { background-color: var(--light-bg); scroll-margin-top: 80px; }

/* NAVBAR ACADEMIA */
.navbar { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; z-index: 1000; }
.nav-container { max-width: var(--max-width); margin: auto; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 24px; text-decoration: none; color: var(--dark-color); font-weight: 800; }
.logo span { color: var(--primary-color); }
.nav-links a { text-decoration: none; color: var(--text-main); margin-left: 28px; font-weight: 500; font-size: 15px; transition: var(--transition); }
.nav-links a:hover { color: var(--primary-color); }
.menu-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--dark-color); }

/* HERO ESTUDIOS */
.hero-academy { padding: 150px 0 70px 0; background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.tag-promo { display: inline-block; background-color: var(--accent-color); color: white; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px;}
.hero-text h1 { font-size: 46px; margin-bottom: 20px; }
.hero-text p.sub { color: var(--text-muted); font-size: 18px; margin-bottom: 35px; }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* BOTONES LLAMATIVOS */
.btn { display: inline-block; padding: 15px 30px; text-decoration: none; border-radius: 8px; font-size: 15px; font-weight: 600; font-family: var(--font-heading); transition: var(--transition); text-align: center; }
.btn-primary { background-color: var(--primary-color); color: var(--white); box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4); }
.btn-outline { background-color: transparent; color: var(--dark-color); border: 2px solid #cbd5e1; }
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }

.hero-img { width: 100%; height: 420px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }

/* BANDA METODOLOGÍA */
.section-features { background-color: var(--dark-color); color: var(--white); padding: 70px 20px; }
.grid-features { max-width: var(--max-width); margin: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.feature-icon { font-size: 38px; margin-bottom: 15px; background: rgba(255,255,255,0.1); width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.feature-item h3 { color: var(--white); font-size: 22px; margin-bottom: 10px; }
.feature-item p { color: #94a3b8; font-size: 15px; font-weight: 400; }

/* CURSOS (TARJETAS MODERNAS) */
.grid-courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }
.course-card { background: var(--white); border-radius: var(--border-radius); border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: var(--transition); display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.course-img-wrapper { position: relative; width: 100%; height: 200px; }
.course-img { width: 100%; height: 100%; object-fit: cover; }
.course-badge { position: absolute; bottom: -15px; left: 25px; background: var(--primary-color); color: white; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; font-family: var(--font-heading); box-shadow: 0 4px 10px rgba(79,70,229,0.3); }
.course-content { padding: 40px 25px 30px 25px; flex-grow: 1; display: flex; flex-direction: column; }
.course-content h3 { font-size: 24px; margin-bottom: 12px; }
.course-content p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; flex-grow: 1; }
.course-features { list-style: none; margin-top: auto; border-top: 1px solid #f1f5f9; padding-top: 15px; }
.course-features li { font-size: 14px; color: var(--dark-color); font-weight: 500; margin-bottom: 5px; }

/* PRUEBA DE NIVEL Y SELLOS */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.info-content h2 { font-size: 36px; margin-bottom: 20px; }
.info-content p { margin-bottom: 25px; color: var(--text-muted); font-size: 16px; }
.steps { margin-bottom: 30px; display: flex; flex-direction: column; gap: 15px;}
.step { background: var(--white); padding: 15px 20px; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 15px; font-weight: 500; }
.step strong { color: var(--primary-color); font-size: 18px; margin-right: 5px;}

.btn-whatsapp-cta { display: inline-block; background-color: #25D366; color: white; padding: 16px 28px; border-radius: 8px; font-weight: 700; font-family: var(--font-heading); text-decoration: none; font-size: 15px; transition: var(--transition); box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25); text-align: center; width: 100%;}
.btn-whatsapp-cta:hover { background-color: #1ebe57; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);}

.certifications-box { background: var(--primary-color); padding: 40px; border-radius: var(--border-radius); color: white; text-align: center; box-shadow: var(--shadow); }
.certifications-box h3 { color: white; font-size: 26px; margin-bottom: 10px; }
.certifications-box p { color: #e0e7ff; margin-bottom: 30px; font-size: 15px; }
.cert-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.cert-logos span { background: rgba(255,255,255,0.1); padding: 15px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; }

/* MAPA */
.map-wrapper { border-radius: var(--border-radius); overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.map { width: 100%; height: 380px; border: 0; display: block; }

/* WHATSAPP FLOTANTE */
.whatsapp-floating { position: fixed; bottom: 30px; right: 30px; background-color: #25D366; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(37,211,102,0.3); z-index: 9999; transition: var(--transition); }
.whatsapp-floating:hover { transform: scale(1.1); }

/* FOOTER */
.footer { background: var(--dark-color); color: #94a3b8; font-size: 14px; text-align: center; border-top: 1px solid #312e81; }
.footer-content { padding: 30px 20px; display: flex; flex-direction: column; gap: 10px;}
.footer-links a { color: #cbd5e1; text-decoration: none; margin: 0 5px; }
.footer-links a:hover { color: var(--white); }

/* RESPONSIVE MÓVIL */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #ffffff; padding: 20px; border-bottom: 1px solid #e2e8f0; }
  .nav-links.active { display: flex; }
  .nav-links a { margin-left: 0; font-size: 16px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; width: 100%; }
  
  .container { padding: 60px 20px; }
  .section-header h2 { font-size: 32px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-img { height: 260px; }
  
  .grid-courses, .grid-features, .grid-2col { grid-template-columns: 1fr; }
  .cert-logos { grid-template-columns: 1fr; }
  .certifications-box { padding: 30px 20px; }
}