/**
 * BRANDS & PROMOTIONS STYLES
 * Estilos para sección de marcas, modal promocional y botón WhatsApp
 */

/* ===== BRANDS SECTION ===== */
.brands-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    position: relative;
}

.brands-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.brands-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.brands-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.brands-slider {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    position: relative;
}

.brands-slider::before,
.brands-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.brands-slider::before {
    left: 0;
    background: linear-gradient(90deg, #f8f9fa, transparent);
}

.brands-slider::after {
    right: 0;
    background: linear-gradient(270deg, #e9ecef, transparent);
}

.brands-track {
    display: flex;
    gap: 40px;
    animation: scrollBrands 30s linear infinite;
    width: fit-content;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    flex: 0 0 auto;
    width: 220px;
    height: 180px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.brand-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.brand-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.2);
}

.brand-item:hover::before {
    transform: scaleX(1);
}

.brand-item i {
    transition: all 0.4s ease;
}

.brand-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.brand-item h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 700;
    text-align: center;
    margin: 0;
    transition: color 0.3s ease;
}

.brand-item:hover h4 {
    color: var(--primary-color);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 10003;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float .whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: var(--dark-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-float .whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--dark-color);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 
                    0 0 0 15px rgba(37, 211, 102, 0.1),
                    0 0 0 30px rgba(37, 211, 102, 0.05);
    }
}

/* ===== QUOTE FLOATING BUTTON ===== */
.quote-float {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff5722 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    z-index: 10003;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
    animation: quotePulse 2.5s infinite;
}

.quote-float:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.6);
    animation: none;
}

.quote-float .quote-tooltip {
    position: absolute;
    right: 75px;
    background: var(--dark-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quote-float .quote-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--dark-color);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* ===== COMPARE FLOATING BUTTON ===== */
.compare-float {
    position: fixed;
    bottom: 190px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    z-index: 10003;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
    animation: comparePulse 2.5s infinite;
}

.compare-float:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
    animation: none;
}

.compare-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.compare-float .compare-tooltip {
    position: absolute;
    right: 75px;
    background: var(--dark-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.compare-float .compare-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--dark-color);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.compare-float:hover .compare-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes comparePulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6), 
                    0 0 0 15px rgba(102, 126, 234, 0.1),
                    0 0 0 30px rgba(102, 126, 234, 0.05);
    }
}

.quote-float:hover .quote-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes quotePulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6), 
                    0 0 0 15px rgba(255, 107, 53, 0.1),
                    0 0 0 30px rgba(255, 107, 53, 0.05);
    }
}

/* ===== PROMOTION MODAL ===== */
.promo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.promo-modal.active {
    opacity: 1;
    visibility: visible;
}

.promo-modal-content {
    background: var(--white);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-modal.active .promo-modal-content {
    transform: scale(1);
}

.promo-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.promo-close:hover {
    background: #ff5722;
    transform: rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.promo-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15), transparent);
    border-radius: 50%;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.promo-banner h2 {
    color: var(--white);
    font-size: 2rem;
    margin: 0 0 10px 0;
    text-align: center;
    font-weight: 300;
}

.promo-banner h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin: 0 0 30px 0;
    text-align: center;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-product {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.promo-image {
    text-align: center;
    margin-bottom: 20px;
}

.promo-product h4 {
    color: var(--white);
    font-size: 1.5rem;
    text-align: center;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.promo-colors {
    text-align: center;
}

.color-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.color-options {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.size-options {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.size-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.size-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.promo-discount {
    text-align: center;
    margin-bottom: 30px;
}

.discount-amount {
    font-size: 4rem;
    font-weight: 900;
    color: #ffc107;
    text-shadow: 0 4px 20px rgba(255, 193, 7, 0.5);
    line-height: 1;
    margin-bottom: 15px;
}

.promo-code {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.promo-code span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.promo-code strong {
    color: #ffc107;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    display: block;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
}

.promo-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-style: italic;
    margin: 10px 0 0 0;
}

.promo-cta {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.promo-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .brands-section {
        padding: 60px 0;
    }

    .brands-section .section-title {
        font-size: 2rem;
    }

    .brand-item {
        width: 180px;
        height: 150px;
        padding: 20px;
    }

    .brand-item i {
        font-size: 2.5rem !important;
    }

    .brand-item h4 {
        font-size: 0.95rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float .whatsapp-tooltip {
        display: none;
    }

    .quote-float {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 90px;
        right: 20px;
    }

    .quote-float .quote-tooltip {
        display: none;
    }

    .compare-float {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 160px;
        right: 20px;
    }

    .compare-float .compare-tooltip {
        display: none;
    }

    .compare-count-badge {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .promo-modal-content {
        max-width: 95%;
    }

    .promo-banner {
        padding: 40px 25px;
    }

    .promo-banner h2 {
        font-size: 1.5rem;
    }

    .promo-banner h3 {
        font-size: 1.8rem;
    }

    .promo-product h4 {
        font-size: 1.2rem;
    }

    .discount-amount {
        font-size: 3rem;
    }

    .promo-code strong {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .brands-track {
        gap: 20px;
    }

    .brand-item {
        width: 150px;
        height: 130px;
    }

    .promo-product {
        padding: 20px;
    }

    .color-dot {
        width: 25px;
        height: 25px;
    }

    .size-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
}
