@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('../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;
}

/* Hamburger menu */
.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;
}

.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;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-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;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(106, 161, 106, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.video-item:hover .play-button {
    opacity: 1;
    background-color: rgba(106, 161, 106, 1);
}

.video-info {
    padding: 15px;
    position: relative;
}

.video-info h3 {
    color: #2a7a2a;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.video-info p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.duracion {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #6aa16a;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

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;
}

/* Estilos para el modal de videos */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    width: 80%;
    max-width: 900px;
    position: relative;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -10px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 2001;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2a7a2a;
    border-radius: 5px;
}

/* Media Queries adaptadas del index.css */
@media screen and (max-width: 1200px) {
    .titulo-seccion h1 {
        font-size: 2.2rem;
    }
    
    .titulo-seccion p {
        font-size: 1.1rem;
    }
    
    .categoria h2 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 992px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .titulo-seccion h1 {
        font-size: 2rem;
    }
    
    .titulo-seccion p {
        font-size: 1rem;
    }
}

@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;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        margin-top: 80px;
    }
}

@media screen and (max-width: 576px) {
    header {
        padding: 10px 15px;
    }
    
    .logo {
        height: 40px;
    }
    
    .login-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .titulo-seccion {
        padding: 20px 0;
    }
    
    .titulo-seccion h1 {
        font-size: 1.8rem;
    }
    
    .video-info h3 {
        font-size: 1.1rem;
    }
    
    .video-info p {
        font-size: 0.85rem;
    }
}

/* 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);
}

/* Clase para evitar el scroll cuando el menú está abierto */
body.no-scroll {
    overflow: hidden;
}



/* *********OTROS**********/

/*
article footer 	{
				text-align: right;
				}
time {
	 color: #999999;
	 }
figcaption 	{
			font: italic 14px verdana, sans-serif;
			color: white;
			}*/