/* ═════════════════════════════════════════════════════════════════════════════
   PROYECTOS — LISTADO

   Galería horizontal a pantalla completa con cursor propio de tres zonas.
   ═════════════════════════════════════════════════════════════════════════════ */

.projects-page {
    height: 100%;
    overflow: hidden;
    touch-action: none;
    /* Same iOS gap as .body_fixed above: overflow:hidden doesn't actually
       block the document from rubber-banding on its own. */
    position: fixed;
    inset: 0;
    width: 100%;
}

#projects-gallery-wrapper {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    overflow: hidden;
    transition: background-color var(--theme-transition);
    z-index: 1;
}

/* ── Slides ── */
.proj-slide {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100svh;
    display: flex;
    align-items: flex-end;
    will-change: transform;
    cursor: default;
    background-color: #000; /* shows through when a project has no cover image */
}

.proj-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--tatc-font-mono);
    font-size: .8rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.proj-slide iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    border: none;
}

.proj-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.8));
    pointer-events: none;
    z-index: 1;
}

/* ── Info del proyecto ── */
.proj-info {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    color: #fff;
    font-family: var(--tatc-font-sans);
    font-size: .75rem;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0em;
    pointer-events: none;
    width: clamp(250px, 45%, 520px);
}

.proj-info .proj-title {
    font-size: 0.95rem;
    font-variation-settings: 'wght' 550;
    margin-bottom: .2rem;
    letter-spacing: -0.03em;
}

.proj-info .proj-meta {
    opacity: 0.7;
    font-size: .65rem;
    font-family: var(--tatc-font-mono);
    line-height: 1.3;
}

.proj-info .proj-meta span {
    display: none;
}

/* ── Cursor personalizado ── */
#proj-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-family: var(--tatc-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: #fff;
    mix-blend-mode: difference;
    white-space: nowrap;
}

#proj-cursor.visible {
    opacity: 1;
}

#proj-cursor .cursor-arrow {
    display: inline-block;
    transition: transform 0.15s ease;
}

/* ── Dots de progreso ── */
#proj-progress {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
}

.prog-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
}

.prog-dot.active {
    background: #fff;
    transform: scale(1.5);
}

/* ── Hint de scroll ── */
#scroll-hint {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: var(--tatc-font-mono);
    font-size: .68rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    animation: hint-pulse 2s ease-in-out infinite;
    mix-blend-mode: difference;
}

/* ── 404 UI Layer Adaptivity ── */
.not-found-ui-layer {
    isolation: isolate;
    mix-blend-mode: multiply;
    background: white;
}

body.dark-mode .not-found-ui-layer {
    mix-blend-mode: screen;
    background: black;
}

@keyframes hint-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-4px);
    }
}

@media (max-width: 768px) {
    .proj-info {
        width: 90%;
        padding: .75rem .75rem 2rem .75rem;
    }

    #scroll-hint {
        left: auto;
        right: 1.5rem;
        transform: translateY(0);
        animation: hint-pulse-mobile 2s ease-in-out infinite;
    }

    /* Override scroll hint animation for mobile without translate X centering */
    @keyframes hint-pulse-mobile {

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

        50% {
            opacity: 1;
            transform: translateY(-4px);
        }
    }

    #proj-cursor {
        /* Centered on mobile */
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        /* Ignore mouse following and force visibility */
        pointer-events: none;
        opacity: 1 !important;
    }
}

/* ── Cursor inteligente 3 zonas (projects.html) ── */
#proj-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 900;
    /* Asegurar que esté por debajo del menú (999) en Projects Page */
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-family: var(--tatc-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: #fff;
    mix-blend-mode: difference;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

#proj-cursor.visible {
    opacity: 1;
}

#proj-cursor .cursor-symbol {
    display: inline-block;
    transition: transform 0.15s ease;
    font-size: 13px;
    line-height: 1;
}

#proj-cursor .cursor-text {
    display: inline-block;
}

/* Zona central: sin texto si no hay link */
#proj-cursor.cursor-mid .cursor-symbol,
#proj-cursor.cursor-mid .cursor-text {
    opacity: 1;
    transition: opacity 0.15s ease;
}

/* Contenedor principal: Fila horizontal por defecto */
.info-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    /* Separación natural entre los bloques */
    align-items: flex-start;
    /* Mantiene los textos alineados arriba */
    width: 100%;
}

/* Cada columna se ajusta a su contenido sin forzar tamaños */
.info-col {
    display: flex;
    flex-direction: column;
}

/* Mobile: Pasa a formato de una sola columna apilada */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        gap: 2.5rem;
        /* Un poco más de aire entre bloques en celular */
    }
}

.container-medium {
    min-width: 160px;
    max-width: 480px;
    margin-top: 2rem;

}

.padding-global {
    padding-bottom: 2rem;
    justify-content: center;
}

.body_no-fixed {
    min-height: 100svh;
    overflow: visible;

    display: flex;
    flex-direction: column;
    position: relative;
}

