/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.display-sub{
    font-size: calc(.47rem + 1.4vw);
    font-weight: 900;
    line-height: 1.2;
    color: #e4b688 !important;
}

.producto .botones form button {
    font-size: 14px;
    padding: 8px 16px;
    background-color: #66a182;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.producto .botones form button:focus {
    outline: none;
}

/* Contenedor del catálogo */
.contenedor-catalogo {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 40px;
}

/* Catálogo en grid */
.catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    margin-top: 20px;
}

.text-box-cta h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #333;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Estilos para las tarjetas de productos con efecto 3D */
@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

.animate-product {
    animation: move-up 1s ease-in-out;
}

.producto {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.694);
    box-shadow: 5px 5px 15px rgba(78, 78, 78, 0.1);
    transition: transform 1.2s ease, box-shadow 0.5s ease;
    perspective: 1000px;
}

.producto:hover {
    animation: none;
    transform: translate3d(0, -10px, 20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.producto-img {
    max-width: 100%;
    height: auto;
    transition: transform 2s ease;
    border-radius: 10px;
}

.producto-nombre {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
    transition: transform 0.5s ease;
}

.producto:hover .producto-nombre {
    transform: translate3d(0, -20px, 20px);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}

.precio {
    font-size: 1.1rem;
    color: #66a182;
    font-weight: bold;
}

.btn-opciones {
    background-color: #66a182;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-opciones:hover {
    background-color: #9ccf8c;
}

.opciones-container {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.boton-carrito {
    background-color: #e4b688;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.boton-carrito:hover {
    background-color: #f5c798;
}

/* Mensaje para invitados */
.guest-message {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    font-size: 1rem;
    color: #333;
    max-width: 600px;
    margin: 20px auto;
}

.guest-message a {
    color: #e4b688;
    text-decoration: none;
    font-weight: bold;
}

.guest-message a:hover {
    text-decoration: underline;
}

/* Botón de filtro */
.btn-filtrar {
    position: fixed;
    top: 110px;
    right: 20px;
    background-color: #66a182;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    border-radius: 5px;
}

.btn-filtrar i {
    font-size: 16px;
}

/* Formulario de búsqueda */
.form-busqueda {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.form-busqueda input {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-busqueda button {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Paginación */
.paginacion {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Estilos para la barra de filtros */
.filtro-tipos {
    margin-bottom: 20px;
    text-align: center;
}

.subtitulo-filtro {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.botones-filtro {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-filtro {
    background-color: transparent;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
}

.btn-filtro:hover {
    color: #66a182;
}

.btn-filtro.active {
    color: #66a182;
    font-weight: bold;
}

.btn-filtro.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #66a182;
    transition: all 0.3s ease;
}

.btn-filtro::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #54846a;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.btn-filtro:hover::after {
    width: 100%;
}

/* Línea divisoria debajo de los filtros */
.linea-divisoria {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Estilos para el contenedor de filtros desplegables */
.filtros-desplegables {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Estilos para el botón de mostrar/ocultar filtros */
.btn-filtrar {
    background-color: #66a182;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.btn-filtrar:hover {
    background-color: #54846a;
}

/* Estilos para el formulario de búsqueda */
.form-busqueda {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.form-busqueda input {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-busqueda button {
    background-color: #66a182;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-busqueda button:hover {
    background-color: #54846a;
}

/* Estilos para el contenedor de opciones */
.opciones-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.694);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Mostrar el contenedor de opciones */
.opciones-container.mostrar {
    display: flex;
    opacity: 1;
}

/* Estilos para el botón de cierre (X) */
.btn-cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.btn-cerrar:hover {
    color: #66a182;
}

/* Efecto hover para la imagen */
.producto:hover .producto-img {
    transform: scale(1.2);
}

/* Asegurar que el contenedor de opciones crezca con la imagen */
.producto-imagen-container:hover .opciones-container {
    transform: scale(1.2);
    transition: transform 1.5s ease;
}


/* Media Queries para Responsividad */
@media screen and (max-width: 1024px) {
    .text-box-cta h1 {
        font-size: 2rem;
    }

    .catalogo {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .text-box-cta h1 {
        font-size: 1.8rem;
    }

    .producto {
        padding: 10px;
    }

    .producto-nombre {
        font-size: 1rem;
    }

    .btn-opciones, 
    .boton-carrito {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .contenedor-catalogo {
        padding: 10px;
    }

    .catalogo {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .producto {
        padding: 10px;
    }

    .producto-img {
        max-width: 100%;
    }

    .form-busqueda {
        flex-direction: column;
    }

    .form-busqueda input {
        width: 100%;
    }

    .form-busqueda button {
        width: 100%;
    }

    .paginacion {
        flex-direction: column;
        align-items: center;
    }
}