:root {
    --bg-color: #F4F4F5;
    --surface-color: #EAEAE5;
    --text-primary: #111113;
    --text-muted: #71717A;
    --border-color: #D4D4D8;
    --accent: #111113;
    
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(244, 244, 245, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.site-header .logo {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-header nav a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s;
}

.site-header nav a:hover {
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    padding: 0 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.sub-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    font-weight: 300;
}

/* Galería / Index de Piezas */
.gallery-section {
    padding: 8rem 4rem;
    max-width: 1300px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.gallery-section h2 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 4rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.art-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.art-card:hover {
    background: #FFFFFF;
    border-color: var(--text-primary);
}

.card-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    display: block;
}

.art-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.art-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Contacto */
.contact-section {
    padding: 8rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.contact-section h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.contact-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-line {
    font-family: var(--font-mono);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 2px;
    transition: opacity 0.2s;
    display: inline-block;
}

.btn-line:hover {
    opacity: 0.6;
}

/* Modal Estilo Terminal Editorial */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 19, 0.4);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-color);
    padding: 3.5rem;
    border: 1px solid var(--text-primary);
    max-width: 650px;
    width: 90%;
    position: relative;
}

.modal-meta-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
}

.modal-content h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.interactive-terminal {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    min-height: 80px;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.5rem;
    cursor: pointer;
    font-family: var(--font-mono);
    font-weight: 300;
}

/* Footer */
footer {
    padding: 3rem 4rem;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: left;
    max-width: 1300px;
    margin: 0 auto;
}