* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

/*Estilo del "div" del enlace del menú*/

@font-face {
    font-family: "Singlet";
    src: url(./Sniglet/Sniglet-Regular.ttf);
}

@font-face {
    font-family: "Montserrat";
    src: url(./Montserrat/Montserrat-VariableFont_wght.ttf);
}

/* ESTILOS HEADER */
@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-areas:
        "my-header"
        "my-nav"
        "my-main"
        "my-footer";
    grid-template-rows: 200px 50px 1fr 180px;
    font-family: "Singlet", "Montserrat", 'Courier New', Courier, monospace;
}

/***HEADER***/
.div_cabecera {
    grid-area: my-header;
    background-color: rgb(53, 53, 252);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
    height: 100%;
    border-bottom: 10px solid rgba(255, 255, 255, 0.8);
}

.logo_cabecera {
    display: flex;
    align-items: center;
    gap: 40px;
}

.img_cabecera {
    width: 160px;
    height: 160px;
    border-radius: 100px;
    border: 5px solid rgb(255, 255, 255);
    animation: slideFade 0.30s ease-out forwards;

}

h1 {
    font-size: 90px;
    letter-spacing: 4px;
    color: white;
    text-shadow: 2px 2px 20px rgb(0, 0, 0);
    animation: slideFade 0.30s ease-out forwards;
    animation-delay: 0.30s;
}

.cabecera_contacto ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cabecera_contacto ul li {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

/* Escondemos el enlace inicialmente */
.enlace-texto{
    opacity:0;
    transform:translateY(-20px);
    transition:opacity .5s ease, transform .5s ease;
}

/* mostrar texto al pasar el mouse */
.cabecera_contacto ul li:hover .enlace-texto{
    opacity:1;
    transform:translateY(0);
    background-color:rgba(255,255,255,.9);
    color: black;
    font-size: 28px;
    border-radius:30px;
    border: 3px solid darkorange;
    padding:0 15px;
}

/* Si necesitas ocultar también el texto cuando no está sobre la imagen */
.enlace_header {
    display: inline-block;
    position: relative;
    /* Asegura que los elementos dentro de este contenedor se alineen correctamente */

}

/**** NAV *****/
nav {
    grid-area: my-nav;
    height: 50px;
}

/*Estilo del "div" contenedor de todos los enlaces*/
.cabecera_enlaces {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding-left: 40px;
    background-color: rgb(68, 68, 193);
    height: 100%;
    list-style-type: none;
}

/*Estilo de los enlaces del menú*/
.enlace_container {
    width: max-content;
    height: 100%;
    font-size: 30px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
}

.enlace {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: aquamarine;
    transition: transform 0.5s ease, color 0.5s ease;
}

.enlace:hover {
    color: rgb(11, 247, 168);
    transform: scale(1.20);

}

/*Estilo del ENLACE ACTUAL del menú*/
.actual {
    background-color: aquamarine;
    color: rgb(0, 0, 0);
    width: auto;
    height: 100%;
    padding: 0 10px;
    font-size: 30px;
    font-weight: 400;
    text-decoration: none;
}

.actual:hover {
    color: rgb(0, 0, 0);
    transform: scale(1.20);

}

/************** MAIN ***********/

/*Estilo del div del 1º SECTION*/
main {
    grid-area: my-main;
    display: flex;
    flex-direction: column;
}

section {
    margin: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section_border_top {
    border-top: 5px solid violet;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    font-size: 60px;
    color: blue;
    margin-bottom: 70px;
    text-decoration: underline;
    text-decoration-thickness: 6px;
    text-decoration-color: blueviolet;
    animation: slideFade 0.30s ease-out forwards;
    animation-delay: 0.30s;
}

/**************** INDEX **************/
.titulo_naranja {
    font-size: 35px;
    color: darkorange;
    padding-bottom: 20px;
}

/* Contenedor de la presentación*/

.presentacion img {
    float: left;
    width: min(500px, 45vw);
    height: auto;
    border-radius: 8px;
    margin-right: 40px;
    margin-bottom: 20px;
}

.presentacion_texto {
    font-size: 30px;
    color: blue;
    font-family: "Singlet", "Montserrat", 'Courier New', Courier, monospace;
}

.presentacion_texto p + p {
    margin-top: 40px;
}

/* Resto de contenido del INDEX */
.contenido {
    font-size: 30px;
    color: blue;
    justify-content: center;
}

/**************** PORTFOLIO/GALERIA **************/

.div_galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 60px;
    width: 100%;
}

.div_galeria img {
    border-radius: 20px;
    object-fit: cover;
    width: 100%;
    height: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.div_galeria img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/*************** PRESUPUESTO ****************/

/*Formato del texto de datos del formulario*/

form {
    min-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgb(17, 0, 255);
    border-radius: 15px;
    padding: 35px;
}

.dato {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label {
    width: 150px;
    font-size: 22px;
}

input {
    width: 100%;
    height: 35px;
    border-radius: 5px;
    font-size: 15px;
    padding: 10px;
}

textarea {
    width: 100%;
    border-radius: 5px;
    font-size: 15px;
    padding: 10px;
    height: 200px;

}

.input_check {
    margin-right: 5px;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.politicas {
    font-family: "Singlet", "Montserrat", 'Courier New', Courier, monospace;
    font-size: 20px;
    color: blue;
    margin-bottom: 10px;
}

.button {
    width: 100px;
    height: 30px;
    font-size: 20px;
    border: 1px solid black;
    background-color: blue;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-family: "Singlet", "Montserrat", 'Courier New', Courier, monospace;
    padding: 0 20px;
    display: flex;
    justify-self: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.button:hover {
    transform: scale(1.10);
}

/****CONTACTO****/
.contacto_container {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.datos_contacto_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    width: max-content;
}

.contacto_container ul li {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 30px;
    gap: 15px;
}

ul li a {
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    color: darkorange;

}

ul li a:hover {
    transform: scale(1.10);
}

.imagen_contacto {
    border: 1px solid blue;
    border-radius: 30px;
    width: 600px;
    height: auto;
}

/***FOOTER***/
footer {
    grid-area: my-footer;
}

.footer_contenedor {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    background-color: blue;
    margin-top: 30px;
    padding: 0 40px;
    width: 100%;
    height: 100%;
}

.iconos {
    width: 40px;
    height: 40px;
    background-color: white;
    padding: 5px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.iconos:hover {
    transform: scale(1.10);
    /* Cambia el tamaño de la imagen cuando el mouse pasa por encima */
    cursor: pointer;
}

.footer_contacto ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer_contacto ul li {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer_contacto span {
    text-decoration: none;
    color: white;
    font-size: 25px;
    transition: transform 0.5s ease, color 0.5s ease;
}

.footer_contacto ul li a:hover {
    color: white;
    transform: scale(1.15);
}

.footer_logo {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.footer_logo img {
    width: 120px;
    height: 100%;
    border-radius: 100px;
    border: 5px solid rgb(255, 255, 255);
}

.footer_logo p {
    font-size: 40px;
    color: white;
    font-family: "Singlet", "Montserrat", 'Courier New', Courier, monospace;
    letter-spacing: 4px;
    text-shadow: 2px 2px 20px rgb(0, 0, 0);
}

.footer_redes {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.footer_redes a {
    transition: transform 0.5s ease, color 0.5s ease;
}

.footer_redes img {
    width: 50px;
    height: 50px;
}

.footer_redes a:hover {
    transform: scale(1.15);
}

@media (max-width: 1470px) {
    h1 {
        font-size: 50px;
    }

    .enlace-texto {
        font-size: 25px;
    }
}

@media (max-width:1200px) {

    h1 {
        font-size: 50px;
    }

    .cabecera_contacto ul li {
        gap: 10px;
    }

    .enlace-texto {
        font-size: 18px;
    }

    .iconos {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .presentacion img {
        width: min(400px, 50vw);
    }
    .presentacion_texto {
        font-size: 24px;
    }

    .div_galeria {
        grid-template-columns: repeat(2, 1fr);
    }

    .div_galeria img {
        width: 100%;
        height: 350px;
    }

    .imagen_contacto {
        width: 400px;
    }

    .footer_contenedor {
        justify-content: space-between;
        gap: 50px;
    }

    .footer_contacto ul li {
        gap: 10px;
    }

    .footer_contacto ul li a {
        font-size: 20px;
    }

    .footer_logo {
        display: flex;
        gap: 15px;
        justify-content: center;
        width: 100%;
    }

    .footer_redes {
        gap: 10px;
    }

    .footer_redes img {
        width: 40px;
        height: 40px;
    }

}

@media (max-width:1050px) {
    h1 {
        font-size: 40px;
    }

    .div_cabecera {
        padding: 0 20px;
    }

    .logo_cabecera {
        gap: 15px;
    }

.cabecera_contacto ul li:hover .enlace-texto{
        font-size: 18px;
    }

    .footer_contenedor {
        padding: 0 15px;
    }
    
}

@media (max-width:880px) {

    /* HEADER */

    .div_cabecera {
        gap: 20px;
        padding: 15px;
        position: relative;
        justify-content: center;
    }

    .logo_cabecera {
        flex-direction: column;
    }
    
    .cabecera_contacto {
        position: absolute;
        right: 15px;
    }

    h1 {
        font-size: 32px;
        text-align: center;
    }

    h2 {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .img_cabecera {
        width: 120px;
        height: 120px;
    }

    /* CONTACTO HEADER */

    /* eliminar el texto */
    .enlace-texto{
        display:none;
    }

    /* NAV */

    .cabecera_enlaces {
        justify-content: center;
        padding-left: 0;
    }

    .enlace {
        font-size: 22px;
    }

    section {
        margin: 20px;
    }

    /* PRESENTACION */
    .presentacion, .presentacion_texto {
        margin-bottom: 0px;
    }

    .presentacion img{
        float:none;
        width:100%;
        margin-right:0;
    }

    .titulo_naranja {
        font-size: 28px;
    }

    .contenido {
        font-size: 22px;
    }

    /* GALERIA */

    .div_galeria {
        grid-template-columns: 1fr 1fr;
    }

    .div_galeria img {
        height: 250px;
    }

    /* CONTACTO */

    .contacto_container {
        align-items: center;
        flex-direction: column-reverse;
    }

    .imagen_contacto {
        width: 100%;
        max-width: 400px;
    }

    .contacto_container ul li {
        font-size: 22px;
    }

    /* FORM */

    form {
        min-width: 100%;
    }

    /* FOOTER */

    .footer_contenedor {
        gap: 30px;
        height: 100%;
    }

    .footer_contacto ul{
        justify-content: center;
        gap: 30px;
    }

    .iconos {
        width: 40px;
        height: 40px;
    }

    .footer_contacto span{
        display: none;
    }

    .footer_logo {
        flex-direction: column;
        justify-content: center;
        gap: 10px;    
    }

    .footer_logo img {
        width: 100px;
        height: 100px;
    }

    .footer_logo p {
        font-size: 22px;
    }

    .footer_redes {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 30px;
    }
    
    .footer_redes img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width:550px) {

    .logo_cabecera {
        flex-wrap: wrap;
        justify-content: center;
    }   

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 36px;
    }

    .iconos, .footer_redes img {
        width: 33px;
        height: 33px;
    }

    .titulo_naranja {
        font-size: 24px;
    }

    .presentacion img {
        width: 80vw; /* ocupa la mayor parte del ancho en móvil, sigue siendo cuadrada */
    }
    .presentacion_texto {
        font-size: 18px;
    }

    /* NAV */

    .cabecera_enlaces {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .enlace {
        font-size: 18px;
        padding: 0 10px;
    }

    /* GALERIA */

    .div_galeria {
        grid-template-columns: 1fr;
    }

    .div_galeria img {
        height: 380px;
        width: 380px;
    }

    /* FORM */

    .label {
        width: 120px;
        font-size: 18px;
    }

    input {
        font-size: 14px;
    }

    textarea {
        font-size: 14px;
    }

    /* CONTACTO */

    .contacto_container {
        align-items: center;
        flex-direction: column-reverse;
    }

    .contacto_container ul li {
        font-size: 20px;
    }

    .imagen_contacto {
        max-width: 100%;
    }

    /* FOOTER */

    .footer_contacto_span{
        display: none;
    }

    .footer_logo p {
        font-size: 28px;
    }

    .footer_logo img {
        width: 80px;
        height: 80px;
    }

}