/* 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;
    }
}

/* ============================================
   BOTONES DE COLOR EN 2 COLUMNAS
   ============================================ */

/* Contenedor de colores - FORZAR 2 COLUMNAS */
.mb-4:has(.options) .options {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Botones de color - ocupan todo el ancho */
.mb-4:has(.options) .options button {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 12px 15px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid #e0e0e0 !important;
    transition: all 0.3s ease !important;
}

/* Botón de color seleccionado */
.mb-4:has(.options) .options button.selected {
    background: linear-gradient(135deg, #000000 0%, #434343 100%) !important;
    color: white !important;
    border-color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Checkmark para botón seleccionado */
.mb-4:has(.options) .options button.selected::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #00ff88;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.4);
}

/* Hover en botones de color */
.mb-4:has(.options) .options button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
    border-color: #1a1a1a !important;
}

/* Color preview */
.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ============================================
   BOTONES DE TALLA - FILA FLEXIBLE
   ============================================ */

/* Contenedor de tallas - mantener en fila */
.mb-4:has(#talla) .options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
}

/* Botones de talla */
.mb-4:has(#talla) .options button {
    width: auto !important;
    min-width: 70px !important;
    padding: 10px 18px !important;
    border-radius: 25px !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .mb-4:has(.options) .options {
        gap: 10px !important;
    }
    
    .mb-4:has(.options) .options button {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    .mb-4:has(#talla) .options button {
        min-width: 60px !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .mb-4:has(.options) .options {
        gap: 8px !important;
    }
    
    .mb-4:has(.options) .options button {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    
    .mb-4:has(#talla) .options button {
        min-width: 55px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .color-preview {
        width: 20px;
        height: 20px;
    }
}