:root {
    --color-bg: #050505;
    --color-text: #e0e0e0;
    --color-yellow: #feca57;
    --color-blue: #5f27cd;
    --color-dark-text: #111;
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.8s;
}

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

body,
html {
    width: 100%;
    overflow-x: clip;
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
}

:root {
    --scroll-progress: 0;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: transparent;
}

#fg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none;
    background: transparent;
}

/* ------------------------------------------------ */
/* BACKGROUND AUTO-SCROLLING CAROUSEL                */
/* ------------------------------------------------ */
.bg-carousel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-color: var(--color-bg);
    overflow: hidden;
    pointer-events: none;
    /* Make sure it doesn't block interactions */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 2vh 0;
}

.bg-carousel-row {
    width: 100%;
    height: 30vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bg-carousel-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    will-change: transform;
}

.bg-carousel-track.scroll-left {
    animation: bg-scroll-left 50s linear infinite;
}

.bg-carousel-track.scroll-right {
    animation: bg-scroll-right 50s linear infinite;
}

.bg-carousel-slide {
    flex-shrink: 0;
    width: 52vw;
    /* Larger images */
    margin: 0 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-carousel-slide img {
    width: 100%;
    max-height: 28vh;
    object-fit: contain;
    opacity: 0.15;
    /* Subtle watermark opacity, slightly elevated for lines */
    mix-blend-mode: screen;
    /* Perfectly removes inverted black background, making it transparent */

    /* 
       CSS Filter Color Shift:
       1. invert(1): makes white background black (transparent) & black lines white
       2. sepia(1) saturate(18) hue-rotate(5deg): shifts white lines to rich gold-yellow
       3. brightness(1.4) contrast(1.1): makes the lines pop against the dark background
    */
    filter: invert(1) sepia(1) saturate(18) hue-rotate(5deg) brightness(1.4) contrast(1.1);
    border-radius: 8px;
}

@keyframes bg-scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes bg-scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.ui-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.ui-layer>* {
    pointer-events: auto;
}

/* ------------------------------------------------ */
/* HEADER REDISEÑADO                                */
/* ------------------------------------------------ */
.main-header {
    text-align: center;
    padding: 2rem 0 1rem 0;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 300;
    pointer-events: none;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    pointer-events: auto;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 160%;
    background-color: #000;
    opacity: 0.75;
    filter: blur(25px);
    border-radius: 50%;
    z-index: 100;
    pointer-events: none;
}

.logo-row {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.75rem;
    color: var(--color-yellow);
    text-transform: uppercase;
    line-height: 1;
    margin: 0.35rem auto 0;
    width: fit-content;
    display: inline-block;
    text-align: center;
    mix-blend-mode: difference;
    position: relative;
    z-index: 200;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.15rem;
    color: var(--color-yellow);
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    mix-blend-mode: difference;
    position: relative;
    z-index: 200;
    animation: breathe-spacing-title 6s ease-in-out infinite;
}

@keyframes breathe-spacing-title {

    0%,
    100% {
        letter-spacing: 0.15rem;
    }

    50% {
        letter-spacing: 0.4rem;
    }
}

.recording-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4757;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.8);
    animation: pulse-record 1.5s infinite;
    position: absolute;
    right: -15px;
    top: 5px;
    z-index: 200;
}

@keyframes pulse-record {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.records-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
}

.records-text {
    display: none;
}

/* ------------------------------------------------ */
/* CENTRO                                           */
/* ------------------------------------------------ */
.content-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-content {
    position: absolute;
    top: 40%;
    /* Movido arriba para balance visual óptimo */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90vw;
    max-width: 900px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Evita bloquear interacciones con las esferas */
}

.center-title {
    font-family: 'Outfit', var(--font-main);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.25rem;
    line-height: 1.6;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.15);
    margin: 0;
    text-transform: uppercase;
}

/* Discreet footer at the bottom (only visible at scroll bottom) */
.discreet-footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    text-align: center;
    pointer-events: none;
    width: 90vw;
    max-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s ease;
}

.discreet-footer.visible {
    opacity: 1;
    visibility: visible;
}

.footer-text {
    font-family: var(--font-main);
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    font-weight: 300;
    letter-spacing: 0.25rem;
    color: var(--color-yellow);
    opacity: 0.55;
    text-transform: uppercase;
    animation: breathe-opacity 4s ease-in-out infinite;
    margin: 0;
}

@keyframes breathe-opacity {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ------------------------------------------------ */
/* VINYL RECORD SOBRE CADA ESFERA                   */
/* ------------------------------------------------ */
.panel-vinyl {
    /*
     * Direct child of .side-panel (position: fixed).
     * Fills the sphere minus 2px on each side → 4px total.
     * position: absolute is relative to .side-panel since it's fixed.
     */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(var(--h) - 4px);
    height: calc(var(--h) - 4px);
    border-radius: 50%;
    z-index: 1;
    /* above yellow sphere bg */
    pointer-events: none;
    overflow: hidden;
}

.left-panel .panel-vinyl {
    right: 2px;
}

.right-panel .panel-vinyl {
    left: 2px;
}

.validation-circle-svg {
    display: none !important;
    /* Oculto momentáneamente por requerimiento de usuario */
}

.validation-circle-svg circle {
    fill: none !important;
    stroke: #ff3838 !important;
    stroke-width: 3px !important;
    stroke-dasharray: 1px 6px !important;
    stroke-linecap: round !important;
    vector-effect: non-scaling-stroke !important;
}

.panel-vinyl-svg {
    width: 100%;
    height: 100%;
    animation: vinyl-spin 2.8s linear infinite;
    transform-origin: center center;
    will-change: transform;
    display: block;
}

@keyframes vinyl-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------------------ */
/* BOLAS LATERALES (Curvas muy suaves tipo discos)  */
/* ------------------------------------------------ */
.side-panel {
    position: fixed;
    --w: calc(250vw - ((250vw - 30vw) * var(--scroll-progress)));
    --h: calc(120vh - ((120vh - 30vw) * var(--scroll-progress)));
    --top: calc(45% - (30% * var(--scroll-progress)));

    width: var(--w);
    height: var(--h);
    top: var(--top);
    transform: translateY(-50%);
    border-radius: 50%;
    background: transparent;
    /* Hidden temporarily — disc covers it */
    z-index: 101;
    cursor: pointer;
}

.left-panel {
    --left: calc(-220vw - (-220vw - 15px) * var(--scroll-progress));
    left: var(--left);
}

.right-panel {
    --right: calc(-220vw - (-220vw - 15px) * var(--scroll-progress));
    right: var(--right);
}

.left-panel:not(.open):not(.disc-mode) {
    --btn-translate-x: -2.5vw;
}

.right-panel:not(.open):not(.disc-mode) {
    --btn-translate-x: 2.5vw;
}

.left-panel:not(.open):not(.disc-mode) .avatar,
.left-panel:not(.open):not(.disc-mode) .toggle-btn {
    transform: translateX(var(--btn-translate-x));
}

.right-panel:not(.open):not(.disc-mode) .avatar,
.right-panel:not(.open):not(.disc-mode) .toggle-btn {
    transform: translateX(var(--btn-translate-x));
}

/* Transición solo al abrir/cerrar (is-animating), para evitar lag de scroll */
.is-animating,
.is-animating * {
    transition: all var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.panel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    --scale: calc(1 - (0.4 * var(--scroll-progress)));
    pointer-events: none;
    z-index: 2;
    /* Above the vinyl disc */
}

.left-panel .panel-inner {
    --tx: calc(107vw - (107vw - 0px) * var(--scroll-progress));
    --ty: calc(0px - (9px * var(--scroll-progress)));
    transform: translate(var(--tx), var(--ty)) scale(var(--scale));
}

.right-panel .panel-inner {
    --tx: calc(-107vw - (-107vw - 0px) * var(--scroll-progress));
    --ty: calc(0px - (9px * var(--scroll-progress)));
    transform: translate(var(--tx), var(--ty)) scale(var(--scale));
}

/* Avatar Identificable */
.avatar {
    --closed-avatar-size: clamp(180px, 24vw, 280px);
    --closed-avatar-width: calc(var(--closed-avatar-size) * 0.75);
    width: var(--closed-avatar-width);
    height: var(--closed-avatar-size);
    object-fit: contain;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: calc(-0.5 * var(--closed-avatar-width));
    margin-top: calc(-0.5 * var(--closed-avatar-size));
    /* No filter: black line art shows clearly on grey vinyl */
    filter: none;
    z-index: 3;
    transition: all var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 50%;
    /* border: 3px dotted darkviolet; -- Oculto momentáneamente por requerimiento de usuario */
    border: none !important;
}

/* Flechas Chevron */
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    margin-top: calc(100px - (40px * var(--scroll-progress)));
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transform: translateX(var(--btn-translate-x, 0px));
    opacity: 0.8;
}

/* más lejos del borde de pantalla: 60px de offset */
.left-panel .toggle-btn {
    margin-left: calc(-45px * (1 - var(--scroll-progress)));
}

.right-panel .toggle-btn {
    margin-left: calc(45px * (1 - var(--scroll-progress)));
}

/* Animaciones sutiles */
.left-panel .toggle-btn {
    animation: hover-arrow-left 1s infinite ease-in-out;
}

.right-panel .toggle-btn {
    animation: hover-arrow-right 1s infinite ease-in-out;
}

@keyframes hover-arrow-left {

    0%,
    100% {
        transform: translate(var(--btn-translate-x, 0px), 0);
    }

    50% {
        transform: translate(calc(var(--btn-translate-x, 0px) + 8px * (1 - var(--scroll-progress))), calc(4px * var(--scroll-progress)));
    }
}

@keyframes hover-arrow-right {

    0%,
    100% {
        transform: translate(var(--btn-translate-x, 0px), 0);
    }

    50% {
        transform: translate(calc(var(--btn-translate-x, 0px) - 8px * (1 - var(--scroll-progress))), calc(4px * var(--scroll-progress)));
    }
}

.custom-arrow {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--color-dark-text);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

/* Rotar flechas hacia abajo al scrollear y agrandarlas un poco */
.left-panel .custom-arrow {
    transform: rotate(calc(90deg * var(--scroll-progress))) scale(calc(1 + (0.3 * var(--scroll-progress))));
}

.right-panel .custom-arrow {
    transform: scaleX(-1) rotate(calc(90deg * var(--scroll-progress))) scale(calc(1 + (0.3 * var(--scroll-progress))));
}

.reverse-arrow {
    transform: scaleX(-1);
}

/* Texto oculto */
.hidden-text {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    width: 70vw;
    text-align: justify;
    color: var(--color-dark-text);
    transition: all 0.5s ease;
}

.hidden-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-dark-text);
}

.hidden-text p {
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--color-dark-text);
}

.shape-curve-right {
    float: right;
    width: 30vw;
    height: 500px;
    /* Calibrado manualmente en S20 Ultra */
    shape-outside: polygon(100% 4%,
            76% 0%,
            80% 10%,
            85% 20%,
            88% 30%,
            81% 40%,
            73% 50%,
            62% 60%,
            34% 70%,
            22% 80%,
            0% 87%,
            0% 100%,
            100% 100%);
}

.shape-curve-left {
    float: left;
    width: 30vw;
    height: 500px;
    /* Calibrado manualmente en S20 Ultra */
    shape-outside: polygon(0% 4%,
            24% 0%,
            20% 10%,
            15% 20%,
            12% 30%,
            19% 40%,
            27% 50%,
            38% 60%,
            66% 70%,
            78% 80%,
            100% 87%,
            100% 100%,
            0% 100%);
}

.hidden-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hidden-text p {
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 500;
}

/* ------------------------------------------------ */
/* ESTADO ABIERTO (Gigante)                         */
/* ------------------------------------------------ */
.side-panel.open {
    --w: 250vw !important;
    --h: 120vh !important;
    width: var(--w) !important;
    height: var(--h) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: default;
    z-index: 200 !important;
}

.left-panel.open {
    left: -177vw !important;
}

.right-panel.open {
    right: -177vw !important;
}

/* Centramos el contenido dentro del area visible (aprox 73vw) */
.left-panel.open .panel-inner {
    transform: translateX(88.5vw) scale(1) !important;
}

.right-panel.open .panel-inner {
    transform: translateX(-88.5vw) scale(1) !important;
}

.side-panel.open .panel-inner {
    pointer-events: auto;
}

.side-panel.open {
    overflow: visible;
}

/* ================================================ */
/* PANEL-CONTENT-BOX — triada cara / texto / flecha */
/*                                                  */
/* Geometría: elipse 250vw×120vh centrada en 63.5vw */
/*   Disco visible: 73vw × 76vh                     */
/*   Container: top=12vh bottom=88vh (centrado 50vh)*/
/*   indent(y_vp) = 125×(1-sqrt(1-((y_vp-50)/60)²))*/
/*                                                  */
/* Clip-path = forma del disco (73vw×76vh):         */
/*   y=0% (12vh)  → indent=28.4vw → 39% del ancho  */
/*   y=10% (19.6vh)→ 17.3vw → 24%                  */
/*   y=20% (27.2vh)→ 9.5vw  → 13%                  */
/*   y=30% (34.8vh)→ 4.1vw  →  6%                  */
/*   y=40% (42.4vh)→ 1.0vw  →  1%                  */
/*   y=50% (50vh)  → 0                              */
/* (simétrico por arriba y abajo)                   */
/* ================================================ */
.panel-content-box {
    display: contents;
}

.side-panel.open .panel-content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 73vw;
    height: 76vh;
    /* 12vh→88vh: flecha a 80-88vh, visible */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ---- Clip-path: forma del disco (calculada para 76vh) ---- */
.right-panel.open .panel-content-box {
    clip-path: polygon(39% 0%, 24% 10%, 13% 20%,
            6% 30%, 1% 40%, 0% 50%,
            1% 60%, 6% 70%, 13% 80%,
            24% 90%, 39% 100%,
            100% 100%, 100% 0%);
    padding-left: calc(3.75vw + 5px);
}

.left-panel.open .panel-content-box {
    clip-path: polygon(0% 0%, 0% 100%,
            61% 100%, 76% 90%, 87% 80%,
            94% 70%, 99% 60%, 100% 50%,
            99% 40%, 94% 30%, 87% 20%,
            76% 10%, 61% 0%);
    padding-right: calc(3.75vw + 5px);
}

/* ---- Cara: 28% superior ---- */
.side-panel.open .avatar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    width: auto !important;
    height: 28% !important;
    flex-shrink: 0;
    object-fit: contain;
}

.left-panel.open .avatar {
    transform: translateX(-3.5vw) !important;
}

.right-panel.open .avatar {
    transform: translateX(3.5vw) !important;
}

/* ---- Texto: 62% central ---- */
/* overflow:hidden contiene el texto SIN romper shape-outside:
   el float y el p están en el mismo BFC (el de hidden-text).
   Lo que NO puede tener overflow:hidden es el propio <p>. */
.side-panel.open .hidden-text {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    flex: 1;
    display: block !important;
    overflow: hidden;
    transition-delay: 0.3s;
}

/* Margen en el lado "plano" del disco (sin curva) */
.right-panel.open .hidden-text {
    padding-right: 2vw;
}

.left-panel.open .hidden-text {
    padding-left: 2vw;
}

/* ================================================ */
/* SHAPE-OUTSIDE — polígonos para el layout 76vh    */
/*                                                  */
/* texto inicia en viewport y=33.3vh (28%×76 + 12) */
/* texto termina en viewport y=80.3vh (90%×76 + 12)*/
/* float: 25vw × 50vh (cubre el área de texto)     */
/*                                                  */
/* right-edge del left-float (= indent/25vw):       */
/*   y=0%  (33.3vh): 5.0vw → 20%                   */
/*   y=10% (38.3vh): 2.4vw → 10%                   */
/*   y=20% (43.3vh): 0.8vw →  3%                   */
/*   y=33%  (50vh):  0     →  0%  ← centro disco   */
/*   y=60% (63.3vh): 3.1vw → 12%                   */
/*   y=70% (68.3vh): 6.1vw → 24%                   */
/*   y=80% (73.3vh): 9.8vw → 39%                   */
/*   y=94% (80.3vh): 17.2vw→ 69%                   */
/* shape-margin:2vw agrega margen legible           */
/* ================================================ */

/* RIGHT panel (Agustina): float IZQUIERDO */
.right-panel.open .shape-curve-left {
    display: block;
    float: left;
    width: 25vw;
    height: 50vh;
    shape-margin: 1vw;
    shape-outside: polygon(0% 0%,
            20% 0%,
            10% 10%,
            3% 20%,
            0% 33%,
            12% 60%,
            24% 70%,
            39% 80%,
            69% 94%,
            100% 100%,
            0% 100%);
}

/* LEFT panel (Esteban): float DERECHO (simétrico) */
.left-panel.open .shape-curve-right {
    display: block;
    float: right;
    width: 25vw;
    height: 50vh;
    shape-margin: 1vw;
    shape-outside: polygon(80% 0%,
            100% 0%,
            100% 100%,
            0% 100%,
            31% 94%,
            61% 80%,
            76% 70%,
            88% 60%,
            100% 33%,
            97% 20%,
            90% 10%);
}

/* p: NO overflow:hidden (rompería shape-outside creando nuevo BFC) */
.side-panel.open .hidden-text p {
    overflow: visible;
}

/* ---- Flecha: 10% inferior ---- */
.side-panel.open .toggle-btn {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    pointer-events: auto;
    animation: none;
    flex-shrink: 0;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-panel.open .toggle-btn {
    align-self: flex-end;
    width: 40%;
}

.left-panel.open .toggle-btn {
    align-self: flex-start;
    width: 40%;
}

.left-panel.open .toggle-btn .custom-arrow {
    transform: scaleX(-1);
}

.right-panel.open .toggle-btn .custom-arrow {
    transform: scaleX(1);
}


/* ------------------------------------------------ */
/* SECCIÓN PROYECTOS                                */
/* ------------------------------------------------ */
.portfolio-section {
    width: 200vw;
    margin-left: -50vw;
    height: auto;
    min-height: 100vh;
    border-top-left-radius: 100vw 25vh;
    border-top-right-radius: 100vw 25vh;
    background-color: #000000;
    position: relative;
    z-index: 50;
    margin-top: -30vh;
    padding-top: 10px;
    /* Visible at the bottom of the landing page, centered in the dome */
    padding-bottom: 35vh;
    overflow: visible;
    /* Asegura que el sticky wrapper funcione sin restricciones */
}

.portfolio-sticky-wrapper {
    position: relative;
    left: 0;
    width: 200vw;
    /* Conserva el mismo ancho de la sección para mantener el centrado */
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-top: 0px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.scroll-down-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 144px;
    /* Duplicado al doble */
    height: 144px;
    /* Altura física fija para evitar colapsos extraños de renderizado */
    margin-bottom: 10px;
    margin-top: 0px;
    animation: bounce-arrow 2s infinite ease-in-out;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent !important;
    position: relative;
    z-index: 110 !important;

    /* Transición premium suave por scroll usando transform y opacidad */
    transform: scale(calc(1 - var(--scroll-progress))) translateY(calc(var(--scroll-progress) * -20px));
    opacity: calc(1 - (var(--scroll-progress) * 1.5));
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

.vertical-arrow {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #fff;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portfolio-title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.15rem;
    color: var(--color-yellow);
    text-transform: uppercase;
    margin-bottom: 25px;
    margin-top: 4vh;
    text-align: center;
    position: relative;
    z-index: 100;
    width: 100%;
    opacity: 1;
    transform: none !important;
    transition: opacity 0.5s ease;
    pointer-events: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-title.visible {
    opacity: 1;
    transform: none !important;
    pointer-events: auto;
}

.album-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: calc(65px + (100px * var(--scroll-progress)));
    /* Compacto al inicio para asomar la portada, espaciado al hacer scroll */
    transition: margin-top 0.1s ease-out;
}



.album-cover {
    width: 80vw;
    max-width: 400px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.album-cover.slide-out-up {
    animation: slide-out-up 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.album-cover.slide-in-down {
    animation: slide-in-down 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

.album-description {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    /* Texto más grande */
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
    /* Justificado premium */
    text-transform: uppercase;
    /* En mayúsculas */
    letter-spacing: 0.05em;
    /* Espaciado sublime */
    max-width: 400px;
    /* Ancho idéntico al cover de álbum */
    margin: 0.8rem auto -0.4rem;
    /* Ajuste ceñido y balanceado */
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 5;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Sin text-shadow por requerimiento minimalista */
}

@keyframes slide-out-up {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }

    100% {
        transform: translateY(-120%) scale(0.85);
        opacity: 0;
        filter: blur(5px);
    }
}

@keyframes slide-in-down {
    0% {
        transform: translateY(100px) scale(0.85);
        opacity: 0;
        filter: blur(5px);
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* Media query para dispositivos móviles y resoluciones angostas */
@media (max-width: 900px) {
    .portfolio-section {
        margin-top: -30vh !important;
        /* Rises nicely to show the dome top on landing */
        padding-top: 10px !important;
        /* Keeps the text centered inside the visible part of the dome on mobile landing */
        padding-bottom: 30vh !important;
        /* Rises higher on mobile to show the arrow, title, and album cover */
        border-top-left-radius: 100vw 15vh !important;
        /* Flatter premium curve */
        border-top-right-radius: 100vw 15vh !important;
        z-index: 90 !important;
        /* Let closed side panels (z-index: 101) stack on top */
        height: auto !important;
    }

    .portfolio-sticky-wrapper {
        z-index: 90 !important;
        /* Sit behind the side panels to match layered depth */
    }

    .scroll-down-btn {
        margin-top: 0px !important;
        width: 60px !important;
        /* Duplicado al doble en móvil */
        height: 60px !important;
        /* Altura física fija para evitar colapsos extraños de renderizado */
        margin-bottom: 15px !important;
        transform: scale(calc(1 - var(--scroll-progress))) translateY(calc(var(--scroll-progress) * -10px)) !important;
        opacity: calc(1 - (var(--scroll-progress) * 1.5)) !important;
    }

    .portfolio-title {
        position: relative !important;
        top: auto !important;
        /* Immediately below the header on mobile */
        z-index: 100 !important;
        font-size: clamp(1.2rem, 6.5vw, 1.8rem) !important;
        margin-top: 4vh !important;
        margin-bottom: 20px !important;
        padding: 0 10px !important;
        width: 100vw !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: ellipsis !important;
        transition: opacity 0.5s ease;

        /* Fix Blink flex-sticky collapse bug */
        height: auto !important;
        min-height: 1.2em !important;
    }

    .album-container {
        margin-top: calc(10px + (15px * var(--scroll-progress))) !important;
        /* Más elevado en móvil para liberar espacio abajo */
        gap: 0.6rem !important;
        /* Espaciado ultra compacto premium */
    }

    .player-instagram-wrapper {
        max-width: 180px !important;
        /* Reducido a 180px de ancho y ~135px de alto para encajar perfectamente */
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .album-description {
        font-size: 0.8rem !important;
        /* Compacto, elegante y minimalista */
        line-height: 1.4 !important;
        text-align: justify !important;
        /* Justificación premium */
        text-transform: uppercase !important;
        /* Mayúsculas minimalistas */
        letter-spacing: 0.04em !important;
        max-width: 80vw !important;
        /* Ancho idéntico al del cover del álbum (80vw) */
        margin: 0.3rem auto -0.4rem !important;
        /* Equilibrio perfecto de márgenes reducidos */
        text-shadow: none !important;
        /* Sin sombra para un look totalmente plano y minimalista */
    }
}

/* ------------------------------------------------ */
/* BOTÓN FLOTANTE DE CONTACTO (WHATSAPP)            */
/* ------------------------------------------------ */
.contact-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    z-index: 999999;
    /* Por encima de todo */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    /* Mantener la máscara perfectamente circular */

    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    -webkit-tap-highlight-color: transparent !important;
}

.contact-whatsapp-btn>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: clip-path 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    clip-path: circle(0% at 50% 50%);
    will-change: clip-path, opacity;
    opacity: 0;
    box-sizing: border-box;
}

/* Default stacking order (bottom → top) inside the circular button */
.contact-whatsapp-btn .img-contact {
    z-index: 1;
}

.contact-whatsapp-btn .text-w-b {
    z-index: 2;
}

.contact-whatsapp-btn .img-micro {
    z-index: 3;
}

.contact-whatsapp-btn .text-b-w {
    z-index: 4;
}

.contact-whatsapp-btn img {
    object-fit: cover;
    display: block;
}

.contact-whatsapp-btn .text-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main), sans-serif;
    font-weight: 900;
    font-size: 15px;
    line-height: 1.0;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    padding: 0;
}

.contact-whatsapp-btn .text-contact span {
    display: block;
}

.contact-whatsapp-btn .text-w-b {
    background-color: #000000;
    color: #ffffff;
}

.contact-whatsapp-btn .text-b-w {
    background-color: #ffffff;
    color: #000000;
}

/* Active states driven by classes on button */
.contact-whatsapp-btn.show-dove .img-contact {
    clip-path: circle(100% at 50% 50%);
    opacity: 1;
    z-index: 10 !important;
}

.contact-whatsapp-btn.show-micro .img-micro {
    clip-path: circle(100% at 50% 50%);
    opacity: 1;
}

.contact-whatsapp-btn.show-text-wb .text-w-b {
    clip-path: circle(100% at 50% 50%);
    opacity: 1;
}

.contact-whatsapp-btn.show-text-bw .text-b-w {
    clip-path: circle(100% at 50% 50%);
    opacity: 1;
    z-index: 10 !important;
}

/* Inversión de color en la paloma de contacto para fondo blanco */
.contact-whatsapp-btn .img-contact {
    filter: invert(1) !important;
}

.contact-whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.contact-whatsapp-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

@media (max-width: 900px) {
    .contact-whatsapp-btn {
        width: 70px !important;
        height: 70px !important;
        bottom: 20px;
        right: 20px;
    }

    .contact-whatsapp-btn .text-contact {
        font-size: 13px !important;
    }
}

/* ------------------------------------------------ */
/* BOTÓN FLOTANTE DE INSTAGRAM                      */
/* ------------------------------------------------ */
.instagram-float-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    z-index: 999999;
    /* Por encima de todo */
    cursor: pointer;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;

    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    -webkit-tap-highlight-color: transparent !important;
}

.instagram-float-btn svg {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
    display: block;
}

.instagram-float-btn:hover {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background-color: #ffffff;
    color: #000000;
}

.instagram-float-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

@media (max-width: 900px) {
    .instagram-float-btn {
        width: 70px !important;
        height: 70px !important;
        bottom: 20px;
        left: 20px;
    }

    .instagram-float-btn svg {
        width: 30px !important;
        height: 30px !important;
    }
}

/* ------------------------------------------------ */
/* ESTILOS ADICIONALES PARA SLIDE DE CONTACTO (MICRO)*/
/* ------------------------------------------------ */

.album-cover.is-micro-item {
    border-radius: 50% !important;
    border: 4px solid transparent !important;
    box-shadow: none !important;
    background: transparent !important;
    cursor: pointer !important;
    padding: 0 !important;
    /* Conserva exactamente las mismas dimensiones físicas del box para evitar shifts */
    width: 80vw !important;
    max-width: 400px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    /* Encoge el renderizado de forma visual sin afectar el flujo del documento */
    transform: scale(0.4) !important;
}



/* ------------------------------------------------ */
/* DISC-MODE: caras giran con el vinilo             */
/* Se activa al llegar a la sección PROYECTOS       */
/* ------------------------------------------------ */
.side-panel.disc-mode {
    animation: vinyl-spin 2.8s linear infinite !important;
}

.side-panel.disc-mode .panel-vinyl-svg,
.side-panel.disc-mode .avatar {
    animation: none !important;
}

.side-panel.disc-mode .panel-inner {
    /* Cancelamos el transform de scroll para que el avatar */
    /* quede centrado en el sphere/disco                    */
    transform: translate(0, 0) scale(1) !important;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-panel.disc-mode,
.side-panel.disc-mode * {
    pointer-events: auto !important;
}

.side-panel.disc-mode {
    z-index: 250 !important;
}

.side-panel.disc-mode .hidden-text,
.side-panel.disc-mode .toggle-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.4s ease;
}

.side-panel.disc-mode .avatar {
    top: 50%;
    left: 50%;
    margin-top: -36px;
    /* -half of 72px */
    margin-left: -36px;
    width: 72px;
    height: 72px;
    transform-origin: center center !important;
    transition: top 0.8s ease, left 0.8s ease, margin 0.8s ease, width 0.6s ease, height 0.6s ease;
    filter: none;
    z-index: 5;
}

/* SOPORTE PARA MÓVILES (Modo Disco compacto) */
@media (max-width: 900px) {
    .side-panel.disc-mode {
        --w: 80px !important;
        --h: 80px !important;
        width: var(--w) !important;
        height: var(--h) !important;
        top: 20px !important;
        transform: none !important;
        z-index: 250 !important;
    }

    .left-panel.disc-mode {
        left: 15px !important;
    }

    .right-panel.disc-mode {
        right: 15px !important;
        left: auto !important;
    }

    .side-panel.disc-mode .avatar {
        width: 48px !important;
        height: 48px !important;
        margin-top: -24px !important;
        margin-left: -24px !important;
        top: 50% !important;
        left: 50% !important;
        position: absolute !important;
    }

    .side-panel.disc-mode .panel-vinyl {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) scale(1) !important;
        width: calc(100% - 4px) !important;
        height: calc(100% - 4px) !important;
    }
}

/* SOPORTE PARA PANTALLAS ANCHAS DE ESCRITORIO (>= 900px) */
@media (min-width: 900px) {

    /* 1. Geometría dinámica de los paneles */
    .side-panel:not(.disc-mode) {
        --w: calc(2250px - ((2250px - 72px) * var(--scroll-progress)));
        --h: calc(120vh - ((120vh - 72px) * var(--scroll-progress)));
        /* Discos pegados al header al final de la transición (90px) */
        --top: calc(45% - (45% - 90px) * var(--scroll-progress));

        width: var(--w);
        height: var(--h);
        top: var(--top);
        cursor: default;
        pointer-events: auto !important;
    }

    .left-panel:not(.disc-mode) {
        left: calc((1 - var(--scroll-progress)) * (18vw - var(--w)) + var(--scroll-progress) * 15px);
    }

    .right-panel:not(.disc-mode) {
        right: calc((1 - var(--scroll-progress)) * (18vw - var(--w)) + var(--scroll-progress) * 15px);
    }

    .left-panel:not(.disc-mode) .panel-inner,
    .right-panel:not(.disc-mode) .panel-inner {
        --tx: 0px !important;
        --ty: 0px !important;
        transform: translate(var(--tx), var(--ty)) scale(var(--scale)) !important;
    }

    .side-panel.open .panel-inner {
        transform: translate(0, 0) scale(1) !important;
    }

    .left-panel:not(.disc-mode) .panel-content-box {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: auto !important;
        right: 0 !important;
        width: 18vw !important;
        min-width: 280px !important;
        height: 76vh !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        pointer-events: none !important;
    }

    .right-panel:not(.disc-mode) .panel-content-box {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: 0 !important;
        right: auto !important;
        width: 18vw !important;
        min-width: 280px !important;
        height: 76vh !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        pointer-events: none !important;
    }

    .right-panel:not(.disc-mode) .panel-content-box {
        clip-path: polygon(39% 0%, 24% 10%, 13% 20%,
                6% 30%, 1% 40%, 0% 50%,
                1% 60%, 6% 70%, 13% 80%,
                24% 90%, 39% 100%,
                100% 100%, 100% 0%) !important;
        padding-left: calc(3.75vw + 5px) !important;
    }

    .left-panel:not(.disc-mode) .panel-content-box {
        clip-path: polygon(0% 0%, 0% 100%,
                61% 100%, 76% 90%, 87% 80%,
                94% 70%, 99% 60%, 100% 50%,
                99% 40%, 94% 30%, 87% 20%,
                76% 10%, 61% 0%) !important;
        padding-right: calc(3.75vw + 5px) !important;
    }

    .side-panel:not(.disc-mode) .avatar {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin: 0 !important;
        width: auto !important;
        height: 28% !important;
        flex-shrink: 0;
        object-fit: contain;
    }

    .left-panel:not(.disc-mode) .avatar {
        transform: translateX(-1.5vw) !important;
    }

    .right-panel:not(.disc-mode) .avatar {
        transform: translateX(1.5vw) !important;
    }

    .side-panel:not(.open):not(.disc-mode) .hidden-text {
        opacity: calc(1 - var(--scroll-progress)) !important;
        visibility: visible !important;
        position: relative !important;
        top: auto !important;
        transform: none !important;
        margin: 0 !important;
        width: 100%;
        display: block !important;
        overflow: hidden;
    }

    .right-panel:not(.open):not(.disc-mode) .hidden-text {
        padding-right: 2vw !important;
    }

    .left-panel:not(.open):not(.disc-mode) .hidden-text {
        padding-left: 2vw !important;
    }

    .right-panel .shape-curve-left {
        display: block !important;
        float: left;
        width: 12vw !important;
        height: 50vh;
        shape-margin: 2vw !important;
    }

    .left-panel .shape-curve-right {
        display: block !important;
        float: right;
        width: 12vw !important;
        height: 50vh;
        shape-margin: 2vw !important;
    }

    .side-panel:not(.open):not(.disc-mode) .toggle-btn {
        display: none !important;
    }
}

/* ------------------------------------------------ */
/* BOTÓN DE INSTAGRAM (SECCIÓN CONTACTO)            */
/* ------------------------------------------------ */
.instagram-btn-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 15;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.instagram-btn-container.hide-down {
    transform: translateY(280px) scale(0.7) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.instagram-btn {
    display: block;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent !important;
}

.instagram-circle {
    width: 90px;
    height: 90px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.instagram-icon {
    width: 40px;
    height: 40px;
    stroke: #050505;
    transition: stroke 0.3s ease;
}

.instagram-circle:hover {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 899px) {
    .instagram-circle {
        width: 60px;
        height: 60px;
    }

    .instagram-icon {
        width: 28px;
        height: 28px;
    }
}

/* ------------------------------------------------ */
/* SLIDER DE ÁLBUMES HORIZONTAL PREMIUM              */
/* ------------------------------------------------ */
.albums-slider-container {
    width: 100vw;
    max-width: 100%;
    margin-top: 4vh;
    /* Se sube para dejar espacio */
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    cursor: grab;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.albums-slider-container.active {
    cursor: grabbing;
}

.albums-slider-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.albums-slider-track {
    display: flex;
    gap: 40px;
    padding: 40px 50vw;
    /* El padding de 50vw centra la primera y la última tarjeta en la pantalla */
    align-items: center;
}

.album-card {
    flex: 0 0 280px;
    width: 280px;
    height: 280px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: none;
    background-color: #111111;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        filter 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.5s ease;
    filter: grayscale(0%) opacity(100%);
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
}

.album-card:hover {
    transform: scale(1.03);
}

.album-card.active {
    transform: scale(1.18);
    filter: grayscale(0%) opacity(100%);
    box-shadow: 0 15px 40px rgba(254, 202, 87, 0.35), 0 0 30px rgba(255, 255, 255, 0.1);
}

.album-card img.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Slide de Contacto (Micro) adaptado al slider */
.album-card.active.is-micro-item {
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.3), 0 0 35px rgba(255, 255, 255, 0.15);
}

@media (max-width: 900px) {
    .albums-slider-container {
        margin-top: 3vh;
    }

    .album-card {
        flex: 0 0 220px;
        width: 220px;
        height: 220px;
    }

    .album-card.active {
        transform: scale(1.12);
    }
}

/* ------------------------------------------------ */
/* PORTFOLIO INTRO DESIGN                           */
/* ------------------------------------------------ */
.portfolio-intro {
    font-family: var(--font-main), sans-serif;
    color: #ffffff;
    text-align: center;
    width: calc(35vw + (55vw * var(--scroll-progress)));
    max-width: calc(35vw + (600px * var(--scroll-progress)));
    margin: 0 auto 6vh auto;
    position: relative;
    z-index: 10;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
}

.portfolio-intro p {
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    /* Aumentado sustancialmente para legibilidad premium */
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.04em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    margin-bottom: 2.2rem;
    /* Separación de párrafos/saltos de línea */
    text-transform: none;
    color: #ffffff;
}

.portfolio-intro p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .portfolio-intro {
        margin: 0 auto 4vh auto;
        width: calc(45vw + (45vw * var(--scroll-progress)));
        max-width: 90vw;
    }

    .portfolio-intro p {
        font-size: 1.15rem !important;
        /* Más grande en móvil responsivo */
        line-height: 1.6;
        margin-bottom: 1.6rem;
    }
}

/* ------------------------------------------------ */
/* SECCIÓN AGRADECIMIENTOS                          */
/* ------------------------------------------------ */
.portfolio-thanks-section {
    width: 200vw;
    margin: 12vh auto 4vh auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    z-index: 60;
}

.thanks-title {
    font-family: var(--font-main), sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-yellow);
    text-transform: uppercase;
    margin-bottom: 4rem;
    text-align: center;
    width: 90vw;
    max-width: 1000px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.thanks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    width: 90vw;
    max-width: 1000px;
    margin: 0 auto;
}

.thanks-item {
    font-family: var(--font-main), sans-serif;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) {
    .thanks-item:hover {
        color: var(--color-yellow);
        transform: translateY(-3px);
    }
}

@media (max-width: 900px) {
    .portfolio-thanks-section {
        margin: 8vh auto 2vh auto;
    }

    .thanks-title {
        margin-bottom: 2.5rem;
        font-size: 1.15rem;
    }

    .thanks-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }

    .thanks-item {
        font-size: 0.95rem;
    }
}