@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i&display=swap');

/* ------------------ RESET GENERAL ------------------ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: 'Source Sans Pro', sans-serif;
}

::selection{
    color: #fff;
    background: #00c896;
  }

html, body {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: #252850;
}

/* ------------------ VIDEO SECTIONS ------------------ */

.video-hero {
  height: 100vh;
  scroll-snap-align: start;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.video-hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}


/* ------------------ BOTÓN DE ACCIÓN ------------------ */
.cta-overlay {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
  text-align: center;
}

.cta-button {
  background: rgba(255, 255, 255, 0.1); /* ✅ fondo translúcido tipo vidrio */
  color: #fff;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3); /* borde sutil */
  backdrop-filter: blur(12px); /* ✅ efecto vidrio */
  -webkit-backdrop-filter: blur(12px); /* soporte Safari */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background: rgba(0, 0, 0, 0.3); /* ✅ se oscurece al pasar el mouse */
  transform: scale(1.05);
}


/* ------------------ HEADER ------------------ */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 80px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}

.header-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 80px;
  display: flex;
  align-items: center;
}

.logo img {
  width: 210px;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo a:hover img {
  transform: scale(1.2);
  filter: brightness(0) saturate(100%) invert(74%) sepia(100%) saturate(500%) hue-rotate(75deg);
}

/* ------------------ MENÚ ------------------ */
.menu {
  height: 80px;
  margin-right: 60px;
  display: flex;
  align-items: center;
}

.menu nav ul {
  display: flex;
  list-style: none;
}

.menu nav ul li {
  margin: 0 20px;
  display: flex;
  align-items: center;
}

.menu nav ul li a {
  color: #fff;
  font-size: 18px;
  transition: color 300ms;
  display: flex;
  align-items: center;
}

.menu nav ul li a:hover {
  color: #00c896;
  transform: scale(1.1);
}

.menu nav ul li a i {
  margin-right: 8px;
  color: #00c896;
}

.menu nav ul li:last-child a i {
  margin-right: 0;
  color: #fff;
  transition: color 0.3s ease;
}

.menu nav ul li:last-child a:hover i {
  color: #00c896;
}

/* ------------------ ICONO MENÚ HAMBURGUESA ------------------ */

/* Ocultar ícono hamburguesa por defecto en pantallas grandes */
#icon-menu {
  display: none;
  width: 50px;
  height: 50px;
  position: absolute;
  right: 20px;
  top: 16px;
  padding: 10px;
  font-size: 20px;
  background: #eeeeeecc;
  border-radius: 100%;
  color: #787878;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 11;
  transition: background 0.3s ease;
}

#icon-menu:hover {
  opacity: 0.8;
}

#icon-menu i {
  transition: color 0.3s ease;
  color: #787878;
}

#icon-menu.active-icon {
  background: #00c896;
}

#icon-menu.active-icon i {
  color: #fff;
}

/* ------------------ BUSCADOR ------------------ */
#buscador {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 9999;
}

#cover-ctn-search {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

#ctn-bars-search {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  background: #252850;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
   
#formSearch {
  display: flex;
  gap: 10px;
}

#inputSearch {
  flex: 1;
  padding: 15px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  background: #1f223f;
  color: #fff;
  outline: none;
}

#btn-submit-search {
  background: #00c896;
  border: none;
  padding: 0 20px;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: background 0.3s ease;
}

#btn-submit-search:hover {
  background: #00b286;
}

#box-search {
  display: none;
  margin-top: 20px;
}

#box-search li a {
  color: #fff;
  display: block;
  margin-bottom: 10px;
}


/* Categorías */
.container-category {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}


.container-category a {
  text-decoration: none;
  color: #000;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.container-category label {
  padding: 6px 40px;
  margin: 10px;
  font-size: 20px;
  background: #f5f5f5; /* blanco humo */
  color: #252850;       /* azul grisáceo */
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.container-category label:hover {
  background: #00796b;  /* verde petróleo */
  color: #ffffff;       /* blanco puro */
  opacity: 1;
}

/*Post - Publicaciones*/

.posts {
  width: 100%; /* El contenedor ocupa todo el ancho disponible */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 100vh; /* asegura que aparezca debajo del video */
  padding: 20px;
  position: relative;
  z-index: 3;

  max-width: 1200px; /* (opcional) limita el ancho total del grid */
  margin: 0 auto; /* Centra el grid en la página */
   
}

.posts .post {
  background: #fff;
  box-shadow: 0 0 20px -10px rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  overflow: hidden;
  padding-bottom: 20px;
   margin: 0 auto;
}

.post .ctn-img {
  width: 100%;
  overflow: hidden; /* evita que la imagen se desborde al escalar */
  border-radius: 6px;
}

.post .ctn-img img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  /*object-fit: cover;*/
  transition: transform 0.4s ease; /* suaviza el efecto */
 
}

.post .ctn-img:hover img {
  transform: scale(1.08); /* agranda la imagen al pasar el mouse */
}

.post h2 {
  font-size: 18px;
  margin-top: 20px;
  padding: 0 20px;
}

.post span {
  display: block;
  margin-top: 10px;
  padding: 0 20px;
}



.ctn-tag {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 20px 0;
}

.ctn-tag li {
  list-style: none;
  font-size: 14px;
  margin: 4px;
  padding: 6px 10px;
  background: #e8e8e8;
  border-radius: 4px;
}



.posts {
  width: 100%; /* El contenedor ocupa todo el ancho disponible */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 100vh; /* asegura que aparezca debajo del video */
  padding: 20px;
  position: relative;
  z-index: 3;

  max-width: 1200px; /* (opcional) limita el ancho total del grid */
  margin: 0 auto; /* Centra el grid en la página */
   
}

.posts .post {
  background: #fff;
  box-shadow: 0 0 20px -10px rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  overflow: hidden;
  padding-bottom: 20px;
   margin: 0 auto;
}

.post .ctn-img {
  width: 100%;
  overflow: hidden; /* evita que la imagen se desborde al escalar */
  border-radius: 6px;
}

.post .ctn-img img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  /*object-fit: cover;*/
  transition: transform 0.4s ease; /* suaviza el efecto */
 
}

.post .ctn-img:hover img {
  transform: scale(1.08); /* agranda la imagen al pasar el mouse */
}

.post h2 {
  font-size: 18px;
  margin-top: 20px;
  padding: 0 20px;
}

.post span {
  display: block;
  margin-top: 10px;
  padding: 0 20px;
}



.ctn-tag {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 20px 0;
}

.ctn-tag li {
  list-style: none;
  font-size: 14px;
  margin: 4px;
  padding: 6px 10px;
  background: #e8e8e8;
  border-radius: 4px;
}



.post a {
  display: block;
  margin-top: 20px;
  text-align: left;
  padding-left: 20px;
}

.post button {
  padding: 10px 50px;
  font-size: 16px;
  background: #252850;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.post button:hover {
  background:  #00c896;
}





/* Footer */
.container-footer {
  width: 100%;
  padding: 40px 0;
  background: #252850;
  margin-top: 40px;
}

.container-footer footer {
  max-width: 1200px;
  margin: auto;
}

.logo-footer {
  text-align: center;
}

.logo-footer img {
  width: 100px;
}

.redes-footer {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}


.icon-redes-footer {
  width: 50px;
  height: 50px;
  margin: 20px;
  background: #252850;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  color: #00c896	;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Facebook */
.icon-redes-footer:hover:has(.bxl-facebook-square) {
  background: #41579A;
  color: #fff;
  border-radius: 50%;
}


/* WhatsApp */
.icon-redes-footer:hover:has(.bxl-whatsapp) {
  background: #39FF14;
  color: #fff;
  border-radius: 50%;
}

/* Instagram */
.icon-redes-footer:hover:has(.bxl-instagram){
  color: #fff;
  background: linear-gradient(to top right, #FCDE30, #E9712A, #D2313B, #AE4198, #7540A1, #5443A8);
  border-radius: 50%;
}

/* Telegram */
.icon-redes-footer:hover:has(.bxl-telegram){
  color: #0088cc; /* azul Telegram */
  background: #fff;
  border-radius: 50%;
}

/* Tic-tok */
.icon-redes-footer:hover:has(.bxl-tiktok){
  color: #ffffff;
  background: #000000;
  border-radius: 50%;
}

.container-footer hr {
  margin-top: 20px;
  border: none;
  height: 2px;
  background: #c0c0c07a;
}

.container-footer h4 {
  text-align: center;
  margin-top: 40px;
  color: #fff;
  font-weight: 500;
}

/* ✅ Ocultar ícono hamburguesa por defecto en pantallas grandes */
#icon-menu {
  display: none;
}



