/**
 * Estilos principales de VersalShop
 * Diseño modular y responsive
 */

:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset y base */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
.versalshop-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.logo-responsive {
    display: block;
    margin: 0 auto;
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-responsive:hover {
    transform: scale(1.05);
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Cards de productos */
.card {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-img-top {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background-color: var(--bg-light);
    padding: 10px;
}

/* Badges y etiquetas */
.paga-recibir {
    color: var(--danger-color);
    font-weight: bold;
    text-align: center;
    animation: blink 1s infinite;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

@keyframes blink {
    50% { opacity: 0.6; }
}

.nueva-coleccion {
    border: 3px solid var(--success-color) !important;
    border-radius: var(--border-radius);
}

.nueva-coleccion::before {
    content: "Nueva Colección";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--success-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

.agotadas {
    opacity: 0.5;
    position: relative;
}

.agotadas::after {
    content: "Agotado";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: bold;
    z-index: 10;
}

/* Precios */
.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-color);
    margin-top: 0.5rem;
    text-align: center;
}

.product-price.tachado {
    text-decoration: line-through;
    color: var(--danger-color);
    font-size: 0.9rem;
}

/* Botones */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1.5rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Utilidades */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-responsive {
        max-width: 120px;
    }
    
    .card-img-top {
        max-height: 300px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
}

/* Accesibilidad */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animaciones suaves */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

