/* ================= VARIABLES ================= */
:root {
    --primary-blue: #006eb7;
    --dark-blue: #003056;
    --primary-orange: #f28b00;
    --light-blue: #00a4e4;
    
    /* Modo Claro (Por Defecto) */
    --bg-main: #f8fafc;
    --bg-section: #ffffff;
    --text-main: #334155;
    --text-heading: #0f172a;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Modo Oscuro */
body.dark-theme {
    --bg-main: #0f172a;
    --bg-section: #1e293b;
    --text-main: #cbd5e1;
    --text-heading: #f8fafc;
    --border-color: #334155;
    --card-bg: #1e293b;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 { color: var(--text-heading); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; }
ul { list-style: none; }

/* ================= BOTONES ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-primary { background: var(--primary-orange); color: #fff; }
.btn-primary:hover { background: #d97d00; transform: translateY(-2px); }

.btn-secondary { background: #fff; color: var(--primary-blue); border: 2px solid #fff; }
.btn-secondary:hover { background: var(--text-heading); border-color: var(--text-heading); color: #fff; }

.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--card-shadow); }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo img { width: 240px; transition: opacity 0.2s ease; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-main); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary-blue); }

.header-actions { display: flex; align-items: center; gap: 15px; }
.social-icons { display: flex; gap: 12px; border-right: 1px solid var(--border-color); padding-right: 15px; }
.social-icons a { color: var(--text-main); font-size: 1.1rem; transition: color 0.2s; }
.social-icons a:hover { color: var(--primary-blue); }

.icon-btn {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 38px; height: 38px;
    color: var(--text-main);
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: 0.2s;
    font-weight: 600; font-size: 0.9rem;
}
.icon-btn:hover { background: var(--border-color); }

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s;
}
.hamburger:hover { color: var(--primary-orange); }

/* ================= HEROFONDO================= */
.hero {
    margin-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('prevaedjunin.webp') center/cover no-repeat;
    padding: 120px 0;
    text-align: center;
    color: #fff;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero .badge {
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}
.hero h1 { font-size: 3.5rem; color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--primary-orange); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.95); margin-bottom: 40px; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; }

/* ================= SECCIONES GENERALES ================= */
.section { padding: 90px 0; }
.bg-light { background: var(--bg-section); border-top: 1px solid var(--border-color); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.divider { width: 60px; height: 4px; background: var(--primary-orange); margin: 20px auto 0; border-radius: 2px; }

/* Grid de Tarjetas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }
.feature-card .icon-wrapper {
    width: 60px; height: 60px;
    background: rgba(0, 110, 183, 0.1);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 15px; font-size: 1.3rem; }

/* ================= ESTADÍSTICAS ================= */
.stats {
    background: var(--primary-blue);
    padding: 60px 0;
    color: #fff;
}
.stats-container { display: flex; justify-content: space-around; text-align: center; }
.stat-box h3 { font-size: 3.5rem; color: #fff; margin-bottom: 5px; }
.stat-box p { font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,0.8); }

/* ================= FAQ ACCORDION ================= */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}
.accordion-item summary {
    padding: 20px; font-weight: 600; font-size: 1.1rem;
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-heading);
}
.accordion-item summary::after {
    content: '\f078'; font-family: 'FontAwesome';
    color: var(--primary-blue); transition: transform 0.3s ease;
}
.accordion-item[open] summary::after { transform: rotate(180deg); }
.accordion-content {
    padding: 0 20px 20px;
    color: var(--text-main); border-top: 1px solid var(--border-color); margin-top: 10px; padding-top: 20px;
}

/* ================= CTA ================= */
.cta { padding: 80px 0; background: var(--bg-section); border-top: 1px solid var(--border-color); }
.cta-container {
    background: var(--dark-blue); border-radius: 16px; padding: 50px;
    display: flex; justify-content: space-between; align-items: center; color: #fff; gap: 30px;
}
.cta-text h2 { color: #fff; margin-bottom: 10px; font-size: 2rem; }
.cta-text p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }
.cta-btn { flex-shrink: 0; }

/* ================= FOOTER ================= */
.footer { background: #003056; color: #94a3b8; padding: 70px 0 20px; border-top: 5px solid var(--primary-orange); }
.footer h3, .footer h4 { color: #f8fafc; margin-bottom: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-bottom: 50px; }
.footer-contact li, .footer-hours li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: var(--primary-orange); }
.subscribe-box { display: flex; gap: 10px; margin-top: 20px; }
.subscribe-box input {
    padding: 10px 15px; border-radius: 6px; border: none;
    background: #1e293b; color: #fff; outline: none; flex-grow: 1;
}
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #1e293b; font-size: 0.9rem; }

/* ================= MEDIA QUERIES (RESPONSIVE DESIGN) ================= */

@media (max-width: 992px) {
    .hamburger { 
        display: block; 
        z-index: 1001; 
    }
    
    /* Menú desplegable a pantalla completa */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background: var(--bg-section);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
        transition: left 0.3s ease-in-out;
        gap: 25px;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        width: 100%;
    }
    .nav-links a { font-size: 1.25rem; }

    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    
    .social-icons {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
        width: 80%;
        justify-content: center;
    }
    
    .btn { width: 80%; }

    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.8rem; }
    .cta-container { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .stats-container { flex-direction: column; gap: 40px; }
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-contact li, .footer-hours li { justify-content: center; }
    .subscribe-box { flex-direction: column; }
    .cta-text h2 { font-size: 1.6rem; }
    .btn { width: 100%; }
}
/* Bloquear la selección de texto e imágenes */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

