/* Estilos para las páginas de módulos */

/* Estilos específicos para las páginas de módulos */

/* Estilos para el módulo express */
.express-badge-large {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    animation: pulse 2s infinite;
}

/* Estilos para la imagen mejorada */
.module-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.module-image-enhanced {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

.module-image-container:hover .module-image-enhanced {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.pulse-badge {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.7);
}

/* Estilos para el texto con brillo */
.glow-text {
    color: #2c3e50;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
    margin-top: 15px;
    font-size: 24px;
    font-weight: 700;
}

/* Estilos para el encabezado animado */
.animated-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.animated-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    animation: shine 3s infinite;
}

.headline-animated {
    font-size: 32px;
    color: #e74c3c;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.headline-animated::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 3px;
}

/* Contador de tiempo */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timer-number {
    font-size: 28px;
    font-weight: 700;
    color: #e74c3c;
}

.timer-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Estilos para texto resaltado */
.highlight-text {
    line-height: 1.6;
    font-size: 16px;
    color: #2c3e50;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.highlight {
    background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(231, 76, 60, 0.3) 50%);
    padding: 0 5px;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 1px rgba(255,255,255,0.5);
}

/* Etiquetas animadas */
.animated-tag {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animated-tag:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Banner de acción */
.action-banner {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.action-banner p {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.btn-cta {
    background: white;
    color: #3498db;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pulse-button {
    animation: pulse 2s infinite;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para el desglose diario */
.section-title-special {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.highlight-badge {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.days-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.day-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.day-header {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#day1 .day-header {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

#day2 .day-header {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

#day3 .day-header {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.day-number {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.day-header h3 {
    margin: 0;
    font-size: 20px;
}

.day-content {
    padding: 20px;
}

.day-objective {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.day-objective i {
    color: #3498db;
    font-size: 20px;
    margin-top: 3px;
}

#day1 .day-objective i {
    color: #3498db;
}

#day2 .day-objective i {
    color: #9b59b6;
}

#day3 .day-objective i {
    color: #e74c3c;
}

.day-objective p {
    margin: 0;
    line-height: 1.5;
}

.day-schedule {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.schedule-item {
    display: flex;
    gap: 15px;
}

.time-badge {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    min-width: 45px;
    text-align: center;
}

.schedule-content {
    flex: 1;
}

.schedule-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.schedule-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Estilos para recursos mejorados */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.resource-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animated-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.resource-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.featured-resource {
    border: 2px solid #f39c12;
    transform: scale(1.05);
}

.featured-resource:hover {
    transform: translateY(-10px) scale(1.05);
}

.resource-icon-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-icon-container {
    transform: rotateY(180deg);
}

.resource-icon-container i {
    font-size: 28px;
    color: #3498db;
}

.resource-card h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.resource-card p {
    margin: 0 0 20px 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

.resource-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.resource-feature {
    font-size: 14px;
    color: #2c3e50;
}

.resource-feature i {
    color: #2ecc71;
    margin-right: 5px;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 1;
}

/* Estilos para el CTA mejorado */
.cta-enhanced {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    padding: 0;
    margin-top: 50px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: white;
}

.cta-title {
    font-size: 32px;
    margin: 0 0 30px 0;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.cta-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cta-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 20px;
    color: white;
}

.feature-text h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.feature-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.cta-action {
    text-align: center;
    margin-top: 30px;
}

.cta-text {
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-large:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-large i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-large:hover i {
    transform: translateX(5px);
}

.spots-left {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.highlight-spots {
    font-weight: 700;
    font-size: 18px;
    color: #f1c40f;
}

/* Animaciones */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Contenedor principal del módulo */
.module-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 30px auto;
    gap: 30px;
    padding: 0 20px;
}

/* Sidebar del módulo */
.module-sidebar {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
}

.module-info {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.module-info img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.module-info h2 {
    padding: 15px 15px 10px;
    font-size: 20px;
    color: #2c3e50;
}

.module-info p {
    padding: 5px 15px;
    color: #7f8c8d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-info button {
    width: calc(100% - 30px);
    margin: 15px 15px 20px;
}

/* Contenido del módulo en el sidebar */
.module-contents {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.module-contents h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
}

.content-list {
    list-style: none;
}

.content-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.content-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 0;
    font-weight: 500;
    color: #2c3e50;
}

.content-header i {
    color: #3498db;
    font-size: 14px;
}

.content-sublist {
    list-style: none;
    margin-top: 10px;
    margin-left: 24px;
    display: none;
}

.content-sublist li {
    padding: 8px 0;
    font-size: 14px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-sublist i {
    color: #3498db;
    font-size: 14px;
}

/* Contenido principal del módulo */
.module-main {
    flex: 2;
    min-width: 300px;
}

.module-description, .instructor-section, .reviews-section {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.module-description h2, .instructor-section h2, .reviews-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.module-description h3 {
    font-size: 18px;
    margin: 25px 0 15px;
    color: #2c3e50;
}

.module-description p, .module-description li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.module-description ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

/* Objetivos de aprendizaje */
.learning-objectives {
    list-style: none;
    padding-left: 0;
}

.learning-objectives li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.learning-objectives i {
    color: #27ae60;
    margin-top: 3px;
}

/* Evaluación */
.evaluation-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.evaluation-item {
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.evaluation-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.evaluation-item p {
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
    margin: 0;
}

/* Instructor */
.instructor-profile {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.instructor-profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.instructor-title {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 15px;
}

.instructor-info p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Reseñas */
.reviews-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.rating-big {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    width: 150px;
}

.rating-big span {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    display: block;
    line-height: 1;
}

.stars {
    color: #f1c40f;
    font-size: 20px;
    margin: 10px 0;
}

.rating-big p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.rating-bars {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rating-bar span {
    width: 80px;
    font-size: 14px;
    color: #7f8c8d;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
}

.bar-container {
    flex: 1;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background-color: #f1c40f;
}

.reviews-list {
    margin-bottom: 20px;
}

.review-card {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.review-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.review-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-header h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #2c3e50;
}

.review-date {
    color: #7f8c8d;
    font-size: 12px;
    margin: 5px 0 0;
}

.review-content {
    color: #555;
    line-height: 1.6;
}

.btn-secondary {
    background-color: white;
    color: #3498db;
    border: 1px solid #3498db;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
}

.btn-secondary:hover {
    background-color: #f1f9fe;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .module-sidebar {
        max-width: 100%;
    }
    
    .evaluation-grid {
        flex-direction: column;
        gap: 10px;
    }
    
    .instructor-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .reviews-summary {
        flex-direction: column;
        align-items: center;
    }
    
    .rating-big {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .module-container {
        flex-direction: column;
    }
    
    .module-sidebar {
        min-width: 100%;
    }
}
