/* --- CONFIGURACIÓN GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Satoshi', sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* --- NAVEGACIÓN --- */
.liquid-nav {
    position: fixed;
    top: 30px;
    right: 40px;
    padding: 12px 35px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(7px) saturate(160%);
    border-radius: 100px;
    border: 1px solid rgba(200, 200, 200, 0.2);
    transition: all 0.5s ease;
}

.liquid-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 300;
    font-size: 1rem;
    transition: opacity 0.6s ease, filter 0.6s ease;
}

.nav-link.active-fade {
    opacity: 0.15;
    filter: blur(4px);
}

.nav-link:hover,
.nav-link.is-touched {
    opacity: 0.7; 
}

/* --- HERO & VIDEOS --- */
.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.logo-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-desktop, .logo-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-bottom: -2px;
    pointer-events: none;
    will-change: opacity;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-desktop {
    display: block;
}

.logo-mobile {
    display: none;
}

/* --- SECCIÓN Y GRILLA DE PROYECTOS --- */
.section-proyectos {
    min-height: 100vh;
    width: 100%;
    padding: 0;
    display: flex;
    align-items: stretch;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 0;
    will-change: opacity;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card {
    text-decoration: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                background-color 0.3s ease;
    will-change: opacity, transform;
}

.project-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(3n) {
    border-right: none;
}

.project-card:hover {
    background-color: #f9f9f9;
}

.project-card span {
    font-weight: 300;
    font-size: 1.2rem;
    z-index: 2;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(100%);
    position: absolute;
    top: 0;
    left: 0;
}

.project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.project-info h3 {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.project-info p {
    font-weight: 300;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-card:hover .project-info,
.project-card.is-touched .project-info {
    opacity: 1;
}

.project-card:hover .project-image,
.project-card.is-touched .project-image {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* --- VISTA DE PROYECTO ESTÁNDAR --- */
.project-page {
    padding-top: 150px;
}

.project-header {
    padding: 0 5%;
    margin-bottom: 60px;
}

.project-title {
    font-weight: 900;
    font-size: 6vw;
    line-height: 0.9;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.project-meta {
    font-weight: 300;
    font-size: 1.1rem;
    display: flex;
    gap: 20px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-hero-image {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-description {
    padding: 100px 5%;
}

.description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.description-col h3 {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.description-col p {
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* --- GALERÍA EN PROYECTO ESTÁNDAR --- */
.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #000;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid #000;
}

.gallery-item:nth-child(odd) {
    border-right: 1px solid #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay span {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* --- VENTANA MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: #fff;
    overflow-y: auto;
    padding: 80px 5%;
}

.close-modal {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
}

.modal-content {
    max-width: 1200px;
    margin: 0 auto;
}

.modal-info {
    margin-bottom: 60px;
    max-width: 700px;
}

.modal-info h2 {
    font-weight: 900;
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.modal-info p {
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.6;
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.modal-gallery-grid img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
}

.next-project {
    text-align: center;
    padding: 120px 5%;
    background-color: #fff;
    transition: background-color 0.4s ease;
}

.next-project:hover {
    background-color: #f0f0f0;
}

.next-project a {
    text-decoration: none;
    color: #000;
    display: block;
}

.next-project span {
    font-weight: 300;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.next-project h2 {
    font-weight: 900;
    font-size: 4vw;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* --- SECCIÓN SOBRE MÍ --- */
.sobre-mi-page {
    min-height: 100vh;
    width: 100%;
    padding: 180px 5% 100px 5%;
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    will-change: opacity;
}

.sobre-mi-page.fade-in-active {
    opacity: 1;
}

.sobre-mi-container {
    max-width: 900px;
    margin-left: 5%;
}

.sobre-mi-text {
    text-align: left;
}

.sobre-mi-text h2 {
    font-weight: 900;
    font-size: 5vw;
    line-height: 1.1;
    margin-bottom: 60px;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.sobre-mi-text p {
    font-weight: 300;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 35px;
    color: #000;
}

.sobre-mi-text .gear-info {
    font-size: 1.1rem;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #000;
}

.sobre-mi-text .gear-info strong {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-right: 8px;
}

/* --- SECCIÓN CONTACTO --- */
.contacto-page {
    min-height: 100vh;
    width: 100%;
    padding: 180px 5% 100px 5%;
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    will-change: opacity;
}

.contacto-page.fade-in-active {
    opacity: 1;
}

.contacto-container {
    max-width: 1200px;
    margin-left: 5%;
    width: 100%;
}

.contacto-title {
    font-weight: 900;
    font-size: 8vw;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -3px;
    text-transform: uppercase;
}

.contacto-subtitle {
    font-weight: 300;
    font-size: 1.5rem;
    margin-bottom: 60px;
    color: #000;
    max-width: 600px;
}

.contacto-email {
    display: inline-block;
    font-weight: 900;
    font-size: 3vw;
    color: #000;
    text-decoration: none;
    margin-bottom: 80px;
    border-bottom: 4px solid #000;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.contacto-email:hover,
.contacto-email.is-touched {
    color: #666;
    border-color: #666;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    border-top: 1px solid #000;
    padding-top: 40px;
}

.social-grid a {
    text-decoration: none;
    color: #000;
    font-weight: 300;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-grid a:hover,
.social-grid a.is-touched {
    transform: translateY(-5px);
    font-weight: 900;
}

/* --- CASOS DE ESTUDIO FLUIDOS (EJ: SKINSPHERE) --- */
.project-page-fluid {
    width: 100%;
    background-color: #fff;
    padding-top: 0;
}

.sk-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 8%;
    box-sizing: border-box;
}

.bg-white { background-color: #ffffff; }
.bg-light { background-color: #fcfcfc; border-top: 1px solid #000; border-bottom: 1px solid #000; }

.sk-hero-center {
    height: 100vh;
    background-color: #fff;
}
.sk-hero-logo {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.sk-text-container {
    max-width: 800px;
    width: 100%;
}
.sk-text-container h2, .sk-split-text h2 {
    font-weight: 900;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 30px;
}
.sk-text-container p, .sk-split-text p, .sk-tech-explanation p {
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1.65;
    color: #000;
}

.sk-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    width: 100%;
}
.sk-render-main {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

.sk-technical-container, .sk-materials-container {
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-direction: column;
}
.sk-tech-header, .sk-materials-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #000;
    padding-bottom: 15px;
    margin-bottom: 50px;
}
.sk-tech-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
.sk-tech-diagram img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
}
.sk-tech-explanation h3 {
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sk-materials-sub {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 40px;
}
.sk-materials-img {
    width: 100%;
    height: auto;
    margin: 20px 0;
}
.sk-materials-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}
.indicator-blue {
    font-size: 0.9rem;
    color: #0055ff;
    font-weight: 900;
}

/* --- BOTONERA DOBLE DE NAVEGACIÓN FLUIDA --- */
.project-navigation {
    display: flex;
    width: 100%;
    border-top: 1px solid #000;
    background-color: #fff;
}
.nav-box {
    flex: 1;
    padding: 60px 5%;
    transition: background-color 0.4s ease;
}
.nav-prev {
    border-right: 1px solid #000;
}
.nav-box:hover {
    background-color: #f9f9f9;
}
.nav-box a {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
}
.nav-direction {
    font-weight: 300;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #666;
}
.nav-project-name {
    font-weight: 900;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.nav-next {
    text-align: right;
}

.project-page-fluid.fade-in-child {
    opacity: 0;
    transition: opacity 0.8s ease-out;
    will-change: opacity;
}

.project-page-fluid.fade-in-child.fade-in-active {
    opacity: 1;
}

/* --- SECCIÓN PRÓXIMAMENTE --- */
.proximamente-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    will-change: opacity;
}

.proximamente-page.fade-in-active {
    opacity: 1;
}

.proximamente-container {
    max-width: 1000px;
}

.proximamente-title {
    font-weight: 900;
    font-size: 7vw;
    line-height: 1.1;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #000000;
}

.proximamente-subtitle {
    font-weight: 300;
    font-size: 2rem;
    color: #000000;
    letter-spacing: -0.5px;
}

/* --- COMPONENTES MÍNIMOS Y FOOTER --- */
.footer-minimal {
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 1000;
}

.footer-minimal p {
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.visual-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* --- SOPORTE DISPOSITIVOS MÓVILES (HOVER CONDICIONAL Y MEDIA QUERIES) --- */
@media (hover: hover) {
    .contacto-email:hover { color: #666; border-color: #666; }
    .social-grid a:hover { transform: translateY(-5px); font-weight: 900; }
}

@media (max-width: 900px) {
    .sk-section { padding: 80px 5%; min-height: auto; }
    .sk-split-grid, .sk-tech-content { grid-template-columns: 1fr; gap: 40px; }
    .sk-text-container h2, .sk-split-text h2 { font-size: 2.2rem; }
    .sk-text-container p, .sk-split-text p, .sk-tech-explanation p { font-size: 1.1rem; }
    .nav-project-name { font-size: 1.6rem; }
    .nav-box { padding: 40px 4%; }
}

@media (max-width: 768px) {
    .logo-desktop {
        display: none !important;
    }
    .logo-mobile {
        display: block !important;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0; 
    }

    .project-card {
        border-right: 1px solid #000000;
        border-bottom: 1px solid #000000;
    }

    .project-card:nth-child(2n) {
        border-right: none;
    }

    .project-card:nth-child(3n) {
        border-right: 1px solid #000000;
    }
    
    .project-card:nth-child(2n) {
        border-right: none;
    }

    .project-title {
        font-size: 12vw;
    }

    .description-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(odd) {
        border-right: none;
    }

    .next-project h2 {
        font-size: 2rem;
    }

    .sobre-mi-page {
        padding-top: 130px;
    }

    .sobre-mi-container {
        margin-left: 0;
    }

    .sobre-mi-text h2 {
        font-size: 2.8rem;
    }

    .sobre-mi-text p {
        font-size: 1.1rem;
    }

    .contacto-page {
        padding-top: 130px;
    }
    
    .contacto-container {
        margin-left: 0;
    }
    
    .contacto-title {
        font-size: 4rem;
        letter-spacing: -1px;
    }
    
    .contacto-email {
        font-size: 1.5rem;
        border-bottom: 2px solid #000;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .proximamente-title {
        font-size: 11vw;
        letter-spacing: -1px;
    }
    
    .proximamente-subtitle {
        font-size: 1.3rem;
    }
}