:root {
    --primary: #c41230;
    --secondary: #1a1a2e;
    --accent: #16213e;
    --light: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333;
    --text-light: #666;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); line-height: 1.6; background: var(--white); }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Botones */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--secondary); }
.btn-help { background: linear-gradient(135deg, #ff416c 0%, #c41230 100%); color: var(--white); box-shadow: 0 4px 15px rgba(196, 18, 48, 0.4); animation: pulse-help 2s infinite; }
.btn-help:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(196, 18, 48, 0.6); }
@keyframes pulse-help { 0% { box-shadow: 0 0 0 0 rgba(196, 18, 48, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(196, 18, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(196, 18, 48, 0); } }

/* Header */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(26, 26, 46, 0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.top-bar { background: var(--primary); color: var(--white); padding: 8px 0; font-size: 0.85rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-info span { margin-right: 20px; }
.top-info a { color: var(--white); }
nav { padding: 15px 0; }
nav .container { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 70px; width: auto; transition: transform 0.3s ease; }
.logo-container:hover .logo-img { transform: scale(1.05); }
.logo-text h1 { font-size: 1.2rem; color: var(--white); line-height: 1.2; }
.logo-text p { font-size: 0.75rem; color: #ccc; text-transform: uppercase; letter-spacing: 1px; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { color: var(--white); font-weight: 600; font-size: 0.9rem; position: relative; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.mobile-menu-btn { display: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero { min-height: 100vh; background: linear-gradient(rgba(26, 26, 46, 0.85), rgba(22, 33, 62, 0.85)), url('https://images.unsplash.com/photo-1584269600519-112d071b35e6?w=1920') center/cover no-repeat; display: flex; align-items: center; color: var(--white); text-align: center; padding: 120px 20px 60px; }
.hero-content { max-width: 1000px; margin: 0 auto; }
.hero h2 { font-size: 3rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.hero h2 span { color: var(--primary); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }

/* Hero Stats - 6 columnas */
.hero-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; margin-top: 40px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.stat-item { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); padding: 20px 10px; border-radius: 10px; text-align: center; transition: all 0.3s ease; }
.stat-item:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.12); border-color: var(--primary); box-shadow: 0 8px 25px rgba(196, 18, 48, 0.3); }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); display: block; margin-bottom: 5px; line-height: 1.1; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, 0.9); font-weight: 600; line-height: 1.3; }

/* Sección Logros */
.achievements { background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%); color: var(--white); padding: 80px 0; }
.achievements h2 { color: var(--white); text-align: center; font-size: 2.5rem; margin-bottom: 15px; }
.achievements h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin: 15px auto 0; }
.achievements-subtitle { text-align: center; max-width: 700px; margin: 0 auto 50px; opacity: 0.9; font-size: 1.1rem; }
.achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1000px; margin: 0 auto; }
.achievement-card { background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); border-radius: 15px; padding: 35px 25px; text-align: center; transition: var(--transition); }
.achievement-card:hover { transform: translateY(-10px); border-color: var(--primary); background: rgba(196,18,48,0.1); }
.achievement-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), #ff416c); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: white; }
.achievement-number { font-size: 3rem; font-weight: 800; color: var(--primary); display: block; margin-bottom: 10px; }
.achievement-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.achievement-card p { font-size: 0.95rem; opacity: 0.85; }
.achievement-badge { display: inline-block; background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-top: 15px; text-transform: uppercase; }

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 15px; position: relative; display: inline-block; }
.section-title h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin: 10px auto 0; }
.section-title p { color: var(--text-light); max-width: 700px; margin: 0 auto; }

/* Equipo */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); text-align: center; padding: 30px; border-top: 5px solid var(--primary); }
.team-card:hover { transform: translateY(-10px); }
.team-icon { width: 80px; height: 80px; background: var(--light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: var(--primary); }
.team-card h3 { color: var(--secondary); margin-bottom: 5px; }
.team-role { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 15px; display: block; }
.team-desc { font-size: 0.95rem; color: var(--text-light); margin-bottom: 20px; }
.team-tags { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tag { background: var(--light); padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; color: var(--secondary); }

/* Credenciales - 6 columnas */
.credentials { background: var(--light); padding: 60px 0; }
.cred-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cred-item { background: var(--white); padding: 25px 15px; border-radius: 10px; box-shadow: var(--shadow); text-align: center; transition: var(--transition); }
.cred-item:hover { transform: translateY(-5px); }
.cred-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; display: block; }
.cred-item h4 { color: var(--secondary); margin-bottom: 8px; font-size: 1rem; }
.cred-item p { font-size: 0.85rem; color: var(--text-light); }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 2px; height: 100%; background: var(--primary); }
.timeline-item { margin-bottom: 40px; position: relative; width: 50%; padding: 0 40px; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot { position: absolute; top: 0; width: 20px; height: 20px; background: var(--primary); border-radius: 50%; border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--primary); }
.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }
.timeline-content { background: var(--white); padding: 25px; border-radius: 10px; box-shadow: var(--shadow); }
.timeline-content h3 { color: var(--secondary); margin-bottom: 10px; }
.timeline-year { font-weight: 800; color: var(--primary); font-size: 1.2rem; display: block; margin-bottom: 5px; }

/* Cursos */
.courses { background: var(--light); }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.course-card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: var(--transition); }
.course-card:hover { transform: translateY(-5px); }
.badge-homologado { position: absolute; top: 20px; right: 20px; background: #28a745; color: var(--white); padding: 5px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.course-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.course-card h3 { margin-bottom: 15px; color: var(--secondary); }
.course-instructor { margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee; font-size: 0.9rem; color: var(--text-light); display: flex; align-items: center; gap: 10px; }
.course-instructor i { color: var(--primary); }

/* Ventajas - 4 columnas */
.advantages { background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%); color: var(--white); padding: 50px 40px; border-radius: 15px; margin-top: 50px; }
.advantages h3 { text-align: center; margin-bottom: 30px; font-size: 1.8rem; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; text-align: center; }
.adv-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; display: block; }
.adv-item h4 { margin-bottom: 10px; }

/* Comunicaciones - 6 columnas */
.comm-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-bottom: 50px; }
.comm-card { background: var(--white); padding: 25px 15px; border-radius: 10px; text-align: center; border: 2px solid #eee; transition: var(--transition); display: flex; flex-direction: column; }
.comm-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow); }
.comm-icon { font-size: 2rem; color: var(--primary); margin-bottom: 15px; }
.comm-card h4 { color: var(--secondary); margin-bottom: 10px; font-size: 0.95rem; }
.comm-card p { color: var(--text-light); font-size: 0.85rem; flex-grow: 1; }
.comm-link { display: inline-flex; align-items: center; gap: 5px; background: var(--secondary); color: white; padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 0.8rem; margin-top: 15px; transition: var(--transition); }
.comm-link:hover { background: var(--primary); }

/* Panel Técnico */
.comm-technical { background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%); color: white; padding: 40px; border-radius: 15px; margin-bottom: 40px; }
.comm-technical h3 { text-align: center; margin-bottom: 30px; font-size: 1.6rem; }
.comm-technical h3 i { color: var(--primary); margin-right: 10px; }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.tech-item { text-align: center; padding: 20px; background: rgba(255, 255, 255, 0.05); border-radius: 10px; border-left: 3px solid var(--primary); }
.tech-item h4 { color: var(--primary); margin-bottom: 10px; font-size: 1rem; }
.tech-item h4 i { margin-right: 8px; }
.tech-item p { font-size: 1.3rem; font-weight: 700; margin-bottom: 5px; }
.tech-item small { opacity: 0.7; font-size: 0.85rem; }

/* CTA */
.comm-cta { background: linear-gradient(135deg, var(--primary) 0%, #ff416c 100%); color: white; padding: 50px 40px; border-radius: 15px; text-align: center; }
.cta-content h3 { font-size: 2rem; margin-bottom: 15px; }
.cta-content p { font-size: 1.1rem; margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.cta-buttons .btn { background: white; color: var(--primary); border: 2px solid white; }
.cta-buttons .btn:hover { background: transparent; color: white; }

/* Sede */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.location-info h3 { font-size: 2rem; color: var(--secondary); margin-bottom: 20px; }
.location-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.feature { display: flex; align-items: center; gap: 10px; }
.feature i { color: var(--primary); font-size: 1.5rem; }
.map-container { background: var(--light); border-radius: 15px; padding: 40px; box-shadow: var(--shadow); text-align: center; }
.map-container i { font-size: 4rem; color: var(--primary); margin-bottom: 15px; }
.map-info { background: var(--white); padding: 20px; border-radius: 10px; margin-top: 20px; text-align: left; }
.map-info div { margin-bottom: 10px; }

/* Contacto */
.contact { background: var(--light); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-box { background: var(--secondary); color: var(--white); padding: 40px; border-radius: 10px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-item i { font-size: 1.5rem; color: var(--primary); margin-top: 5px; }
.contact-item h4 { margin-bottom: 5px; font-size: 1.1rem; }
.contact-item a { color: #ccc; }
.contact-item a:hover { color: var(--white); }
.emergency-box { background: var(--primary); padding: 20px; border-radius: 8px; margin-top: 30px; text-align: center; }
.emergency-numbers { display: flex; justify-content: space-around; margin-top: 15px; }
.emergency-num { font-size: 1.5rem; font-weight: 800; }
.contact-form-box { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--primary); }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-group input { width: auto; margin-top: 5px; }

/* Footer */
footer { background: #111; color: #aaa; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid #333; font-size: 0.9rem; }

/* Botón Flotante */
.btn-floating-help { position: fixed; bottom: 30px; right: 30px; background: linear-gradient(135deg, #ff416c 0%, #c41230 100%); color: white; padding: 15px 25px; border-radius: 50px; font-weight: 600; box-shadow: 0 5px 20px rgba(196, 18, 48, 0.4); z-index: 998; display: flex; align-items: center; gap: 10px; animation: pulse-help 2s infinite; }
.btn-floating-help:hover { transform: translateY(-5px) scale(1.05); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .cred-grid { grid-template-columns: repeat(3, 1fr); }
    .comm-grid { grid-template-columns: repeat(3, 1fr); }
    .team-grid, .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .achievements-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero h2 { font-size: 2rem; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--secondary); flex-direction: column; padding: 20px; text-align: center; }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .cred-grid, .comm-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid, .courses-grid, .achievements-grid { grid-template-columns: 1fr; }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 50px; text-align: left !important; }
    .timeline-dot { left: 10px !important; right: auto !important; }
    .contact-wrapper, .location-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; text-align: center; }
    .btn-floating-help span { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .logo-img { height: 50px; }
}
@media (max-width: 480px) {
    .hero-stats, .cred-grid, .comm-grid, .adv-grid, .tech-grid { grid-template-columns: 1fr; }
}