@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;
  font-family: 'Source Sans Pro', sans-serif;
  text-decoration: none;
}

::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;
  margin-left: 18px;
}

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

.logo img {
  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 */
/* Icono menú móvil */
#icon-menu {
  width: 50px;
  height: 50px;
  position: absolute;
  right: 20px;
  top: 16px;
  padding: 10px;
  font-size: 20px;
  background: #eeeeeecc;
  /*border-radius: 50%;*/
  border-radius: 100%;
  color: #787878;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 11;
}

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

/* ✅ Transición y color activo del ícono */
#icon-menu {
  transition: background 0.3s ease;
}

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

#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;
}




.header-content, .logo, .menu {
   height: 100%; /* se adaptan a la altura del header */ 
   display: flex; 
   align-items: center;
  }


/*Post - Publicaciones*/

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

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

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

.post .ctn-img img {
  width: 100%;
  height: 400px;
  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;
}

.box__copyright {
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding: 20px;
  color: #7a7a7a;
}


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



/* Responsive Design - adaptable a dispositivos moviles*/



@media screen and (max-width: 1000px) {


/* Buscador */
#ctn-icon-search {
  background: #252850;
}

#ctn-icon-search i {
  background: #252850;
  font-size: 18px;
  color: #00c896;
  cursor: pointer;
  transition: color 0.3s ease;
}

#ctn-icon-search i:hover {
  color: #0b0b0b;
}

/* Portada */
.blog-container-cover:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.container-info-cover {
  max-width: 800px;
  height: 500px;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.container-info-cover p {
  color: #fff;
  font-size: 20px;
  font-weight: 300;
}

   /* Mostrar ícono hamburguesa siempre visible */
  #icon-menu {
    display: flex;
    position: fixed; /* ✅ fijo en pantalla */
    top: 20px;
    right: 20px;
    background: #eeeeeecc;
    border-radius: 100%;
    padding: 10px;
    cursor: pointer;
    z-index: 10001; /* ✅ más alto que el overlay */
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .logo img {
    width: 160px;
  }

  .menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 10;
  }
.menu.show-lateral {
  display: flex;
}

.menu nav ul { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  height: 100%; 
  gap: 20px; 
}

.menu nav ul li {
  width: auto; 
  padding: 10px 0; 
}

.menu nav ul li a { 
  font-size: 20px; 
  padding: 12px 24px;
  border-radius: 8px; 
  color: #fff; 
  background: rgba(255, 255, 255, 0.05); 
  backdrop-filter: blur(4px); 
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.3); 
  transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

  /* Categorías */

input[type="radio"] {
  display: none;
}

.container-category {
  width: 100%;
  margin: 40px auto 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.container-category label {
  padding: 6px 40px;
  font-size: 20px;
  background: #f5f5f5;
  color: #252850;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.container-category label:hover {
  background: #00796b;
  color: #ffffff;
}

/* Responsive: posts apilados en vertical */
  .posts {
    display: grid;
    grid-template-columns: 1fr;   /* ✅ una sola columna */
    gap: 30px;                    /* ✅ más espacio entre posts */
    padding: 0 15px;
    margin-top: 30px;
  }

  .posts .post {
    width: 100%;                  /* ✅ ocupa todo el ancho */
    /*height: 500px;*/                /* ✅ altura fija */
    display: flex;
    flex-direction: column;       /* ✅ contenido en columna */
    justify-content: flex-start;  /* ✅ que se vean h2, tags y botón */
  }

  .posts .post .ctn-img {
    width: 100%;
    height: 200px;                /* ✅ mitad superior para la imagen */
    overflow: hidden;
  }

  .posts .post .ctn-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
  }

  .posts .post h2 {
    font-size: 18px;
    margin: 15px 0 10px;          /* ✅ espacio arriba y abajo */
    padding: 0 10px;
    color: #252850;
  }

  .post span {
    margin-top: 0;
  }
  .posts .post .ctn-tag {
    margin: 0px 0;
    padding: 0 10px;
    list-style: none;
    font-size: 14px;
    color: #00c896;
  }

  .posts .post a {
    margin-top: 10px;             /* ✅ empuja el botón hacia abajo */
    padding: 0 10px;
    display: block;
  }

  .posts .post a button {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    background: #00c896;
    color: #fff;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .posts .post a button:hover {
    background: #00b286;
  }

  .container-footer {
    width: 100%;
    background: #252850;
    margin-top: 10px;
     margin-top: 10px;
     padding-top: 0px;
     margin-top: 10px;
  } 

 #contacto{ 
   height: 100px;
   padding: 10px 0;
  } 

}

@media screen and (max-width: 800px) { 
  .container-category { 
    display: flex; flex-direction: column; /* ✅ apila los elementos en columna */ 
    align-items: center; /* ✅ centra horizontalmente */ 
    gap: 15px; /* ✅ espacio entre enlaces */ 
  } 
  
  .container-category a {
     display: block; /* ✅ cada enlace ocupa su propia línea */
      width: 100%; /* ✅ se estira al ancho disponible */ 
      text-align: center; /* ✅ centra el texto dentro del enlace */ 
    } 
    
    .container-category label {
       width: 100%; /* ✅ el label también ocupa todo el ancho */ 
       display: block; 
       padding: 10px;
        background: #f5f5f5; /* opcional: fondo para destacar */ 
        border-radius: 6px; 
      }
} 
  

/* ✅ Responsive: estilos especiales para pantallas pequeñas */
@media screen and (max-width: 550px) {

  .container-category { 
    display: flex; flex-direction: column; /* ✅ apila los elementos en columna */ 
    align-items: center; /* ✅ centra horizontalmente */ 
    gap: 15px; /* ✅ espacio entre enlaces */ 
  } 
  
  .container-category a {
     display: block; /* ✅ cada enlace ocupa su propia línea */
      width: 100%; /* ✅ se estira al ancho disponible */ 
      text-align: center; /* ✅ centra el texto dentro del enlace */ 
    } 
    
    .container-category label {
       width: 100%; /* ✅ el label también ocupa todo el ancho */ 
       display: block; 
       padding: 10px;
        background: #f5f5f5; /* opcional: fondo para destacar */ 
        border-radius: 6px; 
      }

  .container-footer {
    width: 100%;
    padding: 10px 0;
    background: #252850;   /* cambia color en móviles */
    margin-top: 10px;
    padding-top: 0px;
  }

  .container-footer .redes-footer {
    margin-top: 0;
    flex-wrap: wrap;       /* íconos se acomodan en varias filas si no entran */
    gap: 15px;
  }

  .container-footer h4 {
    font-size: 12px;
    color: #fff;           /* texto claro sobre fondo oscuro */
  }


 #contacto{ 
   height: 100px;
   padding: 10px 0;
  } 

 .icon-redes-footer {    
  width: 46px;
  } 


}

@media (max-width: 500px) {
    .icon-redes-footer {
        width: 25px;
    }
}
