* {
    padding:0;
    margin: 0;
    box-sizing: border-box;
}

:root{
    --claro:#e79f3a;
    --oscuro:#824c27;
    --arena:#c89c6a;
    --u:#e9daca;
    --blanco:rgb(255, 253, 250);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

body {
    background-color: var(--blanco);
    min-height: 200vh;
    
}

header {
    min-height: 100px;
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    border-bottom: var(--oscuro) 2px solid; 
}

header .alogo {
    height: 90px;
    margin: auto 0px;
}

header .alogo img {
    height: 100%;
}

header ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 60%;
    list-style:none ;
}

header ul li a{
    text-decoration: none;
    color: var(--oscuro);
    transition: 0.2s;
}

header ul li a:hover {
    color: black;
}

.portada {
    height: calc(100vh - 240px);
    margin: 70px auto;
    margin-bottom: 100px;
    display: flex;
    background: url(img/portada.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: top;
}

.promo {
    width: 100%;
    padding: 70px 0px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 110px;
    color: var(--oscuro);
}

.promo h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4vw;
    text-align: center;
    width: 100%;
    padding: 0px 30px;
     background: linear-gradient(to right, var(--claro), var(--oscuro));
    background-clip: text;
    color: transparent;
    width: fit-content;
    text-shadow: 
    2px 2px white
    ;
}

.promo p {
    font-size: 1.3vw;
    padding: 0px 30px;
    color: var(--oscuro);
}

.barraboton {
    width: 100%;
    height: 5%;
    background-color: var(--arena);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    border-left: 0px;
    border-right: 0px;
}

.barraboton button {
    cursor: pointer;
    padding: 5px 3px;
    border-radius: 50%;
    border: none;
    font-size: 0.9vw;
    font-weight: 600;
    background-color: var(--arena);
    aspect-ratio: 1;
    border: 8px solid var(--blanco);
    transition: 0.3s;
    color: var(--oscuro);
}

.barraboton button:hover {
    color:rgb(255, 255, 255);
    border: 8px solid rgb(179, 179, 179);
}

.sobrenosotros {
    width: 55%;
    height: 40vh;
    margin: 100px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: var(--claro) 1px solid;
    border-bottom: var(--claro) 1px solid;
}

.snicon {
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.snicon ion-icon {
    font-size: 30px;
}

.categorias {
    width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 55px;
    padding: 3% 5%;
}

.titulo {
    color: var(--oscuro);
    width: fit-content;
    margin: 10px auto;
}

.categorias .categoria {
    aspect-ratio: 3/5;
    width: 80%;
    margin: auto;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
    color: rgb(37, 10, 2);
    text-decoration: none;

}

.categorias .categoria h2 {
    margin-top: 10%;
    z-index: 2;
    transition: all 0.3s;
    text-shadow:
    -1px -1px 0 rgb(255, 255, 255),
     1px -1px 0 rgb(255, 255, 255),
    -1px  1px 0 rgb(255, 255, 255),
     1px  1px 0 rgb(255, 255, 255);
}

.categorias .categoria p{
    z-index: 2;
    margin-bottom: 3%;
    font-size: 1.5vw;
    transition: all 0.3s;
    opacity: 0;
    color: black;
    text-shadow:
    -1px -1px 0 rgb(255, 255, 255),
     1px -1px 0 rgb(255, 255, 255),
    -1px  1px 0 rgb(255, 255, 255),
     1px  1px 0 rgb(255, 255, 255);
}

.categorias .categoria:hover h2 {
    opacity: 1;
    transform: translateY(-5px);

}


.categorias .categoria:hover p {
    opacity: 1;
    transform: translateY(10px);
}

.categorias .categoria img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
}

.sofa {
    width: 80%;
    height: 50vh;
    display: flex;
    flex-direction: column;
    gap: 20%;
    align-items: center;
    justify-content: center;
    margin: 200px auto;
    padding-bottom: 50px;
}

.sofa h2 {
    font-size: 2vw;
    background: linear-gradient(to right, var(--claro), var(--oscuro));
    background-clip: text;
    color: transparent;
}

.sofa p {
    color: var(--oscuro);
    font-size: 1vw;
}

.sofa img {
    width: 30%;
    height: 50%;
    object-fit: contain; /* Ajusta la imagen para que llene el contenedor */
    -webkit-box-reflect: below 0px linear-gradient(transparent, rgba(0,0,0,0.4)); /* Reflejo con degradado */ 
}

.galeria {
    width: 70%;
    margin: 0 auto;
}

.galeria h2 {
    width: fit-content;
    margin: 0px auto;
    margin-bottom: 50px;
    color: var(--oscuro);
    font-size: 1.5vw;
}

.contgaleria {
    display: grid;
    grid-template-columns: 1fr 5fr 1fr;
}

.imgscont {
    width: 100%;
}

.imgscont img {
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s;
}

.imgscont img.activa {
    border: 3px solid var(--oscuro); /* Color del borde al estar seleccionada */
    box-shadow: 0 0px 10px var(--oscuro); /* Brillo opcional */
}

.gimgp {
    width: 80%;
    margin: auto;
}

.gimgp img {
    width: 100%;
    margin: auto;
    transition: opacity 0.4s ease; /* Transición suave */
    opacity: 1;
}

.contacto {
    margin: 100px 0;
}

.contacto h2 {
    width: fit-content;
    margin: 0px auto;
    margin-bottom: 50px;
    color: var(--oscuro);
}

.contcontacto {
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.contcontacto a {
    width:80px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid var(--oscuro);
}

.contcontacto a:hover {
    box-shadow: 0px 0px 20px 1px var(--oscuro);
}

.contcontacto a ion-icon {
    font-size: 2.5vw;
    color: var(--oscuro);
}


footer {
    background-color: black;
    color: white;
    width: 100%;
    padding: 30px 0;
    gap: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav {
    display: flex;
    width: 40%;
}

.nav ul{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav ul li {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav ul li a {
    color: white;
    text-decoration: none;
}

.nav ul li a:hover {
    color: #354566;
    text-shadow: 
    1px 1px 0px white,
    -1px -1px 0px white,
    -1px 1px 0px white,
    1px -1px 0px white
    ;
}

.encom img {
    height: 90px;
}



.fade-in {
  opacity: 0;
  transform: scale(1.03);
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: 1.2s;
}
.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width:991px) {
    header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    header ul {
        width: 100%;
    }

    .portada {
        height: 40vh;
    }

    .promo {
        padding: 80px 0;
        justify-content: start;
    }

    .promo h1 {
        font-size: 7vw;
    }

    .barraboton {
        height: 10%;
    }

    .barraboton  button{
        font-size: 3vw;
    }

    .sobrenosotros {
        width: 90%;
    }


    .snicon p {
        text-align: center;
        font-size: 4.5vw;
    }

    .categorias {
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 27px;
        padding: 0;
    }

    .titulo {
        margin: 30px auto;
    }

    .categorias .categoria {
        width: 90%;
    }

    .categorias .categoria h2 {
        font-size: 6vw;
    }

    .categorias .categoria p {
        font-size: 5vw;
    }

    .sofa {
        width: 90%;
    }

    .sofa h2{
        font-size: 5.5vw;
    }

    .sofa p {
        font-size: 4vw;
    }

    .sofa img {
        width: 70%;
    }

    .galeria {
        width: 96%;
    }

    .galeria h2 {
        font-size: 5.5vw;
    }

    .contgaleria {
        grid-template-columns: 1fr 4fr 1fr;
    }

    .gimgp {
        width: 94%;
    }

    .contcontacto a ion-icon {
        font-size: 7vw;
    }

    .nav {
        width: 80%;
    }
}