/* ==========================================================================
   AL FONDO QUE HAY LUGAR (AFQHL) — EDITORIAL DARK STYLESHEET
   ========================================================================== */

:root {
    --bg-dark: #050505;
    --bg-surface: #0a0a0a;
    --text-white: #ffffff;
    --text-muted: #888888;
    --border-fine: rgba(255, 255, 255, 0.1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Syne', sans-serif;
    --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   NAVEGACIÓN FLOTANTE MINIMALISTA
   -------------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    padding: 0 1rem;
}

.nav-container {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-fine);
    padding: 0.6rem 2rem;
    border-radius: 100px;
    transition: transform 0.4s var(--ease-cinematic), background 0.4s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-white);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.3rem;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background-color: var(--text-white);
    transition: transform 0.3s ease;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-cinematic);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-link {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.2em;
}

/* --------------------------------------------------------------------------
   SECCIÓN 1: HERO CINEMATOGRÁFICO
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(120%) brightness(60%);
    transform: scale(1.08);
    transition: transform 2.5s var(--ease-cinematic);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.2) 60%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
}

.hero-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-top, .hero-title-bottom {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8.5vw);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--text-white);
}

.hero-title-bottom {
    color: rgba(255, 255, 255, 0.85);
}

.hero-tag {
    display: inline-block;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-fine);
    font-size: 0.75rem;
    letter-spacing: 0.6em;
    color: var(--text-muted);
    font-weight: 300;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-text {
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, var(--text-muted) 0%, transparent 100%);
    animation: pulseLine 2s infinite ease-in-out;
}

@keyframes pulseLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --------------------------------------------------------------------------
   ESTRUCTURA GENERAL DE SECCIONES
   -------------------------------------------------------------------------- */
.section {
    padding: 8rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-t: 1px solid var(--border-fine);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.max-width-narrow {
    max-width: 800px;
}

.section-header {
    margin-bottom: 5rem;
}

.section-num {
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   SECCIÓN 2: INTEGRANTES (EDITORIAL ASIMÉTRICO)
   -------------------------------------------------------------------------- */
.integrantes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 6rem;
}

.integrante-item {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.integrante-item:nth-child(even) {
    margin-top: 4rem;
}

.integrante-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--bg-surface);
    margin-bottom: 1.5rem;
}

.integrante-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%);
    transition: transform 0.8s var(--ease-cinematic), filter 0.8s ease;
}

.integrante-item:hover .integrante-img {
    transform: scale(1.04);
    filter: grayscale(0%) contrast(100%);
}

.integrante-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--border-fine);
    padding-bottom: 0.8rem;
}

.integrante-name {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.integrante-item:hover .integrante-name {
    color: var(--text-white);
}

.integrante-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.15em;
}

/* --------------------------------------------------------------------------
   SECCIÓN 3: ESCRITOS
   -------------------------------------------------------------------------- */
.escrito-item {
    border-bottom: 1px solid var(--border-fine);
    padding: 2.5rem 0;
    cursor: pointer;
}

.escrito-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.escrito-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-top: 0.5rem;
}

.escrito-quote {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 300;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.4s ease;
}

.escrito-item:hover .escrito-quote {
    color: var(--text-white);
}

.escrito-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s var(--ease-cinematic), opacity 0.6s ease, padding 0.4s ease;
    padding-left: 3.5rem;
}

.escrito-item.open .escrito-body {
    max-height: 300px;
    opacity: 1;
    padding-top: 1.5rem;
}

.escrito-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* --------------------------------------------------------------------------
   SECCIÓN 4: ENLACES
   -------------------------------------------------------------------------- */
.enlace-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-fine);
    text-decoration: none;
    color: var(--text-muted);
    transition: padding-left 0.4s var(--ease-cinematic), color 0.4s ease;
}

.enlace-row:hover {
    padding-left: 1rem;
    color: var(--text-white);
}

.enlace-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.enlace-arrow {
    font-size: 1.8rem;
    transition: transform 0.4s var(--ease-cinematic);
}

.enlace-row:hover .enlace-arrow {
    transform: translate(6px, -6px);
}

/* --------------------------------------------------------------------------
   SECCIÓN 5: CONTACTO
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }

.contacto-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 1rem 0 0.5rem 0;
}

.contacto-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 4rem;
}

.contacto-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-contacto {
    padding: 1.2rem 3.5rem;
    border: 1px solid var(--border-fine);
    background: var(--bg-surface);
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.4s var(--ease-cinematic);
}

.btn-contacto:hover {
    background: var(--text-white);
    color: var(--bg-dark);
    border-color: var(--text-white);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-fine);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 850px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .integrantes-grid { grid-template-columns: 1fr; gap: 3rem; }
    .integrante-item:nth-child(even) { margin-top: 0; }
    .contacto-buttons { flex-direction: column; }
    .btn-contacto { width: 100%; }
    .escrito-body { padding-left: 0; }
}