@charset "utf-8";

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #F2E8CF;
    color: #000;
}

/* HERO */

.hero {
    background-image: url("img/hero.jpg");
    background-size: cover;
    background-position: center;
    height: 300px;
    position: relative;
}

/* CAPA OSCURA DEL HERO */

.overlay {
    background-color: rgba(47, 93, 80, 0.7);
    height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* LOGO */

.logo {
    width: 100px;
    margin-bottom: 20px;
}

/* TITULOS HERO */

.hero h1 {
    font-size: 3rem;
    text-align: center;
}

.hero p {
    margin-top: 10px;
    font-size: 1.2rem;
}

/* NAV */

nav {
    background-color: #2F5D50;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #A8D5BA;
}

/* SECCIONES */

section {
    padding: 60px 10%;
}

/* Alternancia de fondo */

section:nth-of-type(even) {
    background-color: #E6F0EA;
}

section h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

/* GALERIA */

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.grid-galeria img {
    width: 100%;
    border-radius: 12px;
    transition: transform 0.3s;
}

.grid-galeria img:hover {
    transform: scale(1.05);
}

/* ANIMACIÓN */

.fade {
    animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FOOTER */

footer {
    background-color: #2F5D50;
    color: white;
    text-align: center;
    padding: 30px;
}

.top-btn {
    display: inline-block;
    margin-top: 15px;
    color: #A8D5BA;
    text-decoration: none;
    font-weight: bold;
}

/* BANNER IMG */

.banner-img {
    width: 90%;
    max-width: 1200px;
    margin-top: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}