/* ---------------------------------------------HEADER y FONDO------------------------------------------------- */

body {
    margin: 0;
    padding: 0;
    height: 100%;
    text-align: center;
}

header {
    background-color: white;
    padding: 0.5% 0 0.5% 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main#contenido {
    flex: 1;
    position: relative;
    margin-top: 8vh;
    background-image: url('../imagenes/Contact/Fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

main#contenido .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* negro semitransparente, ajusta el 0.3 al gusto */
    z-index: 1;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px auto;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 2vw;
}

.logo-wrap {
    width: 21vw;
    display: flex;
    align-items: center;
    color: rgb(24, 154, 219);
    font-family: fantasy;
    font-size: 1.7vw;
    justify-content: space-around;
}

.logo-wrap img {
    height: 8vh;
}

.verde {
    color: rgba(41, 217, 75)
}

.bar-wrap {
    width: 75%;
    display: flex;
    justify-content: flex-end;
    color: black;
    gap: 2.5%
}

.bar-wrap li {
    list-style: none;
}

.bar-wrap a {
    text-decoration: none;
    color: inherit;
}

.bar-wrap a:hover {
    color: rgb(24, 154, 219);
    font-weight: bold;
}

.bar-wrap div:hover {
    color: rgb(24, 154, 219);
    font-weight: bold;
}


/*-------------------------------BODY--------------------------------*/

.Bienvenida {
    position: relative;
    color: white;
    z-index: 10;
    top: 4vh;
    margin: auto;
    width: 90%;
    height: auto;
    overflow: hidden;
    text-align: center;
}

.texto1 {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #e5bb51;
}

.Centro {
    margin: 5% 5% 4% 5%;
}

.Descripcion {
    position: relative;
    display: flex;
    color: white;
    z-index: 10;
}

.Informa {
    font-family: "Newsreader", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 300;
    font-size: 1.7rem;
    text-align: justify;
    line-height: 125%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.845);
}

.Cuerpo {
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 10;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 5%;
}

.Boximagen {
    height: auto;
    width: 14vw;
    display: flex;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
}

.Boximagen img {
    width: 100%;
    height: 80%;
}

.Boximagen:hover {
    transform: scale(1.05);
}


/*----------------------------------------Footer-------------------------------------------*/

.EspacioFinal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 0.5rem 0;
    z-index: 16;
}


/*----------------------------------------RESPONSIVE---------------------------------------*/

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: rgb(24, 154, 219);
}

.bar-wrap {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    transition: all 0.3s ease;
}

.bar-wrap.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    z-index: 999;
}

@media (max-width: 1024px) {
    .logo-wrap {
        font-size: 1.3rem;
    }
    .texto1 {
        font-size: 4rem;
    }
    .Descripcion {
        margin-top: 7%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .bar-wrap {
        display: none;
        flex-direction: column;
    }
    .bar-wrap.active {
        display: flex;
    }
    .logo-wrap img {
        height: 60px;
    }
    .logo-wrap {
        font-size: 1.3rem;
    }
    .Cuerpo {
        align-items: center;
        height: auto;
        width: auto;
        gap: 2rem;
    }
    .Boximagen {
        width: 18vw;
    }
    .Boximagen img {
        width: 100%;
        height: 100%;
    }
    .texto1 {
        font-size: 3rem;
        margin: 2% 0;
    }
    .Descripcion {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        padding-right: 5%;
    }
    header {
        padding: 0.5rem;
    }
    .logo-wrap {
        font-size: 1.2rem;
    }
    .Bienvenida {
        width: 100%;
        align-items: center;
        top: 2vh;
    }
    .texto1 {
        font-size: 2rem;
    }
    .Centro {
        margin-top: 8%;
    }
    .Descripcion {
        font-size: 1.2rem;
    }
    .Cuerpo {
        align-items: center;
        height: auto;
        gap: 2rem;
    }
    .Boximagen {
        width: 20vw;
    }
    .Boximagen img {
        width: 100%;
        height: auto;
    }
    .EspacioFinal {
        font-size: 0.8rem;
        padding: 2% 0;
        height: auto;
    }
}