/* ============================================
   TEST GRATUITOS - ESTILOS
   ============================================ */

/* Hero Específico */
.hero-test {
    background: linear-gradient(135deg, #16a085 0%, #0e7a5f 100%);
}

.test-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   CATEGORY SECTIONS
   ============================================ */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.category-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.category-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    flex-grow: 1;
    margin: 0;
}

.category-count {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================
   TEST GRID
   ============================================ */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.test-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Test Header */
.test-header {
    background: linear-gradient(135deg, #16a085 0%, #0e7a5f 100%);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.test-pdf-icon {
    font-size: 3.5rem;
    color: white;
}

/* Test Body */
.test-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.test-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
}

.test-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Test Footer */
.test-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
}

.btn-test {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #16a085 0%, #0e7a5f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 160, 133, 0.4);
}

/* ============================================
   PREMIUM NOTICE (Heredado de resumenes.css)
   ============================================ */
.premium-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 3px solid #16a085;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 5px 20px rgba(22, 160, 133, 0.3);
}

.premium-notice-icon {
    font-size: 4rem;
    color: #16a085;
    flex-shrink: 0;
}

.premium-notice-content h3 {
    color: #0e7a5f;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-notice-content h3 i {
    color: #F39C12;
}

.premium-notice-content p {
    color: #856404;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.btn-premium {
    background: linear-gradient(135deg, #16a085 0%, #0e7a5f 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(22, 160, 133, 0.4);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 160, 133, 0.6);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 10001;
}

.modal-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #16a085 0%, #0e7a5f 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-body {
    flex-grow: 1;
    padding: 0;
    overflow: hidden;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-footer {
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin-top: 4rem;
    text-align: center;
    color: white;
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.final-cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.final-cta-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
}

.cta-feature i {
    font-size: 1.5rem;
    color: #52ff88;
}

.btn-cta {
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .test-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .premium-notice {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .final-cta {
        padding: 3rem 1.5rem;
    }
    
    .final-cta-title {
        font-size: 2rem;
    }
    
    .cta-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        height: 90vh;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.3rem;
    }
    
    .test-title {
        font-size: 1.1rem;
    }
    
    .final-cta-title {
        font-size: 1.8rem;
    }
    
    .final-cta-description {
        font-size: 1rem;
    }
}

/* ============================================
   AULA VIRTUAL SECTION
   ============================================ */
.aula-virtual-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.aula-virtual-header {
    text-align: center;
    margin-bottom: 3rem;
}

.aula-virtual-title {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.aula-virtual-title i {
    color: #16a085;
    font-size: 2.2rem;
}

.aula-virtual-description {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.aula-virtual-description strong {
    color: #16a085;
}

/* Carousel Container */
.aula-virtual-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    background: linear-gradient(to top, rgba(22, 160, 133, 0.95) 0%, rgba(22, 160, 133, 0.85) 100%);
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
}

.carousel-caption i {
    font-size: 1.4rem;
    color: #52ff88;
}

/* Botones de Navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-btn i {
    color: #16a085;
    font-size: 1.5rem;
}

/* Indicadores (puntos) */
.carousel-indicators {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid white;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    width: 14px;
    height: 14px;
}

/* CTA Section */
.aula-virtual-cta {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.aula-virtual-cta-text {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.aula-virtual-cta-text i {
    color: #F39C12;
    font-size: 1.3rem;
}

.aula-virtual-cta-text strong {
    color: #16a085;
}

.btn-aula-virtual {
    background: linear-gradient(135deg, #16a085 0%, #0e7a5f 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(22, 160, 133, 0.4);
    transition: all 0.3s;
}

.btn-aula-virtual:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(22, 160, 133, 0.6);
}

/* Responsive para Aula Virtual */
@media (max-width: 768px) {
    .aula-virtual-section {
        padding: 2rem 1.5rem;
    }
    
    .aula-virtual-title {
        font-size: 1.6rem;
        flex-direction: column;
    }
    
    .aula-virtual-description {
        font-size: 1rem;
    }
    
    .carousel-container {
        height: 400px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-btn i {
        font-size: 1.2rem;
    }
    
    .carousel-caption {
        font-size: 0.95rem;
        padding: 1rem;
    }
    
    .carousel-indicators {
        bottom: 60px;
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .aula-virtual-cta {
        padding: 1.5rem;
    }
    
    .aula-virtual-cta-text {
        font-size: 1rem;
    }
    
    .btn-aula-virtual {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }
}

@media (max-width: 480px) {
    .aula-virtual-title {
        font-size: 1.4rem;
    }
    
    .aula-virtual-description {
        font-size: 0.95rem;
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .carousel-caption {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
    
    .carousel-caption i {
        font-size: 1.2rem;
    }
}
