/* Divider personalizado */
.divider-custom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.divider-custom-line {
    width: 100%;
    max-width: 7rem;
    height: 0.25rem;
    background: linear-gradient(90deg, transparent, var(--bs-primary), transparent);
    border-radius: 1rem;
    margin: 0 1rem;
}

.divider-custom-icon {
    color: var(--bs-primary);
    font-size: 1.5rem;
}

/* Tarjetas de productos */
.product-card {
    transition: all 0.3s ease;
    background: white;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    transition: all 0.5s ease;
    height: 250px;
    object-fit: cover;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay .btn {
    transform: translateY(0);
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.btn-hover-scale {
    transition: all 0.3s ease;
}

.btn-hover-scale:hover {
    transform: scale(1.05);
}

/* Tarjetas de características */
.feature-card {
    background: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon-wrapper {
    position: relative;
}

.feature-icon-bg {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(13,110,253,0.1) 0%, rgba(13,110,253,0.2) 100%);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-bg {
    transform: rotate(360deg);
}

.feature-text ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-text ul li i {
    position: absolute;
    left: 0;
    top: 0.25rem;
}

/* Fondos y gradientes */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Utilidades */
.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.transition-300 {
    transition: all 0.3s ease;
}

/* Efectos de hover */
.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Partners Section */
.partners-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.partner-item {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.partner-logo {
    width: 180px;
    height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partners-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.partners-carousel .owl-prev,
.partners-carousel .owl-next {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--bs-primary) !important;
    border-radius: 50% !important;
    color: white !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partners-carousel .owl-prev {
    left: -20px;
}

.partners-carousel .owl-next {
    right: -20px;
}

.partners-carousel .owl-prev:hover,
.partners-carousel .owl-next:hover {
    background: var(--bs-primary-dark) !important;
    transform: scale(1.1);
}

/* Banner Section */
.banner-section {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    position: relative;
    overflow: hidden;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.banner-content {
    position: relative;
    z-index: 1;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.banner-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
}

.stat-item {
    flex: 1;
    min-width: 150px;
}

.banner-image-wrapper {
    position: relative;
    z-index: 1;
}

.banner-image-container {
    position: relative;
    padding: 20px;
}

.banner-image {
    border-radius: 20px;
    transition: all 0.5s ease;
}

.banner-image:hover {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: 40px;
    left: 0;
    background: var(--bs-primary);
    color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

.badge-content {
    text-align: center;
}

.badge-content .years {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.badge-content .text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.banner-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(var(--bs-primary) 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.1;
}

/* Products Section */
.products-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: #495057;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
}

.product-card-modern {
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 75%; /* Aspect ratio 4:3 */
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.product-card-modern:hover .product-image {
    transform: scale(1.1);
}

.overlay-buttons {
    display: flex;
    gap: 1rem;
}

.btn-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card-modern:hover .btn-circle {
    transform: translateY(0);
}

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
}

.product-price .currency {
    font-size: 1rem;
    font-weight: 500;
    margin-right: 0.2rem;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Testimonial Section */
.testimonial-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.testimonial-content {
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -30px;
    left: -10px;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.testimonial-text {
    padding: 2rem 0;
    font-style: italic;
}

.testimonial-text h4 {
    color: var(--bs-primary);
    font-weight: 600;
}

.testimonial-text p {
    color: #6c757d;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid var(--bs-primary);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    color: #2c3e50;
    font-weight: 600;
}

.rating {
    color: #ffc107;
}

/* Bestseller Section */
.bestseller-section {
    background: #E7570D;
    position: relative;
    overflow: hidden;
}

.bestseller-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.3'%3E%3Cpath d='M0 0h4v4H0V0zm10 0h4v4h-4V0zm10 0h4v4h-4V0zm10 0h4v4h-4V0zm10 0h4v4h-4V0zM0 10h4v4H0v-4zm10 0h4v4h-4v-4zm10 0h4v4h-4v-4zm10 0h4v4h-4v-4zm10 0h4v4h-4v-4zM0 20h4v4H0v-4zm10 0h4v4h-4v-4zm10 0h4v4h-4v-4zm10 0h4v4h-4v-4zm10 0h4v4h-4v-4zM0 30h4v4H0v-4zm10 0h4v4h-4v-4zm10 0h4v4h-4v-4zm10 0h4v4h-4v-4zm10 0h4v4h-4v-4z'/%3E%3C/g%3E%3C/svg%3E");
}

.bestseller-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.bestseller-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.bestseller-rank {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--bs-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    z-index: 1;
}

.bestseller-rank .rank-number {
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

.bestseller-rank .rank-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

.bestseller-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.bestseller-image {
    width: 150px;
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.bestseller-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.bestseller-card:hover .bestseller-image img {
    transform: scale(1.1);
}

.bestseller-details {
    flex-grow: 1;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: var(--bs-primary);
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
}

.rating-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background-color: var(--bs-primary);
    color: white;
    transform: scale(1.1);
}

/* Estilos para la sección de productos destacados */
.owl-stage-outer-custom {
    position: relative;
    display: block;
    padding: 30px 0;
}

.vegetable-carousel {
    position: relative;
    margin: -132px 0;
    margin-bottom: 24px;
}

.vegetable-carousel .owl-stage-outer {
    overflow: visible;
    padding: 30px 0;
}

.vegetable-carousel .owl-item {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vegetable-carousel .owl-item.active {
    opacity: 1;
}

.vesitable-item {
    margin: 15px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.vesitable-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.vesitable-img {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Proporción 4:3 */
    overflow: hidden;
}

.vesitable-img .image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vesitable-img .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vesitable-item:hover .product-image {
    transform: scale(1.1);
}

/* Estilos responsive */
@media (max-width: 768px) {
    .product-image {
        height: 200px;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .partner-logo {
        width: 140px;
        height: 80px;
    }
    
    .partners-carousel .owl-nav {
        display: none;
    }

    .banner-stats {
        padding: 1rem;
    }

    .stat-item {
        min-width: 120px;
    }

    .experience-badge {
        display: none;
    }

    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .product-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .product-price {
        text-align: center;
    }

    .bestseller-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .bestseller-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .rating-container {
        justify-content: center;
    }

    .action-buttons {
        justify-content: center;
    }

    .bestseller-rank {
        left: 50%;
        transform: translateX(-50%);
    }

    .vesitable-img {
        padding-top: 100%; /* Proporción 1:1 en móviles */
    }
}
