/** Elementos generales     **/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    }

body {
    overflow-x: hidden; /*  para que al configurar un desplazamiento no se me agrande el eje X (que el body no exceda el 100%)*/
    background-image: url('assets/fondo-de-papel-geometrico-suave.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /*para que no se mueva el fondo al scrollear */
}

.logo1 {
    margin-right: 2px;
    border-radius: 50%;
    height: 100px;
    animation-name: aparecer;
    animation-duration: 4s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards; /* para que quede en la posición final de la animacion*/

}

main {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem auto;
    width: 95%;
    height: auto;

}

.just-mobile {
    display: none;
}

header, footer{
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    height: fit-content;
}

h1 {
    font-family: "Italianno", cursive;
    font-weight: 300;
    font-style: normal;
    font-size: 60px !important;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.767);
    animation-name: mover-despacio;
    animation-duration: 4s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards; 
}

.marca {
    margin-top: 10px;
    padding: 15px;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    text-shadow: 1px 1px 3px whitesmoke;
}

.header-item {
    font-size: 20px;
}

.header-item, h3 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

h3 {
    font-family: "Playfair Display", serif;
    text-shadow: 1px 1px 3px whitesmoke;
    align-self: center;
    justify-self: center;
    clear: both;
}

p {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    text-indent: 15px;
    text-align: justify;
    margin: 1rem;
}

aside {
    background-color: rgba(0, 0, 0, 0.315);
    width: 50px;
    height: 180px;
    margin: 5px;
    border-radius: 5px;
    position: fixed;
    top: 35%;
    right: 0%;
    z-index: 99999;
    align-items: center;
}

.net-item {
    font-size: 40px;
    color: white;
    opacity: 50%;
    margin-left: 7px;
}

.net-item:hover {
    opacity: 100%;
}

i:hover {
    transform: scale(0.8);
    transition: transform 1.3s ease;
}

section {
    margin-top: 50px;
    height: fit-content;
}

.rounded {
    margin: 1rem;
}


.confirmacion {
    margin: 1rem;
    font-family: "Lobster Two", sans-serif;
    text-decoration: none;
}

button  {
    background-color: rgb(192, 223, 215);
    padding: 10px 30px;
    border: solid 2px gray;
    border-radius: 25% !important;
}

button:hover {
  background-color:rgb(174, 204, 197);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra sutil al pasar el mouse */
}

button:active {
    background-color: rgba(192, 223, 215, 0.719);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
    transform: translateY(1px);
}

/* <<<<<<<<<<<<<<<<<<<<<<<<<  SECTION 1  >>>>>>>>>>>>>>>>>>>> */

#section1 {
    display: flex;
    align-items: center;
    height: fit-content;    
}

.section1-element {
    width: 40%;
    margin: auto;
}

span {
    font-weight: 500;
    font-size: large;
}

.carousel, .rounded { /*imagen del carousel*/
    box-shadow: 8px 8px 15px rgb(51, 48, 48);
}

/* <<<<<<<<<<<<<<<<<<<<<<<<<  SECTION 2  >>>>>>>>>>>>>>>>>>>> */

.contador-contenedor {
    display: flex;
    align-content: center;
    justify-content: center;
    border: solid;
    border-radius: 20% 5% 20% 5%;
    border-color: rgb(214, 208, 219);
    box-shadow: 2px 2px 5px  rgb(89, 145, 155) ;
}

.contador {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: xx-large;
    text-shadow: 2px 2px 5px rgb(255, 255, 255);
    margin: 3px;
}

#segundos {
    width: 32px;
}

/* <<<<<<<<<<<<<<<<<<<<<<<<<  SECTION 3  >>>>>>>>>>>>>>>>>>>> */

#section3 {
    display: flex;
    align-items: center;
    justify-content: center;

}

.section3-element {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60% !important;
    margin: auto;
}

.section3-element2 {
    width: 40%;
}

.section3-link {
    margin: 5px;
    width: 150px;
    height:  150px;
}

.section3-link:hover {
    cursor: pointer;
    transform: scale(0.8);
    transition: transform 1.3s ease;
}


/* <<<<<<<<<<<<<<<<<<<<<<<<<  SECTION 4  >>>>>>>>>>>>>>>>>>>> */


.section4-image {
    max-width: 250px;
    height: auto;
    margin: 1rem;
}

/*<<<<<<<<<<<<<<<<<<<<<<<<<<    FOOTER     >>>>>>>>>>>>>>>>>>>>*/

footer {
    display:flex;
    justify-content: space-between;

}

.logo-footer {
    margin-right: 2px;
    border-radius: 50%;
    height: 100px;
}

.footer-link {
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    color:black;
    text-shadow: 1px 1px 3px whitesmoke;
    margin: 1rem;
    padding-top: 1rem;
}

.footer-link:hover {
    font-weight: bold;
    text-shadow: 3px 3px 7px rgb(255, 255, 255) !important;

}

.fa-house-chimney { /*logo home en el footer*/
    margin: 5px;
}

/* <<<<<<<<<<<<<<<<<<<<<<<<<  ANIMACIONES  >>>>>>>>>>>>>>>>>>>> */

@keyframes mover-despacio {
    from {
    transform: translateX(0);
    opacity: 0;
    }
  to {
    transform: translateX(25%);
    opacity: 1;
    }
}

@keyframes aparecer {
    from {
        opacity: 0;
        rotate: -45deg;
    }
    to {
        opacity: 1;
    }
}


/* <<<<<<<<<<<<<<<<<<<<<<<<<  MEDIA QUERY  >>>>>>>>>>>>>>>>>>>> */

@media screen and (max-width: 768px) {
    h1 {
        font-size: 20px;

    }

    .not-mobile {
        display: none;
    }

    #section1 {
        display: block;
        align-items: center;
        height: fit-content;    
    }

    .section1-element {
        width: 80%;
        margin: auto;
    }
    
    @keyframes mover-despacio {
        from {
        transform: translateX(0);
        opacity: 0;
        }
        to {
        transform: translateX(5%);
        opacity: 1;
        }
    }
    .contador {
        font-size: large;

    }

    #section3 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;

    }

    .section3-element, .section3-element2 {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 90% !important;
        margin: 10px;
    }


    .section3-link {
        margin: 5px;
        width: 100px;
        height:  100px;
    }

    .section4-image {
        max-width: 30%;
        height: auto;
        margin: 1rem;
    }

    .section3-element {
        display: flex;
        flex-wrap: wrap;
    }

    .just-mobile {
        display: block;
    }

    .logo-footer, .logo1 {
        margin-right: 2px;
        border-radius: 50%;
        height: 80px;
}

}



@media screen and (max-width: 430px) {
    .section4-image {
        max-width: 40%;
        height: auto;
        margin: 1rem;
    }

    #segundos {
        width: 25px;
    }

    .contador-contenedor {
        border: 0px;
        box-shadow: 0px 0px 0px ;
    }

    .logo-footer, .logo1 {
        margin-right: 2px;
        border-radius: 50%;
        height: 50px;
}


}