/* Estilos generales */
body {
    margin: 0;
    padding: 0;
}

/* SEPARACIÓN Y TÍTULOS DE DÍAS */
#SEPARACION, #SEPARACION2, #SEPARACION3, #SEPARACION5 {
    text-align: center;
    padding: 1px;
    /* Asegúrate de que las rutas de las imágenes sean correctas */
    /* background-image: url("linea divisora.png"); */ 
}

.diaMartes, .diaMiercoles, .diaJueves {
    font-size: 22px;
    font-weight: bold;
}

/* ------------------------------------------------------------------ */
/* CONTENEDORES DE PONENTES: GRID RESPONSIVE */

/* Estilos por defecto (Escritorio grande) */
#ponentes {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas */
}
#ponentes3M, #ponentes4J, #ponentesRH {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 columnas */
}

/* Estilo para secciones con un solo ponente que deben ocupar todo el ancho */
#ponentes.single-column {
    grid-template-columns: 1fr; 
}

/* Media Query: Tabletas y Escritorios medianos (hasta 1266px) */
@media (max-width: 1266px) {
    /* Las secciones de 3 columnas pasan a 2 */
    #ponentes3M, #ponentes4J, #ponentesRH {
        grid-template-columns: repeat(2, 1fr);
    }
    /* El último ítem impar ocupa 2 columnas para centrarse mejor */
    #ponentes3M > *:nth-child(odd):last-child,
    #ponentes4J > *:nth-child(odd):last-child,
    #ponentesRH > *:nth-child(odd):last-child {
        grid-column: span 2;
    }
}

/* Media Query: Móviles (hasta 768px) */
@media (max-width: 768px) {
    /* Todos los contenedores de ponentes pasan a una sola columna en móviles */
    #ponentes, #ponentes3M, #ponentes4J, #ponentesRH {
        grid-template-columns: 1fr;
    }
    
    /* Ajuste para el último ítem a 1 columna */
    #ponentes3M > *:nth-child(odd):last-child,
    #ponentes4J > *:nth-child(odd):last-child,
    #ponentesRH > *:nth-child(odd):last-child {
        grid-column: span 1;
    }

    /* Ajuste de tamaños de fuente para móviles */
    .tituloP1, .tituloP2, .tituloP3, .tituloP4 {
        font-size: 24px; 
    }
    .temaP1, .temaP2, .temaP3, .temaP4 {
        font-size: 16px;
    }
    .horaP1, .horaP2, .horaP3, .horaP4,
    .nomP1, .nomP2, .nomP3, .nomP4 {
        font-size: 14px;
    }
}


/* ------------------------------------------------------------------ */
/* ESTRELLAS (Mantener) */
.star-rating {
    display: inline-flex;
    direction: row-reverse;
}

.star-rating label {
    font-size: 30px;
    color: #ffffff;
    cursor: default;
    opacity: 0.5;
    animation: star-glow 10s ease-in-out infinite;
}

.star-rating label::before {
    content: "★";
}

.star-rating[data-rating="1"] label:nth-child(-n + 1)::before,
.star-rating[data-rating="2"] label:nth-child(-n + 2)::before,
.star-rating[data-rating="3"] label:nth-child(-n + 3)::before,
.star-rating[data-rating="4"] label:nth-child(-n + 4)::before,
.star-rating[data-rating="5"] label:nth-child(-n + 5)::before {
    color: #ffffff;
}

@keyframes star-glow {
    0%,
    20% {
        opacity: 0.5;
    }
    25%,
    45% {
        opacity: 1;
    }
    50%,
    70% {
        opacity: 0.5;
    }
    75%,
    95% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.star-rating label:nth-child(1) {
    animation-delay: 0s;
}
.star-rating label:nth-child(2) {
    animation-delay: 0.2s;
}
.star-rating label:nth-child(3) {
    animation-delay: 0.7s;
}
.star-rating label:nth-child(4) {
    animation-delay: 1s;
}
.star-rating label:nth-child(5) {
    animation-delay: 1.3s;
}

/* ------------------------------------------------------------------ */
/* Configuración de las tarjetas de ponentes (Mantener) */
.ponente1 {
    background-image: url("talleres-conferencias/Conferencia-Oscuro.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.ponente2 {
    background-image: url("talleres-conferencias/Conferencia-Claro.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.ponente3 {
    background-image: url("talleres-conferencias/Fondo azul.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.ponente4 {
    background-image: url("talleres-conferencias/Conferencias.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.ponente5 {
    background-image: url("talleres-conferencias/Conferencias2.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.ponente6 {
    background-image: url("talleres-conferencias/Conferencias.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.tituloP1, .tituloP2, .tituloP3, .tituloP4 {
    font-size: 35px;
    font-weight: bold;
}

.temaP1, .temaP2, .temaP3, .temaP4 {
    font-size: 18px;
    margin-top: 15px;
    line-height: 1.5;
}

.horaP1, .horaP2, .horaP3, .horaP4 {
    font-size: 14px;
    margin-top: 10px;
}

.nomP1, .nomP2, .nomP3, .nomP4 {
    font-size: 15px;
    margin-top: 10px;
    font-weight: bold;
}

/* IMÁGENES DENTRO DE LAS TARJETAS (Haciéndolas más flexibles) */
.tall1, .conf1, .conf2, .imgP1, .imgP2, .tall2, .tall3 {
    position: static;
    width: 100%;
    /* Valor máximo relativo al contenedor, más flexible que un px fijo */
    max-width: 90%; 
    height: auto;
    margin-top: 25px;
    border-radius: 8px;
}
/* Tu código tenía múltiples clases con el mismo estilo, se podría simplificar: */
/*
.tall2, .conf1, .conf2, .imgP1, .imgP2 {
    position: static;
    width: 100%;
    max-width: 375px; 
    margin-top: 4px;
    border-radius: 8px;
}

.tall3 {
    position: static;
    width: 100%;
    max-width: 375px;
    margin-top: 35px;
    border-radius: 8px;
}
*/


/* ------------------------------------------------------------------ */
/* BANDERAS PONENTES (Ajustes para mejor responsividad) */
.row-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Añadido para que las banderas se envuelvan si es necesario */
    position: relative; /* Para que .rene se posicione correctamente */
}

.Col1, .triang {
    height: auto;
    width: 100%;
    max-width: 50px;
    /* Los márgenes deben manejarse de forma más general, o en media queries */
    margin: 0 10px; 
}

.Col1 {
    position: relative;
}

.Col1:hover {
    animation: waveMove 4s ease-in-out infinite;
}

@keyframes waveMove {
    0%,
    100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    75% {
        transform: translateY(20px);
    }
}

.rene {
    position: absolute;
    top: -15%;
    left: 2%;
    width: 125px;
    height: auto;
}

@media (max-width: 768px) {
    /* Ajuste de banderas en móvil */
    .Col1, .triang {
        position: static; /* Cambiar a estático para evitar desbordamiento */
        margin: 10px; 
        display: block;
        width: 65px;
    }
    
    /* Ajuste de imagen .rene en móvil */
    .rene {
        top: -10%; /* Ajustado */
        left: 0%;
        width: 150px; 
        height: auto;
    }
}


/* ------------------------------------------------------------------ */
/* ALIADOS (Mantener el grid auto-fit, que es muy responsive) */
#aliados {
    padding: 40px 20px;
    text-align: center;
    background-color: #ffffff;
}

.imagene-aliados, .imagene-aliadosUTEC {
    display: grid;
    /* Ajustado minmax para más flexibilidad */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 2rem;
    justify-items: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logs {
    width: 100%;
    max-width: 150px;
    min-width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.logs.utec {
    width: 100%;
    max-width: 225px;
    height: auto;
    transition: transform 0.3 ease;
}

.logs:hover {
    transform: scale(1.1);
    cursor: pointer;
}

@media (max-width: 768px) {
    .imagene-aliados {
        /* Aseguramos que haya 2 columnas o más si el tamaño lo permite */
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); 
        gap: 1rem;
    }
}

/* ------------------------------------------------------------------ */
/* PAÍSES PARTICIPANTES (Cambio a grid para mejor control responsive) */
#paisesP {
    padding: 40px 0px;
    text-align: center;
    background-color: #ffffff;
}

.paisesParticipates {
    display: grid; /* Cambiado de inline-flex a grid */
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Más flexible */
    gap: 1rem;
    justify-items: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.pa1, .pa2, .pa3, .pa4, .pa5, .pa6, .pa7, .pa8, .pa9, .pa10 {
    width: 100%;
    max-width: 100px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

/* Estilos de hover para países (Mantener) */
.pa1:hover {
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 0 0 10px #005eb8, 0 0 20px #005eb8, 0 0 30px #005eb8;
    animation: 1.5s infinite alternate;
}
.pa2:hover {
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 0 0 10px #aa151b, 0 0 20px #aa151b, 0 0 30px #aa151b;
    animation: 1.5s infinite alternate;
}
.pa3:hover {
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 0 0 10px #b31942, 0 0 20px #b31942, 0 0 30px #b31942;
    animation: 1.5s infinite alternate;
}
.pa4:hover {
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 0 0 10px #006341, 0 0 20px #006341, 0 0 30px #006341;
    animation: 1.5s infinite alternate;
}
.pa5:hover {
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 0 0 10px #002a90, 0 0 20px #002a90, 0 0 30px #002a90;
    animation: 1.5s infinite alternate;
}
.pa6:hover {
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 0 0 10px #ffcd00, 0 0 20px #ffcd00, 0 0 30px #ffcd00;
    animation: 1.5s infinite alternate;
}
.pa7:hover {
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 0 0 10px #001489, 0 0 20px #001489, 0 0 30px #001489;
    animation: 1.5s infinite alternate;
}
.pa8:hover {
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 0 0 10px #6cace4, 0 0 20px #6cace4, 0 0 30px #6cace4;
    animation: 1.5s infinite alternate;
}
.pa9:hover {
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 0 0 10px #0047ab, 0 0 20px #0047ab, 0 0 30px #0047ab;
    animation: 1.5s;
}
.pa10:hover {
    transform: scale(1.1);
    cursor: pointer;
    box-shadow: 0 0 10px #ce1126, 0 0 20px #ce1126, 0 0 30px #ce1126;
    animation: 1.5s;
}

/* ------------------------------------------------------------------ */
/* TIPOGRAFÍAS (Mantener) */

@font-face {
    font-family: "G ood Times";
    src: url("Tipografias/good times rg.otf") format("truetype");
}

h1, h2 {
    font-family: "Good Times", sans-serif;
    text-shadow: 0 0 5px rgba(4, 38, 140, 0.8), 0 0 10px rgba(27, 81, 242, 0.6), 0 0 15px rgba(4, 38, 140, 0.4);
    color: #fff;
}

@font-face {
    font-family: "Comfortaa";
    src: url("Tipografias/Comfortaa-Light.ttf") format("truetype");
}

h3 {
    font-family: "Comfortaa", sans-serif;
    text-shadow: 0 0 5px rgba(4, 38, 140, 0.8), 0 0 10px rgba(27, 81, 242, 0.6), 0 0 15px rgba(4, 38, 140, 0.4);
    color: #fff;
}

/* ------------------------------------------------------------------ */
/* FOOTER (Mantener y verificar) */

.footer {
    background-color: #701830;
    color: #fff;
    padding: 40px 20px;
    text-align: left;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 10px;
}

.logo-section h2 {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

.logo-section p:first-of-type {
    font-size: 14px;
    font-weight: bold;
    color: #ddd;
}

.logo-section p:last-of-type {
    font-size: 16px;
    color: #ccc;
    margin-top: 10px;
}

.contact-section h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
}

.contact-section p {
    font-size: 14px;
    color: #ddd;
    line-height: 1.5;
}

.map-section iframe {
    border: none;
    width: 100%;
    height: 150px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 20px;
        min-width: 100%; /* Asegura que ocupe todo el ancho en móvil */
    }
}