/* ==========================================================================
   ZINAPTIK - HOJA DE ESTILOS PORTAFOLIO CINEMATOGRÁFICO
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

/* --- VIDEO CINEMÁTICO DE FONDO CONTINUO (B&W POR DEFECTO, COLOR DINÁMICO EN HOVER) --- */
#kinetic-dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: #050505;
    overflow: hidden;
    pointer-events: none;
}

#kinetic-color-layer {
    position: absolute;
    inset: 0;
    background-color: transparent;
    transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

#kinetic-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: luminosity;
    opacity: 0.85;
    filter: blur(8px);
    transform: scale(1.05);
    z-index: 2;
}

#kinetic-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 35%, #050505 140%);
    pointer-events: none;
    z-index: 3;
}

/* --- ADAPTACIÓN DE LA BARRA DE NAVEGACIÓN EN FONDO OSCURO --- */
.navbar .nav-links a {
    color: #ffffff !important;
}

.navbar .nav-links a:hover {
    color: #00ffcc !important;
}

.navbar .lang-btn, 
.navbar .cart-btn,
.navbar .nav-menu-toggle {
    color: #ffffff !important;
}

.navbar .lang-btn:hover, 
.navbar .cart-btn:hover,
.navbar .nav-menu-toggle:hover {
    color: #00ffcc !important;
}

@media (max-width: 900px) {
    .navbar .nav-links {
        background: rgba(15, 23, 42, 0.96) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    .navbar .nav-links a {
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
}

/* --- PIE DE PÁGINA CINEMÁTICO --- */
.site-footer {
    background: rgba(0, 0, 0, 0.4) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.site-footer * {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-logo-img {
    filter: none !important;
}

/* --- CONTENEDOR Y CABECERA DEL PORTAFOLIO --- */
.portfolio-container {
    padding: 160px 0 120px 0;
    width: 100%;
    position: relative;
    z-index: 10;
}

.portfolio-header {
    padding: 0 5vw;
    margin-bottom: 70px;
}

.portfolio-title-wrapper {
    margin-bottom: 15px;
}

.portfolio-title-wrapper h1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    line-height: 1.1;
    text-shadow: none;
    filter: none;
}

.text-gradient {
    background: linear-gradient(90deg, #00ffcc, #a855f7, #00ffcc);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShine 3s linear infinite;
    text-shadow: none;
    filter: none;
    display: inline-block;
}

@keyframes gradientShine {
    to { background-position: 200% center; }
}

.ph-title {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    max-width: 900px;
    line-height: 1.6;
    margin: 0;
}

/* --- BOTONES DE FILTRO DE CATEGORÍAS (PILL GLASSMORPHISM) --- */
.portfolio-filters {
    margin-top: 35px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    padding: 10px 22px;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    user-select: none;
}

.filter-btn .f-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.filter-btn .f-label {
    line-height: 1;
}

.filter-btn .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.filter-btn:hover .f-icon {
    transform: scale(1.15);
    opacity: 1;
}

.filter-btn.active {
    background: #ffffff !important;
    color: #050505 !important;
    border-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25), 0 0 25px rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px);
    font-weight: 800;
}

.filter-btn.active .f-icon {
    color: #050505 !important;
    opacity: 1;
}

.filter-btn.active .filter-count {
    background: #050505 !important;
    color: #ffffff !important;
}

/* --- LISTA DE PROYECTOS CINEMÁTICOS --- */
.project-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.5s ease;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4.5vh 5vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, opacity 0.3s ease, transform 0.3s ease;
}

.project-item h2 {
    font-size: 7vw;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.45);
    color: transparent;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
    letter-spacing: -2px;
    white-space: nowrap;
}

.project-meta {
    text-align: right;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.project-meta span {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.project-meta p {
    margin: 10px 0 0 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 400px;
    font-weight: 300;
    line-height: 1.5;
}

/* Interacción Hover en Proyecto */
.project-item:hover {
    padding: 6.5vh 5vw;
}

.project-item:hover h2 {
    color: #ffffff;
    -webkit-text-stroke: 1.5px #ffffff;
    transform: translateX(2.5vw);
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
}

.project-item:hover .project-meta {
    opacity: 1;
    transform: translateX(0);
}

/* --- CURSOR PERSONALIZADO: SOLO LA IMAGEN FLOTANTE (SIN CÍRCULO NI BORDE) --- */
#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    min-width: 80px;
    min-height: 80px;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 !important;
    overflow: visible;
}

#cursor-follower #cf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#cursor-follower .cf-inner-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#cursor-follower .cf-img {
    max-width: 130px;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

#cursor-follower .cf-symbol {
    font-size: 50px;
    color: #00ffcc;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.85));
}

/* Desactivar cursor follower en pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
    #cursor-follower {
        display: none !important;
    }
}

/* --- RESPONSIVIDAD MÓVIL Y TABLETAS --- */
@media (max-width: 900px) {
    .portfolio-container {
        padding: 100px 0 60px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .portfolio-header {
        padding: 0 16px !important;
        margin-bottom: 25px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .portfolio-title-wrapper h1 {
        font-size: 32px !important;
        line-height: 1.1 !important;
    }
    .project-item {
        padding: 20px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .project-item h2 {
        font-size: 28px !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.15 !important;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
    }
    .project-item:hover h2 {
        transform: translateX(4px);
        -webkit-text-stroke: 1px #ffffff;
    }
    .project-meta {
        display: none !important;
    }
    .ph-title {
        font-size: 14px !important;
        line-height: 1.5 !important;
        padding: 0 !important;
    }
    .portfolio-filters {
        margin-top: 20px !important;
        display: flex !important;
        overflow-x: auto !important;
        padding-bottom: 8px !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
    }
    .portfolio-filters::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        flex-shrink: 0 !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 540px) {
    .portfolio-container {
        padding: 90px 0 50px 0 !important;
    }
    .portfolio-header {
        padding: 0 12px !important;
    }
    .project-item {
        padding: 16px 12px !important;
    }
    .project-item h2 {
        font-size: 22px !important;
    }
    .portfolio-title-wrapper h1 {
        font-size: 26px !important;
    }
    .ph-title {
        font-size: 13px !important;
    }
}
