*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
    font-family:Helvetica, Arial, sans-serif;
    background:white;
    color:#111;
    overflow-x:hidden;
}

body.no-scroll{ overflow:hidden; }

img{ display:block; width:100%; }

a{ text-decoration:none; color:inherit; }

/* ================================================
   HEADER
   ================================================ */

header{
    position:fixed;
    top:0; left:0;
    width:100%;
    padding:20px 24px;
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(10px);
    z-index:100;
    display:flex;
    flex-direction:column;
    align-items:center;
    border-bottom:1px solid rgba(0,0,0,0.06);
}

.logo{ width:180px; margin-bottom:14px; }

nav{
    display:flex;
    gap:16px;
    font-size:11px;
    letter-spacing:1px;
    text-transform:uppercase;
    flex-wrap:wrap;
    justify-content:center;
}

nav a{ color:#666; transition:0.3s ease; }
nav a:hover{ color:#111; }

/* ================================================
   TIMELINE
   ================================================ */

.timeline{
    position:relative;
    width:100%;
    max-width:1400px;
    margin:auto;
    padding:180px 24px 100px;
}

.timeline::before{ display:none; }

.timeline-line{
    position:absolute;
    left:20px;
    width:1px;
    background:#dddddd;
    z-index:0;
    pointer-events:none;
}

/* ================================================
   ITEMS
   ================================================ */

.timeline-item{
    position:relative;
    width:100%;
    display:flex;
    justify-content:flex-start;
    margin:80px 0;
}

.timeline-dot{
    position:absolute;
    left:20px;
    top:0;
    width:14px; height:14px;
    border-radius:50%;
    background:#cfcfcf;
    transform:translateX(-50%);
    z-index:10;
}

.content{
    width:100%;
    padding-left:44px;
}

.item-year{
    font-size:11px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#999;
    margin-bottom:10px;
}

.image{
    width:100%;
    overflow:hidden;
    background:#efefef;
}

.image img{
    width:100%;
    height:auto;
    display:block;
    filter:grayscale(100%);
    transition:transform 1.2s ease, filter 0.6s ease;
}

.image{ cursor:pointer; overflow:hidden; }

.content:hover .image img{ transform:scale(1.04); filter:grayscale(0%); }

.color-thumb img, .color-thumb img:hover{ filter:none !important; transition:transform 1.2s ease !important; }

.info{ padding-top:16px; }

.year{
    font-size:11px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#999;
    margin-bottom:12px;
}

h1,h2{ font-weight:400; margin-bottom:16px; }
h1{ font-size:36px; line-height:1.1; }
h2{ font-size:24px; line-height:1.2; }

p{ font-size:15px; line-height:1.8; color:#444; }

.more{
    margin-top:20px;
    width:38px; height:38px;
    border-radius:50%;
    border:1px solid #666;
    background:#666;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    font-family:inherit;
    color:white;
    transition:0.3s ease;
}

.more:hover{ background:white; color:#666; border-color:#666; }

/* ================================================
   EN CONSTRUCCION
   ================================================ */

.en-construccion{
    font-size:10px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:white;
    background:#c0c0c0;
    padding:12px 20px;
    margin-bottom:40px;
    display:inline-block;
}

/* ================================================
   ACTUALMENTE
   ================================================ */

.current{ margin-bottom:100px; margin-top:0; }

.current .content{
    width:100%;
    padding-left:44px;
    text-align:left;
}

.current .timeline-dot{
    left:20px;
    top:auto;
    bottom:-60px;
    transform:translateX(-50%);
}

.status{ margin-top:32px; display:flex; flex-direction:column; gap:14px; text-align:left; }

.status-link,
.status div{
    border-left:1px solid #ddd;
    padding-left:14px;
    color:#555;
    font-size:14px;
}

.status-link{
    cursor:pointer;
    transition:color 0.3s;
}

.status-link:hover{ color:#111; }

/* ================================================
   BIO
   ================================================ */

.bio{
    position:relative;
    margin-top:100px;
    text-align:left;
    padding-bottom:60px;
    padding-left:44px;
    background:white;
    z-index:2;
}

.bio::after{
    content:"";
    position:absolute;
    left:20px;
    top:18px;
    width:4px;
    height:100%;
    background:white;
    transform:translateX(-50%);
}

.bio-dot{
    width:14px; height:14px;
    border-radius:50%;
    background:#cfcfcf;
    margin:0 0 32px 0;
    position:relative;
    z-index:10;
    transform:translateX(calc(-44px + 50%));
}

.bio-content{ max-width:700px; position:relative; z-index:10; }

.bio-content a{
    color:#111;
    border-bottom:1px solid #ccc;
    transition:border-color 0.2s ease;
}
.bio-content a:hover{ border-color:#111; }

.cv-download{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-top:28px;
    font-size:11px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#999;
    transition:color 0.3s;
}

.cv-download img{
    width:24px;
    height:auto;
    display:inline-block;
    opacity:0.4;
    transition:opacity 0.3s;
}

.cv-download:hover{ color:#111; }
.cv-download:hover img{ opacity:0.8; }

/* ================================================
   FOOTER
   ================================================ */

footer{
    text-align:center;
    padding:40px 24px;
    background:#f7f7f7;
    border-top:1px solid #e5e5e5;
}

.footer-logo{ display:inline-block; margin-bottom:14px; }

.footer-logo img{
    width:80px;
    margin:auto;
    opacity:0.6;
    transition:opacity 0.3s;
}

.footer-logo:hover img{ opacity:1; }

.copyright{ font-size:11px; letter-spacing:0.5px; color:#999; }

/* ================================================
   OVERLAY FONDO
   ================================================ */

.overlay-bg{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.85);
    z-index:200;
    opacity:0;
    pointer-events:none;
    transition:opacity 0.4s ease;
}

.overlay-bg.active{ opacity:1; pointer-events:all; }

/* ================================================
   OVERLAY — mobile: sheet desde abajo
   ================================================ */

.overlay{
    position:fixed;
    inset:0;
    z-index:300;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    opacity:0;
    pointer-events:none;
    transform:translateY(40px);
    transition:opacity 0.4s ease, transform 0.4s ease;
}

.overlay.active{
    opacity:1;
    pointer-events:all;
    transform:translateY(0);
}

.overlay-inner{
    position:relative;
    background:white;
    width:100%;
    max-height:92vh;
    overflow-y:auto;
    padding:48px 24px 40px;
    border-radius:0;
}

.overlay-close{
    position:absolute;
    top:16px; right:20px;
    background:none;
    border:none;
    font-size:28px;
    cursor:pointer;
    color:#999;
    line-height:1;
    font-family:inherit;
    transition:color 0.2s;
    z-index:10;
}

.overlay-close:hover{ color:#111; }

/* layouts overlay — mobile: todo en columna */

.overlay-layout.text-image,
.overlay-layout.slider-layout,
.overlay-layout.text-only{
    display:flex;
    flex-direction:column;
    gap:32px;
}

.overlay-image{ width:100%; overflow:hidden; background:none; }
.overlay-image img{ width:100%; height:auto; display:block; filter:none; }

.overlay-body h2{ font-size:28px; font-weight:400; margin-bottom:20px; line-height:1.1; }
.overlay-body p{ font-size:15px; line-height:1.9; color:#444; margin-bottom:14px; }
.overlay-body.wide h2{ font-size:28px; font-weight:400; margin-bottom:28px; }

.overlay-meta{
    display:flex;
    gap:24px;
    flex-wrap:wrap;
    margin-top:28px;
    padding-top:24px;
    border-top:1px solid #e5e5e5;
}

.overlay-meta div{ font-size:13px; color:#444; }

.overlay-meta span{
    display:block;
    font-size:10px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#999;
    margin-bottom:6px;
}

.overlay-body a{
    display:inline-block;
    margin-top:20px;
    font-size:13px;
    color:#111;
    text-decoration:none;
    border-bottom:1px solid #111;
    padding-bottom:2px;
    transition:opacity 0.2s ease;
}
.overlay-body a:hover{ opacity:0.5; }

/* SLIDER */

.overlay-slider-wrap{
    display:flex;
    flex-direction:column;
    width:100%;
}

.overlay-slides-container{
    position:relative;
    width:100%;
    aspect-ratio:1/1;
    background:#f0f0f0;
    overflow:hidden;
}

.overlay-slides{
    position:absolute;
    top:0; left:0;
    width:100%; height:100%;
    display:flex;
    transition:transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide{
    min-width:100%;
    width:100%;
    height:100%;
    flex-shrink:0;
    flex-grow:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    background:#f0f0f0;
    box-sizing:border-box;
    overflow:hidden;
}

.slide img{
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    filter:none;
    flex-shrink:0;
}

/* sliders en byn: agregar clase byn-slider al overlay-slider-wrap */


.slide-count{
    text-align:center;
    font-size:11px;
    letter-spacing:2px;
    color:#999;
    margin-top:10px;
}

.arrow{
    background:none;
    border:none;
    cursor:pointer;
    padding:8px 16px;
    color:#111;
    opacity:0.4;
    font-size:20px;
    font-family:inherit;
    transition:opacity 0.3s;
}

.arrow:hover{ opacity:1; }
.arrow-prev{ left:auto; }
.arrow-next{ right:auto; }


.slider-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:8px 0 0;
}

@media(max-width:768px){
    .slider-nav{ display:none; }
}

.overlay-slider-info h2{ font-size:24px; font-weight:400; margin-bottom:16px; }
.overlay-slider-info p{ font-size:15px; line-height:1.9; color:#444; }

.slide-caption{
    display:flex;
    gap:12px;
    font-size:11px;
    color:#999;
    letter-spacing:1px;
    margin-top:20px;
    padding-top:16px;
    border-top:1px solid #f0f0f0;
}

/* texto solo */

.text-cols{
    display:flex;
    flex-direction:column;
    gap:24px;
    margin-bottom:32px;
}

.text-cols p{ font-size:15px; line-height:2; color:#444; }
.text-cols p + p{ margin-top:16px; }

.text-cols > div{
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
}

/* ================================================
   FLIPBOOK
   ================================================ */

.overlay-flipbook{
    padding:0;
    align-items:stretch;
}

.overlay-inner-flipbook{
    max-width:100%;
    width:100%;
    height:95vh;
    max-height:95vh;
    padding:24px 24px 20px;
    display:flex;
    flex-direction:column;
    gap:16px;
    overflow:hidden;
    box-sizing:border-box;
    background:#1a1a1a;
}

.overlay-flipbook .flipbook-header .year,
.overlay-flipbook .flipbook-header h2{
    color:white;
}

.flipbook-header{
    flex-shrink:0;
}

.flipbook-header h2{
    font-size:20px;
    font-weight:400;
    margin-bottom:4px;
}

.flipbook-rotate-hint{
    font-size:11px;
    letter-spacing:1px;
    color:#999;
    margin-top:4px;
    display:none;
}

@media(max-width:900px){
    .flipbook-rotate-hint{ display:block; }
}

.flipbook-stage{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    min-height:0;
}

.flipbook-book{
    margin:0 auto;
}

.flipbook-page{
    background:white;
    overflow:hidden;
}

.flipbook-page img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    filter:none !important;
}

.flipbook-thumb img{
    filter:none !important;
}

.flipbook-page-filler{
    background:white;
    opacity:1;
}

.flipbook-controls{
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
}

.flipbook-btn{
    background:none;
    border:1px solid rgba(255,255,255,0.3);
    padding:8px 14px;
    cursor:pointer;
    font-size:14px;
    font-family:inherit;
    color:rgba(255,255,255,0.7);
    transition:0.2s;
}

.flipbook-btn:hover{
    background:rgba(255,255,255,0.15);
    color:white;
    border-color:rgba(255,255,255,0.6);
}

.flipbook-page-count{
    font-size:12px;
    letter-spacing:1px;
    color:rgba(255,255,255,0.5);
    min-width:60px;
    text-align:center;
}

/* item solo texto en la timeline */
.text-only-year{
    position:absolute;
    left:20px;
    top:0;
    transform:translateX(24px);
    font-size:11px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#999;
    margin-bottom:0;
}

.text-only-item{
    padding:8px 0 32px;
    width:100%;
    padding-left:44px;
}

@media(min-width:900px){
    .text-only-year{
        left:50%;
        transform:translateX(12px);
    }
    .text-only-item{
        width:42%;
        padding-left:0;
    }
}

.content.text-only-item h2{
    font-size:24px;
    font-weight:400;
    font-style:italic;
    margin-top:16px;
    margin-bottom:10px;
    color:#333;
    line-height:1.3;
}

.text-only-item p{
    font-size:14px;
    color:#777;
    line-height:1.8;
}

@media(min-width:900px){
    .content.text-only-item h2{
        font-size:34px;
        margin-bottom:12px;
    }
    .text-only-item p{
        font-size:15px;
    }
}

.proyectos-lista{
    display:flex;
    flex-direction:column;
    gap:40px;
    margin-top:16px;
}

.text-only-item a{
    display:inline-block;
    margin-top:8px;
    font-size:12px;
    letter-spacing:1px;
    color:#111;
    text-decoration:none;
    border-bottom:1px solid #111;
    padding-bottom:2px;
    transition:opacity 0.2s ease;
}
.text-only-item a:hover{ opacity:0.4; }

.proyecto-item{
    padding-bottom:40px;
    border-bottom:1px solid #efefef;
}

.proyecto-item:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.proyecto-item h3{
    font-size:22px;
    font-weight:400;
    margin-bottom:12px;
    color:#111;
}

.proyecto-item p{
    font-size:15px;
    line-height:1.9;
    color:#555;
}

/* ================================================
   FLIPBOOK
   ================================================ */

.overlay-flipbook{
    padding:0;
    align-items:stretch;
}

.overlay-inner-flipbook{
    max-width:100%;
    width:100%;
    height:95vh;
    max-height:95vh;
    padding:24px 24px 20px;
    display:flex;
    flex-direction:column;
    gap:16px;
    overflow:hidden;
    box-sizing:border-box;
    background:#1a1a1a;
}

.overlay-flipbook .flipbook-header .year,
.overlay-flipbook .flipbook-header h2{
    color:white;
}

.flipbook-header{
    flex-shrink:0;
}

.flipbook-header h2{
    font-size:20px;
    font-weight:400;
    margin-bottom:4px;
}

.flipbook-rotate-hint{
    font-size:11px;
    letter-spacing:1px;
    color:#999;
    margin-top:4px;
    display:none;
}

@media(max-width:900px){
    .flipbook-rotate-hint{ display:block; }
}

.flipbook-stage{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    min-height:0;
}

.flipbook-book{
    margin:0 auto;
}

.flipbook-page{
    background:white;
    overflow:hidden;
}

.flipbook-page img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    filter:none !important;
}

.flipbook-thumb img{
    filter:none !important;
}

.flipbook-page-filler{
    background:white;
    opacity:1;
}

.flipbook-controls{
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
}

.flipbook-btn{
    background:none;
    border:1px solid rgba(255,255,255,0.3);
    padding:8px 14px;
    cursor:pointer;
    font-size:14px;
    font-family:inherit;
    color:rgba(255,255,255,0.7);
    transition:0.2s;
}

.flipbook-btn:hover{
    background:rgba(255,255,255,0.15);
    color:white;
    border-color:rgba(255,255,255,0.6);
}

.flipbook-page-count{
    font-size:12px;
    letter-spacing:1px;
    color:rgba(255,255,255,0.5);
    min-width:60px;
    text-align:center;
}

/* item solo texto en la timeline */
.text-only-year{
    position:absolute;
    left:20px;
    top:0;
    transform:translateX(24px);
    font-size:11px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#999;
    margin-bottom:0;
}

.text-only-item{
    padding:8px 0 32px;
    width:100%;
    padding-left:44px;
}

@media(min-width:900px){
    .text-only-year{
        left:50%;
        transform:translateX(12px);
    }
    .text-only-item{
        width:42%;
        padding-left:0;
    }
}

.content.text-only-item h2{
    font-size:24px;
    font-weight:400;
    font-style:italic;
    margin-top:16px;
    margin-bottom:10px;
    color:#333;
    line-height:1.3;
}

.text-only-item p{
    font-size:14px;
    color:#777;
    line-height:1.8;
}

@media(min-width:900px){
    .content.text-only-item h2{
        font-size:34px;
        margin-bottom:12px;
    }
    .text-only-item p{
        font-size:15px;
    }
}

.proyectos-lista{
    display:flex;
    flex-direction:column;
    gap:40px;
    margin-top:8px;
}

.proyecto-item{
    padding-bottom:40px;
    border-bottom:1px solid #efefef;
}

.proyecto-item:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.proyecto-item h3{
    font-size:20px;
    font-weight:400;
    margin-bottom:12px;
    color:#111;
}

.proyecto-item p{
    font-size:15px;
    line-height:1.9;
    color:#555;
}

.overlay-cta{
    display:inline-block;
    margin-top:24px;
    font-size:11px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#111;
    border-bottom:1px solid #111;
    padding-bottom:4px;
    transition:opacity 0.3s;
}

.overlay-cta:hover{ opacity:0.5; }

/* modelos strip */

.modelo-strip{
    display:flex;
    gap:6px;
    margin-bottom:28px;
}

.modelo-strip img{
    flex:1;
    width:0 !important;
    height:80px !important;
    object-fit:cover;
    display:block;
    filter:none;
}

.modelo-strip img:nth-child(4),
.modelo-strip img:nth-child(5){
    display:none;
}

/* ================================================
   DESKTOP — min-width 900px
   ================================================ */

@media(min-width:900px){

    header{ padding:30px 40px; }
    .logo{ width:240px; margin-bottom:18px; }
    nav{ gap:28px; font-size:12px; flex-wrap:nowrap; }

    .timeline{ padding:260px 40px 140px; }

    .timeline-line{ left:50%; transform:translateX(-50%); }

    .timeline-item{ margin:180px 0; }

    .timeline-item.left{ justify-content:flex-start; }
    .timeline-item.right{ justify-content:flex-end; }

    .timeline-dot{
        left:50%;
        top:0;
        width:16px; height:16px;
        transform:translateX(-50%);
    }

    .content{ width:42%; padding-left:0; }

    h1{ font-size:52px; }
    h2{ font-size:34px; }

    .current{ margin-bottom:320px; }

    .current .content{
        width:50%;
        margin:auto;
        text-align:center;
        padding-left:0;
    }

    .current h1{ font-size:28px; }

    .current .timeline-dot{
        left:50%;
        top:auto;
        bottom:-130px;
        transform:translateX(-50%);
    }

    .status div,
    .status-link{ font-size:15px; }

    .bio{
        margin-top:240px;
        text-align:center;
        padding-left:0;
        padding-bottom:80px;
    }

    .bio::after{
        left:50%;
        width:10px;
        transform:translateX(-50%);
    }

    .bio-dot{
        margin:0 auto 40px;
        transform:none;
        width:18px; height:18px;
    }

    .bio-content{ margin:auto; }

    footer{ padding:48px 40px 52px; }
    .footer-logo img{ width:100px; }

    /* overlay desktop: centrado */

    .overlay{
        align-items:center;
        padding:40px;
        transform:translateY(24px);
    }

    .overlay-inner{
        max-width:1200px;
        max-height:90vh;
        padding:60px;
    }

    .overlay-close{ top:24px; right:28px; font-size:32px; }

    .overlay-layout.text-image{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:60px;
        flex-direction:unset;
    }

    .overlay-layout.slider-layout{
        display:grid;
        grid-template-columns:1.4fr 1fr;
        gap:60px;
        min-width:0;
        flex-direction:unset;
    }

    .overlay-layout.slider-layout > div{ min-width:0; }

    .overlay-layout.text-only{ flex-direction:row; }

    .overlay-body h2{ font-size:40px; }
    .overlay-body.wide h2{ font-size:48px; margin-bottom:40px; }
    .overlay-slider-info h2{ font-size:34px; }

    .text-cols{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:60px;
        margin-bottom:40px;
        flex-direction:unset;
        align-items:end;
    }

    .modelo-strip img{
        height:120px !important;
    }

    .modelo-strip img:nth-child(4),
    .modelo-strip img:nth-child(5){
        display:flex;
    }
}