/**
 * Estilos modernos para la vista individual de talleres
 */

/* Contenedor principal */
.taller-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Hero section con efecto parallax */
.taller-hero {
    position: relative;
    background-image: url('https://via.placeholder.com/1200x400/2c3e50/ffffff?text=Taller');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 400px;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.taller-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.taller-titulo {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;    
}

.taller-precio-badge {
    background: #940404;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    margin-bottom: 30px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px rgba(219, 52, 52, 0.3);
}

.precio-label {
    font-size: 14px;
    opacity: 0.8;
}

.precio-valor {
    font-size: 28px;
    line-height: 1;
}

.precio-moneda {
    font-size: 14px;
    opacity: 0.8;
}

/* Botón de inscripción principal con animación */
.inscribirse-taller-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.inscribirse-taller-btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(231, 76, 60, 0.4);
}

.pulse {
    animation: pulse 2s infinite;
}

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

/* Contenido principal */
.taller-contenido-principal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: relative;
}

/* Sistema de tabs */
.taller-tabs {
    margin-bottom: 30px;
}

.tab-links {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-link {
    padding: 12px 20px;
    font-weight: 600;
    color: #7f8c8d;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

.tab-link:hover {
    color: #3498db;
}

.tab-link.active {
    color: #3498db;
}

.tab-link.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3498db;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilo para la descripción */
.taller-descripcion {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* Módulos */
.taller-modulos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.modulo-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.modulo-numero {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.modulo-header {
    padding-left: 40px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modulo-titulo {
    font-size: 18px;
    color: #2c3e50;
    margin: 0;
    flex-grow: 1;
}

.modulo-precio-tag {
    background: #2ecc71;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.modulo-contenido {
    margin-bottom: 15px;
    font-size: 14px;
}

.modulo-extra {
    font-size: 13px;
    font-style: italic;
    color: #7f8c8d;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px dashed #ddd;
}

.modulo-enlace-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.modulo-enlace-btn:hover {
    background: #2980b9;
}

/* Información adicional */
.info-adicional-container {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.enlace-adicional-container {
    text-align: center;
    margin-top: 30px;
}

.btn-enlace-adicional {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-enlace-adicional:hover {
    background: #2980b9;
}

/* CTA flotante */
.cta-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.inscribirse-flotante {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.inscribirse-flotante:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* Mensaje para contenido no disponible */
.no-content-message {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .taller-hero {
        height: 300px;
    }
    
    .taller-titulo {
        font-size: 30px;
    }
    
    .tab-links {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .taller-modulos {
        grid-template-columns: 1fr;
    }
    
    .cta-flotante {
        bottom: 20px;
        right: 20px;
    }
}
