/* DOPAMINA — SYSTEM CORE V2.0 (Global Unified Styles) */

:root {
    --bg: #F4F4F6;
    --ink: #111111;
    --muted: #888888;
    --glass: rgba(255, 255, 255, 0.92);
    --border: 1px solid rgba(0, 0, 0, 0.06);
    --blur: blur(30px);
    --font-mono: "SF Mono", "Menlo", monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- GLOBAL NAVIGATION (V2.1) --- */
.glass-nav-fixed {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 1200px;
    height: 48px;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    z-index: 1000;
    font-family: "SF Mono", "Menlo", monospace;
    font-size: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* El Contenedor del Menú */
.nav-center {
    position: relative;
    /* Vital para el glider */
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px;
    border-radius: 100px;
}

/* EL GLIDER (La píldora blanca animada) */
.nav-glider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: #fff;
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    /* Física tipo Apple: Rápido al inicio, suave al final */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    pointer-events: none;
    width: 0;
    opacity: 0;
}

.nav-glider.visible {
    opacity: 1;
}

/* Los Enlaces */
.nav-link {
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: #888;
    padding: 6px 18px;
    border-radius: 100px;
    transition: color 0.3s;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link:hover {
    color: #000;
}

.nav-link.active {
    color: #000;
}

/* Responsive */
@media (max-width: 900px) {
    .glass-nav-fixed {
        width: 96%;
        top: 15px;
    }

    .nav-center {
        display: none;
    }

    /* Ocultar menú central en móvil */
}

/* =========================================
   2. GLOBAL FOOTER
   ========================================= */
.micro-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 94%;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.f-link {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 2px;
    transition: all 0.2s;
}

.f-link:hover {
    border-color: var(--ink);
}

/* =========================================
   3. HOME (Cover System)
   ========================================= */
.hero-cover {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Corner Data */
.corner-data {
    position: absolute;
    padding: 24px;
    z-index: 10;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tl {
    top: 80px;
    left: 0;
}

.tr {
    top: 80px;
    right: 0;
    text-align: right;
}

.bl {
    bottom: 0;
    left: 0;
}

.br {
    bottom: 0;
    right: 0;
    text-align: right;
}

.enter-btn {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 12px 30px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    transition: transform 0.3s var(--ease);
}

.enter-btn:hover {
    transform: scale(1.05);
}

/* =========================================
   4. ARCHIVE (Grid System)
   ========================================= */
.archive-container {
    padding: 120px 24px 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.archive-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 20px;
}

.grid-system {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px 20px;
}

.archive-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s var(--ease);
}

.archive-item:hover {
    transform: translateY(-5px);
}

.item-thumb {
    width: 100%;
    aspect-ratio: 4/5;
    background: #fff;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
    filter: grayscale(100%);
    /* Efecto Archivo */
}

.archive-item:hover .item-thumb img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.item-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.4;
}

.item-name {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.item-code {
    color: var(--muted);
}

.item-status {
    color: #34C759;
}

/* =========================================
   5. ITEM (Spec Sheet)
   ========================================= */
.item-viewer {
    display: grid;
    grid-template-columns: 55% 45%;
    height: 100vh;
    padding-top: 80px;
    overflow: hidden;
}

.visual-column {
    height: 100%;
    overflow-y: auto;
    padding: 0 40px 40px;
    scrollbar-width: none;
}

.visual-column::-webkit-scrollbar {
    display: none;
}

.visual-column img {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 4px;
    background: #eee;
}

.data-column {
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.data-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.03em;
}

.data-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.spec-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.spec-key {
    opacity: 0.5;
    margin-bottom: 4px;
}

.action-bar {
    margin-top: auto;
    padding-top: 20px;
}

.acquisition-btn {
    display: block;
    width: 100%;
    background: var(--ink);
    color: #fff;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.acquisition-btn:hover {
    background: #34C759;
    color: #000;
}

/* =========================================
   6. RESPONSIVE
   ========================================= */
@media (max-width: 900px) {

    /* Nav Mobile */
    .glass-nav-fixed {
        width: 96%;
        top: 15px;
    }

    .nav-center {
        display: none;
    }

    /* Ocultar menú central en móvil */
    .nav-left,
    .nav-right {
        width: auto;
    }

    /* Home Mobile */
    .hero-cover {
        height: 100svh;
    }

    /* Archive Mobile */
    .archive-container {
        padding-top: 80px;
    }

    .grid-system {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Item Mobile */
    .item-viewer {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
        padding-top: 60px;
    }

    .visual-column {
        height: auto;
        padding: 20px;
    }

    .data-column {
        padding: 24px;
        border-left: none;
        border-top: 1px solid #eee;
        height: auto;
    }
}