html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

:root {
    --bg-body: #EFECE6;        /* Warm linen/off-white */
    --bg-visual-light: #D1C7BD; /* Soft taupe / stone */
    --bg-visual-dark: #A69B91;  /* Warm mushroom gray */
    --banner-gray: #8C7D70;     /* Deep mocha gray */
    --text-black: #1A1A1A;
    --accent-pink: #E04F98;     /* Your original pink still pops here! */
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Playfair Display SC', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ⚓ Detalle UI/UX: Color de selección de texto personalizado */
::selection { background: var(--accent-pink); color: #fff; }

/* ⚓ Le indicamos al documento principal que el scroll nativo debe ser suave */
html {
    scroll-behavior: smooth;
}

/* ⚓ Eliminamos la doble barra de scroll controlando el overflow solo en el body */
body {
    overflow-x: hidden;
    width: 100%;
    background-color: var(--bg-body);
    font-family: var(--font-sans);
    color: var(--text-black);
}

/* =========================================================
   1. NAVBAR
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1.5rem 3rem; 
    background-color: transparent; 
    border: none;
}

.navbar__group-left {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.navbar__logo-center {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.navbar__contact {
    text-align: right;
    justify-self: end;
}

.navbar a {
    text-decoration: none;
    color: #1A1A1A;
    font-size: 3rem;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #E04F98;
}

/* =========================================================
   2. HERO SECTION
   ========================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero__composition {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero__text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    color: #fff;
    font-weight: 400;
    line-height: 1;
    z-index: 10;
    will-change: opacity, transform;
}

.hero__text--left { margin-right: -70px; }
.hero__text--right { margin-left: -70px; }

.hero__box {
    position: relative;
    overflow: hidden;
    width: 550px; /* Ajusta según tu diseño */
    aspect-ratio: 3/4; /* Ejemplo de proporción editorial */
}
/* ⚓ [NUEVO] Estilos para la "Tira de Película" que creará JavaScript */
.hero__filmstrip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Alinea las imágenes una al lado de la otra horizontalmente */
    
    /* ⚓ [NUEVO] Transición muy rápida (0.1s) y directa (steps) para dar el efecto de flash */
    transition: transform 0.1s steps(1, end);
    will-change: transform; /* Optimización de rendimiento para animaciones */
}

/* ⚓ [CORRECCIÓN] Aseguramos que todas las imágenes en la tira midan lo mismo */
.hero__filmstrip img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para que llene la caja sin deformarse */
    display: block;
    flex-shrink: 0; /* Evita que las imágenes se encojan para caber */
}

.hero__box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__sidebar {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: flex-end;
    padding-right:7%;
    margin-top: 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* =========================================================
   3. PROJECTS GRID
   ========================================================= */
.projects {
    display: flex;
    flex-direction: column;
}

.project-card {
    display: grid;
    grid-template-columns: 45% 55%; 
    min-height: 100vh;
}

/* COLUMNA IZQUIERDA (VISUAL) */
.project-col-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

.project-card .info-wrapper {
    opacity: 0;
    transform: translateY(60px); 
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.project-card.visible .info-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s; 
}

.bg-visual-light { background-color: var(--bg-visual-light); }
.bg-visual-dark { background-color: var(--bg-visual-dark); }

.visual-frame {
    width: 100%;
    max-width: 550px;
    position: relative;
    margin-bottom: 3rem;
    will-change: transform; 
    transform-origin: center center;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #D6D6D6;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* TÍTULO "ENTRE CAJAS" */
.big-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    position: absolute;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 5;
    white-space: nowrap;
}

.project-subtitle {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    margin-top: 1rem;
}

/* COLUMNA DERECHA (INFO) */
.project-col-right {
    height: 100%;
    background-color: #fff;
}

.split-layout {
    display: flex;
    flex-direction: column;
}

.info-top-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    padding: 0 10% 0 50%;
}

.info-bottom-banner {
    height: 40%; 
    background-color: var(--banner-gray);
    width: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block; 
    will-change: transform;
    transform-origin: center center;
}

.project-col-right.bg-white {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10% 0 50%;
}

.info-wrapper {
    max-width: 400px;
}

.small-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.6rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.description {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 3rem;
}

/* VINTAGE FILM HOVER EFFECT */
.view-link {
    font-family: var(--font-sans);
    font-weight: 700;
    color: black;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 2px solid black;
    padding-bottom: 2px;
    transition: all 0.2s ease; 
}

@keyframes vintage-film {
    0%   { opacity: 1;   text-shadow: 1px 0 0 rgba(255,0,0,0.4), -1px 0 0 rgba(0,255,255,0.4); filter: sepia(0) blur(0px); }
    15%  { opacity: 0.8; text-shadow: -2px 0 0 rgba(255,0,0,0.6), 2px 0 0 rgba(0,255,255,0.6); filter: sepia(0.3) blur(0.5px); }
    30%  { opacity: 0.4; text-shadow: 1px 0 0 rgba(255,0,0,0.4), -1px 0 0 rgba(0,255,255,0.4); filter: sepia(0) blur(0px); }
    45%  { opacity: 0.9; text-shadow: none; filter: sepia(0.6) blur(1px); }
    60%  { opacity: 1;   text-shadow: 2px 0 0 rgba(255,0,0,0.5), -2px 0 0 rgba(0,255,255,0.5); filter: sepia(0) blur(0px); }
    75%  { opacity: 0.6; text-shadow: -1px 0 0 rgba(255,0,0,0.4), 1px 0 0 rgba(0,255,255,0.4); filter: sepia(0.2) blur(0.5px); }
    100% { opacity: 1;   text-shadow: 1px 0 0 rgba(255,0,0,0.4), -1px 0 0 rgba(0,255,255,0.4); filter: sepia(0) blur(0px); }
}

.view-link:hover {
    animation: vintage-film 0.4s steps(2, end) infinite;
    cursor: pointer;
    text-decoration: none;
}

/* =========================================================
   4. KINETIC TYPOGRAPHY SECTION
   ========================================================= */
.view-all { 
    min-height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.view-all__link {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(5rem, 12vw, 14rem); 
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-decoration: none;
    display: flex; 
    cursor: pointer;
    transition: color 0.4s ease;
    position: relative;
    flex-wrap: wrap; 
    justify-content: center;
}

.view-all__link:hover {
    color: #ffffff; 
}

.view-all__link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    bottom: -15px;
    background-color: currentColor; 
    transform: scaleX(0); 
    transform-origin: right; 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.view-all__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    background-color: #000000 !important;
}

.kinetic-char {
    display: inline-block;
    will-change: transform;
}

.view-all__link:hover .kinetic-char {
    transform: scaleY(var(--scale-y)) scaleX(var(--scale-x)) skew(var(--skew-x), var(--skew-y)) translateY(var(--move-y));
    color: #000000;
    transform: translateY(-100%);
}

/* =========================================================
   5. MEGA FOOTER (Zhenyary Style)
   ========================================================= */
.footer { 
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-body); 
    padding: 4rem 2rem; 
    position: relative; 
    text-align: center;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer__line {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 8vw, 10rem); 
    font-weight: 400; 
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 1.5vw 2.5vw; 
}

/* Elementos decorativos */
.footer__arrow {
    font-family: var(--font-sans); /* Mantenemos una fuente sans-serif limpia */
    font-weight: 300;
    color: #000000; /* Color gris base para las flechas inactivas */
    transition: color 0.3s ease; /* Transición suave para el cambio de color */
}

/* ⚓ Clase que aplicará JavaScript para activar la flecha en la secuencia */
.footer__arrow.is-active {
    color: #FF3B00; /* Naranja vibrante para la flecha activa en la animación */
}
/* ⚓ [NUEVO] Creamos la animación de giro 360 grados */
@keyframes spin-star {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ⚓ [CORRECCIÓN] Actualizamos la estrella para que pueda girar */
.footer__star { 
    color: #FF3B00; 
    
    /* Le damos un tamaño relativo al texto que tiene al lado (1.2em suele igualar visualmente a la fuente) */
    width: 0.8em; 
    height: 0.8em;
    
    /* Mantenemos la animación idéntica */
    display: inline-flex; 
    animation: spin-star 5s linear infinite; 
    transform-origin: center center; 
    
    /* Un pequeño margen izquierdo para separarla de la palabra "collaborations." */
    margin-left: 0.5rem; 
}
.footer__italic { font-style: italic; }
.footer__sub { margin: 0; }

/* Animación de la palabra "something" */
.word-highlight {
    color: inherit; 
    font-style: italic; 
    transition: color .5s ease-in-out; 
}
.footer.visible .word-highlight {
    color: #FFFFFF;
    transition-delay: 0.3s; 
}

/* Enlace de correo y su línea */
.footer__email { 
    color: #FF3B00; 
    text-decoration: none; 
    position: relative; 
    display: inline-block;
}

.footer__email::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px; 
    bottom: 2px; 
    left: 0;
    background-color: #FF3B00;
    transform: scaleX(0); 
    transform-origin: right; 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
}

.footer__email:hover::after {
    transform: scaleX(1); 
    transform-origin: left; 
}

/* Redes Sociales Ancladas al fondo */
.footer__socials { 
    position: absolute;
    bottom: 3rem;
    display: flex; 
    justify-content: center; 
    gap: 4vw; 
    width: 100%;
}

.footer__socials a { 
    font-family: var(--font-sans);
    color: var(--text-black); 
    text-decoration: none; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.footer__socials a:hover {
    opacity: 0.5;
}

/* Animación general de fade */
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   6. PROJECT PAGE SPECIFICS
   ========================================================= */
.project-page {
    padding-top: 80px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #1A1A1A;
}

.bg-gray {
    background-color: #D9D9D9;
    width: 100%;
}

.project-block {
    margin-bottom: 2rem;
}

.project-hero {
    height: 70vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
    background-color: #D9D9D9;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    position: absolute;
    top: 0;
    left: 0;
}

.grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 4rem;
}

/*.grid-half .placeholder-box {
    aspect-ratio: 1 / 1.1;
}*/

.placeholder-box {
    position: relative;
    overflow: hidden;
}

.placeholder-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-natural {
    aspect-ratio: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.img-natural img {
    max-width: 100%;
    height: auto !important;
    object-fit: contain; 
}

.text-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15%;
}

.text-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
}

.inset-container {
    padding: 2rem 10vw;
}

.full-width {
    padding: 2rem 0;
}

.aspect-landscape { aspect-ratio: 16 / 9; }
/*.aspect-landscape-tall { aspect-ratio: 4 / 3; }*/

.project-pagination {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6rem 4rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 4rem;
}

.pagination-link {
    text-decoration: none;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.pagination-link:hover {
    opacity: 0.6;
}

.next-link {
    text-align: right;
}

.next-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.next-client {
    font-size: 0.75rem;
    font-weight: 400;
    color: #666;
}

.arrow-icon {
    width: 40px;
    height: 40px;
}

/* ⚓ LA IMAGEN FIJA AL CENTRO DE LA PANTALLA */
.hover-reveal {
    /* 1. Fijamos la imagen al marco del navegador */
    position: fixed; 
    top: 50%;
    left: 50%;
    
    /* 2. Le damos un tamaño editorial e impactante (adaptable) */
    width: 45vw; 
    min-width: 400px;
    max-width: 700px;
    aspect-ratio: 3/4; 
    
    /* 3. Magia: La enviamos al fondo para que el texto le pase por encima */
    z-index: -1;
    
    /* 4. Estado inicial: Oculta y ligeramente reducida */
    opacity: 0; 
    pointer-events: none; /* Evita que la imagen estorbe al clickear el link */
    overflow: hidden; 
    
    /* Centrado absoluto + reducción inicial */
    transform: translate(-50%, -30%) rotate(3deg);
    
    /* Transición hiper suave y cinematográfica */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* ⚓ Activación 100% CSS (Sin necesidad de JS) */
.projects-list__link:hover .hover-reveal {
    opacity: 1;
    /* La imagen crece a su tamaño real mientras aparece */
    transform: translate(-50%, -50%) rotate(0deg);
}

.hover-reveal__img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* RESPONSIVO MÓVIL */
@media (max-width: 768px) {
    /* ... el CSS responsivo de la lista se mantiene igual ... */
    
    /* Desactivamos el efecto de imagen fija en celulares */
    .hover-reveal {
        display: none;
    }
}

/* =========================================================
   7. MOBILE MENU (Pantalla Completa)
   ========================================================= */
.mobile-only { display: none; }

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #1A1A1A;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%); 
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
}

.mobile-link {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
}

.mobile-link:active {
    opacity: 0.5;
}

.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
    width: 30px; 
    height: 20px; 
    display: none; 
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #1A1A1A;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #FFFFFF;
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #FFFFFF;
}

/* =========================================================
   9. WORK PAGE: PROJECTS GRID LIST
   ========================================================= */

.projects-group {
    height: 100vh;
    width: 100%;
    padding: 15vh 4vw 5vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 4vw;
    row-gap: 2vh;
    align-items: center; 
    scroll-snap-align: start; 
    
    /* ⚓ [CORRECCIÓN CRUCIAL] Garantizamos que no haya transformaciones que atrapen la imagen */
    will-change: opacity; 
    transform: none !important; 
}

/* ⚓ Posicionamiento relativo para que la imagen .hover-reveal no rompa el flujo */
.hover-reveal-item {
    position: relative;
    
    /* ⚓ [CORRECCIÓN CRUCIAL] Matamos cualquier rastro de animaciones previas para liberar el position: fixed */
    will-change: auto !important; 
    transform: none !important; 
}
.hover-reveal-item:nth-child(even) {
    margin-top: 0;
}

/* ⚓ Estructura interna de cada proyecto */
.projects-list__link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: #FF3B00; 
    transition: opacity 0.3s ease;
}

.projects-list__link:hover {
    opacity: 0.6;
}

/* ⚓ Número: Pequeño y alineado arriba/izquierda */
.projects-list__num {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    margin-right: 1.5rem;
    margin-top: 0.8rem; /* Alineado ópticamente con la primera letra */
}

.title-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

/* ⚓ Título principal estilo Editorial */
.projects-list__title {
    font-family: var(--font-display);
    /* Se ajusta a la mitad de la pantalla garantizando que entre */
    font-size: clamp(3rem, 5vw, 8rem); 
    font-weight: 400;
    line-height: 0.9;
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* ⚓ Subtítulo justo debajo del título */
.projects-list__sub {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    margin-top: 1rem;
}

/* =========================================================
   8. MEDIA QUERIES (Celulares y Tablets pequeñas)
   ========================================================= */
@media (max-width: 768px) {
    
    .desktop-only { display: none !important; }
    .menu-toggle.mobile-only { display: flex !important; }
    
    .navbar {
        justify-content: flex-end; 
        padding: 1.5rem 1.5rem; 
    }
    
    .info-bottom-banner { display: none !important; }

    /* Estructura del Hero */
    .hero {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        width: 100%;
        padding: 0 !important;
    }

    .hero__composition {
        position: relative; 
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0;
        flex-direction: column;
        gap: 1rem;
    }

    .hero__box {
        width: 85vw;
        height: 60vh;
        background-color: #CDD0D2;
        position: relative;
        z-index: 1;
        padding: 0;
        box-sizing: border-box;
        margin: -1rem 0;
        order: -1;
    }

    .hero__text {
        position: absolute;
        color: #fff;
        left: 50%;
        z-index: 10;
        font-size: 3rem; 
        line-height: 1;
        font-weight: 400;
        text-align: center;
        width: 100%;
        margin: 0 !important;
    }

    .hero__text--left {
        top: -17px;
        transform: translate(-50%, -50%) !important; 
    }

    .hero__text--right {
        bottom: -15px;
        transform: translate(-50%, 50%) !important; 
    }

    .hero__sidebar {
        width: 100%;
        text-align: center;
        margin-top: 4rem;
        justify-content: center;
        position: relative; 
        right: auto;
        left: auto;
        transform: none; 
    }

    /* Grillas y bloques de proyecto */
    .project-card { grid-template-columns: 1fr; }
    .project-col-right { min-height: 400px; }
    
    .grid-half {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
    
    .text-box { padding: 3rem 0; }
    
    .project-pagination {
        flex-direction: row; /* ⚓ Mantenemos ambos botones en la misma altura */
        justify-content: space-between; /* Uno a la izquierda, otro a la derecha */
        align-items: flex-start; /* Alineados verticalmente al centro */
        padding: 4rem 1.5rem;
        gap: 1rem;
    }
    .pagination-link {
        font-size: 0.7rem; 
        gap: 0.5rem; /* Reducimos el espacio entre el texto y la flecha */
    }
    .next-link {
        flex-direction: row; 
        width: auto; /* ⚓ Quitamos el 100% para que no empuje al otro botón hacia arriba */
        text-align: right;
    }
    .next-text {
        align-items: flex-end;
    }
    .next-client {
        font-size: 0.6rem;
    }
    .arrow-icon {
        width: 25px;
        height: 25px;
    }
    /* Ajustes contra el desbordamiento horizontal en móvil */
    .big-title {
        font-size: 2.2rem; 
        white-space: normal; 
        text-align: center;
        width: 100%;
        bottom: -20px; 
    }
    
    .info-top-content {
        padding: 3rem 1.5rem; 
    }

    .project-col-left {
        padding: 2rem 1.5rem; 
    }
    .projects-list {
        grid-template-columns: 1fr;
        row-gap: 4rem;
        padding: 8rem 1.5rem 2rem;
    }
    
    .hover-reveal-item:nth-child(even) {
        margin-top: 0; /* Quitamos la asimetría en móvil por falta de espacio */
    }

    .projects-list__link {
        align-items: flex-start;
        flex-direction: column; /* Apilamos en móvil para mejor lectura */
    }

    .projects-list__num {
        transform: translateY(0);
        margin-bottom: 0.5rem;
    }

    .projects-list__sub {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    /* ⚓ 1. Convertimos a 1 sola columna y 4 filas para que quepan en la pantalla */
    .projects-group {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr); /* 4 renglones uniformes */
        padding: 12vh 1.5rem 5vh; /* Ajustamos los márgenes laterales y superiores */
        row-gap: 2vh; /* Reducimos el espacio entre proyectos */
        height: 100vh; /* Mantenemos el comportamiento de "pantalla completa" */
    }

    /* ⚓ 2. Reducimos la tipografía para que no desborde */
    .projects-list__title {
        /* Tamaño dinámico basado en el ancho del celular (9vw) */
        font-size: clamp(2rem, 11vw, 3.5rem); 
        white-space: normal; /* ⚓ Permitimos que nombres muy largos bajen a dos líneas en celular para no cortarlos */
        line-height: 0.95;
    }

    /* ⚓ 3. Ajustamos el subtítulo y el número para equilibrar el nuevo tamaño */
    .projects-list__sub {
        font-size: 1rem;
        margin-top: 0.3rem;
        margin-left: 0;
    }

    .projects-list__num {
        margin-right: 1rem;
        margin-top: 0.4rem; /* Alineación fina para la letra más pequeña */
    }

    /* ⚓ 4. Desactivamos el Hover Reveal (imagen fija) en móviles por falta de espacio y hover nativo */
    .hover-reveal {
        display: none !important;
    }

    /* Mega Footer Móvil Ajustes */
    .footer__line {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        gap: 0.5rem 1rem; 
    }
    /* ⚓ [CORRECCIÓN] Forzamos que no haya padding en móvil para mantener el eje central perfecto */
    .footer__star {
        padding-bottom: 0; 
        margin-left: 0.2rem; /* Lo acercamos un poquito más al texto en pantallas chicas */
    }
    .footer__email {
        word-break: break-all;
        line-height: 0.9;
    }
    
    .footer__email::after {
        height: 3px; 
        bottom: -2px;
    }
    
    .footer__socials {
        bottom: 2rem;
        gap: 8vw; 
    }
}