* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

        /* Contenedor del header con el canvas */
#game-of-life-header {
    width: 100%;
    height: 100vh;
    position: relative;
    background: #0f172a;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Canvas se posiciona detrás del contenido */
#game-of-life-header canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: 80px; /* Añade espacio para el navbar */
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

.header-content p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #e2e8f0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.header-badge {
    display: inline-block;
    background: rgba(147, 51, 234, 0.85);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
    align-self: center;
}

/* Contenido principal de la página */
.main-content {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.section-title {
    color: #1e293b;
    border-bottom: 3px solid #5235a1;
    padding-bottom: 0.7rem;
    margin: 1.5rem 0;
}

.color-palette {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.color-box {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Instrucciones */
.instructions {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}
.instructions h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

        /* Estilos para el Navbar */
.navbar.nukus-navbar{
    display: block;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #3c0035;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nukus-navbar .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nukus-navbar .nav-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nukus-navbar .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nukus-navbar .nav-menu a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(200, 144, 252, 0.521);
    color: #ffffff;
}

.nukus-navbar .nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .nukus-navbar .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: #3c0035;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
    }

    .nukus-navbar .nav-menu.active {
        left: 0;
    }

    .nukus-navbar .nav-toggle {
        display: flex;
    }
}

@media(max-width: 425px){
    .nukus-navbar .navbar-logo-img {
        width: 3rem;
        /* height: 45px; */
    }    
}


/* Estilos del Footer */
.footer {
    background-color: #330036;
    color: #e2e8f0;
    padding-top: 3rem;
    margin-top: 4rem;
    /* border-top: 3px solid #10b981; */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #7d28bb;
    display: inline-block;
}

.footer-motto {
    font-style: italic;
    color: #cb90c9;
    margin-top: 0.8rem;
    font-size: 0.95rem;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 0.8rem;
    display: flex;
    flex-wrap: wrap;
}

.footer-list li strong {
    min-width: 80px;
    color: #cbd5e1;
}

.footer-list a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.2rem 0;
    display: inline-block;
}

.footer-list a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Redes sociales */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    transform: translateX(5px);
    text-decoration: none;
}

.social-icon {
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.2);
}

/* Colores específicos para cada red social */
.facebook {
    background-color: rgba(59, 89, 152, 0.2);
    border-left: 4px solid #3b5998;
}

.facebook:hover {
    background-color: rgba(59, 89, 152, 0.3);
}

.twitter {
    background-color: rgba(29, 161, 242, 0.2);
    border-left: 4px solid #1da1f2;
}

.twitter:hover {
    background-color: rgba(29, 161, 242, 0.3);
}

.instagram {
    background-color: rgba(225, 48, 108, 0.2);
    border-left: 4px solid #e1306c;
}

.instagram:hover {
    background-color: rgba(225, 48, 108, 0.3);
}

.github {
    background-color: rgba(24, 23, 23, 0.2);
    border-left: 4px solid #181717;
}

.github:hover {
    background-color: rgba(24, 23, 23, 0.3);
}

.youtube {
    background-color: rgba(255, 0, 0, 0.2);
    border-left: 4px solid #ff0000;
}

.youtube:hover {
    background-color: rgba(255, 0, 0, 0.3);
}

/* Sección inferior del footer */
.footer-bottom {
    background-color: #1f0120;
    padding: 1rem 0;
    border-top: 1px solid #7d28bb;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding-top: 2rem;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-link {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }
    /* EL CARRUSEL */
    .carousel, 
    .carousel-inner, 
    .carousel-item {
        height: auto !important;
        min-height: 300px;
    }
    
    /* Las imágenes del carrusel */
    .carousel-item img {
        height: 200px !important;  /* Altura fija más pequeña */
        object-fit: cover;
    }
    
}
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
        opacity: 0.4;  /* más sutiles */
    }
    
    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 0.8;  /* se ven al tocar */
    }
}

@media (max-width: 480px) {
    .social-link {
        min-width: 100%;
    }
}

.logo-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-img {
    width: 12rem;
    /* height: 150px; */
    border-radius: 50%;
    object-fit: contain;
    background-color: rgba(240, 240, 240, 0.514);
    padding: 10px;
    box-shadow: 13px 9px 25px rgba(0, 0, 0, 0.3);
    /* border: 4px solid rgba(255, 255, 255, 0.2); */
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .logo-img {
        width: 120px;
        height: 120px;
    }
}



/* Estilos para el logo en el navbar */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.9;
}
@media(min-width: 6769x){
    .navbar-logo-img {
        width: 3rem;
        /* width: 5rem; */
    }
}
.navbar-logo-img {
    /* height: 40px; */
    border-radius: 50%;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.582);
    padding: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-logo-text {
    display: none; /* Oculto en móviles por defecto */
}

/* Mostrar texto del logo en pantallas más grandes */
@media (min-width: 425px) {
    .navbar-logo-img {
        width: 45px;
        height: 45px;
    }
    
    .nav-logo-text {
        display: inline;
    }
}

/* Ajuste para el header cuando hay navbar con logo */
.header-content {
    padding-top: 85px; /* Aumenta este valor si el navbar es más alto */
}

        /* Imagen del cartel */
        .poster-container {
            padding: 30px;
            text-align: center;
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .poster-image {
            max-width: 800px;
            width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border: 1px solid #cbd5e1;
        }
        


/* ESTILOS PARA EVENTO Y TALLERES */


/* ========== ESTILOS COMPARTIDOS SMAA-EVENTOS-TALLERES ========== */

/* Headers de páginas */
.page-header, .smaa-header, .workshops-header {
    background: linear-gradient(135deg, #330036, #3c0035, #7d28bb);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1, .smaa-header h1, .workshops-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-header p, .smaa-header p, .workshops-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Contenedor principal */
.smaa-container, .events-container, .workshops-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

/* ========== ESTILOS ESPECÍFICOS SMAA ========== */

/* Tarjeta de invitación */
.invitation-card, .next-presentation {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.invitation-header, .next-header {
    background: linear-gradient(135deg, #330036, #7d28bb);
    color: white;
    padding: 30px;
    text-align: center;
}

.invitation-header h2, .next-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Detalles de ponencia */
.presentation-details {
    padding: 30px;
}

.presentation-title {
    color: #330036;
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-left: 4px solid #7d28bb;
    padding-left: 15px;
}

.presenter-info {
    text-align: center;
    margin-bottom: 25px;
}

.presenter-name {
    font-size: 1.5rem;
    color: #3c0035;
    font-weight: 600;
    margin-bottom: 5px;
}

.presenter-role {
    color: #64748b;
    font-style: italic;
}

.presentation-description {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #7d28bb;
}

/* Tabla de información */
.info-table, .sessions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.info-table th, .sessions-table th {
    background-color: #330036;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.info-table td, .sessions-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.info-table tr:nth-child(even), .sessions-table tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Estados de sesiones */
.confirmed::before {
    content: "✨ ";
    color: gold;
}

.pending {
    color: #64748b;
    font-style: italic;
}

.pending::after {
    content: " (esperando confirmación)";
    font-size: 0.9em;
    color: #ef4444;
}

.vacation {
    background-color: #fffbeb !important;
    color: #b45309;
    font-weight: 600;
    text-align: center;
}

/* ========== ESTILOS PARA EVENTOS ========== */

/* Filtros */
.event-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #7d28bb;
    background: transparent;
    color: #7d28bb;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: #7d28bb;
    color: white;
}

/* Grid de eventos */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

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

.event-image {
    height: 200px;
    background: linear-gradient(135deg, #330036, #7d28bb);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #7d28bb;
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.event-content {
    padding: 25px;
}

.event-category {
    display: inline-block;
    padding: 5px 12px;
    background: #f3e8ff;
    color: #7d28bb;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.event-title {
    font-size: 1.5rem;
    color: #330036;
    margin-bottom: 15px;
}

.event-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #64748b;
    font-size: 0.95rem;
}

.event-description {
    color: #475569;
    margin-bottom: 20px;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.event-price {
    color: #7d28bb;
    font-weight: 700;
    font-size: 1.2rem;
}

.event-price.free {
    color: #10b981;
}

.event-link {
    background: #7d28bb;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.event-link:hover {
    background: #330036;
}

/* Evento destacado */
.featured-event {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, #330036, #7d28bb);
    color: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    background: #7d28bb;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
}

.featured-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.featured-button {
    background: white;
    color: #330036;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    width: fit-content;
    transition: transform 0.3s;
}

.featured-button:hover {
    transform: scale(1.05);
}

/* Calendario */
.calendar-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 50px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    border: 2px solid transparent;
}

.calendar-day.has-event {
    background: #f3e8ff;
    font-weight: 600;
}

.calendar-day.has-event .event-dot {
    width: 8px;
    height: 8px;
    background: #7d28bb;
    border-radius: 50%;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

/* ========== ESTILOS PARA TALLERES ========== */

/* Categorías */
.categories-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-chip {
    padding: 12px 30px;
    background: white;
    border: 2px solid #7d28bb;
    border-radius: 50px;
    color: #7d28bb;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.category-chip:hover, .category-chip.active {
    background: #7d28bb;
    color: white;
}

/* Grid de talleres */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.workshop-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.12);
}

.workshop-image {
    height: 180px;
    background: linear-gradient(135deg, #330036, #7d28bb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
}

.workshop-level {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #7d28bb;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
}

.workshop-content {
    padding: 25px;
}

.workshop-category {
    display: inline-block;
    padding: 5px 15px;
    background: #f3e8ff;
    color: #7d28bb;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.workshop-title {
    font-size: 1.4rem;
    color: #330036;
    margin-bottom: 15px;
}

.workshop-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.instructor-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #330036, #7d28bb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.workshop-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.workshop-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #7d28bb;
}

.workshop-price.free {
    color: #10b981;
}

.workshop-button {
    background: #7d28bb;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    text-align: center;
    margin-top: 20px;
}

.workshop-button:hover {
    background: #330036;
}

/* Taller destacado */
.featured-workshop {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #7d28bb;
}

.featured-info h2 {
    font-size: 2rem;
    color: #330036;
    margin-bottom: 15px;
}

.featured-badge {
    background: #7d28bb;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}

.detail-box {
    flex: 1;
    min-width: 150px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
}

.detail-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #7d28bb;
}

/* Próximos talleres */
.upcoming-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 50px;
    border: 1px solid #e2e8f0;
}

.upcoming-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.upcoming-date {
    text-align: center;
    background: #7d28bb;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    min-width: 100px;
}

.upcoming-day {
    font-size: 1.8rem;
    font-weight: 700;
}

.upcoming-action {
    background: #7d28bb;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.upcoming-action:hover {
    background: #330036;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .page-header, .smaa-header, .workshops-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .featured-event, .featured-workshop {
        grid-template-columns: 1fr;
    }
    
    .upcoming-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .calendar-grid {
        gap: 5px;
    }
    
    .workshop-meta {
        grid-template-columns: 1fr;
    }
}



.event-poster {
    width: 90%;
    height: 80%; /* Altura fija para todos los carteles */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.event-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen se ajusta sin deformarse */
    display: block;
}

.carousel-container {
    width: 80%;
    max-width: 800px;  /* opcional: tamaño máximo */
    height: 90vh;      /* 80% del alto de la pantalla */
    margin: 0 auto;    /* centrar */
}

.carousel-container .carousel,
.carousel-container .carousel-inner,
.carousel-container .carousel-item {
    height: 100%;
}

.carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* hace que todas las imágenes se vean iguales sin deformarse */
}
/* Cambiar fondo del botón completo */
.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(0, 0, 0, 0.123);
    width: 8%;
    border-radius: 5px;
}

/* Hover (al pasar el mouse) */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(216, 216, 216, 0.164);  /* color naranja */
}

/* Forzar que esos textos se vean bien */
.talleres-lista, .info-taller {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    body {
        overflow-x: hidden; /* Evita scroll horizontal */
    }
    
    .main, .container, /* tus contenedores principales */
    .eventos-container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Texto más pequeño y fluido */
    h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    h2, h3 {
        font-size: 1.3rem;
    }
    
    p, li, .descripcion {
        font-size: 0.9rem;
        word-wrap: break-word;
    }
    
    /* Fechas y eventos */
    .fecha-evento, .lugar-evento {
        display: block;
        padding: 8px 0;
    }
    
    /* URLs largas */
    a {
        word-break: break-all; /* Rompe URLs largas */
    }
    
    /* Corrige el carrusel si lo tienes */
    .carousel, .carousel-container {
        height: auto;
        min-height: 40vh;
    }
    
    .carousel-container img {
        height: auto;
        max-height: 40vh;
    }
}

/* Contenedor para desplazamiento horizontal */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

/* Opcional: mejorar visualización del scroll */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mantener la tabla con ancho automático */
.sessions-table {
    width: 100%;
    min-width: 600px; /* Ancho mínimo antes de que aparezca scroll */
    border-collapse: collapse;
}

/* Opcional: mejorar legibilidad en móvil */
@media (max-width: 768px) {
    .sessions-table th,
    .sessions-table td {
        /* padding: 10px 8px; */
        font-size: 14px;
        white-space: wrap; /* Evita que el texto se rompa dentro de celdas */
    }
    .sessions-table {
        width: max-content;
        min-width: 100%;
    }
    
    /* Si quieres que algunas columnas sean más flexibles */
    .sessions-table td:first-child,
    .sessions-table th:first-child {
        position: sticky;
        left: 0;
        z-index: 1;
    }
}