/* Chocolate Landing Page - Estilos CSS */

/* Variables CSS */
:root {
    --primary-color: rgba(241, 207, 53, 1);
    --secondary-color: #D2691E;
    --accent-color: #FFD700;
    --text-color: #333;
    --light-bg: #FFF8DC;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Contenedor principal */
.chocolate-landing-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Títulos de sección */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Contenedor general */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SECCIÓN: SLIDE DE PROMOCIONES ===== */
.chocolate-slide-promociones {
    background: linear-gradient(135deg, var(--light-bg), #FFF5E6);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
}

/* Contenedor del slider */
.productos-slider {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
}

/* Slides individuales */
.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-item.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 900px;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slide-image {
    flex: 0 0 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-bg), #FFF5E6);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    border: 3px dashed var(--primary-color);
    transition: var(--transition);
}

.slide-content:hover .image-placeholder {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

/* Imagen del producto */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.slide-content:hover .product-image {
    transform: scale(1.05);
}

/* Asegurar que el contenedor de imagen funcione */
.slide-image {
    flex: 0 0 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--border-radius);
}

/* Información del producto */
.slide-info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slide-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.slide-info p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-height: 4.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Características del producto */
.slide-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    max-height: 3em;
    overflow: hidden;
}

.slide-features span {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Precios */
.slide-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 1.2rem;
}

.price-new {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.discount {
    background: #FF4444;
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Botón */
.slide-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    color: var(--white);
    text-decoration: none;
}

/* Mensaje cuando no hay productos */
.no-products-message {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.no-products-message p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.no-products-message p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--primary-color);
}



/* Controles del slider */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.control-btn {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #DDD;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===== SECCIÓN: SUCURSALES ===== */
.chocolate-sucursales {
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.sucursales-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.sucursal-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.sucursal-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sucursal-image {
    margin-bottom: 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.sucursal-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.sucursal-item:hover .sucursal-img {
    transform: scale(1.05);
}

.sucursal-item h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.sucursal-info p {
    margin-bottom: 0.8rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.5;
}

.sucursal-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== SECCIÓN: TESTIMONIOS ===== */
.chocolate-testimonios {
    background: linear-gradient(135deg, #F8F9FA, #E9ECEF);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
}

.testimonio-video {
    margin-bottom: 3rem;
}

.video-container {
    max-width: 600px;
    margin: 0 auto;
}

.video-placeholder {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px dashed var(--primary-color);
}

.video-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.video-placeholder h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.play-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonio-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonio-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonio-avatar {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.testimonio-content p {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonio-autor {
    text-align: center;
}

.testimonio-autor strong {
    color: var(--primary-color);
    display: block;
    font-size: 1.1rem;
}

.testimonio-autor span {
    color: #888;
    font-size: 0.9rem;
}

/* ===== SECCIÓN: LOGOS DE PROVEEDORES ===== */
.chocolate-logos-proveedores {
    padding: 4rem 0;
    background: var(--white);
    border-radius: var(--border-radius);
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.logo-item {
    text-align: center;
    transition: var(--transition);
}

.logo-item:hover {
    transform: scale(1.05);
}

.logo-container {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: var(--transition);
    width: 300px;
    flex-shrink: 0;
}

.logo-container:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
}

.logo-image {
    margin-bottom: 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
    padding: 1.5rem;
    border: 1px solid #E0E0E0;
}

.logo-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
}

.logo-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.logo-item p {
    color: #666;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .chocolate-landing-container {
        padding: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .sucursales-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonios-grid {
        grid-template-columns: 1fr;
    }
    
    .logos-grid {
        gap: 1.5rem;
    }
    
    .logo-container {
        width: 250px;
    }
    
    .sucursal-item {
        padding: 2rem;
    }
    
    .testimonio-item {
        padding: 1.5rem;
    }
    
    .sucursal-img {
        height: 220px;
    }
    
    .video-placeholder {
        padding: 2rem;
    }
    
    .video-icon {
        font-size: 3rem;
    }
    
    /* Responsive para el slider */
    .slider-container {
        height: auto;
        min-height: 600px;
    }
    
    .slide-content {
        flex-direction: column;
        height: auto;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .slide-image {
        flex: 0 0 200px;
        height: 200px;
    }
    
    .image-placeholder {
        font-size: 4rem;
    }
    
    .slide-info h3 {
        font-size: 1.5rem;
        text-align: center;
        line-height: 1.3;
    }
    
    .slide-info p {
        text-align: center;
        max-height: none;
        -webkit-line-clamp: unset;
    }
    
    .slide-features {
        justify-content: center;
        max-height: none;
    }
    
    .slide-price {
        justify-content: center;
    }
    
    .product-image {
        object-fit: contain;
    }
    
    .slider-controls {
        gap: 1rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .promocion-item,
    .sucursal-item,
    .testimonio-item {
        padding: 1rem;
    }
    
    .logos-grid {
        gap: 1rem;
    }
    
    .logo-container {
        width: 280px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chocolate-slide-promociones,
.chocolate-sucursales,
.chocolate-testimonios,
.chocolate-logos-proveedores {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== EFECTOS HOVER MEJORADOS ===== */
.sucursal-item,
.testimonio-item,
.logo-container,
.slide-content {
    position: relative;
    overflow: hidden;
}

.sucursal-item::before,
.testimonio-item::before,
.slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s;
}

.sucursal-item:hover::before,
.testimonio-item:hover::before,
.slide-content:hover::before {
    left: 100%;
}
