/* CESIC JUANACATLÁN - CSS SIMPLE Y FUNCIONAL */

:root {
    --mostaza: #F5A800;
    --mostaza-light: #FFB800;
    --azul-rey: #00007E;
    --azul-rey-light: #1A1A8A;
    --blanco: #FFFFFF;
    --gris-claro: #F8F9FA;
    --gris-medio: #6C757D;
    --negro: #212529;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 0.75rem;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--negro);
            background: var(--gris-claro);
            
        }

.container {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}


.section {
    padding: 4rem 0;
}

.btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem 2rem;
            border: none;
            border-radius: var(--radius);
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
            cursor: pointer;
        }

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

    0%,
    20%,
    60%,
    100% {
        transform: translateY(-2px);
    }

    40%,
    80% {
        transform: translateY(-4px);
    }
}


.btn-primary {
            background: linear-gradient(135deg, var(--mostaza), var(--mostaza-light));
            color: var(--azul-rey);
            box-shadow: var(--shadow);
        }

.btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

@keyframes downloadPulse {

    0%,
    100% {
        transform: translateY(-2px) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.05);
    }
}


.btn-secondary {
            background: transparent;
            color: var(--blanco);
            border: 2px solid var(--blanco);
        }

.btn-secondary:hover {
            background: var(--blanco);
            color: var(--azul-rey);
        }

@media (max-width: 768px) {
    .btn-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    /* Grid responsive para móvil */
    .programa-detalle div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .programa-detalle div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Historia section responsive */
    #historia div[style*="grid-template-columns: 1fr 300px"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    #historia div[style*="padding: 3rem"] {
        padding: 2rem 1.5rem !important;
    }

    #historia img[style*="height: 350px"] {
        height: 250px !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    #historia h3 {
        font-size: 1.3rem !important;
        text-align: center !important;
    }

    #historia p {
        font-size: 1rem !important;
        text-align: left !important;
    }
}

/* HEADER */
.header {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 45px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    max-width: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(5deg);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    color: var(--azul-rey) !important;
    transition: color 0.3s ease;
}


.logo-subtitle {
    color: var(--mostaza) !important;
    transition: color 0.3s ease;
}

/* MENÚ MÓVIL - SIMPLE Y FUNCIONAL */
.nav-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--mostaza), var(--mostaza-light)) !important;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    right: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.nav-link {
    color: var(--azul-rey) !important;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}



.nav-link:hover,
.nav-link.active {
    color: var(--azul-rey) !important;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-cta {
    background: var(--azul-rey) !important;
    color: var(--mostaza) !important;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 126, 0.3);
    border: 2px solid transparent;
}

.nav-cta:hover {
    background: var(--blanco) !important;
    color: var(--azul-rey) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 126, 0.4);
    border-color: var(--azul-rey);
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(0, 0, 126, 0.1);
    transform: scale(1.1);
}

.nav-toggle span {
    background: var(--azul-rey) !important;
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--azul-rey) !important;
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--azul-rey) !important;
}

@media (max-width: 767px) {
    .logo-img {
        height: 35px;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-menu.active {
    animation: slideInRight 0.3s ease forwards;
}

@media (min-width: 1024px) {
    .nav-menu {
        position: static !important;
        right: 0 !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .nav-list {
        flex-direction: row !important;
        gap: 2rem !important;
        align-items: center !important;
    }

    .nav-link {
        color: var(--azul-rey) !important;
        padding: 0.75rem 1.25rem !important;
        font-weight: 500 !important;
        font-size: 0.95rem !important;
        position: relative;
        transform: none !important;
        background: transparent !important;
        border-radius: 0.5rem;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--mostaza);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        width: 80%;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--mostaza) !important;
        background: rgba(245, 168, 0, 0.1) !important;
        transform: translateY(-2px) !important;
    }

    .nav-cta {
        background: linear-gradient(135deg, var(--mostaza), var(--mostaza-light)) !important;
        color: var(--azul-rey) !important;
        margin-top: 0 !important;
        margin-left: 1rem !important;
        font-size: 0.9rem !important;
        padding: 0.75rem 1.25rem !important;
    }

    .nav-cta:hover {
        background: var(--azul-rey) !important;
        color: var(--mostaza) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 126, 0.3) !important;
    }
}

.nav-menu.active .nav-link {
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
    opacity: 0;
    transform: translateY(20px);
}

.nav-menu.active .nav-link:nth-child(1) {
    --i: 1;
}

.nav-menu.active .nav-link:nth-child(2) {
    --i: 2;
}

.nav-menu.active .nav-link:nth-child(3) {
    --i: 3;
}

.nav-menu.active .nav-link:nth-child(4) {
    --i: 4;
}

.nav-menu.active .nav-link:nth-child(5) {
    --i: 5;
}

.nav-menu.active .nav-link:nth-child(6) {
    --i: 6;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* HERO */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--azul-rey) 0%, var(--azul-rey-light) 50%, var(--mostaza) 100%);
    color: var(--blanco);
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(245, 168, 0, 0.1) 0%, transparent 50%);
}

.hero-home .hero-bg {
    background-image: url('imagenes/cesic-clase.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-home .hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 126, 0.8) 0%, rgba(26, 26, 138, 0.7) 50%, rgba(245, 168, 0, 0.6) 100%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 168, 0, 0.2);
    color: var(--mostaza);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 168, 0, 0.3);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    display: block;
}

.highlight {
    background: linear-gradient(135deg, var(--mostaza), var(--mostaza-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--mostaza);
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

/* PROGRAMAS */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--azul-rey);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gris-medio);
    font-size: 1.125rem;
}

.bachillerato-card {
    background: linear-gradient(135deg, var(--azul-rey), var(--azul-rey-light));
    color: white;
    padding: 4rem;
    border-radius: var(--radius);
    margin: 4rem auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.bachillerato-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245, 168, 0, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.bachillerato-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Grid principal */
.bachillerato-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bachillerato-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(245, 168, 0, 0.2);
    color: var(--mostaza);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 168, 0, 0.3);
    box-shadow: 0 4px 15px rgba(245, 168, 0, 0.2);
}

.bachillerato-image-container {
    width: 100%;
    text-align: center;
}

.bachillerato-image-wrapper {
    position: relative;
    display: inline-block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    max-width: 700px;
    width: 100%;
}

.bachillerato-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.bachillerato-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(245, 168, 0, 0.2) 0%, rgba(0, 0, 126, 0.1) 100%);
}

.bachillerato-floating-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--mostaza);
    color: var(--azul-rey);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(245, 168, 0, 0.4);
}

/* Contenido principal */
.bachillerato-main-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.bachillerato-title {
    color: var(--mostaza);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.bachillerato-description {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bachillerato-highlight {
    color: var(--mostaza);
    font-weight: 700;
}

.bachillerato-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    width: 100%;
}




.bachillerato-card h3 {
    color: var(--mostaza);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.features span {
    font-size: 0.875rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
            .features {
                flex-direction: row;
                justify-content: center;
            }
        }

.programas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.programa-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--mostaza);
}

.programa-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.duration {
    background: var(--gris-claro);
    color: var(--azul-rey);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.programa-card h3 {
    color: var(--azul-rey);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.programa-card p {
    color: var(--gris-medio);
    margin-bottom: 1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills span {
    background: rgba(245, 168, 0, 0.1);
    color: var(--azul-rey);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(245, 168, 0, 0.2);
    transition: all 0.3s ease;
}

.skills span:hover {
    background: var(--mostaza);
    color: var(--azul-rey);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 168, 0, 0.3);
}

/* CSS para botones más visibles */
.cta-buttons-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-cta:hover::before {
    left: 100%;
}

/* Botón Principal - Mostaza sobre blanco */
.btn-cta-primary {
    background: linear-gradient(135deg, var(--mostaza), var(--mostaza-light));
    color: var(--azul-rey);
    border: 3px solid var(--mostaza);
    box-shadow: 0 4px 20px rgba(245, 168, 0, 0.4);
}

.btn-cta-primary:hover {
    background: linear-gradient(135deg, var(--mostaza-light), #FFD700);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(245, 168, 0, 0.6);
    color: var(--azul-rey);
}

/* Botón Secundario - Blanco */
.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--azul-rey);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary:hover {
    background: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
    color: var(--azul-rey);
}

/* Botón Terciario - Transparente con borde */
.btn-cta-tertiary {
    background: transparent;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-cta-tertiary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-cta {
        width: 100%;
        max-width: 300px;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
}

/* Animación extra para el botón principal */
.btn-cta-primary:hover {
    animation: pulseGlow 0.6s ease;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 30px rgba(245, 168, 0, 0.6);
    }

    50% {
        transform: translateY(-3px) scale(1.08);
        box-shadow: 0 12px 40px rgba(245, 168, 0, 0.8);
    }
}

/* Efecto de texto brillante en hover */
.btn-cta:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Ajustar las cards para incluir botones */
.programa-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding-bottom: 1.5rem;
}

/* Contenedor de botones en cards */
.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Botones de las cards */
.btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-card:hover::before {
    left: 100%;
}

/* Botón primario - Mostaza */
.btn-card-primary {
    background: linear-gradient(135deg, var(--mostaza), var(--mostaza-light));
    color: var(--azul-rey);
    box-shadow: 0 2px 10px rgba(245, 168, 0, 0.3);
    border: 2px solid transparent;
}

.btn-card-primary:hover {
    background: linear-gradient(135deg, var(--mostaza-light), #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 168, 0, 0.4);
    color: var(--azul-rey);
}

/* Botón secundario - Azul outline */
.btn-card-secondary {
    background: transparent;
    color: var(--azul-rey);
    border: 2px solid var(--azul-rey);
    box-shadow: 0 2px 8px rgba(0, 0, 126, 0.1);
}

.btn-card-secondary:hover {
    background: var(--azul-rey);
    color: var(--blanco);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 126, 0.3);
}

/* Responsivo para tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .card-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }

    .btn-card {
        flex: 1;
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}

/* Móvil - botones stack vertical */
@media (max-width: 767px) {
    .card-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-card {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Desktop - botones en fila en cards más grandes */
@media (min-width: 1024px) {
    .programas-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-buttons {
        flex-direction: row;
        gap: 0.5rem;
    }

    .btn-card {
        flex: 1;
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
}

/* Animación especial para botón PDF */
.btn-card-primary:hover {
    animation: downloadBounce 0.6s ease;
}

@keyframes downloadBounce {

    0%,
    20%,
    60%,
    100% {
        transform: translateY(-2px);
    }

    40%,
    80% {
        transform: translateY(-4px);
    }
}

/* Efecto hover en toda la card */
.programa-card:hover {
    transform: translateY(-5px);
}

.programa-card:hover .btn-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hover effects para feature cards */
.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 10px 30px rgba(245, 168, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}





/* CONTACTO */
.contacto {
    background: var(--gris-claro);
}

.contacto h2 {
    text-align: center;
    color: var(--azul-rey);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contacto-info {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    background: var(--blanco);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow);
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--mostaza), var(--mostaza-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--azul-rey);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--gris-medio);
    margin: 0;
}

.info-item a {
    color: var(--azul-rey);
    text-decoration: none;
}

.info-item a:hover {
    color: var(--mostaza);
}

.contacto-form {
    background: var(--blanco);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contacto-form h3 {
    color: var(--azul-rey);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gris-claro);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--mostaza);
    box-shadow: 0 0 0 3px rgba(245, 168, 0, 0.1);
}

/* FOOTER */
.footer {
    background: var(--negro);
    color: var(--blanco);
    padding: 3rem 0 1rem;
    text-decoration: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.footer h3,
.footer h4 {
    color: var(--mostaza);
    margin-bottom: 1rem;
}

.footer p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.footer p a {
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

.footer a {
    color: var(--blanco);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--mostaza);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-info {
    flex: 1;
    min-width: 0;
}

.feature-label {
    color: var(--mostaza);
    font-weight: bold;
    font-size: 0.9rem;
    display: block;
    line-height: 1.2;
}

.feature-value {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Ventaja única */
.bachillerato-unique-advantage {
    background: linear-gradient(135deg, var(--mostaza), var(--mostaza-light));
    color: var(--azul-rey);
    padding: 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(245, 168, 0, 0.3);
}

.advantage-decoration {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 126, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.advantage-content {
    position: relative;
    z-index: 2;
}

.advantage-title {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.advantage-emoji {
    font-size: 2rem;
}

.advantage-text {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.advantage-subtext {
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
    opacity: 0.9;
    text-align: center;
}

/* Botones */
.bachillerato-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.btn-bachillerato {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 220px;
    justify-content: center;
}

.btn-bachillerato::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-bachillerato:hover::before {
    left: 100%;
}

.btn-bachillerato-primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--azul-rey);
    border: 3px solid white;
}

.btn-bachillerato-primary:hover {
    background: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
    color: var(--azul-rey);
}

.btn-bachillerato-secondary {
    background: transparent;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.btn-bachillerato-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
    color: white;
}

/* Estadísticas */
.bachillerato-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--mostaza);
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
    animation: countUp 2s ease-out;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.3;
}

/* =================================
   ANIMACIONES
   ================================= */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-10px) rotate(1deg);
    }

    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

@keyframes countUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =================================
   HOVER EFFECTS
   ================================= */

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(245, 168, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.bachillerato-card:hover .bachillerato-image {
    transform: scale(1.05);
}

.bachillerato-card:hover .bachillerato-image-wrapper {
    transform: scale(1.02);
}

.btn-bachillerato:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-bachillerato-primary:hover {
    animation: pulseGlow 0.6s ease;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
    }

    50% {
        transform: translateY(-3px) scale(1.08);
        box-shadow: 0 12px 40px rgba(255, 255, 255, 0.7);
    }
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

/* Móvil */
@media (max-width: 768px) {
    .bachillerato-card {
        padding: 2rem;
        margin: 2rem auto;
    }

    .bachillerato-title {
        font-size: 1.6rem;
    }

    .bachillerato-description {
        font-size: 1.1rem;
    }

    .bachillerato-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-bachillerato {
        width: 100%;
        max-width: 300px;
    }

    .feature-card {
        text-align: center;
    }

    .feature-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .bachillerato-image {
        height: 250px;
    }

    .bachillerato-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .bachillerato-card {
        padding: 3rem;
    }

    .bachillerato-title {
        font-size: 2rem;
    }

    .bachillerato-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop grande */
@media (min-width: 1024px) {
    .bachillerato-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
        
    }

    .bachillerato-badge {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .bachillerato-main-content {
        order: 1;
    }

    .bachillerato-image-container {
        order: 2;
    }

    .bachillerato-title,
    .bachillerato-description,
    .advantage-text,
    .advantage-subtext {
        text-align: left;
    }

    .advantage-title {
        justify-content: flex-start;
    }

    .bachillerato-buttons {
        justify-content: flex-start;
    }
}

/* ANIMACIONES */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-message--success {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.2);
    color: #166534;
}

.form-message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

/* TABLET */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .hero-description {
        font-size: 1.2rem;
        max-width: 80%;
    }

    .hero-stats {
        max-width: 450px;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .programas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .features {
        flex-direction: row;
        justify-content: center;
    }
}

/* DESKTOP */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .nav-menu {
        position: static;
        right: 0;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
    }

    .nav-list {
        flex-direction: row;
        gap: 2rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        border-bottom: none;
        border-radius: 0.5rem;
    }

    .nav-cta {
        margin-top: 0;
    }

    .nav-toggle {
        display: none;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-description {
        font-size: 1.3rem;
        max-width: 70%;
    }

    .hero-stats {
        max-width: 500px;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .hero-content {
        text-align: left;
        max-width: 50%;
    }

    .hero-stats {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .programas-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bachillerato-card {
       
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        align-items: center;
        text-align: left;
    }

    /* Hover effect para la imagen principal */
    .bachillerato-card:hover img {
        transform: scale(1.05);
    }

    .bachillerato-card:hover>div:first-child>div:nth-child(2)>div {
        transform: scale(1.02);
    }

    /* Responsive mejorado */
    @media (max-width: 768px) {
        .bachillerato-card {
            padding: 2rem !important;
            margin-bottom: 2rem !important;
        }

        .bachillerato-card h3 {
            color: var(--mostaza);
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .bachillerato-card p {
            font-size: 1.1rem !important;
        }

        .btn-cta {
            width: 100% !important;
            max-width: 300px !important;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.15);
            padding: 1.5rem;
            border-radius: 1rem;
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            text-align: left;
        }
    }

    .bachillerato-card div[style*="font-size: 2.5rem"] {
        animation: countUp 2s ease-out;
    }

    @keyframes countUp {
        from {
            transform: scale(0.5);
            opacity: 0;
        }

        to {
            transform: scale(1);
            opacity: 1;
        }
    }

    @media (max-width: 768px) {
        .programa-detalle>div {
            display: flex !important;
            flex-direction: column !important;
            gap: 2rem !important;
        }

        .programa-detalle .perfil-ingreso-grid {
            grid-template-columns: 1fr !important;
        }
    }

    @media (max-width: 768px) {
        #bachillerato .bachillerato-card {
            padding: 2rem 1.5rem !important;
        }

        #bachillerato .bachillerato-card h3 {
            font-size: 1.4rem !important;
        }

        #bachillerato div[style*="grid-template-columns: 1fr 1fr"] {
            grid-template-columns: 1fr !important;
        }

        #bachillerato div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
            grid-template-columns: 1fr !important;
        }
    }

    @media (min-width: 1024px) {
        #bachillerato .bachillerato-card>div {
            grid-template-columns: 1fr 1fr !important;
            align-items: center !important;
            text-align: left !important;
        }

        #bachillerato .bachillerato-card img {
            max-width: 500px !important;
        }
    }
}
@media (min-width: 1024px) {
    .bachillerato-card{
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        align-items: center;
    }
    
}


/* Redes Sociales */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--blanco);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-link:hover {
    background: var(--mostaza);
    color: var(--azul-rey);
    transform: translateY(-2px);
}

/* Colores específicos para cada red social */
.social-link.facebook:hover {
    background: #1877F2;
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.social-link.tiktok:hover {
    background: #000000;
    color: white;
}

.social-link.youtube:hover {
    background: #FF0000;
    color: white;
}

.social-link.linkedin:hover {
    background: #0A66C2;
    color: white;
}

.social-link.whatsapp:hover {
    background: #25D366;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-bottom {
        gap: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom a {
    color: var(--mostaza);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--blanco);
    text-decoration: underline;
}