/* ---------------------------------------------HEADER y FONDO------------------------------------------------- */

body {
    margin: 0;
    padding: 0;
    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);
}

main#contenido {
    margin-top: 8vh;
    min-height: calc(100vh - 100px);
    background-image: url('../imagenes/Servicios/Servicio2.jpg');
    background-size: cover;
    /* cubre todo el área */
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-attachment: scroll;
}

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;
}

.texto2 {
    font-size: 1.5rem;
    font-weight: 300;
    font-family: cursive;
}

.Descripcion {
    position: relative;
    display: flex;
    color: white;
    z-index: 10;
    margin: 5% 5% 1% 5%;
}

.Cuerpo {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    position: relative;
    color: white;
    z-index: 10;
    gap: 4rem;
    height: auto;
    margin: 0 5%;
}

.Informa {
    font-family: "Newsreader", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 300;
    font-size: 1.7rem;
    text-align: justify;
}

.Lista {
    padding-left: 5vh;
}

.box {
    flex: 1;
    height: auto;
    display: flex;
    flex-direction: column;
}

.Boximagen {
    flex: 0 0 35%;
    height: 70vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    margin-right: 2%;
}

.Boximagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*----------------------------------------Carrusel-------------------------------------------*/

.carrusel-mini {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.carrusel-mini img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carrusel-mini img.active {
    opacity: 1;
    z-index: 1;
}


/*----------------------------------------Footer-------------------------------------------*/

.EspacioFinal {
    display: flex;
    align-items: stretch;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 1%;
    position: relative;
    height: 8vh;
    color: white;
    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;
    }
    .Cuerpo {
        align-items: center;
    }
    .carrusel-mini {
        height: 70vh;
    }
    .carrusel-mini img {
        border-radius: 20px;
    }
    .Bienvenida {
        width: 100%;
        margin: 5% 0;
    }
    .texto1 {
        font-size: 4rem;
    }
    .texto2 {
        font-size: 1.5rem;
    }
    .Boximagen {
        margin-right: 0;
    }
    .Informa {
        font-size: 1.5rem;
    }
    .Descripcion {
        margin-top: 7%;
    }
    .EspacioFinal {
        padding: 7% 0 3% 0;
        height: auto;
    }
}

@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;
    }
    .columnas {
        position: relative;
        display: flex;
        flex-direction: column;
    }
    .Bienvenida {
        width: 100%;
        order: 1;
        margin: 2.5% 0;
    }
    .Descripcion {
        margin-top: 7%;
    }
    .texto1 {
        font-size: 3rem;
    }
    .texto2 {
        font-size: 1.2rem;
    }
    .ColumnaOrden {
        order: 2;
    }
    .Cuerpo {
        flex-direction: column;
        gap: 2rem;
        order: 2;
        margin: 0 5% 2% 5%;
    }
    .box {
        padding-left: 5%;
    }
    .Boximagen {
        min-height: 60vh;
    }
    .Informa {
        font-size: 1.2rem;
        text-shadow: 2px 2px 4px rgb(0, 0, 0);
    }
    .EspacioFinal {
        font-size: 0.8rem;
        order: 5;
        padding: 8% 0 3% 0;
        height: auto;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        padding-right: 5%;
    }
    header {
        padding: 0.5rem;
    }
    .columnas {
        position: relative;
        display: flex;
        flex-direction: column;
    }
    .Bienvenida {
        width: 100%;
        margin: 5% 0;
        order: 1;
    }
    .texto1 {
        font-size: 2rem;
    }
    .texto2 {
        font-size: 1rem;
    }
    .ColumnaOrden {
        order: 2;
        margin-top: 5%;
    }
    .Cuerpo {
        flex-direction: column;
        gap: 2rem;
        margin-top: 0;
    }
    .box {
        padding-left: 5%;
    }
    .Boximagen {
        min-height: 50vh;
    }
    .Informa {
        font-size: 1.2rem;
    }
    .carrusel-mini img {
        height: 100%;
    }
    .EspacioFinal {
        font-size: 0.8rem;
        order: 3;
        padding: 8% 0;
        height: auto;
    }
    .logo-wrap {
        font-size: 1.2rem;
    }
}