@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 */
* {
  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{
   
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
     background: #252850;
  }

/* Header */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  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 {
  height: 100%;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

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

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

.menu-selected:before {
  content: '';
  width: 100%;
  height: 4px;
  background: #00c896;
  position: absolute;
  top: 0;
  left: 0;
}

.menu .text-menu-selected {
  color: #00c896;
}

/* 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 i {
  transition: color 0.3s ease;
}

#icon-menu.active-icon i {
  color: #00c896;
}
#icon-menu i {
  transition: color 0.3s ease;
}

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

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


.wrapper {
  width: 100%;          /* ocupa todo el ancho */
  display: block;       /* no flex */
  padding-top: 120px;
  padding-left: 20px;
  padding-right: 20px;
}


.titulo { 
  color: #fff;
  font-size: 56px; 
  margin-bottom: 20px; 
  text-align: center; 
  display: block; 
  max-width: 90%; /* ✅ limita el ancho para forzar salto */ 
  margin-left: auto;
  margin-right: auto;
  white-space: normal; 
  word-break: break-word; 
}


/*Contenedor - contenido del articulo*/

.container-content{
    width: 1200px;
    margin: auto;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

article{
    width: 100%;
    padding: 20px;
    padding-bottom: 40px;
    box-shadow: -10px 0 20px -30px black;
    border-radius: 6px;
    position: relative;
    overflow: hidden;    
    background: #fff;
}

article:before{
    content: '';
    width: 100%;
    height: 6px;
    position: absolute;
    top: 0;
    left: 0;
    background: #46a2fd;
}

article h1{
    margin-top: 20px;
    font-weight: 500;
    font-size: 40px;
}

article p{
    margin-top: 20px;
    font-size: 18px;
    color: #3c3c3c;
}

article img{
    width: 100%;
    margin-top: 20px;
}

/*Aside de los articulos de relacionados*/
/* Contenedor responsivo para iframe y video */
.responsive-media {
  position: relative;
  padding-bottom: 56.25%; /* proporción 16:9 */
  height: 0;
  overflow: hidden;
}

.responsive-media iframe,
.responsive-media video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

/* Ajustes generales */
iframe, video, img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Evitar scroll horizontal */
.container-content {
  max-width: 100%;
  overflow-x: hidden;
}

/* Tipografía fluida para títulos */
h1 {
  font-size: clamp(16px, 4vw, 28px);
  text-align: center;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}


.container-aside aside{
  width: 320px;
  border-right: 6px;
  box-shadow: 0 0 20px -20px black;
  border-radius: 6px;
  overflow: hidden;
  margin-left: 40px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  background: #fff;
}

.container-aside aside img{
    width: 100%;
}

.container-aside aside h2,
.container-aside aside p{
    margin-top: 20px;
    padding: 0px 20px;
}

.container-aside aside button{
    margin-top: 20px;
    margin-left: 20px;
    padding: 10px 50px;
    font-size: 16px;
    background: #46a2fd;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
}

.container-aside aside button:hover{
    opacity: 0.9;
}




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

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

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

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

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

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

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

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

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

.container-footer 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;
}



/* Responsive */

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

    .container-content{
        width: 100%;
        flex-direction: column;
    }

    article{
        box-shadow: 0 0 0 0;
    }

    .container-aside{
        display: flex;
        justify-content: center;
    }

    .container-aside aside{
        max-width: 300px;
        margin: 10px;
    }

}



  @media(max-width: 1050px){

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




    .titulo {
      font-size: 41px;
    } 

   .gallery { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* ✅ dos columnas iguales */ 
    gap: 10px; } 
    
    .gallery .image {
    width: 100%; /* cada imagen ocupa toda su celda */ 
  } 
  
    .gallery .image img { 
     width: 100%; /* imagen se adapta al ancho */ 
     height: auto; /* mantiene proporción */ 
     display: block;
   }


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


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

  }  


  @media(max-width: 600px){
    .gallery { 
    display: grid; 
    grid-template-columns: 1fr ; /* ✅ dos columnas iguales */ 
    gap: 10px; } 
    
    .gallery .image {
    width: 100%; /* cada imagen ocupa toda su celda */ 
  } 
  
    .gallery .image img { 
     width: 100%; /* imagen se adapta al ancho */ 
     height: auto; /* mantiene proporción */ 
     display: block;
   }
    
  .titulo {
    font-size: 33px;
    text-align: center;
    margin-bottom: 20px;
  }


  .container-aside {
    display: flex;
    flex-direction: column; /* ✅ coloca los aside en columna */
    align-items: center;    /* opcional: centra los aside */
  }

  .container-aside aside {
    width: 100%;            /* ocupa todo el ancho disponible */
    max-width: 400px;       /* opcional: límite de ancho para que no se estiren demasiado */
    margin: 10px 0;         /* espacio entre cada aside */
  }

  
  .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: 550px){
  
    .container-content {
      width: 100%;
    }

  .titulo {
    font-size: 29px;
    text-align: center;
    margin-bottom: 20px;
  }

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

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

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


/* Ajustes para pantallas de 450px o menos */
@media (max-width: 480px) {
  .container-content {
    padding: 8px;          /* reduce padding */
    overflow-x: hidden;    /* evita scroll horizontal */
  }

    .titulo {
    font-size: 25px;
    text-align: center;
    margin-bottom: 20px;
  }

  p, a {
    font-size: 14px;       /* texto más compacto */
  }

  iframe, video, img {
    max-width: 100%;       /* se adaptan al ancho */
    height: auto;          /* mantienen proporción */
    display: block;        /* evita desbordes por inline */
  }
}

  
 
 