/* Estilos para las Mejoras del Sitio Web */

/* ===== NAVEGACIÓN MEJORADA ===== */

/* Dropdown en navegación */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link i {
    font-size: 0.8rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: var(--light-green);
    color: var(--text-dark);
    padding-left: 1.5rem;
}

/* ===== FILTROS AVANZADOS ===== */

.advanced-filters {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-filters,
.origin-filters,
.benefit-filters,
.price-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-btn,
.origin-btn,
.benefit-btn,
.price-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #e0e0e0;
    background: white;
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.origin-btn:hover,
.benefit-btn:hover,
.price-btn:hover {
    border-color: var(--secondary-green);
    background: var(--secondary-green);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active,
.origin-btn.active,
.benefit-btn.active,
.price-btn.active {
    border-color: var(--secondary-green);
    background: var(--secondary-green);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

/* ===== SECCIÓN BLOG ===== */

.blog-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.blog-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    font-style: italic;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-post.featured {
    grid-column: span 2;
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-post.featured .post-image {
    height: 300px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(74, 124, 89, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    font-size: 1.3rem;
    line-height: 1.3;
}

.blog-post.featured .post-content h3 {
    font-size: 1.6rem;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more {
    color: var(--secondary-green);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-green);
    gap: 0.8rem;
}

.blog-actions {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-load-more,
.btn-subscribe {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-load-more {
    background: var(--secondary-green);
    color: white;
}

.btn-load-more:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

.btn-subscribe {
    background: var(--warm-orange);
    color: white;
}

.btn-subscribe:hover {
    background: var(--sunset-orange);
    transform: translateY(-2px);
}

/* ===== PRODUCTOS MEJORADOS ===== */

.product-card.enhanced {
    position: relative;
    transition: all 0.3s ease;
}

.product-card.enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-certifications {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cert-badge {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem;
    border-radius: 50%;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.product-actions-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-actions-overlay {
    opacity: 1;
}

.quick-view-btn,
.favorite-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--secondary-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.quick-view-btn:hover,
.favorite-btn:hover {
    background: var(--secondary-green);
    color: white;
    transform: scale(1.1);
}

.product-info.enhanced {
    padding: 1.5rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-origin {
    font-size: 0.8rem;
    color: var(--warm-orange);
    font-weight: 600;
}

.product-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 1rem 0;
}

.benefit {
    background: var(--natural-beige);
    color: var(--text-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 1rem 0;
}

.product-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--secondary-green);
}

.product-unit {
    font-size: 0.8rem;
    color: #666;
}

.product-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.add-to-cart.primary {
    flex: 1;
    padding: 0.8rem 1rem;
    background: var(--secondary-green);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart.primary:hover {
    background: var(--primary-green);
    transform: translateY(-1px);
}

.contact-whatsapp {
    width: 45px;
    height: 45px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-whatsapp:hover {
    background: #1da851;
    transform: scale(1.05);
}

/* ===== FICHA TÉCNICA ===== */

.ficha-modal {
    z-index: 2000;
}

.ficha-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    position: relative;
}

.close-ficha {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-ficha:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.ficha-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    color: white;
}

.ficha-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.ficha-title h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
}

.ficha-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.ficha-price {
    font-size: 2rem;
    font-weight: bold;
}

.ficha-price span {
    font-size: 1rem;
    opacity: 0.8;
}

.ficha-body {
    padding: 2rem;
    background: white;
}

.ficha-section {
    margin-bottom: 2rem;
}

.ficha-section:last-child {
    margin-bottom: 0;
}

.ficha-section h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-green);
}

.benefit-item i {
    color: var(--secondary-green);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.origin-info {
    display: grid;
    gap: 1rem;
}

.origin-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.origin-item i {
    color: var(--warm-orange);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.origin-item strong {
    color: var(--primary-green);
}

.usage-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    line-height: 1.6;
}

.ficha-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.btn-add-cart-ficha,
.btn-whatsapp-ficha {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart-ficha {
    background: var(--secondary-green);
    color: white;
}

.btn-add-cart-ficha:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

.btn-whatsapp-ficha {
    background: #25d366;
    color: white;
}

.btn-whatsapp-ficha:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 0;
        margin-top: 0.5rem;
    }

    .advanced-filters {
        padding: 1rem;
    }

    .filter-section {
        margin-bottom: 1.5rem;
    }

    .category-filters,
    .origin-filters,
    .benefit-filters,
    .price-filters {
        gap: 0.5rem;
    }

    .filter-btn,
    .origin-btn,
    .benefit-btn,
    .price-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-post.featured {
        grid-column: span 1;
    }

    .blog-actions {
        flex-direction: column;
        align-items: center;
    }

    .ficha-header {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .ficha-image {
        height: 150px;
        margin: 0 auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .ficha-actions {
        flex-direction: column;
    }

    .product-buttons {
        flex-direction: column;
    }

    .contact-whatsapp {
        width: 100%;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .ficha-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .ficha-header,
    .ficha-body {
        padding: 1rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .advanced-filters {
        margin-bottom: 2rem;
    }

    .filter-section h4 {
        font-size: 1rem;
    }
}