/* ============================================
   LA NUEVA INDUSTRIAL - DESIGN SYSTEM
   Design tokens extraídos de secciones 1 y 2
   ============================================ */

:root {
    /* ===== COLORS ===== */
    /* Primary */
    --color-primary: #00003e;
    --color-primary-hover: #000033;
    --color-primary-light: rgba(0, 0, 62, 0.1);
    
    /* Neutrals */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-neutral-50: #fafafa;
    --color-neutral-100: #f5f5f5;
    --color-neutral-200: #e5e5e5;
    --color-neutral-300: #d4d4d4;
    --color-neutral-400: #a3a3a3;
    --color-neutral-500: #737373;
    --color-neutral-600: #525252;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
    --color-neutral-900: #030918;
    --color-neutral-950: #0a0a0a;
    
    /* Backgrounds (4 opciones para secciones) */
    --bg-white: #ffffff;
    --bg-gray: linear-gradient(135deg, #e5e5e5 0%, #d4d4d4 100%);
    --bg-black: #171717;
    --bg-blue: #00003e;
    
    /* ===== TYPOGRAPHY ===== */
    /* Font Families */
    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.08em;
    --tracking-widest: 0.2em;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.1;
    --leading-snug: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;
    --leading-loose: 2;
    
    /* ===== SPACING ===== */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */
    
    /* ===== LAYOUT ===== */
    --container-max: 1280px;
    --container-padding: 1.5rem;
    
    /* ===== BORDERS ===== */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --border-width: 1px;
    --border-width-thick: 1.5px;
    --border-width-heavy: 2px;
    
    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 6px 20px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 15px 45px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 6px 20px rgba(0, 0, 62, 0.25);
    
    /* ===== TRANSITIONS ===== */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* ===== Z-INDEX ===== */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-modal: 40;
    --z-popover: 50;
    --z-tooltip: 60;
}

/* ===== GRAY MARBLE BACKGROUND (from section 2) ===== */
.bg-gray-marble {
    background: 
        linear-gradient(135deg, #e5e5e5 0%, #d4d4d4 100%),
        linear-gradient(45deg, transparent 25%, rgba(160, 160, 160, 0.15) 25%, rgba(160, 160, 160, 0.15) 30%, transparent 30%),
        linear-gradient(-45deg, transparent 35%, rgba(140, 140, 140, 0.12) 35%, rgba(140, 140, 140, 0.12) 42%, transparent 42%),
        linear-gradient(60deg, transparent 20%, rgba(180, 180, 180, 0.1) 20%, rgba(180, 180, 180, 0.1) 25%, transparent 25%),
        radial-gradient(ellipse at 15% 25%, rgba(200, 200, 200, 0.4) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 75%, rgba(190, 190, 190, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 45% 60%, rgba(210, 210, 210, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 30%, rgba(180, 180, 180, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 30% 80%, rgba(170, 170, 170, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 60% 15%, rgba(195, 195, 195, 0.18) 0%, transparent 35%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 3px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.02) 2px, rgba(0, 0, 0, 0.02) 3px);
    background-size: 
        100% 100%,
        250px 250px,
        220px 220px,
        180px 180px,
        900px 700px,
        850px 900px,
        700px 750px,
        650px 600px,
        400px 400px,
        500px 500px,
        3px 3px,
        3px 3px;
    background-color: #e8e8e8;
}

/* ===== TYPOGRAPHY SYSTEM ===== */
.eyebrow {
    color: var(--color-neutral-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    display: block;
}

.eyebrow-light {
    color: var(--color-neutral-400);
}

.eyebrow-dark {
    color: var(--color-neutral-600);
}

h1, .h1 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
    color: #030918;
    font-weight: var(--font-normal);
}

h2, .h2 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    line-height: var(--leading-snug);
    color: #030918;
    font-weight: var(--font-normal);
}

h3, .h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    line-height: var(--leading-snug);
    color: #030918;
    font-weight: var(--font-normal);
}

.text-light {
    color: var(--color-neutral-600);
    line-height: var(--leading-relaxed);
}

/* Dark backgrounds */
.bg-black h1, .bg-black .h1,
.bg-black h2, .bg-black .h2,
.bg-black h3, .bg-black .h3,
.bg-blue h1, .bg-blue .h1,
.bg-blue h2, .bg-blue .h2,
.bg-blue h3, .bg-blue .h3 {
    color: var(--color-white);
}

.bg-black .text-light,
.bg-blue .text-light {
    color: var(--color-neutral-300);
}

.bg-black .eyebrow,
.bg-blue .eyebrow {
    color: var(--color-neutral-400);
}

/* ===== BUTTON SYSTEM ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-medium);
    letter-spacing: var(--tracking-wide);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: var(--border-width) solid var(--color-neutral-300);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: var(--border-width-heavy) solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border: var(--border-width-heavy) solid var(--color-white);
}

.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: var(--text-base);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-xs);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== CARD SYSTEM ===== */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    border: var(--border-width) solid var(--color-neutral-200);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(0, 0, 62, 0.2);
}

.card-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: var(--border-width) solid rgba(180, 180, 180, 0.25);
    box-shadow: var(--shadow-md);
}

.card-glass:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-2xl);
}

/* ===== SECTION SYSTEM ===== */
.section {
    width: 100%;
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}

.section-sm {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

@media (min-width: 1024px) {
    .section-sm {
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
    }
}

.section-lg {
    padding-top: var(--space-32);
    padding-bottom: var(--space-32);
}

.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Background variants */
.bg-white {
    background: var(--bg-white);
}

.bg-gray {
    background: var(--bg-gray);
}

.bg-black {
    background: var(--bg-black);
}

.bg-blue {
    background: var(--bg-blue);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 1024px) {
    h1, .h1 {
        font-size: var(--text-6xl);
    }
    
    h2, .h2 {
        font-size: var(--text-5xl);
    }
    
    h3, .h3 {
        font-size: var(--text-3xl);
    }
    
    .section {
        padding-top: var(--space-32);
        padding-bottom: var(--space-32);
    }
}

@media (min-width: 1280px) {
    h1, .h1 {
        font-size: var(--text-7xl);
    }
}

@media (max-width: 768px) {
    h1, .h1 {
        font-size: var(--text-3xl);
    }
    
    h2, .h2 {
        font-size: var(--text-2xl);
    }
    
    h3, .h3 {
        font-size: var(--text-xl);
    }
    
    .btn {
        width: 100%;
    }
}

/* ============================================
   CATEGORY GRID COMPONENT - FLEXBOX LAYOUT
   ============================================ */

.category-section-container {
    width: 90vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 1600px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 1.5rem !important;
}

@media (min-width: 1024px) {
    .category-section-container {
        padding: 0 2rem !important;
    }
}

.category-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.category-filter-btn {
    background: linear-gradient(135deg, #06132f 0%, #0a1a4a 100%);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(6, 19, 47, 0.15);
}

.category-filter-btn:hover {
    background: linear-gradient(135deg, #0a1a4a 0%, #0e2159 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 19, 47, 0.35);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 25px !important;
    margin-top: 2.5rem;
}

.category-grid-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 280px;
    height: auto;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: white;
}

.category-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.08);
}

.category-grid-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.category-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-grid-card:hover .category-grid-image {
    transform: scale(1.08);
}

.category-grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 19, 47, 0.9) 10%, rgba(6, 19, 47, 0.5) 40%, rgba(6, 19, 47, 0) 75%);
    z-index: 1;
}

.category-grid-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
}

.category-grid-title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--color-white);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    margin: 0 0 0.25rem 0;
    line-height: var(--leading-tight);
}

.category-grid-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    margin: 0;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .category-grid-card {
        width: calc(50% - 12.5px) !important;
        max-width: calc(50% - 12.5px) !important;
        flex-basis: calc(50% - 12.5px) !important;
        min-height: 320px;
    }
    
    .category-grid-title {
        font-size: var(--text-base);
    }
    
    .category-grid-subtitle {
        font-size: var(--text-sm);
    }
}

@media (min-width: 1024px) {
    .category-grid-card {
        width: calc(33.333% - 16.67px) !important;
        max-width: calc(33.333% - 16.67px) !important;
        flex-basis: calc(33.333% - 16.67px) !important;
        min-height: 380px;
    }
    
    .category-grid-title {
        font-size: var(--text-lg);
    }
    
    .category-grid-subtitle {
        font-size: var(--text-sm);
    }
    
    .category-grid-content {
        bottom: 1.5rem;
        left: 1.5rem;
    }
}

@media (max-width: 767px) {
    .category-grid-content {
        bottom: 1rem;
        left: 1rem;
    }
    
    .category-grid-title {
        font-size: var(--text-sm);
    }
    
    .category-grid-subtitle {
        font-size: 0.625rem;
    }
}
