/* ==========================================================================
   VARIABLES DE ENTORNO Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --bg: #0b0b0b;
    --text: #f5f5f5;
    --cyan: #00bcd4;
    --magenta: #e91e63;
    --yellow: #ffeb3b;
}

/* RESET GENERAL Y SMOOTH SCROLL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: 'Merriweather', serif;
    overflow-x: visible; /* Clave para que background-attachment o position:fixed respondan */
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* EFECTO DE TEXTURA CINEMATOGRÁFICA (GRANO DE PELÍCULA) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: .16;
    pointer-events: none;
    z-index: 999;
}

/* EL ESTILO DE PÁRRAFO DE FEEDBACK369 */
p {
    font-family: 'Merriweather', serif;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 2;
    max-width: 680px;
    color: #ffffff;
    opacity: 0.82;
    margin-bottom: 2.2rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ATMÓSFERA LUMÍNICA DE FONDO */
.bg-atmosphere {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(0,188,212,.06), transparent 35%),
        radial-gradient(circle at bottom right, rgba(233,30,99,.06), transparent 35%),
        radial-gradient(circle at center, rgba(255,235,59,.02), transparent 45%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

/* CONTENEDOR GENERAL ADAPTATIVO */
.container, .container-fluid {
    width: min(1450px, 94%);
    margin: auto;
}

/* ==========================================================================
   NAVEGACIÓN (HEADER) & CORRECCIÓN MÓVIL
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(11, 11, 11, 0.65) !important;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background 0.3s ease;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent !important;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: .15em;
    text-decoration: none;
    color: #ffffff !important;
    opacity: .95;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: .95rem;
    font-family: 'Merriweather', serif;
    opacity: .55;
    transition: opacity .35s ease, transform 0.3s ease;
    letter-spacing: .06em;
}

.nav-links a:hover, 
.nav-links a.active {
    opacity: 1 !important;
}

/* Estilos de control para el botón hamburguesa */
.navbar-toggler {
    border: none !important;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: none !important;
}
.navbar-toggler-icon {
    filter: brightness(0) invert(1);
    width: 1.5rem;
    height: 1.5rem;
}

/* ==========================================================================
   ARQUITECTURA DE CONTENIDO (MAIN & GALLERY)
   ========================================================================== */
.gallery {
    padding-top: 10rem;
    padding-bottom: 8rem;
}

.projects-stack {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.project {
    position: relative;
    width: 100%;
    min-height: 90vh;
    overflow: hidden;
    background: #121212;
    border: 1px solid rgba(255,255,255,.05);
    isolation: isolate;
}

.project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.75) contrast(1.05) saturate(0.95);
    transition: transform 1.6s cubic-bezier(0.25, 1, 0.5, 1), filter 1.6s ease;
    will-change: transform;
    z-index: -1;
}

.project:hover .project-image {
    transform: scale(1.03);
    filter: brightness(.88) contrast(1.08) saturate(1.02);
}

.project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11,11,11,0.85) 0%,
        rgba(11,11,11,0.35) 50%,
        rgba(11,11,11,0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.project-content {
    position: absolute;
    left: 4.5rem;
    bottom: 4.5rem;
    z-index: 5;
    max-width: 750px;
}

.project-category {
    font-size: .75rem;
    font-family: 'Merriweather', serif;
    letter-spacing: .3em;
    text-transform: uppercase;
    opacity: .5;
    margin-bottom: 1rem;
}

.project-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 7vw, 7.5rem);
    line-height: .9;
    letter-spacing: .06em;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.project-title a {
    color: inherit;
    text-decoration: none;
}

.project-description {
    font-family: 'Merriweather', serif;
    font-size: 1.05rem;
    line-height: 1.9;
    opacity: .75;
    max-width: 640px;
    margin-bottom: 2rem;
    color: #e5e5e5;
}

.project-link {
    color: #ffffff !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .9rem;
    opacity: .7;
    transition: opacity .35s ease, padding-left .35s ease;
    display: inline-block;
}

.project-link:hover {
    opacity: 1 !important;
    padding-left: .6rem;
}

/* ==========================================================================
   FEEDBACK369 STYLE - ARTIST EDITORIAL MANIFESTO
   ========================================================================== */
.bio-container {
    padding-top: 6rem;
    padding-bottom: 6rem;
    overflow-x: clip; 
}

.bio-content-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 6rem;
    align-items: start;
    animation: bioFadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bio-sidebar {
    position: sticky;
    top: 8rem;
}

.bio-main-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 6.5vw, 6rem);
    line-height: 0.85;
    letter-spacing: 0.04em;
    margin-bottom: 3rem;
    color: #ffffff;
    text-transform: uppercase;
}

.bio-quote {
    font-family: 'Merriweather', serif;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
    color: #ffffff;
    opacity: 0.65;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 1.8rem;
    margin: 0;
}

.bio-text-body {
    max-width: 660px;
}

.bio-text-body p {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    margin-bottom: 2.5rem;
    text-align: justify;
    text-justify: inter-word;
}

.bio-lead {
    font-size: 1.25rem !important;
    line-height: 1.9 !important;
    opacity: 0.95 !important;
}

.editorial-dropcap {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.8rem;
    float: left;
    line-height: 0.75;
    margin-top: 0.4rem;
    margin-right: 0.75rem;
    color: #ffffff;
}

.bio-text-body a {
    color: #ffffff;
    text-decoration: none;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-text-body a:hover {
    opacity: 1;
    color: #ffffff;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.85);
}

.bio-footer-note {
    font-size: 1.1rem !important;
    opacity: 0.9 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2.5rem;
    margin-top: 4.5rem;
}

.bio-footer-note span {
    font-family: 'Bebas Neue', sans-serif;
    display: block;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    margin-top: 0.8rem;
    color: #ffffff;
}

/* ==========================================================================
   SISTEMA DE PARALLAX ULTRA FULL-WIDTH (ESCAPE DE CONTENEDORES CONTENIDOS)
   ========================================================================== */
.bio-parallax-hero,
.bio-parallax-footer {
    /* Hack de ruptura: Fuerza al contenedor a medir el 100% de la pantalla del monitor, no de la sección */
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative;
    left: 50% !important;
    transform: translateX(-50%) !important;
    
    overflow: hidden;
    background: #0b0b0b;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    clip-path: inset(0 0 0 0); /* Crea la ventana de recorte fluida */
}

.bio-parallax-hero {
    height: 70vh; 
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.bio-parallax-footer {
    height: 55vh; 
    margin-top: 6rem; 
    margin-bottom: -5rem; /* Ajuste para compensar el inicio del footer inferior */
}

.parallax-bg {
    width: 100vw;
    height: 100vh;
    position: fixed; /* Se clava estático al monitor */
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll !important;
    filter: grayscale(0.15) brightness(0.75) contrast(1.03);
    transition: filter 0.8s ease;
    will-change: transform;
}

.bio-parallax-hero:hover .parallax-bg,
.bio-parallax-footer:hover .parallax-bg {
    filter: grayscale(0) brightness(0.85) contrast(1);
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER ORIGINAL CONSOLIDADO)
   ========================================================================== */
footer {
    border-top: 1px solid rgba(255,255,255,.05);
    background-color: rgba(11, 11, 11, 0.98) !important;
    padding: 5rem 0 4rem 0;
    position: relative;
    z-index: 10;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.footer-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: .12em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: #ffffff;
}

.instagram-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.instagram-links a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.6;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: opacity 0.3s ease;
}

.instagram-links a:hover {
    opacity: 1;
}

.social-icon {
    opacity: 0.8;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-credits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    font-size: 0.88rem;
    opacity: 0.45;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-credits p {
    margin: 0;
}

.powered-by a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.powered-by a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b0b0b; }
::-webkit-scrollbar-thumb { background: #222222; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #333333; }

/* ==========================================================================
   ANIMACIONES Y RESPONSIVE (BREAKPOINTS)
   ========================================================================== */
@keyframes bioFadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .nav {
        padding: 1.2rem 0;
    }
    .navbar-collapse {
        background: rgba(11, 11, 11, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 2rem 6%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links {
        flex-direction: column !important;
        gap: 2rem !important;
        align-items: flex-start;
        width: 100%;
    }
    .nav-links a {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 2rem !important;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        display: block;
        width: 100%;
    }
    .bio-content-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .bio-sidebar {
        position: relative;
        top: 0;
    }
    .bio-main-title {
        font-size: 4.5rem;
        margin-bottom: 1.5rem;
    }
    .project-content {
        left: 2.5rem; right: 2.5rem; bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .bio-container { padding-top: 4rem; padding-bottom: 4rem; }
    .bio-text-body p { text-align: left; }
    .editorial-dropcap { font-size: 4rem; }
}

@media (max-width: 767px) {
    .gallery { padding-top: 8rem; }
    .projects-stack { gap: 4rem; }
    .project { min-height: 75vh; }
    .project-title { font-size: clamp(2.5rem, 12vw, 4.5rem); }
    .project-description { font-size: 0.95rem; line-height: 1.7; }
    .instagram-links { flex-direction: column; gap: 1rem; }
    .footer-credits { flex-direction: column; align-items: flex-start; }
}

/* DESACTIVACIÓN DE PARALLAX EN DISPOSITIVOS TÁCTILES */
@media (pointer: coarse) {
    .bio-parallax-hero, .bio-parallax-footer { clip-path: none; }
    .parallax-bg { position: absolute; background-attachment: scroll !important; height: 100%; width: 100%; }
}
/* ==========================================================================
   FORZADO DE VISIBILIDAD PARA ICONO HAMBURGUESA
   ========================================================================== */
.navbar-toggler-icon {
    /* Reemplazamos el SVG de Bootstrap por uno vectorizado nativo en blanco puro */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 2rem !important;
    height: 2rem !important;
}

.navbar-toggler {
    /* Le damos un área de clic cómoda y visible */
    padding: 0.25rem 0.5rem !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important; /* Un sutil borde de control art-gallery */
    border-radius: 4px !important;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}