/* ═══════════════════════════════════════════════════════════════
   MOTEROS SPORTS LINE - INDEX.CSS
   Estilos específicos para la página principal
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease, fadeOut 0.4s ease 2.6s forwards;
    max-width: 320px;
}

.toast.promo {
    background: linear-gradient(135deg, #ff6b00, #ff8533);
}

.toast-icon {
    font-size: 1.4rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.toast-message {
    font-size: 0.8rem;
    opacity: 0.9;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(50px); }
}

/* ═══════════════════════════════════════════════════════════════
   CARRITO FLOTANTE
   ═══════════════════════════════════════════════════════════════ */

.cart-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
}

.cart-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 0, 0.5);
}

.cart-floating-icon {
    font-size: 1.8rem;
}

.cart-floating-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    border: 3px solid white;
}

.cart-floating-count.bump {
    animation: cartBump 0.4s ease;
}

@keyframes cartBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ═══════════════════════════════════════════════════════════════
   MODAL CARRITO
   ═══════════════════════════════════════════════════════════════ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cart-modal {
    max-width: 550px;
    width: 95%;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
    max-height: 45vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

/* ═══════════════════════════════════════════════════════════════
   ITEMS DEL CARRITO
   ═══════════════════════════════════════════════════════════════ */

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    background: #f5f5f5;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.cart-item-brand {
    color: #666;
    font-size: 0.8rem;
}

.cart-item-promo {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 4px;
}

.cart-item-prices {
    text-align: right;
}

.cart-item-original {
    color: #999;
    text-decoration: line-through;
    font-size: 0.8rem;
}

.cart-item-final {
    color: #ff6b00;
    font-weight: 800;
    font-size: 1rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.cart-item-qty button:hover {
    border-color: #ff6b00;
    color: #ff6b00;
}

.cart-item-qty span {
    width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-item-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: #dc2626;
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   RESUMEN Y ACCIONES DEL CARRITO
   ═══════════════════════════════════════════════════════════════ */

.cart-summary {
    margin-bottom: 1rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95rem;
}

.cart-summary-row.discount {
    color: #10b981;
    font-weight: 600;
}

.cart-summary-row.total {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a2e;
    border-top: 2px solid #ddd;
    padding-top: 12px;
    margin-top: 8px;
}

.cart-actions {
    display: flex;
    gap: 1rem;
}

.btn-whatsapp-cart {
    flex: 1;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-whatsapp-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-vaciar {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-vaciar:hover {
    background: #dc2626;
    color: white;
}

.cart-empty {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.cart-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   BADGE DESTACADO
   ═══════════════════════════════════════════════════════════════ */

.badge-destacado {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
    z-index: 5;
}

/* ═══════════════════════════════════════════════════════════════
   BOTÓN AGREGAR RÁPIDO
   ═══════════════════════════════════════════════════════════════ */

.btn-agregar-rapido {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-agregar-rapido:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   CARRUSEL DE PROMOCIONES
   ═══════════════════════════════════════════════════════════════ */

.promo-carousel-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem 0;
    overflow: hidden;
}

.promo-carousel-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.promo-carousel-header h2 {
    color: #ff6b00;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.promo-carousel-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

.promo-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.promo-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.promo-card {
    min-width: 300px;
    max-width: 300px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    position: relative;
    animation: fadeInUp 0.6s ease forwards;
}

.promo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 107, 0, 0.3);
}

.promo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.promo-card-image {
    height: 180px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    overflow: hidden;
    position: relative;
}

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

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

.promo-card-image::before {
    content: '🔥 OFERTA';
    position: absolute;
    top: 15px;
    left: -35px;
    background: #dc3545;
    color: white;
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 700;
    transform: rotate(-45deg);
    z-index: 5;
}

.promo-card-info {
    padding: 1.25rem;
}

.promo-card-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-card-info .promo-name {
    color: #ff6b00;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.promo-card-info .promo-name::before {
    content: '🏷️ ';
}

.promo-prices {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.precio-original {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.precio-promo {
    color: #ff6b00;
    font-size: 1.3rem;
    font-weight: 800;
}

.promo-vigencia {
    font-size: 0.75rem;
    color: #666;
    padding: 0.4rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 0.75rem;
}

.promo-vigencia strong {
    color: #dc3545;
}

.promo-btn-agregar {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.promo-btn-agregar:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

/* Navegación del carrusel */
.promo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.promo-nav-btn:hover {
    background: linear-gradient(135deg, #e55d00, #ff6b00);
    transform: translateY(-50%) scale(1.1);
}

.promo-nav-btn.prev {
    left: 10px;
}

.promo-nav-btn.next {
    right: 10px;
}

/* Indicadores */
.promo-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.promo-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-indicator.active {
    background: #ff6b00;
    transform: scale(1.2);
}

.promo-empty {
    text-align: center;
    padding: 3rem;
    color: rgba(255,255,255,0.7);
    width: 100%;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .promo-carousel-container {
        padding: 0 20px;
    }

    .promo-card {
        min-width: 260px;
        max-width: 260px;
    }

    .promo-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .cart-floating {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .modal-content {
        margin: 10px;
        max-width: 100% !important;
    }

    .cart-actions {
        flex-direction: column;
    }

    .toast-container {
        bottom: 80px;
        right: 15px;
        left: 15px;
    }

    .toast {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MÉTODOS DE PAGO - HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.metodos-pago-hero {
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.metodos-pago-titulo {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.metodos-pago-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.metodos-pago-logos img {
    height: 45px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 6px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.metodos-pago-logos img:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

/* Responsive - Métodos de Pago */
@media (max-width: 768px) {
    .metodos-pago-hero {
        padding: 1rem 1.5rem;
        margin-top: 2rem;
    }

    .metodos-pago-titulo {
        font-size: 0.95rem;
    }

    .metodos-pago-logos {
        gap: 1rem;
    }

    .metodos-pago-logos img {
        height: 35px;
        max-width: 70px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .metodos-pago-hero {
        padding: 0.75rem 1rem;
    }

    .metodos-pago-logos img {
        height: 30px;
        max-width: 60px;
    }
}