/* ESTILOS BASE */
:root {
    --bg-color: #0a0a0a;
    --text-main: #f4f4f4;
    --text-muted: #888888;
    --accent: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin: 0 0 10px 0;
}

.dynamic-text-container {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-muted);
    font-weight: 300;
    height: 30px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    font-size: 1.5rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* MÓDULOS GENERALES */
.module {
    padding: 100px 10vw;
    min-height: 50vh;
    border-top: 1px solid #222;
}

.module h2 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 60px;
}

/* MÓDULO 1: LÓGICA (Grilla estructurada) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    border: 1px solid #333;
    padding: 30px;
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: var(--text-main);
}

.card h3 {
    font-size: 1.2rem;
    margin-top: 0;
}

/* MÓDULO 2: MATERIA (Galería con efecto Sinestésico) */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.art-item {
    flex: 1;
    min-width: 300px;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    border: 1px solid #333;
    
    /* El truco del blanco y negro al color */
    filter: grayscale(100%);
    transition: filter 0.5s ease, background-color 0.5s ease;
}

.art-item:hover .image-placeholder {
    filter: grayscale(0%);
    background-color: #2a2a2a; /* Simula un encendido */
}

/* MÓDULO 3: NARRATIVA (Tipografía Serif) */
.narrativa {
    font-family: 'Lora', serif;
}

.essay-container {
    max-width: 800px;
    margin: 0 auto;
}

.essay-container h3 {
    font-family: 'Helvetica Neue', sans-serif; /* Mantiene el título sans-serif */
    font-size: 2rem;
}

.essay-container p {
    font-size: 1.2rem;
    color: #cccccc;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 80px 20px;
    border-top: 1px solid #222;
}

.contact-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.5rem;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

.contact-link:hover {
    border-bottom: 1px solid var(--text-main);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 20px;
}