* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Top Bar - Barra de Transparencia */
.top-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    height: 70px;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
}

.transparency-links.left .lobby-image {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/*.transparency-links.right {
    display: flex;
    gap: 1rem;
}

.transparency-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    height: 50px;
}

.transparency-btn.active-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-color: #ff6b35;
}

.transparency-btn.info-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
}

.transparency-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-text {
    line-height: 1.2;
}

.btn-text strong {
    display: block;
    font-size: 0.9rem;
}

.btn-text small {
    font-size: 0.75rem;
    opacity: 0.9;
}*/

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 70px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    height: 80px;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo h1 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a.active {
    color: #ff6b6b;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Main Content */
main {
    background: white;
    margin-top: 150px;
    min-height: calc(100vh - 150px);
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 2px;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active:hover {
    color: white;
}

/* Talleres Grid - MODIFICADO PARA TAMAÑOS UNIFORMES */
.talleres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.taller-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    /* CLAVE: Estructura flex para altura uniforme */
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegurar que todas las tarjetas tengan la misma altura */
    min-height: 600px; /* Altura mínima consistente */
}

.taller-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.taller-header {
    /* Para tarjetas con imagen de fondo */
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden; /* Para que la imagen no se desborde */
}

.taller-header.has-image {
    background: none; /* Sin gradiente, la imagen será el fondo */
    padding: 0;
    position: relative;
}

.taller-header.has-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 1;
}

.taller-header.has-image .taller-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.taller-icon.full-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    font-size: inherit; /* Resetea el font-size */
    margin: 0;
    display: block; /* Cambia de flex a block */
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.taller-icon.full-background img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubre todo el área */
    border-radius: 0;
}

.taller-icon {
    font-size: 3rem;
    margin: 0;
    flex-shrink: 0;
    /* NUEVOS ESTILOS PARA MANEJAR TANTO EMOJIS COMO IMÁGENES */
    width: 80px;  /* Tamaño fijo */
    height: 80px; /* Tamaño fijo */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Círculo para las imágenes */
    overflow: hidden; /* Recorta la imagen si es necesario */
    background: rgba(255, 255, 255, 0.2); /* Fondo sutil */
}

.taller-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubre todo el círculo */
    border-radius: 50%; /* Mantiene la forma circular */
}

.taller-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
    padding: 0 0.5rem;
    position: relative;
    margin-bottom: 20px;
    
    /* MEJORAS DE VISIBILIDAD */
    color: white !important;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(0, 0, 0, 0.4); /* Múltiples sombras para mayor contraste */
}

/* Línea decorativa más específica y forzada */
.taller-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background: #ffffff !important; /* Línea blanca para mejor contraste */
    border-radius: 2px !important;
    display: block !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para la línea */
}

.taller-details {
    padding: 2rem;
    /* CLAVE: Flex-grow para ocupar espacio disponible */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    /* Altura consistente para los items */
    min-height: 70px;
}

.detail-item:last-of-type {
    margin-bottom: 1.5rem; /* Espacio antes del botón */
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0; /* No se reduce */
}

.detail-content {
    flex-grow: 1;
}

.detail-content h4 {
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.detail-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Botones de acción - POSICIONADOS AL FINAL */
.taller-actions {
    display: flex;
    gap: 0.8rem;
    padding: 0 2rem 2rem;
    margin-top: auto; /* Empuja al final de la tarjeta */
}

.btn-inscribir {
    flex: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.btn-inscribir:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Horarios Section */
.horarios-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
}

.horarios-section h2 {
    color: white;
}

.horarios-section h2::after {
    background: white;
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.horario-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.horario-day {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.horario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.horario-time {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: #feca57;
}

/* Inscripciones Section */
.inscripciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.inscripcion-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 6px solid;
}

.inscripcion-card:nth-child(1) {
    border-left-color: #28a745;
}

.inscripcion-card:nth-child(2) {
    border-left-color: #007bff;
}

.inscripcion-card:nth-child(3) {
    border-left-color: #e83e8c;
}

.inscripcion-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.inscripcion-list {
    list-style: none;
}

.inscripcion-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
}

.inscripcion-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.inscripcion-card:nth-child(1) .inscripcion-icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.inscripcion-card:nth-child(2) .inscripcion-icon {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.inscripcion-card:nth-child(3) .inscripcion-icon {
    background: rgba(232, 62, 140, 0.1);
    color: #e83e8c;
}

.cta-section {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: white;
    color: #ff6b6b;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p, .footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #feca57;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    color: #bdc3c7;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        height: auto;
        padding: 0.5rem 0;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .transparency-links.right {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .transparency-btn {
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        height: 45px;
    }
    
    .lobby-image {
        height: 35px !important;
    }
    
    header {
        top: 120px;
        height: 70px;
    }
    
    .nav-menu {
        display: none;
    }

    main {
        margin-top: 190px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .talleres-grid {
        grid-template-columns: 1fr;
    }

    .taller-card {
        min-height: 550px; /* Altura mínima ajustada para móviles */
    }

    .horarios-grid {
        grid-template-columns: 1fr;
    }

    .inscripciones-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 300px;
    }
}