/*
  GARAGE PREMIUM - CSS BASE
  Diseño limpio, moderno, fondo blanco
  Mobile First
*/
@import url('mobile.css');
@import url('tablet.css');
@import url('desktop.css');

/* ========== RESET ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ========== VARIABLES ========== */
:root {
    /* Colores principales */
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;

    /* Colores secundarios */
    --secondary: #0f172a;
    --secondary-light: #1e293b;

    /* Colores de estado */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Neutros */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Texto */
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    /* Fondos */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;

    /* Bordes */
    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Espaciado */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Bordes redondeados */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transiciones */
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Contenedor */
    --container-max: 1200px;
    --container-padding: 1rem;

    /* Header */
    --header-height: 70px;
}

/* ========== BASE ========== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* ========== UTILIDADES ========== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.oculto {
    display: none !important;
}

.cargando {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-light);
}

/* ========== BOTONES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.938rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-grande {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-bloque {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== FORMULARIOS ========== */
.form-grupo {
    margin-bottom: var(--space-md);
}

.form-grupo label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text);
    font-size: 0.875rem;
}

.form-grupo input,
.form-grupo select,
.form-grupo textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-grupo input::placeholder {
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    gap: var(--space-md);
}

.form-grupo-full {
    grid-column: 1 / -1;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    padding: var(--space-md) 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span:not(:last-child) {
    color: var(--text-muted);
}

.breadcrumb span:last-child {
    color: var(--text);
    font-weight: 500;
}

/* ========== NOTIFICACIONES ========== */
.notificacion-carrito {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
    padding: var(--space-xl);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    max-width: 400px;
    width: 90%;
}

.notificacion-carrito.mostrar {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.notificacion-contenido {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.notificacion-icono {
    font-size: 2rem;
    line-height: 1;
}

.notificacion-texto strong {
    display: block;
    margin-bottom: var(--space-xs);
}

.notificacion-texto p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.notificacion-cerrar {
    margin-left: auto;
    font-size: 1.25rem;
    color: var(--text-muted);
    padding: var(--space-xs);
}

.notificacion-cerrar:hover {
    color: var(--text);
}

.notificacion-acciones {
    display: flex;
    gap: var(--space-sm);
}

.notificacion-acciones .btn {
    flex: 1;
}

/* Overlay para notificación */
.notificacion-carrito.mostrar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* ========== WHATSAPP FLOTANTE ========== */
.whatsapp-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-imagen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero .container {
    position: relative;
    z-index: 1;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.hero-content {
    max-width: 600px;
}

.hero-etiqueta {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.hero-titulo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-texto {
    font-size: 1.125rem;
    color: var(--gray-200);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-botones {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ========== TARJETA DE PRODUCTO ========== */
.producto-card {

    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;

}

.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}


.producto-card-contenido .btn {
    margin-top: auto;
}

.producto-card-imagen {
    position: relative;
    aspect-ratio: 1/1;
    /* ← Imagen cuadrada */
    overflow: hidden;
    background: var(--gray-100);
}


.producto-card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.producto-card:hover .producto-card-imagen img {
    transform: scale(1.05);
}

.producto-card-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--primary);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.producto-card-contenido {

    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;

}

.producto-card-nombre {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-card-precio {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.producto-card-precio .precio-anterior {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: var(--space-xs);
}

.producto-card-detalles {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    font-size: 0.75rem;
    color: var(--text-light);
}

.producto-card-detalles span {
    background: var(--gray-100);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.producto-card .btn {
    width: 100%;
}

/* ========== GRID DE PRODUCTOS ========== */
.productos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}