:root {
    --primary-blue: #0C1FAC;
    --accent-orange: #FF7800;
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* HEADER & NAVBAR */
.navbar {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    background: none;
    border: none;
    cursor: pointer;
}

/* BOTONES */
.btn-primary, .btn-formulario, .enlace-separar {
    background: var(--primary-blue);
    color: white !important;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .btn-formulario:hover, .enlace-separar:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 120, 0, 0.3);
}

/* BANNER HERO */
.hero-slider {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* CONTENEDOR PRINCIPAL */
.page-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-content h1 {
    color: var(--primary-blue);
    text-align: center;
    border-bottom: 3px solid var(--accent-orange);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

/* ================= GRID TARJETAS ================= */
.grid-programas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.card-programa {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card-programa:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(12, 31, 172, 0.1);
}

/* Fotos Redondas */
.card-programa img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--bg-light);
}

.card-programa h5, .card-programa h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
    min-height: 50px;
}

.card-programa > .card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

/* ================= ACORDEONES ================= */
details {
    width: 100%;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    margin-bottom: 10px;
}

summary {
    padding: 15px;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    list-style: none;
    border-left: 4px solid var(--accent-orange);
    display: flex;
    justify-content: space-between;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

details[open] summary::after {
    content: '\f077';
}

details .details-content {
    padding: 15px;
    font-size: 0.9rem;
}

details .details-content ul {
    padding-left: 20px;
}

/* ENLACE "Separar Cupo" DENTRO DE LA TARJETA */
.card-programa a.enlace-separar {
    margin-top: 15px;
    width: 100%;
}

/* ================= SWIPER CARRUSEL ================= */
.swiper-container {
    width: 100%;
    padding: 40px 0;
}

.swiper-slide img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* FORMULARIO PLACEHOLDER */
.form-placeholder {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 40px auto;
    max-width: 600px;
    border-top: 4px solid var(--accent-orange);
}

.form-placeholder i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* FOOTER */
.site-footer {
    background: var(--primary-blue);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background: white;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
}