/* Estilos para Talleres - Diseño Profesional */

/* ============================*/
/* Página de detalle del taller */
/* ============================*/

.taller-page {
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
}

.taller-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header del taller (página de detalle) */
.taller-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    position: relative;
}

.taller-badge {
    display: inline-block;
    background: #3498db;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.taller-meta-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.taller-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-size: 1rem;
    font-weight: 400;
}

.taller-meta-item i {
    color: #3498db;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.taller-cta-button {
    background: #e74c3c;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1.5rem;
}

.taller-cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    color: #ffffff;
    text-decoration: none;
}

/* Secciones del taller */
.taller-section {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 2rem;
    position: relative;
}

.taller-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: left;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

.taller-topics-list {
    list-style: none;
    padding: 0;
    max-width: 100%;
    margin: 0;
}

.taller-topics-list li {
    position: relative;
    padding: 1rem 0 1rem 2rem;
    font-size: 1rem;
    color: #34495e;
    line-height: 1.6;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.2s ease;
}

.taller-topics-list li:last-child {
    border-bottom: none;
}

.taller-topics-list li:hover {
    background: #f8f9fa;
    padding-left: 2.5rem;
}

.taller-topics-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 1rem;
    color: #3498db;
    font-weight: bold;
    font-size: 1.2rem;
}

.taller-text-content {
    font-size: 1rem;
    color: #34495e;
    line-height: 1.7;
    text-align: left;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem 0;
}

/* Sección del profesor */
.taller-speaker-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #ffffff;
    padding: 2rem;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.taller-speaker-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3498db;
}

.taller-speaker-info {
    flex: 1;
}

.taller-speaker-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.taller-speaker-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.taller-speaker-title {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 400;
}

/* Secciones de organizador y sponsor */
.taller-organizador-section, .taller-sponsor-section {
    background: #ffffff;
    padding: 2rem;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.taller-organizador-content, .taller-sponsor-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.taller-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0;
}

.taller-organizador-logo, .taller-sponsor-logo {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
    border: 1px solid #e1e8ed;
    transition: all 0.2s ease;
}

.taller-organizador-logo:hover, .taller-sponsor-logo:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.taller-organizador-text, .taller-sponsor-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: #34495e;
    padding: 1rem 0;
    font-weight: 400;
}

/* Estilos para la galería */
.taller-gallery {
    margin-top: 1rem;
}

.taller-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.taller-gallery-item:hover {
    transform: translateY(-5px);
}

.taller-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.taller-gallery-item:hover img {
    transform: scale(1.05);
}

/* Estilos para el logo de beneficio */
.taller-beneficio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.taller-beneficio-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

/* Sección de inscripción */
.taller-inscripcion-section {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e1e8ed;
    margin-bottom: 2rem;
}

.taller-inscripcion-section .taller-cta-button {
    font-size: 1.2rem;
    padding: 1.25rem 3rem;
    margin-bottom: 1.5rem;
    background: #e74c3c;
}

.taller-inscripcion-section .taller-cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.taller-cupos-info {
    color: #7f8c8d;
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: 400;
    background: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid #e1e8ed;
}

.taller-cupos-info i {
    color: #3498db;
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Sección de Zoom */
.taller-zoom-link {
    text-align: center;
    margin-top: 1.5rem;
}

.taller-zoom-link .btn {
    background: #3498db;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.taller-zoom-link .btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Responsive para página de detalle */
@media (max-width: 768px) {
    .taller-container {
        padding: 1rem 0.5rem;
    }

    .taller-meta-info {
        flex-direction: column;
        gap: 1rem;
    }

    .taller-organizador-content, .taller-sponsor-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .taller-logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 0.75rem;
        justify-items: center;
    }

    .taller-organizador-logo, .taller-sponsor-logo {
        width: 60px;
        height: 60px;
    }

    .taller-speaker-section {
        flex-direction: column;
        text-align: center;
    }
}

/* Header de página */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header .lead {
    color: #7f8c8d;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Sección de búsqueda */
.search-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.search-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.search-form .form-control {
    border-radius: 25px 0 0 25px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.search-form .btn {
    border-radius: 0 25px 25px 0;
    padding: 0.75rem 1.5rem;
    border: 2px solid #007bff;
}

/* Tarjetas de talleres */
.taller-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.taller-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.taller-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.taller-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.taller-date {
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.taller-date i {
    margin-right: 0.5rem;
}

.taller-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--asd);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.taller-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.taller-title a:hover {
    color: #007bff;
}

.taller-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.taller-actions {
    margin-top: auto;
}

.taller-actions .btn {
    width: 100%;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Página de detalle del taller */
.taller-header {
    margin-bottom: 3rem;
    position: relative;
}

.taller-hero-image {
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.taller-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.taller-header-content {
    text-align: center;
}

.taller-date-badge {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.taller-date-badge i {
    margin-right: 0.5rem;
}

.taller-subtitle {
    font-size: 1.2rem;
    color: var(--gris-70);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contenido del taller */
.taller-content {
    margin-bottom: 3rem;
}

.taller-section {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.taller-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--asd);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.taller-section h2 i {
    margin-right: 1rem;
    color: var(--verde);
    font-size: 1.5rem;
}

.taller-text {
    color: var(--gris-50);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Sidebar */
.taller-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-item i {
    color: #007bff;
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.info-item strong {
    color: #2c3e50;
    margin-right: 0.5rem;
}

.info-item span {
    color: #6c757d;
}

/* Botones de compartir */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-buttons .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-buttons .btn i {
    margin-right: 0.5rem;
}

.btn-facebook {
    background: #3b5998;
    color: white;
    border: none;
}

.btn-facebook:hover {
    background: #2d4373;
    color: white;
    transform: translateY(-2px);
}

.btn-twitter {
    background: #1da1f2;
    color: white;
    border: none;
}

.btn-twitter:hover {
    background: #0d8bd9;
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #1ea952;
    color: white;
    transform: translateY(-2px);
}

/* Paginación */
.pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem;
    border: 2px solid #e9ecef;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    .taller-title {
        font-size: 2rem;
    }
    
    .taller-subtitle {
        font-size: 1.1rem;
    }
    
    .taller-section {
        padding: 1.5rem;
    }
    
    .taller-section h2 {
        font-size: 1.5rem;
    }
    
    .sidebar-card {
        padding: 1.5rem;
    }
    
    .taller-hero-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .search-section {
        padding: 1rem;
    }
    
    .taller-content {
        padding: 1rem;
    }
    
    .taller-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .taller-section h2 {
        font-size: 1.3rem;
    }
    
    .taller-section h2 i {
        font-size: 1.2rem;
    }
    
    .taller-text {
        font-size: 1rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.taller-card {
    animation: fadeInUp 0.6s ease-out;
}

.taller-card:nth-child(2) {
    animation-delay: 0.1s;
}

.taller-card:nth-child(3) {
    animation-delay: 0.2s;
}

.taller-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Estados de carga */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007bff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Profesor Section */
.profesor-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profesor-image {
    flex-shrink: 0;
}

.profesor-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #007bff;
}

.profesor-name h3 {
    margin: 0;
    color: #343a40;
    font-size: 1.5rem;
}

/* Benefit Section */
.taller-benefit {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #dc3545;
}

.taller-benefit i {
    color: #dc3545;
    margin-right: 8px;
}

.taller-benefit span {
    font-weight: 500;
    color: #343a40;
}

/* Inscripción Section */
.inscripcion-content {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #007bff;
}

.taller-enroll-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    background-color: #28a745;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.taller-enroll-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.cupos-info {
    margin: 0;
    color: #6c757d;
}

/* Organizador y Sponsor Sections */
.organizador-info, .sponsor-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.organizador-logo, .sponsor-logo {
    flex-shrink: 0;
}

.organizador-logo img, .sponsor-logo img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.organizador-text, .sponsor-text {
    flex-grow: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .profesor-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .organizador-info, .sponsor-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .organizador-logo img, .sponsor-logo img {
        max-width: 100px;
        max-height: 60px;
    }
    
    .taller-enroll-button {
        font-size: 1.1rem;
        padding: 12px 30px;
    }
}
