/* General */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* Barra de navegacion */
nav {
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: center;
    z-index: 20;
    position: fixed;
    top: 0;
    background-color: #334D35;
}

.contenedor-boton-hamburguesa {
    display: none;
    width: 50%;
    height: 100%;
}

.boton-hamburguesa {
    width: 35px;
    height: 35px;
    margin-top: 7.5px;
    cursor: pointer;
    margin-left: 5px;
}

.contenedor-vacio-inicio, .contenedor-vacio-final {
    width: 1%;
    height: 100%;
}

.contenedor-secciones {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.productos {
    border: none;
    text-decoration: none;
    color: #fff;
    border-bottom: #fff solid 2px;
}

.contenedor-secciones > ol {
    display: flex;
    justify-content: center;
}

.contenedor-secciones > ol > li {
    list-style-type: none;
    margin-left: 30px;
    font-family: sans-serif;
    margin-top: 16.5px;
    font-size: 12px;
}

.contenedor-secciones > ol > li > a {
    position: relative;
    text-decoration: none;
    color: #fff;
    padding-bottom: 4px;
}

.contenedor-secciones > ol > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.contenedor-secciones > ol > li > a:hover::after {
    width: 100%;
}

.contenedor-secciones > ol > li > a.productos {
    border-bottom: 2px solid #fff;
}

.contenedor-secciones > ol > li > a.productos::after {
    content: none;
}

.contenedor-secciones > ol > li > a:hover {
    color: #ccc;
}

.logo {
    width: 105px;
    height: 40px;
    border-radius: 5px;
    margin-top: 2.5px;
    margin-left: 30px;
}

.contenedor-secciones-menu, .contenedor-img-logo-menu, .contenedor-logo-menu-cerrado {
    display: none;
}

.contenedor-logo-menu-cerrado {
    width: 50%;
    height: 100%;
}

.logo-menu-cerrado {
    width: 105px;
    height: 40px;
    border-radius: 5px;
    margin-top: 2.5px;
    margin-right: 10px;
}

.contenedor-secciones-menu {
    z-index: 30;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #334D35;
    transition: left 0.5s ease; 
}

.contenedor-menu-encabezado {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
}

.contenedor-boton-cerrar-menu {
    width: 80%;
    height: 100%;
}

.boton-cerrar-menu {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: 10px;
    margin-top: 15px;
}

.boton-cerrar-menu:hover {
    transform: rotate(90deg);
}

.contenedor-logo-menu {
    width: 20%;
    height: 100%;
    display: flex;
    justify-content: end;
}

.logo-menu {
    width: 115px;
    height: 45px;
    border-radius: 5px;
    margin-top: 2.5px;
    margin-right: 10px;
}

.contenedor-input-busqueda {
    width: 100%;
    height: 55px;
    display: flex;
    justify-content: center;
}

.input-busqueda-menu {
    width: 95%;
    height: 35px;
    margin-top: -30px;
    border-radius: 10px;
    border: none;
    padding-left: 25px;
    padding-right: 25px;
}

.secciones-menu {
    width: 100%;
    height: auto;
}

.li-menu:first-child {
    margin-top: 10px;
}

.li-menu {
    font-family: sans-serif;
    text-align: center;
    list-style-type: none;
    margin-top: 30px;
    font-size: 20px;
}

.a-menu {
    color: #fff;
    text-decoration: none;
}

.a-menu:hover {
    border-bottom: #fff solid 2px;
    color: #ccc;
}

/* Desaparece */
.hidden {
    display: none;
}

/* Animacion de scroll */
.scroll-objetos {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.scroll-objetos.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sección productos encabezado */
.contenedor-descripcion-productos {
    width: 100%;
    min-height: 300px; 
    height: 400px;
    background-color: #4F6F54;
    display: flex;
    align-items: center;      
    justify-content: center;  
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.contenido-productos {
    max-width: 800px;
    width: 100%;
}

.titulo-productos {
    font-family: sans-serif;
    color: #fff;
    font-size: 36px;
    margin-bottom: 15px;
}

.contenedor-descripcion {
    width: 100%;
}

.p-descripcion-productos {
    font-family: sans-serif;
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
}

/* Fondo fijo al hacer scroll */
.contenedor-fondo-deslizante {
    width: 100%;
    height: 300px; 
    background-image: url("img/fondo-attachment-productos.jpeg"); 
    background-size: cover; 
    background-position: bottom; 
    background-repeat: no-repeat;
    background-attachment: fixed; 
}

/* Input de productos */
.contenedor-input-busqueda {
    width: 100%;
    height: 75px;
    margin-top: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.input-busqueda {
    width: 55%;
    height: 40px;
    border: none;
    border-radius: 25px;
    padding: 0 20px;
    font-size: 16px;
    font-family: sans-serif;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.25); 
    transition: all 0.3s ease;
    outline: none;
}

.input-busqueda:hover {
    box-shadow: 0 0 7.5px rgba(0, 0, 0, 0.35);
}

.input-busqueda:focus {
    box-shadow: 0 0 7.5px #4F6F54;
    border: 1px solid #4F6F54;
}

.btn-buscar {
    width: 45px;
    height: 35px;
    background-color: #4F6F54;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    font-family: sans-serif;
    font-size: 15px;
    transition: all 0.3s ease; 
}

.btn-buscar:hover {
    background-color: #334D35;
}

.contenedor-resultados-busquedas {
    width: 100%;
    height: 500px;
    margin-top: 5px;
}

.img-busqueda {
    width: 20px;
    height: 20px;
    margin-top: 2.5px;
}

/* Carrusel de catalogo */
.seccion-carrusel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titulo-producto {
    font-family: sans-serif;
    margin-top: 20px;
    padding-bottom: 10px;
    color: #4F6F54;
}

.carrusel-contenedor {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.contenedor-img-automatico {
    position: relative;
    width: 500px;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px #4F6F54;
}

.contenedor-imagenes {
    display: none;
    width: 100%;
    height: 100%;
}

.contenedor-imagenes.activar {
    display: block;
    animation: fade 0.6s ease-in-out;
}

.contenedor-imagenes img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.flecha-izquierda, .flecha-derecha {
    background-color: #fff;
    border: solid 1px rgba(0, 0, 0, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flecha-izquierda:hover, .flecha-derecha:hover {
    background-color: #ccc;
}

.flecha-izquierda {
    margin-right: 15px;
}

.flecha-derecha {
    margin-left: 15px;
    transform: rotate(180deg);
}

.contador-imagenes {
    background-color: #4F6F54;
    color: #fff;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-family: sans-serif;
    margin-top: 10px;
}

@keyframes fade {
    from {opacity: 0;}
    to {opacity: 1;}
}

.contenedor-resultados-busquedas {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    overflow: auto;
    padding-bottom: 15px;
    padding-top: 10px;
}

.tarjeta-producto {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #4F6F54;
    border-radius: 15px;
    box-shadow: 0 4px 15px #4F6F54;
    overflow: hidden;
    width: 400px;
    height: 400px;
    transition: transform 0.3s ease;
}

.tarjeta-producto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.mensaje-vacio {
    font-family: sans-serif;
    color: #4F6F54;
    font-size: 20px;
}

/* Seccion de footer */
.contenedor-footer {
    width: 100%;
    height: 500px;
    background-color: #D1D1D1;  
    margin-top: 10px;
}

.contenedor-titulo-footer {
    width: 100%;
    height: 400px;
}

.titulo-footer {
    text-align: center;
    padding-top: 340px;
    font-family: sans-serif;
    font-size: 18px;
}

.contenedor-redes {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.redes-footer {
    transition: transform 0.3s ease;
}

.redes-footer:hover {
    transform: translateY(-10px); 
}

.contenedor-derechos {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    background-color: #4F6F54;
}

.p-derechos {
    margin-top: 30px;
    font-family: sans-serif;
    color: #fff;
}

/* Medias query adaptamiento */
@media screen and (min-width : 500px) and (max-width: 780px) {
    .contenedor-secciones, .contenedor-vacio-inicio, .contenedor-vacio-final {
        display: none;
    }

    .contenedor-logo {
        width: 80%;
        justify-content: end;
        margin-right: 10px;
    }

    .contenedor-boton-hamburguesa, .contenedor-secciones-menu, .contenedor-img-logo-menu,
    .contenedor-logo-menu-cerrado {
        display: block;
    }

    .contenedor-logo-menu-cerrado {
        display: flex;
        justify-content: end;
    }

    nav {
        height: 50px;
    }

    .logo-menu-cerrado, .logo-menu {
        width: 115px;
        height: 45px;
    }

    .titulo-producto {
        font-size: 25px;
    }

    .contenedor-img-automatico {
        height: 400px;
        width: 400px;
    }

    .tarjeta-producto {
        height: 375px;
        width: 375px;
    }

    .flecha-derecha {
        width: 35px;
        height: 35px;
        margin-left: 5px;
    }

    .flecha-izquierda {
        width: 35px;
        height: 35px;
        margin-right: 5px;
    }

    .p-derechos {
        font-size: 14px;
    }
}

@media screen and (min-width : 440px) and (max-width: 499px) {
    .contenedor-secciones, .contenedor-vacio-inicio, .contenedor-vacio-final {
        display: none;
    }

    .contenedor-logo {
        width: 80%;
        justify-content: end;
        margin-right: 10px;
    }

    .contenedor-boton-hamburguesa, .contenedor-secciones-menu, .contenedor-img-logo-menu,
    .contenedor-logo-menu-cerrado {
        display: block;
    }

    .contenedor-logo-menu-cerrado {
        display: flex;
        justify-content: end;
    }

    nav {
        height: 50px;
    }

    .logo-menu-cerrado, .logo-menu {
        width: 115px;
        height: 45px;
    }

    .titulo-producto {
        font-size: 25px;
    }

    .contenedor-img-automatico {
        height: 375px;
        width: 375px;
    }

    .tarjeta-producto {
        height: 350px;
        width: 350px;
    }

    .flecha-derecha {
        width: 30px;
        height: 30px;
        margin-left: 5px;
    }

    .flecha-izquierda {
        width: 30px;
        height: 30px;
        margin-right: 5px;
    }

    .p-derechos {
        font-size: 12px;
    }
}

@media screen and (min-width : 385px) and (max-width: 439px) {
    .contenedor-secciones, .contenedor-vacio-inicio, .contenedor-vacio-final {
        display: none;
    }

    .contenedor-logo {
        width: 80%;
        justify-content: end;
        margin-right: 10px;
    }

    .contenedor-boton-hamburguesa, .contenedor-secciones-menu, .contenedor-img-logo-menu,
    .contenedor-logo-menu-cerrado {
        display: block;
    }

    .contenedor-logo-menu-cerrado {
        display: flex;
        justify-content: end;
    }

    nav {
        height: 50px;
    }

    .logo-menu-cerrado, .logo-menu {
        width: 115px;
        height: 45px;
    }

    .titulo-producto {
        font-size: 20px;
    }

    .contenedor-img-automatico {
        height: 325px;
        width: 325px;
    }

    .tarjeta-producto {
        height: 300px;
        width: 300px;
    }

    .flecha-derecha {
        width: 25px;
        height: 25px;
        margin-left: 5px;
    }

    .flecha-izquierda {
        width: 25px;
        height: 25px;
        margin-right: 5px;
    }

    .contador-imagenes {
        padding: 4px 12px;
    }

    .p-derechos {
        font-size: 12px;
    }
}

@media screen and (min-width : 320px) and (max-width: 384px) {
    .contenedor-secciones, .contenedor-vacio-inicio, .contenedor-vacio-final {
        display: none;
    }

    .contenedor-logo {
        width: 80%;
        justify-content: end;
        margin-right: 10px;
    }

    .contenedor-boton-hamburguesa, .contenedor-secciones-menu, .contenedor-img-logo-menu,
    .contenedor-logo-menu-cerrado {
        display: block;
    }

    .contenedor-logo-menu-cerrado {
        display: flex;
        justify-content: end;
    }

    nav {
        height: 50px;
    }

    .logo-menu-cerrado, .logo-menu {
        width: 115px;
        height: 45px;
    }

    .titulo-producto {
        font-size: 17.5px;
    }

    .contenedor-img-automatico {
        height: 275px;
        width: 275px;
    }

    .tarjeta-producto {
        height: 250px;
        width: 250px;
    }

    .flecha-derecha {
        width: 20px;
        height: 20px;
        margin-left: 5px;
    }

    .flecha-izquierda {
        width: 20px;
        height: 20px;
        margin-right: 5px;
    }

    .contador-imagenes {
        padding: 2px 10px;
    }

    .p-derechos {
        font-size: 12px;
    }
}