* {
    padding: 0px;
    margin: 0px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

:root {
    --primario: rgb(167, 24, 90);
    --primerplano: #fff;
    --letraprimario: rgb(167, 24, 90);

}

body {
    /*background-image: url(../img/Afiche.png);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;*/
    background-color: rgb(217, 218, 204);
}

object {
    width: 100%;
}

footer a {
    text-decoration: none;
    color: white;
}

.display_none {
    display: none;
}

.important {
    z-index: 2;
}


/*HEADER*/
header {
    justify-content: center;
    background-color: white;
    background-position: 0px;
    padding: 20px 20px;
    margin: 30px 20px 10px 20px;
    border-radius: 10px;
    opacity: 0.85;
    display: flex;
    height: 100%;
    padding-right: 50px;
}

#header_parte2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
}

#header_parte2:hover {
    transition: 2000ms;
    transform: scale(1.1, 1.1);
}

figure>div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 5px;
}

#header_parte1 {
    display: flex;
    justify-content: center;
}

#logotipo {
    height: 90px;
    align-items: center;
}

#logotipo:hover {
    animation-name: rotar;
    animation-duration: 3s;
}

/*@keyframes rotar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);

    }
}*/

#titulo {
    color: var(--primario);
    font-size: 150%;
    letter-spacing: 1px;
    text-align: center;
}

#fechacongreso1 {
    color: #5d5d5d;
    font-size: 118%;
    text-align: right;
    font-weight: bold;
}

#fechacongreso2 {
    color: #5d5d5d;
    font-size: 100%;
    text-align: right;
    font-weight: bold;
}


/*NAV*/
nav {
    display: flex;
    margin: 0px 20px;

}

nav div {
    margin: 10px 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    width: 100%;
}

.dropdown-toggle {
    text-decoration: none;
    padding: 15px 0px;
    width: 160px;
    background-color: var(--primario);
    color: var(--primerplano);
    text-align: center;
    border: 1px solid var(--primerplano);
    margin: 0px 5px 5px 0px;
    border-radius: 10px;
    opacity: 0.9;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.dropdown-menu {
    display: none;
    position: absolute;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: 160px;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0.9;
}

.dropdown-menu li {
    display: block;
    border-radius: 10px;
    border: grey solid 0.5px;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: black;
    background-color: white;
    border-radius: 10px;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 10px;
}

.list_selection {
    border-radius: 10px;
    color: gray !important;
}

.list_selection:hover {
    border-radius: 10px;
    background-color: #44ce5b;
}

.dropdown-menu li a:hover {
    background-color: #cccccc;
    color: #333333;
}


/*MAIN*/

main {
    background-image: url(https://firebasestorage.googleapis.com/v0/b/jornadasmastologiacam.firebasestorage.app/o/Logos%2Fpaven.png?alt=media&token=11dfb440-cc8f-405a-ae7a-5e0170e732bb);
    margin: 0px 20px;
    border-radius: 10px;
    opacity: 0.9;
}

.lema {
    color: gray;
    font-size: 25px;
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    text-align: center;
    color: var(--letraprimario);
    font-weight: bolder;
    font-size: 20px;
    font-weight: bold;
}

h3 {
    text-align: center;
    color: var(--letraprimario);
    font-weight: bold;
    font-size: 25px;
}

.p,
p,
h4 {
    padding: 0px 50px;
    line-height: 2;
}


li {
    list-style: circle;
    line-height: 2;
}

.line {
    border: none;
    border-top: 2px dashed #ccc;
    margin: 2rem 0;
}

.titulo_fondo {
    background-color: var(--primario);
    padding: 20px 0px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.titulo_fondo h3 {
    color: white;
}

/*TABLE*/

table {
    border: var(--primario);
    display: flex;
    flex-direction: column;
    margin: 10px 50px 10px 50px;
}

tr {
    display: flex;
}

th {
    background-color: var(--primario);
    color: var(--primerplano);
}

th,
td {
    border: var(--primario) solid 1px;
    padding: 5px;
    flex-grow: 1;
    flex: 1 1;
}

td:first-child {
    font-weight: bold;
}


/*EMPEZAMOS EN*/
h2 {
    animation-name: cambiarcolor;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    font-size: 200%;
    text-align: center;
}

@keyframes cambiarcolor {
    0% {
        color: var(--primario);
    }

    50% {
        color: green;
    }

    100% {
        color: var(--primario);
    }
}

#cuentaregresiva_div {
    margin: 30px;
    margin: 0px 50px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: repeat(4, 150px) auto;
    justify-content: center;
}

.cuentaregresiva {
    background-color: var(--primario);
    margin: 2px;
    padding: 10px;
    font-size: 18px;
    color: var(--primerplano);
    border-radius: 30px;
    flex-grow: 1;
    text-align: center;
}

.cuentaregresiva:hover {
    box-shadow: 4px 4px 3px gray;
}

/*VIDEO*/

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;

}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/*Para cambio de imagen*/
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/*INSCRIPCION*/
.inscribete {
    display: grid;
    grid-template-columns: 0.2fr 0.2fr 0.2fr;
    align-items: center;
    justify-items: center;
    justify-content: center;
}

.flecha {
    font-size: 100px;
    padding: 0;
}

.inversa {
    display: inline-block;
    transform: scaleX(-1);
}

.button {
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 0px 5px inset;
    font-weight: bold;
    border-bottom-width: 5px;
    border-color: grey;
}

.button a {
    text-decoration: none;
    color: rgb(222, 162, 129);
    font-size: 16px;
}

.buttoninscribete {
    background-color: var(--primario);
    color: var(--primerplano);
    border-radius: 10px;
    padding: 5%;
    font-size: 120%;
    font-weight: bold;
    text-decoration-line: none;
    cursor: pointer;
    width: 300px;
    border-bottom-width: 5px;
}

.buttoninscribete:hover {
    transform: scale(1.1, 1.1);
    transition: 600ms;
}

.afiche {
    width: 100%;
}

/*GALERIA*/
/* Contenedor de la galería */
.galeria-container {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    background-color: white;
    border-radius: 5px;
}

/* Estilos para la galería */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.galeria-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.galeria-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/*GALERIA2*/
.galeria-container {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-gap: 10px;
}



/* Opcional: Estilos para las imágenes antes de ser cargadas */
.gallery-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    background-color: #f3f3f3;
    /* Color de fondo mientras se carga */
    transition: opacity 0.3s ease-in-out;
}

.gallery-img:hover {
    transform: scale(1.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-img:not([src]) {
    opacity: 0;
    /* Mantiene la imagen invisible hasta que sea cargada */
}

.gallery-img[src] {
    opacity: 1;
}

/*FOLDER*/
/* Estilos para la página principal de la galería */
.titulo-galeria {
    text-align: center;
    font-size: 1.5rem;
    color: rgb(222, 162, 129);
    margin-top: 30px;
}

/* Estilos del contenedor de carpetas */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
    padding: 20px;
}

/* Estilos de las carpetas */
.folder-item {
    text-align: center;
}

.folder-link {
    text-decoration: none;
    color: rgb(222, 162, 129)2;
}

.folder-img {
    width: 200px;
    height: 200px;

}

.folder-item:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    border-radius: 15px;

}

.folder-dia {
    margin-bottom: 20px;
}

/* Estilos de los títulos de cada carpeta */
.folder-item h2 {
    font-size: 1.8rem;
    margin-top: 15px;
    color: #067f32;
    transition: color 0.3s ease-in-out;
}

.folder-item h2:hover {
    color: #055c25;
}


/* Modal para ver imagen ampliada */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
}

#caption {
    text-align: center;
    color: white;
    font-size: 18px;
    margin-top: 10px;
}

/* Cerrar modal */
.close {
    position: absolute;
    top: 50px;
    right: 100px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #f44336;
}

/*AUTORIDADES*/
.titulo_organiza {
    color: white;
}

.organiza .titulo_fondo {
    margin: 0 20px;
}

/*Destacado*/
.organizadores-grid.destacados {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 30px;
}

/* Estilo especial para destacar presidente y vicepresidente */
.organizador-destacado {
    border: 3px solid gold;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.organizador-destacado img {
    width: 180px !important;
    height: 180px !important;
    border: 3px solid var(--primario);
}

.organizadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 30px;
    margin: auto;
    max-width: 1200px;
}

.organizadores-card {
    display: grid;
    grid-template-rows: 1fr, minmax(220px, 1fr) 1fr;
    justify-items: center;
    background-color: white;
    border-radius: 15px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

.organizadores-card:hover {
    transform: scale(1.05);
}

.organizadores-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.organizador-nombre {
    font-weight: bold;
    font-size: 16px;
    color: var(--primario);
}

.organizador-cargo {
    font-size: 14px;
    color: #555;
}



/*PAQ*/
.faq-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.85;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding-right: 10px;
}

.faq-question::after {
    content: '\002B';
    font-size: 24px;
    position: absolute;
    right: 0;
    top: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    font-size: 16px;
    margin-top: 10px;
    line-height: 1.6;
    color: black;
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-item.active .faq-question::after {
    content: '\2212';
}


/*ALOJAMIENTO*/
.info_hotel {
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    max-width: 1000px;
    margin: 0 auto;
}


.hotel_card {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.hotel_logo {
    width: 180px;
    height: auto;
    object-fit: contain;
    padding: 0.5rem;
    border-radius: 10px;
    margin-left: 50px;
}

.hotel_info {
    flex: 1;
    min-width: 260px;
}

.hotel_info h4 {
    margin-top: 0;
    color: var(--primario);
}

.mapa_ubicacion {
    display: flex;
    justify-content: center;
    padding: 30px;
}

/*PROGRAMA*/
.programa {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.85;

}

.dia {
    padding: 5px;
    background-color: #ffffffab;
}

.dia h2 {
    background-color: var(--primario);
    color: white !important;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 25px !important;
}

.hora {
    color: var(--primario);
    font-weight: bold;
}

.toggle-button {
    background-color: green;
    color: white;
    font-weight: bold;
    padding: 12px 12px 12px 40px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    font-size: 15px;
    margin-top: 10px;
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-button2 {
    background-color: green;
    color: white;
    font-weight: bold;
    padding: 12px 12px 12px 40px;
    width: 100%;
    text-align: left;
    border: none;
    font-size: 15px;
    margin-top: 10px;
    position: relative;
    display: flex;
    align-items: center;
}

.mesa-redonda {
    background-color: #5a5a5a;
}

.toggle-button:hover {
    background-color: var(--primario);
}

.mesa-redonda:hover {
    background-color: var(--primario);
}

.toggle-button::before {
    content: '\002B';
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
    border-radius: 50px;
    padding: 2px 5px 4px 5px;
    background-color: #33333357;
}

.toggle-button.active::before {
    content: '\2212';
}

.contenido {
    border: var(--primario) solid 2px;
    display: none;
    padding-left: 10px;
    margin-bottom: 10px;
}

.contenido p {
    margin: 5px 0;
    position: relative;
}

.contenido p::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin-top: 5px;
}

/*FOOTER*/

footer {
    background-color: white;
    padding: 5px;
    margin: 10px 20px 10px 20px;
    border-radius: 10px;
    opacity: 0.85;
}



.contacto {
    display: flex;
    color: white;
    background-color: rgb(87, 87, 87);
    font-weight: bold;
    justify-items: center;
    justify-content: center;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;

}

.contacto p {
    text-align: center;
}


/*PATROCINADORES*/
/* Grid para los logos */
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    background-color: white;
    margin: 5px;
    border-radius: 25px;
}

/* Estilo para los logos regulares */
.sponsor-item {
    text-align: center;
    flex: 1 1;
    max-width: 100%;
    /* Ajusta el tamaño base de cada logo */
}

.sponsor-item img {
    max-height: 120px;
    margin: 10px;
}

.sponsor-item img:hover {
    transform: scale(1.1);
}

/*EXPOSITORES*/
/*EXPOSITORES INTERNACIONALES*/
/* Grid para los expositores internacionales */
.internacionales-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    height: auto;
}


/* Estilo para los expositores internacionales */
.internacionales {
    text-align: center;
    flex: 1 1;
    max-width: 100%;
}

.internacionales img {
    max-height: 200px;
    width: 80%;
    max-width: 250px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    background-color: white;
    text-align: center;
    flex: 1 1;
    margin: 10px;
}

.text-expositores-internacionales {
    text-align: justify;
    margin: 5px;
    padding: 10px;
}

.text-name-expositores-internacionales {
    font-weight: bold;
    align-content: center;
    border: solid var(--primario);
    background-color: white;
    border-radius: 15px;
    height: 80px;
}

/*EXPOSITORES NACIONALES*/
.nacionales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.nacionales {
    background-color: rgb(221, 221, 221);
    border-radius: 15px;
    padding: 5px;
    display: grid;
    grid-template-areas: "foto name"
        "texto texto";
    grid-template-rows: 120px auto;
    grid-template-columns: 120px minmax(200px, 1fr);
    justify-content: center;
}

.nacionales img {
    grid-area: foto;
    max-width: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    background-color: white;
    text-align: center;
    flex: 1 1;
    margin: 10px;
}

.text-expositores-nacionales {
    grid-area: texto;
    text-align: left;
    margin: 5px;
    padding: 10px;
}

.text-name-expositores-nacionales {
    grid-area: name;
    background-color: white;
    font-weight: bold;
    align-self: start;
    align-content: center;
    border: solid var(--primario) 2px;
    border-radius: 15px;
    height: 80px;
}




/*RESPOSITIVE*/
@media only screen and (max-width: 1010px) {
    .text-name-expositores-internacionales {
        height: 100px;
    }
}

@media only screen and (max-width: 800px) {

    header,
    main,
    footer {
        margin: 1px;
    }

    .fondo_bloques,
    .contacto {
        margin: 10px 2px;
    }

    .text-name-expositores-internacionales {
        margin: 0 20%;
        height: 80px;
    }

    #titulo {
        font-size: 20px;
    }

    #cuentaregresiva_div {
        display: grid;
        grid-template: 1fr 1fr/1fr 1fr;
        margin: 0px 50px;
        padding: 20px;
        font-size: 18px;
    }

    .cuentaregresiva {
        padding: 10px;
    }

    .center {
        display: flex;
        justify-content: center;
    }


    .sponsors-container {
        margin-left: 20px;
        margin-right: 20px;
    }

    .internacionales-grid {
        display: inline;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

}

@media only screen and (max-width: 710px) {
    header {
        justify-content: center;
        align-items: center;
    }

    #header_parte1 {
        font-size: 13px;
    }

    #header_parte2 {
        display: none;
    }
}

@media only screen and (max-width: 618px) {
    header {
        display: block;
        height: 70px;
    }

    .flecha {
        font-size: 70px;
    }

    #logotipo {
        height: 66px;
        align-items: center;
        justify-content: center;
        align-content: center;
    }

    #titulo {
        font-size: 20px;
        text-align: center;
    }

    #fechacongreso1,
    #fechacongreso2 {
        visibility: hidden;
    }

    .lema {
        font-size: 20px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    nav a,
    .cuentaregresiva,
    table,
    p,
    li {
        font-size: 14px;
    }

    h5 {
        font-size: 9px;
    }

    .dia h2 {
        font-size: 18px !important;
    }

    .toggle-button {
        font-size: 12px;
    }

    .grid_autoridades {
        grid-template-columns: 1fr;
    }

    .grid_footer {
        display: block;

    }

    .grid_descrip {
        display: grid;
        grid-template-rows: 50% 50%;
        height: 100%;
        justify-content: start;
        align-items: start;
        padding: 25px 0px;
    }

    .dropdown-toggle {
        width: 140px;
        font-size: 14px;
    }

    .buttoninscribete {
        font-size: 14px;
    }

    .sponsor-item img {
        max-height: 80px;
    }

    .text-name-expositores-internacionales {
        font-size: 13px;
    }

}

@media only screen and (max-width: 574px) {
    .dropdown-toggle {
        width: 120px;
        font-size: 12px;
    }

    .buttoninscribete {
        font-size: 12px;
    }
}

@media only screen and (max-width: 500px) {
    body {
        margin: 0;
    }

    nav {
        margin: 0px;
        display: inline;
    }

    .lema {
        font-size: 18px;
    }

    .dropdown {
        margin: 0px 0px 0px 20px;
    }

    .dropdown-toggle {
        width: 150px;
        font-size: 12px;
    }

    .dropdown-menu {
        width: 160px;
    }

    .dropdown-menu li {
        display: block;
    }

    .dropdown.open .dropdown-menu {
        display: inline;
    }

    .dropdown-menu li a {
        display: block;
        font-size: 12px;
    }

    /*
    .sponsor-item img {
        max-height: 50px;
    }*/
}


@media only screen and (max-width: 443px) {
    header {
        height: 50px;
        margin-bottom: 10px;
    }

    #header_parte1 {
        height: 50px;
    }

    #logotipo {
        height: 40px;
        align-items: center;
        justify-content: center;
        align-content: center;
    }

    #titulo {
        font-size: 15px;
        text-align: center;
    }

    .programa,
    .dia p,
    .dia button {
        padding: 5px;
    }

    .sponsor-item img {
        max-width: 300px;
    }

}

@media only screen and (max-width: 400px) {
    #programa th:nth-child(3) {
        display: none;
    }

    #programa td:nth-child(3) {
        display: none
    }

    .sponsor-item img {
        max-width: 250px;
    }
}

@media only screen and (max-width: 340px) {
    body {
        margin: 0;
    }

    #titulo {
        font-size: 12px;
    }

    h2 {
        font-size: 18px;
    }

    nav {
        margin-top: 60px;
    }

    #cuentaregresiva_div {
        grid-template: repeat(4, 1fr)/1fr;
        padding: 10px;
    }

    .cuentaregresiva {
        font-size: 12px;
    }

    .grid {
        display: flex;
        flex-direction: column;
    }

}


@media only screen and (max-width: 234px) {
    body {
        margin: 0;
    }

    #titulo {
        font-size: 11px;
    }

    h2 {
        font-size: 14px;
    }
}