 *{
    border: 0;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
      line-height: 1.5;
    

    }
    body{
        font-family: 'Outfit';
    }
    /*cambio de color de la barra*/
    #contenedor-nav.scrolled {
        background-color: rgba(253, 253, 253, 0.692); /* 📌 Nuevo color al hacer scroll */
        color: rgba(255, 255, 255, 0);
    }
    
    #contenedor-nav a.scrolled{
        color: rgba(13, 213, 240, 0.486) ;
    }
    /*----------------------------*/
    
    
    /*
    .hero:hover{
        transform: scale(1.1);
    }
    */


     /*-----------------------------------
            carga de logo               ---
                                        ---*/
    /* Pantalla de carga                ---*/ 
    #preloader {
        position: fixed;
        width: 100%;
        height: 100%;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.5s ease-out;
    }

    #preloader img {
        width: 450px; /* Ajusta el tamaño del logo */
        animation: fadeIn 1s ease-in-out;
    }
    @media (max-width:500px){
        #preloader img {
            width: 300px;
        }
    }

    /* Animación de entrada */
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }


      body, html{
        font-family:"Outfit", sans-serif;
        overflow-x: hidden;
    }
        body.bloqueado {
      overflow: hidden;
      position: fixed;
      width: 100%;
    }


    /* Ocultar la pantalla de carga */
    .hidden {
        opacity: 0;
        pointer-events: none;
    }
    /*---------------------------------*/
    
    .barra-navegacion {
  position: fixed;
  top: 0;
  width: 100%;
  font-family:"Montserrat", sans-serif;
  background:  #00b7ff;
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center; /* ✅ CENTRA */
}
    .contenedor-nav{
        width: 100%;
        max-width: 1200px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
        background-color: #a0c71300;
            /* para la transicion de la letra*/
            opacity: 0;
            transform: translateY(-50px);
            /*transition: opacity 0.3s ease-out 1s, transform 0.4s ease-out 1s;*/
            transition: opacity 0.3s ease-out 0s, transform 1s ease-out 0s;
    }

    /*letra de la barra menu*/
    .contenedor-nav a{
        color: rgb(255, 255, 255);
            text-decoration: none;
            font-size: 18px;
            transition: 0.3s;
            padding: 10px;
            border: 1px;
            
            font-weight: 800;
    }
    .contenedor-nav a:hover {
            color: rgb(27, 92, 136);
        }
    .iconos-redes1{
        
        background-color: rgba(185, 13, 13, 0);
        display: flex;
        gap:15px;
        justify-content: space-evenly;
    }
    .menu{
        position: relative;
         display: inline-block;
         top: 0px;
    }
    /* sub menu */
    .menu-item{
            display: none;
            position: absolute;
            background: rgba(255, 255, 255, 0.993);
            min-width: 200px;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
            border-radius: 5px;
            z-index: 1001; /*agregado*/
    }
    .menu-item a{
        color: rgb(15, 173, 212);
            padding: 12px;
            display: block;
            font-size: 15px;
    }
    .menu-item a:hover{
        background: #f1f1f1;
    }
    .submenu{
        position: relative;
    }
    .submenu-item{
            display: none;
            position: absolute;
            left: 100%;
            top: 0;
            background: white;
            min-width: 180px;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
            border-radius: 5px;
    }
    .menu:hover .menu-item, .submenu:hover .submenu-item{
        display: block;
    }
    .logo {
            
            font-weight: bold;
            
            height: 100px;
            
            
            display: flex;
    }

    /*logo en la barra de navegador para celular*/
    
    .logo-celular img{
        height:60px;
        display: none;
    }
    @media (max-width:768px){
      .contenedor-img-android{
                  background-color: rgba(0, 100, 0, 0);
                  width: 100%;
                  display: flex;
              }

        .logo-celular img{
            height: 80px;
            display: block;
        }

        .logo-celular{
        width: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
        }
       
    }
    @media (max-width:432px){
        .logo-celular img{
            display: block;
            height:60px;
        }
    }
    /*logo en la barra de navegador para celular*/
    
/*barra de navegador para celular pequeño*/
    /* Menú hamburguesa */
    .menu-toggle {
      display: none;
      font-size: 50px;
      
      background: none;
      border: none;
      color: white;
      cursor: pointer;
    }

    /* Menú móvil lateral */
    .overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 998;
    }

    .overlay.active {
      display: block;
    }

    .menu-movil {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 250px;
      background-color: #057097;
      height: 100vh;
      padding-top: 30px;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      z-index: 9999;
      overflow-y: auto;
    }

    .menu-movil.active {
      transform: translateX(0);
    }
   
    .close-menu {
      position: absolute;
      top: 25px;
      left:215px;
      background: none;
      border: none;
      
      color: white;
      cursor: pointer;
    }
    
    .menu-movil ul {
      list-style: none;
      padding: 6px 0 0 0;
      margin: 0;
    }

    .menu-movil li {
      padding: 15px 20px;
    }

    .menu-movil a,
    .menu-movil button {
      color: white;
      background: none;
      border: none;
      font-size: 16px;
      text-align: left;
      cursor: pointer;
      text-decoration: none;
    }

    .submenu {
      display: none;
      padding-left: 20px;
      flex-direction: column;
  gap: 5px;
    }

    .submenu.active {
      display: flex;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .contenedor-nav > a,
      .menu,
      .iconos-redes1,
      .logo {
        display: none;
      }
      
      .menu-toggle {
        display: block;
      }
      .menu-movil{
        display: block;
      }
    }
    @media (max-width:432px){

        .menu-movil ul{
             padding: 0.1px 0 0 0;
        }
    }


    

/*--------------CUERPO-------------*/
main.main {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  gap: 30px;
  padding-top: 100px;
  
}

/* Blog fijo a la izquierda */
.contenedor-blog1 {
  width: 300px;
  position: fixed;
  top: 150px;
  left: 30px;
  height: calc(67vh - 100px);
  overflow-y: auto;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  padding: 20px 10px;
  z-index: 100;
}

/* Cada tarjeta */
.blog-2-central {
  background-color: #f0f8ff;
  border: 1px solid #d0e0f0;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.blog-2-central:hover {
  box-shadow: 0 3px 10px rgba(0, 102, 204, 0.15);
  transform: translateY(-3px);
}

.blog-1 img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}

.parrafo-1 {
  padding: 10px 14px;
}

.parrafo-1 h2 {
  font-size: 1rem;
  color: #005fa3;
}

/* Contenido principal (lectura) */
.contenedor-lectura {
  margin-left: 340px;
  flex: 1;
  margin-top: 40px;
  
}

/* Lectura detallada */
.contenedor-lectura section {
  background-color: rgb(224, 224, 224);
  margin-bottom: 60px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.76);
  
}

.contenedor-lectura h3 {
  color: #003366;
  margin-bottom: 15px;
  font-size: 1.6rem;
}
.contenedor-lectura section ul{
  
  padding-left: 20px;
}

.contenedor-img img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin: 15px 0;
}
.contenedor-img-bruxismo img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin: 15px 0 0 0;
  
}


/* Toggle para móviles */
.toggle-blog-btn {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 200;
  background-color: #005fa3;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  border: none;
}
.contenedor {
      display: none;
    }
/* Responsive */
@media (max-width: 1024px) {
  main.main {
    flex-direction: column;
  }

  .contenedor-blog1 {
    display: none;
    
    
  }

  .contenedor-blog1.visible {
    transform: translateY(0);
  }

  .contenedor-lectura {
    margin-left: 0;
    padding: 20px;
  }

  .toggle-blog-btn {
    display: block;
  }
  


   .contenedor {
      margin: 20px;
      display: block;
      background-color: rgb(224, 224, 224);
      cursor: pointer;
      border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.76);
    }
    .contenedor button{
      padding: 10px;
      font-size: 15px;
      background-color: rgb(224, 224, 224);
    }

    .lista {
      display: none;
      margin-top: 10px;
      padding: 10px;
      border: 1px solid #ccc;
      background: #0044ff1a;
    }

    .lista.visible {
      display: block;
    }

    .lista a {
      display: block;
      margin-bottom: 15px;
      text-decoration: none;
      color: #007bff;
      height: auto;
    }

    .lista a:hover {
      text-decoration: underline;
    }

}
@media (max-width: 500px) {
  
  .contenedor-lectura{
     padding: 0;
    
     width:100%;
  }
}
     /* FOOTER */
    .raiz{
        background-color: #00b7ff;
        width: 100%;
        height: auto;
        font-family: 'Montserrat',sans-serif;
    }
    .contenedor-footer{
        background-color: #00b7ff;
        display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      align-items: center;
      padding: 20px 0;
      padding-left: 350px; padding-right: 350px;
    }
.derechos{
        text-align: center;
    }
    .icono-logo {
       
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
.icono-logo img{
     height: 120px;
}
    .iconos-redes {
       
    flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
      width: auto;
    }

    .icono1 {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 15px;
      border-radius: 8px;
      transition: background 0.3s ease;
    }

    

    .icono1 a {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: #1a1a1a;
    }

    .icono-img{
        height: 20px;
    }
    /*footer media query*/
    @media (max-width: 1000px){
        .raiz {
        padding: 20px 0;
      }

      .contenedor-footer {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
      }

      .icono-logo {
        margin-bottom: 20px;
      }

      .iconos-redes {
        width: 100%;
        flex-direction: column;
        align-items: center;
      }

      .icono1 {
        width: 90%;
        justify-content: center;
        padding: 15px;
      }

      .icono1 a {
        justify-content: center;
        width: 100%;
        text-align: center;
      }
    }
/*finnnnn  footer media query finnnnn  */

/*para activar la transicion*/
.contenedor-nav.blog-show,
.contenedor-blog1.blog-show,
.contenedor-blog.blog-show
{
    opacity: 1;
    transform: translateX(0) translateY(0);
}    


   /*-------BARRA DE NAVEGACION---------*/
@media (max-width: 934px){
    .iconos-redes1 {
        width: 900px;
        justify-content: center;
        
    }
}
@media (max-width: 800px){
    .barra-navegacion{
        height: 150px;
        
    }
}
@media (max-width: 769px){
    .barra-navegacion{
        height: 100px;
        
    }
}
