/* public/assets/css/style.css - Estilos globales */

/* ============================================
   RESET Y VARIABLES
   ============================================ */
:root {
    --primary-color: #000000;
    --secondary-color: #FFD700;
    --success-color: #10b981;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: linear-gradient(90deg, #000000 0%, #434343 100%);
    color: #FFD700;
    text-align: center;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

header i {
    margin-right: 8px;
}

/* ============================================
   IMÁGENES
   ============================================ */
.main-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 20px;
    background: white;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
    background: white;
}

.thumbs img:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #000000;
    box-shadow: var(--shadow-md);
}

/* ============================================
   TÍTULOS Y PRECIOS
   ============================================ */
h1 {
    font-size: 42px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
}

@media (max-width: 480px) {
    h1 { font-size: 26px; }
}

.price {
    font-size: 36px;
    font-weight: 900;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .price { font-size: 28px; }
}

@media (max-width: 480px) {
    .price { font-size: 24px; flex-direction: column; gap: 10px; }
}

/* ============================================
   BADGES
   ============================================ */
.shipping-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.6); }
}

/* ============================================
   CARD Y FORMULARIOS
   ============================================ */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.form-control, .input-group-text {
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
}

.form-control:focus {
    transform: translateY(-2px);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group-text {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-right: none;
}

/* ============================================
   BOTONES DE OPCIONES (COLORES Y TALLAS)
   ============================================ */

/* Contenedor de colores - 2 COLUMNAS en desktop, 1 en móvil */
#colorOptions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Botones de color */
#colorOptions button {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 12px 15px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid #e0e0e0 !important;
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
}

#colorOptions button.selected {
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
    color: white !important;
    border-color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

#colorOptions 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);
}

#colorOptions button:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: #1a1a1a !important;
}

/* Contenedor de tallas - fila flexible */
#tallaOptions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
}

/* Botones de talla */
#tallaOptions button {
    width: auto !important;
    min-width: 70px !important;
    padding: 10px 18px !important;
    border-radius: 25px !important;
    background: linear-gradient(135deg, #ffffff, #f8f9fa) !important;
    border: 2px solid #e0e0e0 !important;
    transition: var(--transition) !important;
}

#tallaOptions button.selected {
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
    color: white !important;
    border-color: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Color preview */
.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    margin-right: 10px;
    flex-shrink: 0;
}

/* ============================================
   BOTÓN WHATSAPP (FORMULARIO)
   ============================================ */
.whatsapp-button {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    padding: 16px 25px;
    font-weight: 800;
    border-radius: 15px;
    font-size: 17px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.whatsapp-button:hover::before {
    width: 300px;
    height: 300px;
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
    transition: var(--transition);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.whatsapp-float:hover img {
    transform: scale(1.15);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-float img { width: 55px; height: 55px; }
    .whatsapp-float { bottom: 20px; right: 20px; }
}

/* ============================================
   MODAL DE CONFIRMACIÓN
   ============================================ */
#textofinal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.confirmation-content {
    background: white;
    padding: 40px;
    border-radius: 25px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.5s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .confirmation-content { padding: 30px 20px; }
    .confirmation-content h2 { font-size: 20px; }
}

/* ============================================
   BENEFICIOS Y NOTAS
   ============================================ */
.note {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #86efac;
    font-size: 13px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
    margin-top: 50px;
}

/* ============================================
   RESPONSIVE GENERAL
   ============================================ */
@media (max-width: 768px) {
    #colorOptions {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    #colorOptions button {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    #tallaOptions button {
        min-width: 60px !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
    
    .thumbs img {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    #colorOptions {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 8px !important;
    }
    
    #colorOptions button {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    #tallaOptions button {
        min-width: 55px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .color-preview {
        width: 20px;
        height: 20px;
    }
    
    .thumbs img {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.text-gradient {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.shadow-custom:hover {
    box-shadow: var(--shadow-lg);
}