
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Segoe UI', sans-serif;
}

body{
    background:#fff;
    min-height:200vh; /* solo para probar scroll */
}

/* ===== HEADER ===== */

.header-wrapper{
    position:fixed;
    top:20px;
    left:0;
    width:100%;
    display:flex;
    justify-content:center;
    z-index:1000;
}

.header{
    width:90%;
    max-width:1200px;
    background:#0a2a66;
    border-radius:18px;
    padding:18px 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

/* Logo */
.logo{
    font-size:24px;
    font-weight:600;
    color:white;
}

/* NAV */
.nav{
    display:flex;
    gap:35px;
    list-style:none;
}

.nav a{
    text-decoration:none;
    font-family: Arial;
    color:white;
    font-weight:500;
    transition:0.3s;
}

.nav a:hover{
    color:white;
}

/* Botón */
.btn-contacto{
    padding:10px 22px;
    background:white;
    color:black;
    border-radius:30px;
    text-decoration:none;
    font-weight:500;
    transition:0.3s;
}

.btn-contacto:hover{
    background:whie;
}

/* Idioma */
.lang{
    margin-left:20px;
    font-weight:500;
    cursor:pointer;
}

/* ===== HAMBURGER ===== */

.hamburger{
    display:none;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}

.hamburger span{
    width:25px;
    height:3px;
    background:white;
    border-radius:3px;
}

/* ===== MOBILE MENU BASE (IMPORTANTE) ===== */
.mobile-menu{
    position:fixed;
    top:0;
    right:-100%;
    width:75%;
    height:100vh;
    background:#fff;
    box-shadow:-5px 0 20px rgba(0,0,0,0.1);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:30px;
    transition:0.4s;
    z-index:999;
}

.mobile-menu a{
    text-decoration:none;
    color:#111;
    font-size:20px;
    font-weight:500;
}

.mobile-menu.active{
    right:0;
}

/* ===== RESPONSIVE ===== */

@media(max-width:900px){

    .nav,
    .btn-contacto,
    .lang{
        display:none;
    }

    .hamburger{
        display:flex;
    }

    .mobile-menu{
        position:fixed;
        top:0;
        right:-100%;
        width:75%;
        height:100vh;
        background:#fff;
        box-shadow:-5px 0 20px rgba(0,0,0,0.1);
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:30px;
        transition:0.4s;
    }

    .mobile-menu.active{
        right:0;
    }

    .mobile-menu a{
        text-decoration:none;
        color:#111;
        font-size:20px;
        font-weight:500;
    }
}

/* Overlay oscuro */
.overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:rgba(0,0,0,0.4);
    opacity:0;
    visibility:hidden;
    transition:0.3s;
    z-index:998;
}

.overlay.active{
    opacity:1;
    visibility:visible;
}

/* Ajuste z-index */
.mobile-menu{
    z-index:999;
}

.header-wrapper{
    z-index:1000;
}

/* TITULO */

.titulo{
text-align:center;
margin-top:50px;
font-size:40px;
color:#1e8c7c;
font-weight:700;
}

/* MENU */

.filtros{
display:flex;
justify-content:center;
gap:30px;
margin:30px 0;
flex-wrap:wrap;
}

.filtros button{
background:none;
border:none;
font-size:15px;
letter-spacing:1px;
cursor:pointer;
color:#777;
padding-bottom:5px;
transition:all .3s;
}

.filtros button.active{
color:#000;
border-bottom:2px solid #000;
}

/* GRID */

.grid{
width:90%;
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:25px;
padding-bottom:60px;
}

/* ITEM */

.item{
overflow:hidden;
border-radius:6px;
transform:scale(.95);
opacity:0;
transition:all .4s ease;
}

.item.show{
opacity:1;
transform:scale(1);
}

.item img{
width:100%;
height:300px;
object-fit:cover;
display:block;
transition:transform .5s;
}

.item:hover img{
transform:scale(1.05);
}

/* RESPONSIVE */

@media(max-width:600px){

.titulo{
font-size:30px;
}

.item img{
height:220px;
}

}