/* --- ESTILOS GENERALES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #fafafa;
  color: #333;
  padding-top: 120px;
}

/* --- NAVBAR --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(to right, #ffffff, #daf0e4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 5%;
}

.logo img {
  height: 60px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  transition: all 0.5s ease;
}

.menu li a {
  text-decoration: none;
  color: #0f5c4c;
  font-weight: 550;
  transition: color 0.3s;
}

.menu li a:hover,
.menu li a.activo {
  color: #000000;
} 

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #00796b;
}


/* ======== HEADER ======== */
.header {
  background: #c6f0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .logo img {
  height: 50px;
}

.header h2 {
  font-weight: 700;
  margin: 0;
}

.header span {
  font-weight: 400;
  font-size: 14px;
  display: block;
  color: #007b63;
}

.menu a {
  text-decoration: none;
  color: #007b63;
  margin: 0 15px;
  font-weight: 600;
  transition: color 0.3s;
}

.menu a:hover, .menu a.active {
  color: #024d3f;
}

/* ======== CONTENEDOR PRINCIPAL ======== */
.contenedor {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

h1 {
  color: #024d3f;
}

.subtitulo {
  color: #555;
  margin-bottom: 30px;
}

/* ======== BARRA DE BÚSQUEDA ======== */
.buscador {
  display: flex;
  justify-content: center;
  margin: 30px auto 50px;
  gap: 10px;
}

.buscador input {
  width: 60%;
  padding: 12px 15px;
  border: 2px solid #b2e7d4;
  border-radius: 25px;
  outline: none;
  font-size: 15px;
  transition: border-color 0.3s;
}

.buscador input:focus {
  border-color: #007b63;
}

.buscador button {
  background: #007b63;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.buscador button:hover {
  background: #024d3f;
}

/* ======== SECCIONES DE VIDEOS ======== */
.video-section {
  margin: 40px auto;
  padding: 0 5%;
  text-align: left;
}

.video-section h2 {
  color: #024d3f;
  font-size: 22px;
  margin-bottom: 20px;
  border-left: 5px solid #007b63;
  padding-left: 10px;
}

/* ======== GALERÍA DE VIDEOS ======== */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.video-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.video-card img {
  width: 100%;
  height: auto;
  display: block;
}

.video-card h3 {
  margin: 15px;
  font-size: 16px;
  color: #024d3f;
}

.video-card a {
  text-decoration: none;
  color: inherit;
}

/* ======== FOOTER ======== */
.footer {
  text-align: center;
  padding: 20px;
  background: #c6f0e0;
  color: #024d3f;
  font-size: 14px;
  margin-top: 50px;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .buscador input {
    width: 80%;
  }

  .video-section h2 {
    font-size: 20px;
  }
}
