/*Base en todos los proyectos*/
html {
    box-sizing: border-box;
    font-size: 62.5%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: 'Raleway', serif;
    font-size: 1.6rem;
    line-height: 2;
}

/*Utilidades*/
.text-center{
    text-align: center;
}

/*Globales*/
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 2rem 0;
}

hr{
    margin-top: 5rem;
}

h1 {
    font-size: 5rem;
    
}

h2 {
    font-size: 4rem;
   
}

h3 {
    font-size: 3.5rem; 
   
}

img {
    max-width: 100%;
    display: block;
    border-radius: 10px;
}

a {
    color: #000;
}

.btn {
    text-decoration: none;
    background-color: #008fee;
    display: block;
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
    padding: 1rem;
    margin-top: 2rem;
    transition: background-color 0.25s ease-out;
    text-align: center;
    border: none;
    width: 100%;
}

.btn:hover {
    background-color: #1075b8;
}

.contenedor {
    max-width: 120rem;
    margin: 0 auto;
}

/*Utilidades*/
.text-center {
    text-align: center;
}

.fixed {
    resize: none;
}

/*Header*/
.nombre-sitio {
    text-align: center;
    font-size: 6rem;
}

.nombre-sitio span {
    color: #008fee;
}

/*Nav*/
.contenedor-nav {
    border-top: 0.1rem solid #e1e1e1;
    background-color: #008fee; /*#037bc0*/
}


.nav-principal {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-principal {
        justify-content: space-between;
        flex-direction: row;
    }
}

.nav-principal a {
    text-decoration: none;
    color: white;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 2rem;
}

.nav-principal a:hover {
    text-decoration: overline;
    text-decoration-color: #008fee;
}

/*Hero*/
.hero {
    background-image: url(../img/hero.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 40.25rem;
}

@media (min-width: 768px) {
    .hero {
        height: 61.5rem;
    }
}

/*Categorias*/
.listado-categorias {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 5rem;
}

@media (min-width: 1024px) {
    .listado-categorias {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .categoria a {
        font-size: 1.8rem;
        padding: 1.5rem;
    }
}

.categoria a {
    display: block;
    text-align: center;
    text-decoration: none;
    color: black;
    padding: 2rem;
    font-size: 2rem;
}

.categoria a:hover {
    background-color: #008fee;
    color: white;
    border-bottom-right-radius: 1rem;
}

.categorias {
    padding: 5rem 0;
}

/*Sobre nosotros*/
.sobre-nosotros {
    background-image: linear-gradient(to right, transparent 50%, #037bc0 50%, #008fee 100%), url(../img/logo-sobre-nosotros.jpg);
    background-position: left center;
    background-repeat: no-repeat;
    padding: 5rem 0;
    margin-top: 3rem;
    height: 54rem;
}

.sobre-nosotros p {
    font-size: 2rem;
}

.sobre-nosotros-flex {
    display: flex;
    justify-content: flex-end;
    /*flex-wrap: wrap;*/
}

.texto-nosotros {
    flex-basis: 50%;
    padding-left: 10rem;
    color: #fff;
}

@media (max-width: 1024px) {
    .sobre-nosotros {
        background-image: linear-gradient(to right, transparent 56%, #037bc0 30%, #008fee 100%), url(../img/logo-sobre-nosotros.jpg);
        background-position: left center;
        padding: 0rem 0;
        margin-top: 3rem;
        height: 54rem;
    }
}

@media (max-width: 910px) {
    .sobre-nosotros {
        background: none;
        height: auto;
        padding: 5rem 2rem;
    }

    .sobre-nosotros-flex {
        justify-content: center;
        flex-direction: column;
    }

    .texto-nosotros {
        padding-left: 0;
        text-align: center;
        flex-basis: 100%;
        color: #000;
    }
}

.contenido-principal {
    padding-top: 5rem;
    padding-bottom: 5rem;
}


.copyright {
    padding-top: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

/*Galeria*/
.contenedor-galeria-kitchen {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 5rem;
}
.contenedor-galeria-bathroom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 5rem;
}
.contenedor-galeria-living-room {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 5rem;
}

@media (min-width: 768px) {
    .contenedor-galeria-kitchen {
        grid-template-columns: repeat(3, 1fr);
    }
    .contenedor-galeria-bathroom {
        grid-template-columns: repeat(3, 1fr);
    }
    .contenedor-galeria-living-room {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contenedor-galeria-img {
    height: 40rem;
}

.galeria-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.galeria-img:hover {
    transform: rotate(1deg) scale(1.1); 
}

/*Contacto*/

.formulario {
    width: 60rem;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .formulario {
        width: 100%;
        padding: 0 2rem;
    }
}

fieldset {
    margin-bottom: 3rem;
    padding-top: 4.5rem;
    border: 1px solid black;
}

.formulario legend {
    background-color: #008fee;
    color: white;
    font-weight: 900;
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    width: 100%;
    padding: 0.8rem;
}

.campo {
    padding-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
}

.campo label {
    flex-basis: 10rem;
}

.campo input:not([type="radio"]),
.campo textarea,
.campo select {
    flex-grow: 1;
    padding: 1rem;
    border: 1px solid #cacaca;
}

/*Sweet Alert*/
.swal2-popup {
    font-size: 1.7rem; /* Tamaño del texto general */
}

.swal2-confirm {
    font-size: 2rem; /* Tamaño del botón de confirmación */
}

/* Media Queries generales */
@media (max-width: 480px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem;
    }

    .nombre-sitio {
        font-size: 4rem;
    }

    .contenedor {
        padding: 0 1.5rem;
    }

    .categorias {
        padding: 3rem 0;
    }
}
/*Footer*/
.pie {
    border-top: 1px solid #e1e1e1;
    margin-top: 5rem;
}

.lista-pie-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    font-size: 1.8rem;
    padding-top: 5rem;
    gap: 2rem;

}


@media (max-width: 768px) {
    .lista-pie-sections {
        grid-template-columns: repeat(1, 1fr);
        text-align: center;
    }

    .nav-pie {
        align-items: center;
    }
}

.nav-pie {
    display: flex;
    flex-direction: column;
   
}

.nav-pie a {
    text-decoration: none;
    width: 25rem;
}

.copyright {
    padding-top: 2rem;
    text-align: center;
    font-size: 1.8rem;
}
/*
.Sub:hover {
        text-decoration: underline;
}
.Sub{
    transition: transform 0.5s ease-in-out;
}
    */
.Sub {
    text-decoration: none;
    position: relative;
    display: inline-block;
}


.Sub::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: black; 
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}


.Sub:hover::after {
    visibility: visible;
    width: 100%;
}