*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f4f7fb;
    color:#222;
}

/* NAVBAR */

header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:1000;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 8%;
    background:rgba(0,0,0,0.7);
    backdrop-filter:blur(5px);
}

.logo{
    color:#fff;
    font-size:1.3rem;
    font-weight:bold;
}

.nav-links{
    display:flex;
    list-style:none;
}

.nav-links li{
    margin-left:25px;
}

.nav-links a{
    text-decoration:none;
    color:white;
    font-weight:bold;
    transition:0.3s;
}

.nav-links a:hover{
    color:#00d4ff;
}

.menu-toggle{
    display:none;
    color:white;
    font-size:28px;
    cursor:pointer;
}

/* HERO */

.hero{
    height:100vh;
    background:
    linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
    url('../img/banner.jpg');
    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;
}

.hero-content{
    max-width:800px;
    color:white;
    animation:fadeIn 2s ease;
}

.hero-content h1{
    font-size:3rem;
    margin-bottom:20px;
}

.hero-content p{
    font-size:1.2rem;
    margin-bottom:30px;
}

.btn{
    display:inline-block;
    padding:14px 30px;
    background:#00bcd4;
    color:white;
    text-decoration:none;
    border-radius:30px;
    transition:0.3s;
}

.btn:hover{
    background:#0097a7;
    transform:scale(1.05);
}

/* ABOUT */

.about{
    padding:100px 10%;
    background:white;
}

.about h2{
    text-align:center;
    margin-bottom:50px;
    font-size:2.5rem;
    color:#0b3d91;
}

.about-container{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:40px;
}

.about-text p{
    margin-bottom:20px;
    line-height:1.8;
}

.about-card{
    background:#0b3d91;
    color:white;
    padding:30px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

/* GALERIA */

.gallery{
    padding:100px 10%;
    background:#eef3f9;
}

.gallery h2{
    text-align:center;
    margin-bottom:50px;
    font-size:2.5rem;
    color:#0b3d91;
}

.gallery-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:20px;
}

.gallery-item{
    overflow:hidden;
    border-radius:15px;
}

.gallery-item img{
    width:100%;
    height:300px;
    object-fit:cover;
    transition:0.5s;
}

.gallery-item:hover img{
    transform:scale(1.1);
}

/* CONTACTOS */

.contact{
    padding:100px 10%;
    background:white;
}

.contact h2{
    text-align:center;
    margin-bottom:50px;
    font-size:2.5rem;
    color:#0b3d91;
}

.contact-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.contact-info p{
    margin-bottom:15px;
    font-size:1.1rem;
}

.contact-form{
    display:flex;
    flex-direction:column;
}

.contact-form input,
.contact-form textarea{
    margin-bottom:20px;
    padding:15px;
    border:1px solid #ccc;
    border-radius:10px;
    outline:none;
}

.contact-form textarea{
    resize:none;
    height:150px;
}

.contact-form button{
    padding:15px;
    border:none;
    background:#0b3d91;
    color:white;
    border-radius:10px;
    cursor:pointer;
    transition:0.3s;
}

.contact-form button:hover{
    background:#072d6b;
}

/* FOOTER */

footer{
    background:#111;
    color:white;
    text-align:center;
    padding:20px;
}

/* ANIMACIONES */

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* RESPONSIVE */

@media(max-width:768px){

    .nav-links{
        position:absolute;
        top:70px;
        right:-100%;
        flex-direction:column;
        background:#111;
        width:250px;
        height:100vh;
        padding-top:40px;
        transition:0.5s;
    }

    .nav-links.active{
        right:0;
    }

    .nav-links li{
        margin:20px 0;
        text-align:center;
    }

    .menu-toggle{
        display:block;
    }

    .about-container,
    .contact-container{
        grid-template-columns:1fr;
    }

    .hero-content h1{
        font-size:2.2rem;
    }
}