/* Oferta Educativa - Estilos específicos */

/* Hero Section para Oferta Educativa */
.oferta-hero {
    background: linear-gradient(rgba(26, 60, 52, 0.9), rgba(151, 191, 4, 0.8)), url('../IMG/oferta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

.oferta-hero h1 {
    color: white;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.oferta-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Niveles Grid */
.niveles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.nivel-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.nivel-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.nivel-header {
    padding: 30px 20px;
    color: white;
    text-align: center;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nivel-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.nivel-body {
    padding: 30px;
    background: white;
}

.nivel-body h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    text-align: center;
}

.nivel-edad {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Colores específicos por nivel */
.nivel-maternal .nivel-header {
    background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
}

.nivel-preescolar .nivel-header {
    background: linear-gradient(135deg, #F2913D 0%, #FFA726 100%);
}

.nivel-primaria .nivel-header {
    background: linear-gradient(135deg, #97BF04 0%, #AED136 100%);
}

.nivel-secundaria .nivel-header {
    background: linear-gradient(135deg, #418C35 0%, #5CAF50 100%);
}

.nivel-bachillerato .nivel-header {
    background: linear-gradient(135deg, #1A3C34 0%, #2E4A42 100%);
}

.nivel-especial .nivel-header {
    background: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%);
}

/* Comparativa */
.comparativa-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    margin: 40px 0;
}

.comparativa-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.comparativa-table th {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.comparativa-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: white;
    transition: background-color 0.3s ease;
}

.comparativa-table tr:nth-child(even) td {
    background: rgba(151, 191, 4, 0.03);
}

.comparativa-table tr:hover td {
    background: rgba(151, 191, 4, 0.08);
}

.comparativa-table .nivel-header-cell {
    font-weight: 600;
    color: var(--dark-color);
    width: 150px;
}

/* Características */
.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.caracteristica-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.caracteristica-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.caracteristica-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.caracteristica-icon i {
    font-size: 25px;
    color: white;
}

/* Proceso de Admisión */
.proceso-admision {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    border-radius: 25px;
    padding: 50px;
    margin: 50px 0;
}

.pasos-admision {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.paso-item {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    position: relative;
}

.paso-numero {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.paso-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
    z-index: 0;
}

.paso-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

/* FAQ */
.faq-container {
    margin-top: 50px;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.faq-item:hover {
    border-left-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark-color);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 500px;
}

/* CTA Especial */
.cta-oferta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 80px 0;
    border-radius: 30px;
    text-align: center;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-oferta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../IMG/pattern.png');
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-oferta h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.cta-btn.primary {
    background: white;
    color: var(--primary-color);
}

.cta-btn.primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Testimonios Oferta */
.testimonios-oferta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonio-oferta {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
}

.testimonio-oferta:before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

.testimonio-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonio-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
}

.testimonio-info h4 {
    margin-bottom: 5px;
}

.testimonio-nivel {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.testimonio-text {
    font-style: italic;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .niveles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .oferta-hero h1 {
        font-size: 2.8rem;
    }
    
    .pasos-admision {
        gap: 20px;
    }
    
    .paso-item {
        min-width: 180px;
    }
    
    .comparativa-container {
        padding: 30px;
    }
    
    .proceso-admision {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .oferta-hero {
        padding: 100px 0 60px;
    }
    
    .oferta-hero h1 {
        font-size: 2.3rem;
    }
    
    .niveles-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pasos-admision {
        flex-direction: column;
        align-items: center;
    }
    
    .paso-item:not(:last-child)::after {
        width: 2px;
        height: 40px;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .comparativa-table {
        font-size: 0.9rem;
    }
    
    .comparativa-table th,
    .comparativa-table td {
        padding: 12px 15px;
    }
    
    .testimonios-oferta {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .oferta-hero h1 {
        font-size: 2rem;
    }
    
    .nivel-header {
        min-height: 160px;
        padding: 25px 15px;
    }
    
    .nivel-body {
        padding: 25px 20px;
    }
    
    .caracteristicas-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    
    .cta-oferta {
        padding: 60px 20px;
    }
}