/* assets/css/style.css - Estilos globales */

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
}

/* Imágenes */
.main-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.thumbs img:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Botones de selección */
.options button {
    border-radius: 25px;
    padding: 8px 20px;
    transition: all 0.3s;
}

.options button.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
    transform: scale(1.05);
}

/* Botón WhatsApp */
.whatsapp-button {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    width: 100%;
    transition: all 0.3s;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,211,102,0.3);
    color: white;
}

/* Badge de envío */
.shipping-badge {
    background: #28a745;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    margin-left: 15px;
}

/* Confirmación */
#textofinal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: all 0.3s;
}

.whatsapp-float img {
    width: 60px;
    height: 60px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.whatsapp-float:hover img {
    transform: scale(1.15);
}

/* Responsive */
@media (max-width: 768px) {
    .thumbs img {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .shipping-badge {
        font-size: 12px;
        margin-left: 10px;
    }
}
/* ============================================
   MODAL EMERGENTE - RESÚMEN DE PEDIDO
   ============================================ */

.modal-resumen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.4s ease;
}

@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 20px;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header .btn-cerrar {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.modal-body { padding: 20px; }

.resumen-producto {
    display: flex;
    gap: 15px;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
}

.resumen-imagen { width: 100px; height: 100px; object-fit: cover; border-radius: 12px; }
.resumen-detalles { flex: 1; }
.resumen-precio { font-size: 1.3rem; font-weight: bold; color: #28a745; }
.detalle-pares { background: #f0f0f0; border-radius: 12px; padding: 12px; margin-bottom: 15px; }
.detalle-par { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #ddd; }
.total-line { display: flex; justify-content: space-between; padding: 12px 0; border-top: 2px solid #dee2e6; font-weight: bold; }
.envio-gratis { color: #28a745; font-size: 0.85rem; text-align: right; }

.modal-form .form-group { margin-bottom: 12px; }
.modal-form input, .modal-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
}

.btn-enviar-modal {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}