/* Estilo base */
.welcome-section {
    text-align: center;
    position: relative;
    max-width: 600px;
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-section h1 {
    font-size: 2rem;
    color: #002f6c;
}

.welcome-section2 {
    text-align: center;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-section2 h3 {
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #000000;
    margin-bottom: 50px;
}

.Productos {
    background-color: #ffcc00;
    color: #002f6c;
    padding: 10px;
    height: 20px;
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    align-items: center;
}

.yellow-divider {
    width: 100%;
    height: 20px;
    background-color: #FFD700;
    margin: 20px 0;
}

.filter-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 20px auto;
    max-width: 450px;
    padding: 10px;
    border-radius: 8px;
    position: relative;
    left: -500px;  /* Ajustado para mover el filtro más a la izquierda */
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-container p {
    margin: 0;
    font-size: 1rem;
    color: #000000;
}

.filter-container select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    width: 100%;
}

.filter-container select:hover {
    border-color: #888;
}

/* Welcome Section */
.welcome-section2 {
    color: #000000;
    padding: -5px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

/* Yellow Divider */
.yellow-divider {
    background-color: #ffd700;
    height: 40px;
    width: 100%;
    margin: 20px 0;
}

/* Info Section */
.info-section h2 {
    color: #002f6c;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.info-section h3 {
    color: #333;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.info-section ul {
    list-style-type: disc;
    margin-left: 20px;
    color: #444;
    font-size: 16px;
}

.info-section ul li {
    margin-bottom: 8px;
}

.info-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 10px;
    text-align: justify;
}

/* Productos */
.products-container {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 60px;
    padding: 40px;
    position: relative;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 5px solid #ffcc00;
    max-width: 100%;
    height: 100%;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.product-item img {
    width: 100%;
    height: 100%;
    border-radius: 0px;
    margin-bottom: 10px;
}

.product-details {
    text-align: center;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* Paginación */
.pagination-section {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.pagination-item a {
    padding: 8px 15px;
    font-size: 1rem;
    color: #002f6c;
    text-decoration: none;
    background-color: #f4f4f4;
    border: 2px solid #ffcc00;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination-item a:hover {
    background-color: #002f6c;
    color: #fff;
    border: 2px solid #002f6c;
}

.pagination-item a.active {
    background-color: #ffcc00;
    color: #002f6c;
}

/* Estilo para el botón de "Aplicar Filtro" */
.apply-filter-btn {
    position: relative;
    background-color: #ffcc00;
    color: #002f6c;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.apply-filter-btn:hover {
    background-color: #002f6c;
    color: white;
}

/* Search Results */
.search-results-section p {
    margin: 0;
    font-size: 16px;
    color: #333;
    margin-bottom: -25px;
}

.reset-button {
    display: inline-block;
    top: 40px;
    position: relative;
    left: 0px;
    padding: 8px 12px;
    background-color: #d9534f;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

.reset-button:hover {
    background-color: #c9302c;
}

/* Deseados */
.add-to-wishlist-btn {
    color: #ff6b6b;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 45px;
    display: inline-flex;
    align-items: center;
}

.add-to-wishlist-btn i {
    font-size: 1.2em;
}

.add-to-wishlist-btn:hover {
    background-color: #ff4d4d;
    color: white;
}

/* Estilo para la sección de filtro */
.filter-container {
    display: flex;
    gap: 10px;
    font-weight: bold;
}

#categoriaFiltro {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .filter-section {
        position: relative;
        left: 0px; /* Vuelve al centro en pantallas más pequeñas */
        max-width: 100%;
    }

    .filter-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .filter-container select {
        width: 80%;
    }

    .Productos {
        font-size: 11px; /* Tamaño de letra reducido */
    }

    .products-container {
        gap: 30px;
        padding: 20px;
    }

    .product-item {
        max-width: 100%;
        height: auto;
    }

    .product-card:hover {
        transform: scale(1.03);
    }

    .pagination-container {
        gap: 5px;
    }

    .pagination-item a {
        font-size: 0.85rem; /* Tamaño de letra reducido */
    }

    .apply-filter-btn {
        width: 100%;
        left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .filter-section {
        position: relative;
        left: 0px; /* Asegura que en pantallas pequeñas el filtro esté centrado */
    }

    .filter-container select {
        font-size: 0.85rem; /* Tamaño de letra reducido */
    }

    .Productos {
        font-size: 9px; /* Tamaño de letra reducido */
    }

    .products-container {
        padding: 10px;
        gap: 20px;
    }

    .product-item {
        max-width: 100%;
    }

    .pagination-item a {
        font-size: 0.8rem; /* Tamaño de letra reducido */
    }
}

/* Reducir tamaño de lista en pantallas pequeñas */
@media (max-width: 768px) {
    ul {
        font-size: 14px; /* Tamaño de letra reducido */
    }

    ul li {
        margin-bottom: 8px; /* Espaciado entre elementos reducido */
    }

    ul strong {
        font-size: 1rem; /* Tamaño de letra de los textos en negrita reducido */
    }
}

@media (max-width: 480px) {
    ul {
        font-size: 12px; /* Tamaño de letra más pequeño */
    }

    ul li {
        margin-bottom: 6px; /* Espaciado entre elementos reducido */
    }

    ul strong {
        font-size: 0.95rem; /* Tamaño de letra más pequeño para los textos en negrita */
    }
}
