
@import url('https://fonts.googleapis.com/css2?family=Borel&family=Dekko&family=Knewave&family=Poiret+One&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
body{
 background-color: whitesmoke; 
}
header{
    margin: 2% 0% 1% -7%;;
    font-size: 1.5em;
    font-weight: 2em;
    font-family: "Poiret One", sans-serif;
    text-align: center;
}
.i_cabecera{
    display: flex;
    justify-content: center;
    margin-bottom: -5%;
    margin-left: 5%;
}
.i_logo img{
 width: 6%;
 margin-right: 63%;
 margin-top: 1em; 
}
.i_cabecera h1{
    font-size: 1.5em;
    font-weight: 2em;
    font-family: "Poiret One", sans-serif;
    text-align: center;
}
nav{
    width: 100%;
    display: flex;
    justify-content: center;
}
ul{
    text-align: center;
    font-family: "Poiret One", sans-serif;
    list-style: none; /*quitamos los puntos de la lista*/
}
nav li a{
    /*Los elementos que estan en el li directamente de la clase nav, herendan las 
    propiedades que les indicaremos a continuacion*/
    background-color: rgb(186, 186, 186);
    color: azure;
    text-decoration: none;
    /*Asignamos un valor del padding(margen interior de los elementos) de 10 px àra eñ top y botton
    y de 15px para los laterales (right y left)*/
    padding: 10px 15px;

    /*Por defecto los elementos están en linea vertical, y si los dejamos de esta manera se van
    a solapar. 
    Para evitar esto lo que hacemos es convertir los elementos en bloques (blocks) y conseguimos
    el siguiete resultado de cajas alineadas */
    display: block;
}
nav li a:hover{
    background-color: darkgoldenrod;
}
nav  li{ /*Con el mayor (>) solo afecta al li*/
    /*Indicamos que los elementos directos li que estan en nav, tengan la soguiente caracteristica*/
    float: left;    
}
nav li ul{
    /*Ocultamos los submenus para luego mostrarlos*/
    display: none;

    /*Establecer una posicion absoluta a los submenus, con un tamaño mínimo de anchura para que 
    todos sean iguales*/
    /*Posicionamiento absoluto*/
    position: absolute;
    min-width: 150px;  
}
nav li:hover >ul{
    /*Mostramos los submenus cuando pasemos el raton por encima de la opcion marcada*/
    display: block;
}
nav li ul li{
    position:relative; 
}
nav li ul li ul{
    right: -150px;
    top:  20px;
}
section .i_portada img {
    margin-top: 5%;
    width: 80%; /* Haces que la imagen ocupe todo el ancho disponible */
    object-fit: cover; /* Esto asegura que la imagen cubra el área del contenedor sin distorsionarse */
    display: block; /* Asegura que la imagen no tenga espacio debajo */
    margin-left: 10%;
}
footer{
    position: relative;
    display: flex;
    margin-top: 2%;
}
/*Copyright*/
.i_copyright{
    position: relative;
    font-family: "Poiret One", sans-serif;
    font-size: 1.2em;
    bottom: 0px;
    margin-bottom: 20px;
    padding: 0 100px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.i_copyright p{
    color: darkgoldenrod;
}
/*Redes sociales*/
.i_redessociales{
    position: absolute;
    right: 50px;
    bottom: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px 30px;
    list-style: none;
}
.i_redessociales li{
    padding: 10px;
    float: left;
}
.i_redessociales li a{
    color: darkgoldenrod;
    font-size: 2.5em;
    transition: 0.3s;
}
.i_redessociales li:hover a{
    color: darkorange;
}
/*****************************************************/

/*Mapa*/
section #i_mapa{
    display: flex; /* Usamos Flexbox solo en el contenedor */
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    height: 100%; /* Altura fija del contenedor (puedes ajustarla) */
    width: 80%; /* Hace que ocupe todo el ancho disponible */
    margin-right: auto;
}
#i_mapa {
    margin: auto;
    margin-top: 5%;
    margin-bottom: 3%;
    height: 500px; /* Altura del mapa */
    width: 100%; /* Ancho del mapa */
}

/*****************************************************/
/*FORMULARIO*/
.contenedor-formulario{
    width: 80%; /*el formulario ocupe el 100%*/
    padding: 4% 0% 4% 20%; /*menos margen en la parte superior e inferior*/
    box-sizing: border-box;/*Para que no aumente la caja al añadir padding*/
    align-items: center;
}
.formulario{
    background: white; /*color de fondo del formulario*/
    font-family: "Poiret One", sans-serif;
    margin-top: 5%;
    margin-left: 15%;
    margin-right: 15%;
}
.button{
    border: none;
    width: 100%;
    font-size: 1.5em;
    color: white;
    background-color: rgb(186, 186, 186);
    padding: 15px 20px;
    border-radius: 5px;
    cursor: pointer; /*para que salga la mano del cursor*/
}
.button:hover{
    background-color:darkgoldenrod;
}
#texto-formulario p{
    text-align: center;
    font-size: 1.1em;;
    padding-top: 5%;
}
.datos-personales, .sobre-proyecto{
    margin-bottom: 4%;
    padding-left: 5%;
}
legend{
    font-weight: bold; /*para poner la letra en negrita*/
    font-size: 1.1em;;
}
#nombre, #email, #genero, #tipo, #motivo, #color, #comentarios{
    margin-top: 2%;
}
#genero, #comentarios{
    margin-bottom: 5%;
}
#selector{
    margin-top: 1%;
    margin-left: 5%;
    font-family: "Poiret One", sans-serif;
}
textarea{
    font-family: "Poiret One", sans-serif;
    margin-top: 1%;
    margin-left: 5%;
    width: 85%;
}

/*********************************************************************************************/
/*QUIENES SOMOS*/
.contenedor-quienes .i_quienes img{
    width: 70%; /* Haces que la imagen ocupe todo el ancho disponible */
    display: flex;
    margin: 5% 5% 2% 15%;
    align-items: center;
}
.boxQuienes{
    font-size: 1em;
    font-family: "Poiret One", sans-serif;
    text-align: center;
    width: 10%;
    margin-left: 27%;
    display: inline-block;
}
.boxQuienes a{
    background-color: rgb(186, 186, 186);
    color: azure;
    text-decoration: none;
    padding: 15px 15px;
    display: block;
}
.boxQuienes a:hover{
    background-color: darkgoldenrod;
}

/*********************************************************************************************/
/*HISTORIA*/
.contenedor-historia{
    font-family: "Poiret One", sans-serif;
    font-size: 1.1em;
    text-align: left;
    color: black;
    display: inline-block;
    vertical-align: top;
    background-color: darkgoldenrod;
    margin: -42% 0% 0% 43%;
    padding: 3% 3%;
    width: 50%;
}
.i_historia{
    top: 30%;
    width: 2%;
    display: flex;
    margin-top: 4%;
    margin-left: 7%; 
}
.i_historia2{
    width: 2%;
    display: flex;
    margin-top: -22%;
    margin-left: 45%; 
}
.contenedor-historia h2{
    margin-bottom: 3%;
}

/*********************************************************************************************/
/*PERSONAS*/
.i_personas img{
    width: 50%; /* Haces que la imagen ocupe todo el ancho disponible */
    display: flex;
    margin:10% 0% 2% 47%;
}
.personas{
    font-family: "Poiret One", sans-serif;
    font-size: 1.1em;
    text-align: left;
    color: black;
    display: inline-block;
    vertical-align: top;
    background-color: rgb(186, 186, 186);
    margin: -30% 0% 0% 2%;
    padding: 4% 5%;
    width: 20%;
}

/***************************************************/
.i_contendero-galeria{
    /*Tamaño del contenedor de las 5 imagnes */
    width: 50%; /*Ancho*/
    height: 90%; /*Alto*/
    /*Cuando haya un desbordamiento de las imagenes no sobresalgan de la caja */
    overflow: hidden;
    margin: 50px auto;
    /*Sombreado de la caja */
    box-shadow: 0 0 10px 5px darkgoldenrod;

}

.i_contendero-galeria li{
    position: relative;
    display: block;
    width: 10%; /*Son 160 px porque el contenedor mide 800 y 800/5 son 160*/
    float: left;
    box-shadow: 0 0 25px 10px rgba(0,0,0,0.5);
    transition: all 0.5s;
}

.i_contendero-galeria ul:hover li{
    /*160px/4*/
    width: 5%;
    filter: brightness(50%);
}

.i_contendero-galeria ul li:hover{
    width: 70%;
    filter:brightness(100%);
}

.i_contendero-galeria li img{
    display: block;
    width: 640px;
    height: 100%;
}

.titulo-imagne{
    background: darkgoldenrod;
    position: absolute;
    top:100%;
    width: 100%;
    display: block;
    transition: all 0.5s ease;
    animation: cambia-color 10s linear infinite;
    background-size: 400% 400%;
}

@keyframes cambia-color{
    0%{
        background-position: 0%, 50%;
    }
    50%{
        background-position: 100%, 50%;
    }
    100%{
        background-position: 0%, 100%;
    }
}
.titulo-imagne a{
    display: block;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 20px;
    font-size: 20px;
    text-shadow: 0 1px 2px #000;
    transition: all 0.5s ease;
}
.i_contendero-galeria ul li:hover .titulo-imagne{
    top: 0%;
    box-shadow: 0 0 25px 10px rgba(0,0,0,0.5);
}
.titulo-imagne:hover a {
    transform: scale(1.1);
    transition: all 0.5s ease;
}
.titulo-imagne:active{
    background: rgba(255,255,255,0.5);
}

/* Aquí empieza la web proyectos */

.proyectos{
    margin: 30px;    
    display: flex;
    flex-wrap: wrap;    
    align-items: center;
    justify-content: center;   
}

.cardportada {    
    position: relative;
    padding: 10px;
    width: 400px;
    height: 600px;
    margin: 20px;
}

.cardportada .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.6s;
}

.cardportada .front {
    transform: perspective(600px) rotateY(0deg);
    box-shadow: 0px 5px 10px #000;
}

.cardportada .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cardportada .front h3 {
    position: absolute;
    top: 10px;
    width: 100%;
    line-height: 40px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
}

.cardportada .back {
    transform: perspective(600px) rotateY(180deg);
    box-shadow: 0px 5px 10px #000;
    background-color: darkgoldenrod;
    color: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.cardportada .back .link {
    border-top: 1px solid #fff;
    height: 50px;
    line-height: 50px;
}

.cardportada .back .link a {
    color: white;
    text-decoration: none;
}

.cardportada .back h3 {
    font-size: 30px;
    margin: 30px;
    letter-spacing: 3px;
}

.cardportada .back p {
    letter-spacing: 3px;
}

.cardportada:hover .front {
    transform: perspective(600px) rotateY(180deg);
}

.cardportada:hover .back {
    transform: perspective(600px) rotateY(0deg);
}

.titulovivi h3 {
    font-size: 4em;
    font-weight: 2em;
    font-family: "Poiret One", sans-serif;
    text-align: center;
    margin-top: 2%;
}

.vivienda1 {
    top: 30%;
    width: 2%;
    display: flex;
    margin-top: 2%;
    margin-left: 7%; 
}
.vivienda2 {
    width: 2%;
    display: flex;
    margin-top: -31%;
    margin-left: 55%; 
}

.vivienda3 {
    width: 2%;
    display: flex;
    margin-top: 1%;
    margin-left: 7%; 
}

.vivienda4 {
    width: 2%;
    display: flex;
    margin-top: -31%;
    margin-left: 55%; 
}

.vivienda5 {
    width: 2%;
    display: flex;
    margin-top: 1%;
    margin-left: 55%; 
}

.vivienda6 {
    width: 2%;
    display: flex;
    margin-top: -32%;
    margin-left: 12%; 
}

.hotel1{
    width: 300px;
    height: 700px;
    display: flex;
    margin-top: 1%;
    margin-left: 7%; 
}

.hotel1 {
    width: 300px;
    height: 700px;
    display: flex;
    margin-top: 1%;
    margin-left: 2%; 
}

.hotel2 {
    width: 300px;
    height: 700px;
    display: flex;
    margin-top: -36.7%;
    margin-left: 50%; 
}

.hotel3 {
    width: 300px;
    height: 700px;
    display: flex;
    margin-top: 1%;
    margin-left: 2%; 
}

.hotel4 {
    width: 300px;
    height: 700px;
    display: flex;
    margin-top: -36.7%;
    margin-left: 50%; 
}

.hotel5 {
    width: 300px;
    height: 700px;
    display: flex;
    margin-top: 1%;
    margin-left: 2%; 
}

.hotel6 {
    width: 300px;
    height: 700px;
    display: flex;
    margin-top: -36.7%;
    margin-left: 55%; 
}

.local1 {
    width: 300px;
    display: flex;
    margin-top: 1%;
    margin-left: 10%; 
}

.local2 {
    width: 300px;
    display: flex;
    margin-top: -52.5%;
    margin-left: 55%; 
}

.local3 {
    display: flex;
    margin-top: 1%;
    margin-left: 25%; 
}