:root {
    --amarillo: #F0C913;
    --azul: #2B2A66;
    --morado: #90569E;
}

body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: var(--morado); /* Color para los títulos */
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
}

h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Semi Bold */
    color: var(--azul);
}


body {
    background-color: #f4f4f9;
    font-family: 'Montserrat', sans-serif;
    color: var(--azul);
}

header {
    background-color: var(--azul);
    color: white;
    padding: 10px 0;
    text-align: center;
    position: fixed; /* Fija el encabezado */
    top: 0; /* Coloca el menú en la parte superior */
    left: 0;
    width: 100%; /* Asegura que ocupe todo el ancho */
    z-index: 1000;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    padding: 5px 10px;
}

nav a:hover, nav a.active {
    color: var(--amarillo); /* Color para los enlaces al pasar el ratón */
    border-bottom: 2px solid var(--amarillo);
}

/* Logo */
.logo {
    position: absolute;
    left: 20px;
    top: 20px;
    height: 75px;
}

.logo2 {
    position: absolute;
    right: 20px;
    top: 20px;
    height: 75px;
}

/* Secciones */
section {
    padding-top: 0;
    padding-bottom: 0px;
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
    min-height: 50vh; /* Para asegurarse de que cada sección tenga suficiente altura */
}

section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Programa y Expositoras */
.programa, .expositoras {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.programa div, .expositoras div {
    width: 45%;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.imagen-expositoras {
    width: 30%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    display: block;
}

/*
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    overflow-y: auto;
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

#overlayContent {
    position: relative;
    max-width: 90vw;
    display: none;
}

#overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

#overlay img.zoomed {
    transform: scale(1.2);
    cursor: zoom-out;
}

#closeBtn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 10000;
}
*/
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    z-index: 9999;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}


#overlayContent {
    position: relative;
    display: inline-block;
    max-width: 90vw;
}


#overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

#overlay img.zoomed {
    transform: scale(1.2);
    cursor: zoom-out;
}


#closeBtn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 10000;
}


.clickable-text {
    cursor: pointer;
    color: #007BFF;
    text-decoration: underline;
}

/* Formulario de Inscripción */
.inscripcion {
    margin-top: 40px;
}

.inscripcion a {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--morado);
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.inscripcion a:hover {
    background-color: var(--azul);
}


.menu {
    position: fixed;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background-color: var(--azul);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px;
    font-size: 1.2em;
    margin: 5px 0;
}

.menu a:hover {
    background-color: var(--amarillo);
}


.MdlWdw {
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    max-width: 80%;
    min-width: 60%;
    overflow-x: auto;
    border-radius: 5% / 20%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    text-align: justify;
    padding: 2%;
    max-height: 90vh;
    height: auto;
    overflow-y: auto;
    background-color: white;
    opacity: 0;
    z-index: 10000000;
    transition: display 1s allow-discrete,
    overlay 1s allow-discrete,
    translate 1s,
    opacity 1s;
    translate: 0 50%;
    will-change: translate, opacity;
}

.MdlWdw iframe {
    width: 100%;
    height: 80vh;
    border: none;
}

.MdlWdw::backdrop {
    background: linear-gradient(#000d, #000a);
    opacity: 0.1;
    transition: display 1s allow-discrete,
    opacity 1s;

    @starting-style {
        opacity: 0
    }
}

.MdlWdw0 {

    text-align: center;
    padding: 2%;
}

.MdlWdw1 {

    text-align: center;
    padding: 2%;
}

.MdlWdw[open] {
    opacity: 1;
    translate: 0;
    @starting-style {
        opacity: 0;
        translate: 0 50%;
    }
}

.MdlWdw:not([open])::backdrop {
    opacity: 0;
}


.MyUpBtnE {
    display: inline-block;
    padding: 0.5em 1em;
    border-radius: 1em; /* Rounded corners */
    background-color: green; /* Badge color */
    color: white; /* Text color */
    font-weight: bold; /* Bold text */
    font-size: 0.5em; /* Font size */
    position: relative; /* Positioning context */
    text-align: center; /* Center the text */
}

.MyUpBtnE::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1em; /* Optional, decorative element */
    height: 1em; /* Optional, decorative element */
    border: 2px solid #fff; /* Optional, decorative element */
    border-radius: 50%; /* Optional, decorative element */
}

.MyUpBtnX {
    display: inline-block;
    padding: 0.5em 1em;
    border-radius: 1em; /* Rounded corners */
    background-color: darkred; /* Badge color */
    color: white; /* Text color */
    font-weight: bold; /* Bold text */
    font-size: 0.5em; /* Font size */
    position: relative; /* Positioning context */
    text-align: center; /* Center the text */
}

.MyUpBtnX::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1em; /* Optional, decorative element */
    height: 1em; /* Optional, decorative element */
    border: 2px solid #fff; /* Optional, decorative element */
    border-radius: 50%; /* Optional, decorative element */
}

.MyUpBtnLU {
    display: inline-block;
    padding: 0.5em 1em;
    border-radius: 1em; /* Rounded corners */
    background-color: blue; /* Badge color */
    color: white; /* Text color */
    font-weight: bold; /* Bold text */
    font-size: 0.5em; /* Font size */
    position: relative; /* Positioning context */
    text-align: center; /* Center the text */
}

.MyUpBtnLU::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1em; /* Optional, decorative element */
    height: 1em; /* Optional, decorative element */
    border: 2px solid #fff; /* Optional, decorative element */
    border-radius: 50%; /* Optional, decorative element */
}

.MyToast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    opacity: 0;
    z-index: 9999;
    font-family: sans-serif;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}

.MyWrkArea {
    margin-top: 5%;
    margin-left: 5%;
    margin-right: 5%;
    padding: 2%;

}

.likert-table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
}

.likert-table th, .likert-table td {
    border: 1px solid #ccc;
    padding: 8px;
}

.likert-table th {
    background-color: #f0f0f0;
}

.likert-table input[type="radio"] {
    transform: scale(1.2);
}

.hidden-compu {
    display: none;
}

.hidden-mobile {
    display: block;
}

.MyBdStyPhoto {
    --opacidad-negro: 0.2;
    background-image: linear-gradient(rgba(0, 0, 0, var(--opacidad-negro)), rgba(0, 0, 0, var(--opacidad-negro))), url("../Images/Fondo2.png");
    background-size: auto 100%;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }

    .hidden-compu {
        display: block;
    }

    h1 {
        font-size: 6vw;
    }

    h2 {
        font-size: 5vw;
    }

    h3 {
        font-size: 4vw;
    }

    h4 {
        font-size: 1.5rem;
    }

    h5 {
        font-size: 1.2rem;
    }

    h6 {
        font-size: 1rem;
    }

    .MdlWdw {
        width: 95%;
        top: 5%;
        padding: 1%;
        border-radius: 2%;
    }

    .MdlWdw iframe {
        height: 85vh;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.2rem;
    }

    h5 {
        font-size: 1.1rem;
    }

    h6 {
        font-size: 1rem;
    }

    .logo, .logo2 {
        /*max-height: 20%; */
        height: 50px;
    }
}