:root {
    --bg-dark: #0a0a0a;
    --bg-charcoal: #141414;
    --bg-graphite: #1c1c1c;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #e0e0e0;
    --glow-color: rgba(255, 255, 255, 0.05);
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;

    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.overflow-hidden {
    overflow: hidden;
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    /* Visible by default for progressive enhancement */
    transform: translateY(0);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(40px);
}

.js-enabled .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sections Backgrounds */
.services,
.contact {
    background-color: transparent;
}

.portfolio {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #000000;
}

.portfolio .container {
    padding-bottom: 5vh;
}

.about {
    background-color: rgba(20, 20, 20, 0.7);
    /* make charcoal semi-transparent */
    backdrop-filter: blur(10px);
}

section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.container {
    position: relative;
    z-index: 2;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background-color: var(--text-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--text-primary);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 11vw, 10rem);
    /* Ligeramente más pequeña para asegurar el control con una palabra larga como 'ALEXANDER' */
    font-weight: 800;
    line-height: 0.85;
    margin-right: -0.05em;
    /* Optical adjustment */
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 600;
    margin-bottom: 3rem;
    line-height: 1;
}

.eyebrow {
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 600;
    opacity: 0;
    /* Add opacity 0 initially for GSAP to fade in */
}

/* Layout */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10vh 0;
}

section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 48px;
    width: auto;
    opacity: 0;
    /* Hidden initially, shown after intro transition */
    visibility: hidden;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Intro Screen */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    /* Transparent container to see the site through the black SVG mask */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#intro-mask-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.saber-path {
    fill: transparent;
    stroke: #c69848;
    stroke-width: 0.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px #c69848) drop-shadow(0 0 12px #c69848);
}

/* Hero Section */
.hero-pin-wrapper {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-charcoal);
    /* Background visible when hero scales down */
}

.hero {
    height: 100vh !important;
    width: 100%;
    position: relative !important;
    overflow: hidden;
    transform-origin: center center;
}

.hero .container {
    position: absolute !important;
    top: 50% !important;
    left: 5% !important;
    transform: translateY(-50%) !important;
    width: 90% !important;
    max-width: 1400px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hero-header {
    margin-bottom: 2rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
    /* inherit border radius from .hero */
}

.parallax-bg-img {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    /* For parallax movement */
    object-fit: cover;
    opacity: 0.4;
    filter: saturate(0.2) contrast(1.1);
}

.hero-bg .parallax-bg-img {
    opacity: 1;
    filter: brightness(1) saturate(1.1);
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
}

.gradient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    filter: blur(100px);
}

.hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 1) 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.hero-title {
    margin-bottom: 1rem;
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: none;
    max-width: 650px;
    margin-bottom: 4rem;
    opacity: 0;
    font-weight: 300;
    line-height: 1.6;
}

.hero-cta {
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: var(--accent);
}

.btn-outline {
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}

/* Identity Section */
.about {
    background-color: var(--bg-charcoal);
    padding: 0;
}

.section-tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.5em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10%;
    align-items: center;
}

.about-text-content {
    font-size: 1.7rem !important;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff !important;
    line-height: 1.3 !important;
}

.about-text p:not(.lead) {
    color: #b9b09f;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-visual {
    height: 60vh;
    background-color: var(--bg-graphite);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2);
}



/* -------------------------
   Mi Enfoque / Interactive Section 
   ------------------------- */
.enfoque {
    position: relative;
    padding: 15vh 0;
    min-height: 100vh;
    background-image: url('assets/fractal1.jpg');
    background-size: cover;
    background-position: center 0;
    overflow: hidden;
}

.enfoque-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    /* Changed dynamically by JS */
    z-index: 0;
    transition: background-color 1s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.approach-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8vh;
}

.approach-header {
    max-width: 800px;
}

.approach-title {
    font-size: clamp(3rem, 5vw, 6rem);
    margin-bottom: 1rem;
    line-height: 1;
    font-family: var(--font-heading);
    font-weight: 800;
}

.approach-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.approach-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    width: 100%;
}

.approach-node {
    position: relative;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    cursor: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(40px);
}

.approach-node:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

/* Typography for Nodes */
.node-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.node-arrow {
    display: none;
    /* Hidden in two-column vertical layout */
}

.node-desc {
    font-size: 1.1rem;
    color: #999;
    font-weight: 300;
    line-height: 1.6;
    transition: color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover States */
.approach-node:hover .node-title {
    transform: translateX(10px);
    color: #fff;
}

.approach-node:hover .node-arrow {
    opacity: 1;
    transform: translateX(0);
}

.approach-node:hover .node-desc {
    color: #e0e0e0;
}

/* Node Specific FX Layers */
.node-fx {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 60%;
    height: 150%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.approach-node:hover .node-fx {
    opacity: 1;
    transform: translateY(-50%) scale(1.02);
}

/* FX Arte */
.fx-arte {
    background: radial-gradient(ellipse at center, rgba(255, 120, 50, 0.08) 0%, transparent 70%);
    filter: blur(40px);
    animation: flowLight 4s infinite alternate ease-in-out;
}

@keyframes flowLight {
    from {
        opacity: 0.5;
        transform: translateY(-50%) scale(1) translateX(-5%);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1.1) translateX(5%);
    }
}

/* FX Ingeniería */
.fx-ingenieria {
    background-image: linear-gradient(rgba(100, 150, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 150, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* FX PNL */
.fx-pnl {
    background: radial-gradient(circle at center, rgba(150, 200, 150, 0.06) 0%, transparent 60%);
    animation: breathe 5s infinite ease-in-out;
}

@keyframes breathe {
    0% {
        transform: translateY(-50%) scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-50%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translateY(-50%) scale(0.9);
        opacity: 0.6;
    }
}

/* FX Política */
.fx-politica {
    background: linear-gradient(90deg, transparent 0%, rgba(200, 200, 255, 0.05) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: dataFlow 3s infinite linear;
    mask-image: linear-gradient(to bottom, transparent, black 50%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 50%, transparent);
}

@keyframes dataFlow {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: -100% 0;
    }
}

/* Dynamic Cursors per Category (when combined with .custom-cursor) */
.custom-cursor.active-arte {
    background-color: rgba(255, 150, 100, 0.15);
    border-color: rgba(255, 150, 100, 0.8);
    width: 80px;
    height: 80px;
}

.custom-cursor.active-ingenieria {
    background-color: rgba(100, 150, 255, 0.15);
    border-color: rgba(100, 150, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    mix-blend-mode: normal;
}

.custom-cursor.active-pnl {
    background-color: rgba(150, 255, 150, 0.15);
    border-color: transparent;
    width: 100px;
    height: 100px;
    filter: blur(4px);
    mix-blend-mode: normal;
}

.custom-cursor.active-politica {
    background-color: transparent;
    border: none;
    width: 60px;
    height: 60px;
    mix-blend-mode: normal;
}

.custom-cursor.active-politica::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(200, 200, 255, 0.8);
    animation: cursorSpin 4s linear infinite;
    box-sizing: border-box;
}

@keyframes cursorSpin {
    100% {
        transform: rotate(360deg);
    }
}

/* Portfolio Section */
.portfolio {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Resuelve el centrado automático del `<section>` base que ocultaba el 1er elemento */
    overflow: hidden;
    /* Hide horizontal overflow during scroll */
}

/* Let the title container take normal space before the horizontal gallery */
.portfolio .container {
    padding-bottom: 2vh;
    z-index: 10;
}

.portfolio .section-title {
    margin-bottom: 0;
}

.portfolio-showcase {
    display: flex;
    flex-direction: row;
    /* Change to row for horizontal scroll */
    width: max-content;
    /* Allow container to grow wide */
    height: 80vh;
    /* Shorter height so it fits under the title */
    align-items: center;
    padding-left: 5vw;
    /* Start with a small inset from the left screen edge */
    padding-right: 5vw;
    /* Añadimos simetría para parar con exactitud */
}

.project-block {
    display: flex;
    flex-direction: column;
    width: 65vw;
    flex-shrink: 0;
    /* Evita que los bloques se expriman o compriman */
    height: auto;
    /* Dejamos que el bloque se adapte a la imagen natural */
    justify-content: flex-start;
    /* Flow from top to bottom */
    align-items: center;
    /* Center horizontally within the block */
    position: relative;
    padding: 0 5vw;
    /* Spacing between projects consistently */
}

.project-block:nth-child(even) {
    align-self: center;
    /* Override from previous odd/even design */
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    /* Altura fluida */
    aspect-ratio: 1027 / 626;
    /* Mismo aspecto que tus imágenes originales */
    overflow: hidden;
    background-color: var(--bg-graphite);
    clip-path: inset(0% 0% 0% 0%);
    /* For reveal animation */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Add luxury shadow */
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Muestra la imagen completa (gracias al aspect-ratio) y sella los bordes para el parallax */
    transition: filter 0.8s ease;
}

.project-block:hover .portfolio-img {
    filter: brightness(1.1);
}

.project-info {
    position: absolute;
    bottom: 2%;
    /* Move it slightly up from the very bottom edge */
    right: 5%;
    max-width: 500px;
    background-color: var(--bg-dark);
    padding: 2.5rem;
    /* Slightly reduced padding to save space */
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
}

/* Remove alternating layout since they are horizontal now */
.project-block:nth-child(even) .project-info {
    right: 5%;
    left: auto;
}

.project-info h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.project-info p {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
}

/* ----------------------------------------------------------------
	Experience Section (Exact Migration from WEB ANT 22)
-----------------------------------------------------------------*/
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.text-center {
    text-align: center !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

#experience {
    position: relative;
    padding: 100px 0;
    min-height: auto !important;
    /* Anulamos el 100vh global */
    height: auto !important;
    background-color: #000000;
    background-size: cover;
    background-position: center 0;
    overflow: hidden;
    margin: 0;
    display: block !important;
    /* Cambiamos de flex a block para control total */
}

#experience .container {
    padding: 0;
    position: relative;
    z-index: 2;
}

#experience.dark h5 {
    color: #FFF !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif;
}

#experience .counter {
    font-size: 42px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    color: #FFF;
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

#experience .counter.counter-lined+h5::before {
    display: block;
    position: relative;
    margin: 20px auto 25px auto;
    content: '';
    width: 35px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

#experience .i-plain.i-large {
    display: block;
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 20px auto;
    text-align: center;
    line-height: 64px !important;
    color: #9f7f62 !important;
    text-shadow: none;
    font-style: normal;
}

#experience .i-plain.i-large[class^="icon-"],
#experience .i-plain.i-large[class*=" icon-"] {
    font-size: 48px !important;
}

#experience .i-plain svg {
    width: 42px;
    height: 42px;
    display: inline-block;
    vertical-align: middle;
    fill: #9f7f62;
}

#experience .col-lg-3 {
    margin-bottom: 50px;
}

@media (min-width: 992px) {
    #experience .col-lg-3 {
        margin-bottom: 0;
    }
}

/* Final Reveal Sequence - Imagen fija única revelada por bloque negro sólido */
/* Cierre del Sitio - Simplificado y de Alto Impacto */
#experience {
    position: relative;
    background: #000 !important;
    padding: 120px 0;
    margin-bottom: 0;
}

.spacer-stats {
    height: 50vh;
    background: #000;
    width: 100%;
}

.final-background-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-image: url('assets/bg-ams3.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.main-footer {
    position: relative;
    width: 100%;
    background: #000 !important;
    padding: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.75rem;
    z-index: 10;
}

/* Footer styles moved to bottom for absolute precedence */

/* Reveal Animations */

/* Reveal Animations */
.reveal {
    min-height: 1px;
    /* Avoid empty ruleset and ensure it exists for ScrollTrigger */
}

/* Responsiveness */
@media (max-width: 992px) {
    .container {
        width: 90%;
        /* Marco editorial superior */
    }

    .hero .container {
        width: 100% !important;
        left: 0 !important;
        padding: 0 8% !important;
        /* Padding interno para que el texto respire */
    }

    .main-nav {
        padding: 1.2rem 5%;
    }

    .nav-logo img {
        height: 28px;
        /* Reducción adicional para mayor elegancia */
    }

    .about {
        padding-top: 140px;
        /* Más espacio superior para evitar cualquier solapamiento */
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text-content {
        font-size: 1.05rem !important;
        /* Medida editorial ideal para móviles */
        line-height: 1.6 !important;
        font-weight: 300 !important;
        /* Peso ligero, estilo premium/Apple */
        width: 100%;
        color: #ffffff;
    }

    .about-text p:not(.lead) {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #b9b09f;
    }

    .enfoque {
        padding: 8vh 0;
    }

    .approach-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .approach-header {
        margin-bottom: 2rem;
    }

    .approach-node {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
    }

    .node-title {
        min-width: auto;
        font-size: 2.2rem;
    }

    .node-arrow {
        display: none;
    }

    .portfolio .container {
        padding-bottom: 2rem;
        /* Reducción de espacio bajo el título */
    }

    .portfolio-showcase {
        padding-left: 0;
        justify-content: flex-start;
        align-items: flex-start;
        /* Alineamos arriba para reducir gap con el título */
        height: auto;
        /* Dejamos que el alto sea fluido */
        padding-top: 1rem;
    }

    .project-block {
        width: 100vw;
        height: auto;
        padding: 0 5vw;
        display: flex;
        justify-content: center;
    }

    .project-img-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 1027 / 626;
    }

    .project-info {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        padding: 1.5rem;
        margin-top: -1rem;
        z-index: 3;
    }

    .project-block:nth-child(even) .project-info {
        right: auto;
    }

    .nav-links {
        display: none;
    }

    /* Footer consolidated above */

    /* experience columns stack on mobile naturally with flex-wrap */
    #experience .col-lg-3 {
        margin-bottom: 40px;
    }
}
/* ==========================================================================
   FINAL FOOTER PRECEDENCE (GRID SYSTEM)
   ========================================================================== */
.main-footer .container-footer {
    display: grid !important;
    grid-template-areas: 'copy icons' !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
    width: 90% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 1.2rem 0 !important;
}

.main-footer .footer-left {
    grid-area: copy !important;
    text-align: left !important;
}

.main-footer .footer-right {
    grid-area: icons !important;
    display: flex !important;
    justify-content: flex-end !important;
}

/* Redes Sociales - Estilos Específicos */
.footer-social-icons {
    display: flex !important;
    gap: 1.5rem !important;
    align-items: center !important;
}

.footer-social-icon-item {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    text-decoration: none !important;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.footer-social-icon-item:hover {
    opacity: 0.6 !important;
}

@media (max-width: 768px) {
    .main-footer .container-footer {
        grid-template-areas: 
            'icons'
            'copy' !important;
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        text-align: center !important;
    }

    .main-footer .footer-left {
        text-align: center !important;
        grid-area: copy !important;
    }

    .main-footer .footer-right {
        justify-content: center !important;
        grid-area: icons !important;
        margin-bottom: 0.5rem !important;
    }

    .main-footer .footer-right .footer-social-icons {
        justify-content: center !important;
    }

    .main-footer .footer-left p {
        font-size: 0.7rem !important;
        margin: 0 !important;
        color: var(--text-secondary) !important;
        letter-spacing: 0.05em !important;
    }
}

/* Mobile Fix for background-attachment: fixed (iOS Safari) */
@media (max-width: 1024px) {
    .final-background-section {
        background-attachment: scroll !important;
        background-position: center bottom !important;
    }
}
