/* ========================================================
   SANSÓN — Design System CSS
   Paleta: Industrial Precision
   Primary: #009ADA | CTA Red: #DD3333
   Fonts: Montserrat (headings) + Inter (body)
   ======================================================== */

/* === Variables CSS === */
:root {
    --primary: #009ADA;
    --primary-dark: #006590;
    --primary-light: #88ceff;
    --cta-red: #DD3333;
    --dark-bg: #191c1d;
    --surface: #f8f9fa;
    --surface-low: #f3f4f5;
    --on-surface: #191c1d;
    --industrial-gray: #495057;
    --border-subtle: #DEE2E6;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 32px rgba(0, 154, 218, 0.18);
    --radius-card: 12px;
    --radius-btn: 8px;
}

/* === Tipografía === */
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--on-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: 'Montserrat', sans-serif;
}

/* === Hero Gradient === */
.hero-gradient {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 55%, rgba(0, 0, 0, 0.25) 100%);
}

/* === Scrollbar oculto === */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* === Animaciones Fade-In === */
.fade-in-section {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
    will-change: opacity, transform;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }
.delay-800 { transition-delay: 800ms; }
.delay-900 { transition-delay: 900ms; }
.delay-1000 { transition-delay: 1000ms; }
/* === AlpineJS Cloak === */
[x-cloak] { display: none !important; }

/* === Cards de Producto === */
.product-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.product-card:hover .product-card-img {
    transform: scale(1.03);
}
.product-card-img {
    transition: transform 0.4s ease;
}

/* === Categorías sobre el Hero === */
.hero-cat-btn {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.hero-cat-btn:hover {
    box-shadow: 0 6px 24px rgba(0, 154, 218, 0.2);
    transform: translateY(-3px);
    animation: blinkBorderBlue 1s infinite alternate;
}
@keyframes blinkBorderBlue {
    0% { border-color: rgba(0, 154, 218, 0); }
    100% { border-color: rgba(0, 154, 218, 1); }
}
#hero-cats-track { padding-bottom: 2px; }

/* === Botones === */
.btn-primary {
    background: var(--primary);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: var(--radius-btn);
    padding: 0.75rem 1.75rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 154, 218, 0.35);
}

.btn-cta {
    background: var(--cta-red);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: var(--radius-btn);
    padding: 0.75rem 1.75rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
}
.btn-cta:hover {
    background: #b52a2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(221, 51, 51, 0.35);
}

/* === Toast Notifications === */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    min-width: 280px;
    max-width: 380px;
    pointer-events: all;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.toast-success { background: rgba(0, 154, 218, 0.85); }
.toast-error   { background: rgba(221, 51, 51, 0.85); }
.toast.hiding  { animation: toastSlideOut 0.3s ease-in forwards; }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(110%); }
}

/* === Inputs === */
.input-field {
    background: var(--surface-low);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-btn);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    color: var(--on-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 154, 218, 0.15);
}

/* === Chips / Tags === */
.chip {
    background: #f0f1f2;
    color: var(--industrial-gray);
    border-radius: 4px;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* === Scrollbar personalizado para selector de iconos en Admin === */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(0, 154, 218, 0.5); }

/* === Drawer Cotización === */
.quote-drawer-overlay {
    background: rgba(25, 28, 29, 0.7);
    backdrop-filter: blur(4px);
}

/* === Glassmorphism Modales === */
.glass-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4);
}

/* === Sección separadora === */
.section-divider {
    border: none;
    height: 1px;
    background: var(--border-subtle);
    margin: 2rem 0;
}

/* === Overline (label sobre headlines) === */
.overline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}