@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #e6f7e6;
    background-image: url('../assets/img/ProyectoColibrilogo.png');
    background-size: 40%;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: white;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-container {
    /* position: absolute; */
    object-fit: cover;
    right: 55%;
    transform: translateX(20%);
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

.login-btn {
    background-color: #6aa16a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.login-btn:hover {
    background-color: #559955;
}

.login-btn a {
    color: inherit;
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 10px;
    transition: 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #6aa16a;
}

nav ul li a.active {
    border-bottom: 3px solid #6aa16a;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-top: 100px;
    padding: 20px;
}

.titulo-seccion {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(454deg, #408053, #034626);
    color: white;
    border-radius: 10px;
    margin-bottom: 40px;
}

.titulo-seccion h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.titulo-seccion p {
    font-size: 1.2rem;
}

.categoria {
    margin-bottom: 50px;
}

.categoria h2 {
    font-size: 1.8rem;
    color: #2a7a2a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6aa16a;
}

.fotos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.foto-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease;
}

.foto-item:hover {
    transform: translateY(-5px);
}

.foto-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.foto-item:hover img {
    transform: scale(1.05);
}

.foto-info {
    padding: 15px;
}

.foto-info h3 {
    color: #2a7a2a;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.foto-info p {
    color: #555;
    font-size: 0.9rem;
}

footer {
    width: 100%;
    background-color: #034626;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

.redes-sociales {
    margin-top: 10px;
}

.social-icon {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.social-icon:hover {
    text-decoration: underline;
}

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Animaciones para el menú hamburguesa */
.hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2a7a2a;
    border-radius: 5px;
}

/* Media Queries para adaptar el diseño a distintos tamaños de pantalla */
@media screen and (max-width: 1200px) {
    .container {
        margin-top: 80px;
        padding: 15px;
    }
    
    .titulo-seccion h1 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 992px) {
    .container {
        padding: 10px;
    }
    
    .titulo-seccion {
        padding: 25px 0;
    }
    
    .titulo-seccion h1 {
        font-size: 2rem;
    }
    
    .titulo-seccion p {
        font-size: 1.1rem;
    }
    
    .categoria h2 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .fotos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .titulo-seccion h1 {
        font-size: 1.8rem;
    }
    
    .titulo-seccion p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    header {
        padding: 10px 15px;
    }
    
    .logo {
        height: 40px;
    }
    
    .login-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .fotos-grid {
        grid-template-columns: 1fr;
    }
    
    .titulo-seccion {
        padding: 20px 0;
    }
    
    .titulo-seccion h1 {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }
    
    .titulo-seccion p {
        font-size: 0.9rem;
    }
    
    .categoria h2 {
        font-size: 1.4rem;
    }
    
    .foto-info h3 {
        font-size: 1.1rem;
    }
    
    .foto-info p {
        font-size: 0.8rem;
    }
}

/* Clase para prevenir scroll cuando el menú está abierto */
body.no-scroll {
    overflow: hidden;
}