/* ============================
   Canastas Familiares y Solidarias Styles
   ============================ */

.canastas-section {
    margin: 40px 0;
    padding: 40px 0;
    position: relative;
}

/* Responsive - Contenedor principal */
@media (max-width: 768px) {
    .canastas-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .canastas-section {
        padding: 15px 12px;
        margin: 15px 0;
    }
}

.canastas-section .h-ecotambo {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.canastas-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    font-weight: 600;
}

.canastas-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

/* Responsive - Títulos */
@media (max-width: 768px) {
    .canastas-section .h-ecotambo {
        font-size: 1.8rem;
    }
    
    .canastas-subtitle {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .canastas-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .canastas-section .h-ecotambo {
        font-size: 1.5rem;
    }
    
    .canastas-subtitle {
        font-size: 0.85rem;
    }
    
    .canastas-description {
        font-size: 0.85rem;
    }
}

/* ============================
   Canasta Box Container
   ============================ */

.canasta-box {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* Responsive - Tarjetas */
@media (max-width: 768px) {
    .canasta-box {
        height: 380px;
        border-radius: 12px;
        margin: 0 auto;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .canasta-box {
        height: 350px;
        border-radius: 10px;
        max-width: 300px;
    }
}

.canasta-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Background Image/Gradient */
.canasta-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
}

/* Dark overlay on gradient */
.canasta-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* Card Content */
.canasta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

/* Icon */
.canasta-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
    animation: canasta-float 3s ease-in-out infinite;
}

@keyframes canasta-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Title */
.canasta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Short Description */
.canasta-description-short {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.95;
    margin: 0;
}

/* Wrapper del botón - Siempre visible */
.canasta-button-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px 30px 20px;
    margin-top: auto;
    transition: all 0.3s ease;
}

/* Botón WhatsApp - Siempre clickeable y visible */
.btn-canasta {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.95);
    color: #25D366;
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.95);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: auto;
    position: relative;
    text-decoration: none;
}

.canasta-box:hover .btn-canasta {
    background-color: white;
    color: #25D366;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-canasta:active {
    transform: scale(0.98);
}

/* Hover Full Information - Overlay */
.canasta-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
    padding: 30px;
    border-radius: 15px;
    pointer-events: none;
}

/* Mostrar hover al pasar el mouse */
.canasta-box:hover .canasta-hover {
    opacity: 1;
    visibility: visible;
}

/* Cuando hay hover, el contenido se desvanece */
.canasta-box:hover .canasta-content {
    opacity: 0;
    visibility: hidden;
}

/* Full Description Container */
.canasta-full-description {
    color: white;
    text-align: center;
    width: 100%;
}

.canasta-full-description p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.canasta-full-description p:first-child {
    font-weight: 600;
    font-size: 1rem;
}

/* Benefits List */
.canasta-benefits {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    color: white;
    width: 100%;
    text-align: left;
}

.canasta-benefits li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.canasta-benefits i {
    color: #4CAF50;
    font-weight: bold;
    width: 24px;
    text-align: center;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* CTA Text */
.canasta-cta {
    font-size: 0.85rem;
    margin-top: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Info at bottom */
.canastas-info {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
}

.canastas-info i {
    margin-right: 10px;
    color: #25D366;
    font-size: 1.1rem;
}

.canastas-info strong {
    color: #25D366;
}

/* ============================
   Sección de Ventas al por Mayor
   ============================ */

.wholesale-section {
    margin: 40px 0;
    padding: 40px 0;
    position: relative;
}

@media (max-width: 768px) {
    .wholesale-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .wholesale-section {
        padding: 15px 12px;
        margin: 15px 0;
    }
}

.wholesale-section .h-ecotambo {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.wholesale-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Responsive - Títulos Mayorista */
@media (max-width: 768px) {
    .wholesale-section .h-ecotambo {
        font-size: 1.8rem;
    }
    
    .wholesale-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .wholesale-section .h-ecotambo {
        font-size: 1.5rem;
    }
    
    .wholesale-subtitle {
        font-size: 0.85rem;
    }
}

/* Link de imagen mayorista */
.wholesale-image-link {
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wholesale-image-link:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    text-decoration: none;
}

.wholesale-image-link img {
    display: block;
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.wholesale-image-link:hover img {
    transform: scale(1.05);
}

/* ============================
   Responsive Design Final
   ============================ */

/* Tablets y móviles grandes */
@media (max-width: 768px) {
    .canastas-section .row {
        margin-left: -7px;
        margin-right: -7px;
    }
    
    .canastas-section .col-lg-4,
    .canastas-section .col-md-6 {
        padding-left: 7px;
        padding-right: 7px;
    }
    
    .canasta-icon {
        font-size: 3rem;
    }
    
    .canasta-title {
        font-size: 1.3rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .canastas-section .col-12 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .canasta-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .canasta-title {
        font-size: 1.1rem;
    }
    
    .canasta-description-short {
        font-size: 0.85rem;
    }
    
    .btn-canasta {
        padding: 10px 24px;
        font-size: 0.8rem;
    }
    
    .canasta-button-wrapper {
        padding: 0 15px 25px 15px;
    }
    
    .canasta-content {
        padding: 30px 15px 15px 15px;
    }
    
    .canasta-hover {
        padding: 20px;
    }
    
    .canasta-full-description p {
        font-size: 0.85rem;
    }
    
    .canasta-benefits li {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}

/* Ultra móviles */
@media (max-width: 360px) {
    .canastas-section .h-ecotambo {
        font-size: 1.3rem;
    }
    
    .canastas-description {
        font-size: 0.8rem;
    }
    
    .canasta-box {
        height: 320px;
    }
    
    .canasta-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .canasta-title {
        font-size: 1rem;
    }
    
    .btn-canasta {
        padding: 8px 20px;
        font-size: 0.75rem;
    }
}

/* ============================
   Accesibilidad
   ============================ */

.canasta-box:focus,
.wholesale-image-link:focus {
    outline: 3px solid #25D366;
    outline-offset: 2px;
}

/* ============================
   Animaciones adicionales
   ============================ */

@media (prefers-reduced-motion: no-preference) {
    .canasta-box {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .canasta-hover {
        transition: all 0.3s ease;
    }
    
    .btn-canasta {
        transition: all 0.3s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    .canasta-box,
    .canasta-hover,
    .btn-canasta,
    .canasta-icon {
        animation: none;
        transition: none;
    }
}
