.toggleMenu22{
    display: flex;
    justify-content: center;    
    padding: 0.2rem;
    cursor:pointer;
    align-items: center;
}
#overlayMenuHeader {
  display: none;
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999; /* justo debajo del sticky header */
  transition: opacity 0.3s ease;
  opacity: 0;
}

#overlayMenuHeader.active {
  display: block;
  opacity: 1;
}
.sticky-bottom{  
    top: 3.80rem;
    margin: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: #830010;
    width: 100%;
    padding: 0.1rem;
    position: absolute;
    
}

.mobile-menu-2{
      overflow: hidden;
    height: 0;
    transition: height 0.4s 
ease;
    background: #c41e3a;
    z-index: 1001;
    position: relative;
   
}
        
        /* Al activarse, se expande dinámicamente con JS */
        .mobile-menu-2.active {
            /* height será seteado dinámicamente en JS */
        }
        
        .mobile-menu-content-2 {
            padding: 20px 5px 20px;
            overflow-y: auto;
        
        }

.parents {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
grid-column-gap: 3px;
grid-row-gap: 3px;

}

.boton1 { 
    grid-area: 1 / 1 / 2 / 4;
        background: #a81729;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    
}

.boton1:hover{
    background:#b71b35;
}

.botonstilo{
     color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
        padding: 5px;
        background: #b71b35;
        
}
.botonstilo:hover{
    background: #a81729;
}
.boton2 { grid-area: 2 / 1 / 3 / 2; }
.boton3 { grid-area: 2 / 2 / 3 / 3; }
.boton4 { grid-area: 2 / 3 / 3 / 4; }
.boton5 { grid-area: 3 / 1 / 4 / 2; }
.boton6 { grid-area: 3 / 2 / 4 / 3; }
.boton7 { grid-area: 3 / 3 / 4 / 4; }


.sticky-bottom a{}
.sticky-bottom button{}

.sticky-top-bar {
    display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #a81729;
  border-bottom: 1px solid #a81729;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10000;
  padding: 0.5rem 1rem;
  color:#fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
}

.a,
.sbutton {
  text-decoration: none;
  background: none;
  border: none;
  /*font-size: 1rem;*/
  color:#fff;
  cursor: pointer;
}

.sticky-top-bar .sticky-center a {
  font-weight: bold;
  font-size: 1.1rem;
}

.mobile-header-controls{
    display: none;
}

#backToTopStickyBtn:hover {
  color: #fff;
}
#stickyTopBar {
  display: none;
}


    
    /* Header Styles */
    .header-top {
      background: #1a1a1a;
      color: #fff;
      padding: 8px 0;
      font-size: 12px;
    }
    
    .header-top .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .header-top a {
      color: #fff;
      text-decoration: none;
      margin-right: 15px;
    }
    
    .header-middle {
      background: #c41e3a;
      color: white;
      padding: 20px 0;
      text-align: center;
    }
    
    .header-middle h1 {
      font-size: 3rem;
      font-weight: 700;
      margin: 0;
    }
    
    .header-middle .tagline {
      font-size: 1rem;
      opacity: 0.9;
      margin-top: 5px;
    }
    
    
    /*estilos menu responsive */
   .header-bottom {
            background: #a81729;
            padding: 10px 0;
            position: relative;
        }
        
        .header-bottom .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
         .header-bottom-2 {
            background: #830010;
            padding: 2px 0;
            margin-bottom: 1px;
            position: relative;
        }
        
        .header-bottom-2 .container-2 {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .social-links{
            display:flex;
        }
        .social-links a {
            color: #3b0000;
            margin-right: 15px;
            text-decoration: none;
            font-size: 18px;
             display: block;
             width: 24px;
            height: 24px;
            gap: 0.5em;
        }
        
      .main-menu {
  display: flex;
  gap: 2px;
}

.main-menu a {
  display: inline-flex; /* clave para alinear ícono y texto */
  align-items: center;
  color: white;
  text-decoration: none;
  padding: 8px 5px;
  border-radius: 2px;
  transition: background 0.3s;
}

.main-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main-menu svg {
  color: #710303;
  margin-right: 5px; /* un poco más cómodo visualmente */
  width: 18px;
  height: 18px;
  flex-shrink: 0; /* evita que se encoja si hay poco espacio */
}
        
        .language-selector {
             display: inline-flex;
              align-items: center;
              gap: 6px; /* espacio entre icono y texto */
            background: rgba(255,255,255,0.1);
            padding: 5px 10px;
            border-radius: 4px;
              vertical-align: middle;
        }
         .language-selector a {
            color: white;
            text-decoration: none;
        }
        .language-selector svg{
                color:#3b0000;
              display: inline-block;
              vertical-align: middle;
              width: 20px;
              height: 20px;
        }
        .sticky-right{
             color: white;
  background: rgba(255, 255, 255, 0.1);
      padding: 10px 10px;
    border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
        }
        .sticky-right svg{
             display: block;
                /*width: 20px;*/
        }
        
          .sticky-left{
            color: white;
  background: rgba(255, 255, 255, 0.1);
      padding: 10px 10px;
    border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
        }
        .sticky-left svg{
             display: block;
                width: 20px;
        }
        
        .icon-search{
            color: white;
            background: rgba(255,255,255,0.1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            border-radius: 10px;
        }
        .icon-search a {
             color: white;
            text-decoration: none;
        }
        
        .icon-search svg{
               display: block;
                width: 20px;
        }
        .headerDivisor {
            color: white;
            background: rgba(168 23 41);
            padding: 5px 10px;
            border-radius: 4px;
            text-decoration: none;
        }

  

        /* Menú móvil tipo "off canvas hacia abajo" */
        .mobile-menu {
            overflow: hidden;
            height: 0;
            transition: height 0.4s ease;
            background: #a81729;
             z-index: 1001; /* MÁS que el overlay */
        }
        
        /* Al activarse, se expande dinámicamente con JS */
        .mobile-menu.active {
            /* height será seteado dinámicamente en JS */
        }
        
        .mobile-menu-content {
            padding: 20px;
            overflow-y: auto;
        
        }
        
        .mobile-menu .main-menu {
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-bottom: 20px;
        }
        
        .mobile-menu .main-menu a {
            display: block;
            padding: 5px 10px 5px 10px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            color: white;
            text-decoration: none;
            width: -webkit-fill-available;
        }
        
        .mobile-menu .main-menu a:last-child {
            border-bottom: none;
        }
        
        .mobile-menu .social-links {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        
        .cerrar {
            background: none;
            border: none;
            font-size: 24px;
            color: white;
            top: 15px;
            right: 15px;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: background 0.3s ease;
        }
        
        .cerrar:hover {
            background: rgba(255,255,255,0.1);
        }
        .mobile-menu .language-selector {
            display: inline-block;
        }


@media (max-width: 768px) {
  .mobile-header-controls{
    display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
        align-content: flex-start;
        justify-content: space-between;
}
}