.logos {

    margin-top: 0%; 

}

/* — Navbar base ESTÁTICO — */
.navbar_inah {
  /* Posición fija estática */
  position: fixed;
  top: 75px; /* Debajo de la barra del gobierno en desktop */
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 390px; /* Padding inicial para pantallas muy grandes */
  background-color: #ffffff;
  z-index: 1000; /* Z-index fijo */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Sombra constante */
  height: 70px; /* Altura fija */
  box-sizing: border-box;
  transition: top 0.3s ease, z-index 0.3s ease; /* Transición suave */
}
.nav-right {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
}
/* ============================= */
/*   MEDIA QUERIES GRADUALES     */
/* ============================= */

/* Para pantallas extra grandes (1400px+) */
@media (max-width: 1599px) {
  .navbar_inah {
    padding: 40px 280px;
  }
}

/* Para pantallas grandes (1200px - 1399px) */
@media (max-width: 1399px) {
  .navbar_inah {
    padding: 40px 220px;
  }
}

/* Para pantallas medianas-grandes (1024px - 1199px) */
@media (max-width: 1199px) {
  .navbar_inah {
    padding: 40px 160px;
  }
}

/* Para pantallas medianas (992px - 1023px) */
@media (max-width: 1023px) {
  .navbar_inah {
    padding: 40px 120px;
  }
}

/* Para pantallas pequeñas-medianas (768px - 991px) */
@media (max-width: 991px) {
  .navbar_inah {
    padding: 40px 80px;
  }
}

/* Para tablets grandes (769px - 900px) */
@media (max-width: 900px) {
  .navbar_inah {
    padding: 40px 60px;
  }
}

/* Para tablets (769px - 820px) */
@media (max-width: 820px) {
  .navbar_inah {
    padding: 40px 40px;
  }
}

/* Transición hacia móvil (769px - 800px) */
@media (max-width: 800px) {
  .navbar_inah {
    padding: 40px 30px;
  }
}

/* Clase para cuando se hace scroll - SOLO DESKTOP */
@media (min-width: 769px) {
  .navbar_inah.scrolled {
    top: 0 !important; /* Se sube a la parte superior */
    z-index: 1030 !important; /* Por encima de la barra del gobierno */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Sombra más pronunciada */
  }
}

/* ============================= */
/*   OCULTAR BARRA GOBIERNO      */
/* ============================= */

/* SOLO EN MÓVIL - Ocultar completamente la barra del gobierno */
@media (max-width: 768px) {
  /* Selectores específicos SOLO para móvil */
  header.navbar.navbar-inverse.navbar-fixed-top,
  header.navbar-inverse.navbar-fixed-top,
  .navbar-inverse.navbar-fixed-top,
  .gob-header,
  .gm-header,
  .framework-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -1000px !important;
    left: -1000px !important;
    opacity: 0 !important;
    z-index: -1 !important;
  }
}

/* — Logo y animaciones — */
.navbar_inah .logo {
  z-index: 25;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.navbar_inah .logo img {
  height: 40px;
  transition: all 0.3s ease;
}

.navbar_inah .logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.navbar_inah .logo:hover img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar_inah .logo:active {
  transform: scale(0.98);
  opacity: 0.9;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

/* — Botón hamburguesa — */
.navbar_inah .navbar_toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #9F2241;
  z-index: 1050;
  padding: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar_inah .navbar_toggle i {
  font-size: 1.8rem;
  line-height: 1;
  display: block;
}

.navbar_inah .navbar_toggle .hamburger-icon {
  display: block !important;
}

.navbar_inah .navbar_toggle .close-icon {
  display: none !important;
}

body.menu-open .navbar_inah .navbar_toggle .hamburger-icon {
  display: none !important;
}

body.menu-open .navbar_inah .navbar_toggle .close-icon {
  display: block !important;
  animation: rotateIn 0.3s ease-out;
}

@keyframes rotateIn {
  from { transform: rotate(-90deg); opacity: 0; }
  to { transform: rotate(0deg); opacity: 1; }
}

/* — Contenedor de botones — */
.navbar_inah .nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
  z-index: 2;
}

/* ============================= */
/*       SELECTOR DE IDIOMA      */
/* ============================= */



.language-selector {
  position: relative;
  display: flex;
  align-items: center;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1em;
  background: transparent;
  border: 1px solid #9F2241;
  border-radius: 4px;
  color: #9F2241;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  justify-content: center;
}

.language-btn:hover {
  background-color: #9F2241;
  color: white;
}

.language-btn.active {
  background-color: #9F2241;
  color: white;
}

.language-btn .fas.fa-globe {
  font-size: 1rem;
}

.language-btn .current-lang {
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.language-btn .dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.language-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown de idiomas */
.language-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  min-width: 140px;
  overflow: hidden;
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  position: relative;
}

.language-option:last-child {
  border-bottom: none;
}

.language-option:hover {
  background-color: #f8f9fa;
  color: #9F2241;
}

.language-option.active {
  background-color: #9F2241;
  color: white;
}

.language-option .flag {
  font-size: 1.5rem;
  line-height: 1;
}

.language-option span:last-child {
  font-weight: 500;
}

/* — Botones estilo base — */
.navbar_inah .nav-right .btn {
  font-size: 1.2rem;
  font-weight: bold;
  color: #9F2241;
  background: transparent;
  border: 1px solid #9F2241;
  border-radius: 4px;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  min-width: 110px;
}

.navbar_inah .nav-right .btn:hover {
  background-color: #9F2241;
  color: #ffffff;
}

.navbar_inah .nav-right .btn:active,
.navbar_inah .nav-right .btn.active {
  background-color: #691C32;
  border-color: #691C32;
  color: #ffffff;
}

.navbar_inah .nav-right .btn.bi::before {
  font-size: 1.2rem;
  margin-right: 0;
}

/* Overlay para fondo oscurecido */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.3);
}

.nav-overlay.active {
  display: block;
}

/* ============================= */
/*       MODAL DE LOGIN          */
/* ============================= */

.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.login-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.7) translateY(-50px);
  transition: transform 0.3s ease;
}

.login-modal-overlay.active .login-modal {
  transform: scale(1) translateY(0);
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px 15px 25px;
  border-bottom: 1px solid #e9ecef;
  position: relative;
}

.login-modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  flex-grow: 1;
}

.login-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 3px;
  transition: all 0.2s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-close-btn:hover {
  background-color: #f8f9fa;
  color: #9F2241;
}

.login-modal-body {
  padding: 25px;
}

#loginForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form-group label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}

.login-form-group input[type="text"],
.login-form-group input[type="password"] {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1.2rem !important;;
  transition: all 0.2s ease;
  background-color: #fff;
}

.login-form-group input[type="text"]:focus,
.login-form-group input[type="password"]:focus {
  outline: none;
  font-size: 1.2rem;
  border-color: #9F2241;
  transform: none !important;
  box-shadow: 0 0 0 2px rgba(159, 34, 65, 0.1);
}

.checkbox-group {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  margin-top: 5px;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #9F2241;
}

.checkbox-group label {
  font-size: 1rem;
  color: #666;
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.login-submit-btn {
  background-color: #9F2241;
  color: white;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-submit-btn:hover {
  background-color: #691C32;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(159, 34, 65, 0.3);
}

/* ============================= */
/*       CONTENIDO PRINCIPAL     */
/* ============================= */

/* Padding fijo para el contenido principal - DESKTOP */
.main_content {
  padding-top: 119px !important; /* Altura barra gobierno (49px) + navbar (70px) */
  margin-top: 0 !important;
  min-height: calc(100vh - 119px);
  box-sizing: border-box;
}

/* Asegurar que el body no tenga padding extra */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ============================= */
/*    NUEVA VERSIÓN MÓVIL       */
/* ============================= */
@media (max-width: 768px) {
  .navbar_inah {
    padding: 15px 20px; /* Padding más pequeño en móvil */
    height: 60px; /* Altura más pequeña en móvil */
    top: 0 !important; /* En móvil, en la parte superior (sin barra gobierno) */
  }

  .navbar_inah .navbar_toggle {
    display: flex !important;
  }

  /* NUEVO DISEÑO DE MENÚ MÓVIL - DROPDOWN CENTRADO */
  .navbar_inah .nav-right {
    display: flex;
    position: fixed;
    top: 60px; /* Justo debajo de la navbar */
    left: 0;
    right: 0;
    width: 100%;
    height: 15%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    
    /* Animación de entrada mejorada */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  .navbar_inah .nav-right.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* SELECTOR DE IDIOMA EN MÓVIL */
  .language-selector {
    order: -1; /* Aparece primero en móvil */
    width: 100%;
    max-width: 200px;
  }

  .language-btn {
    width: 100%;
    font-size: 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(159, 34, 65, 0.1);
  }

  .language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  }

  .language-option {
    padding: 15px 5px;
    font-size: 1rem;
  }

  /* BOTÓN INGRESAR MEJORADO */
  .navbar_inah .nav-right .btn:not(.bi) {
    font-size: 1.1rem;
    font-weight: 700;
    color: #9F2241;
    border: 2px solid #9F2241;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 18px 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(159, 34, 65, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em !important;
  }

  /* Efecto de shimmer para el botón INGRESAR */
  .navbar_inah .nav-right .btn:not(.bi)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: left 0.6s ease;
  }

  .navbar_inah .nav-right .btn:not(.bi):hover::before {
    left: 100%;
  }

  .navbar_inah .nav-right .btn:not(.bi):hover {
    background: linear-gradient(135deg, #9F2241 0%, #691C32 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(159, 34, 65, 0.4);
    border-color: #691C32;
  }

  .navbar_inah .nav-right .btn:not(.bi):active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(159, 34, 65, 0.3);
  }

  /* BOTÓN DE CARRITO COMPLETAMENTE REDISEÑADO */
  .navbar_inah .nav-right .btn.bi {
    border-radius: 50%;
    padding: 0;
    min-width: unset;
    max-width: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9F2241 0%, #691C32 50%, #4a1626 100%);
    border: 3px solid #ffffff;
    color: white;
    box-shadow: 
      0 8px 25px rgba(159, 34, 65, 0.4),
      0 0 0 4px rgba(159, 34, 65, 0.1);
    position: relative;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
  }

  /* Asegurar que el ícono del carrito sea visible */
  .navbar_inah .nav-right .btn.bi::before {
    content: '\f07a'; /* Código del ícono cart de Bootstrap Icons */
    font-family: 'bootstrap-icons' !important;
    font-size: 2rem;
    font-weight: normal;
    color: white;
    display: block;
    line-height: 1;
    padding: 1em;
  }

  /* Si Bootstrap Icons no está disponible, usar Font Awesome */
  .navbar_inah .nav-right .btn.bi.bi-cart::before {
    content: '\f07a';
    font-family: 'bootstrap-icons', 'Font Awesome 5 Free', 'FontAwesome' !important;
  }

  /* Fallback con Font Awesome si es necesario */
  .navbar_inah .nav-right .btn.bi i {
    font-size: 2rem;
    color: white;
    font-weight: 900;
  }

  .navbar_inah .nav-right .btn.bi:hover {
    background: linear-gradient(135deg, #691C32 0%, #9F2241 50%, #c42d52 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
      0 15px 35px rgba(159, 34, 65, 0.6),
      0 0 0 6px rgba(159, 34, 65, 0.15);
    border-color: #ffffff;
  }

  .navbar_inah .nav-right .btn.bi:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
      0 10px 25px rgba(159, 34, 65, 0.5),
      0 0 0 4px rgba(159, 34, 65, 0.1);
  }

  /* EFECTO DE PULSO MEJORADO PARA EL CARRITO */
  .navbar_inah .nav-right .btn.bi::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(159, 34, 65, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseCart 2.5s infinite;
    opacity: 0;
  }

  @keyframes pulseCart {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.7;
    }
    50% {
      transform: translate(-50%, -50%) scale(1.3);
      opacity: 0.2;
    }
    100% {
      transform: translate(-50%, -50%) scale(1.6);
      opacity: 0;
    }
  }

  /* Contenido principal en móvil - SIN barra del gobierno */
  .main_content {
    padding-top: 60px !important; /* Solo altura de navbar en móvil */
    min-height: calc(100vh - 60px);
  }

  /* Modal responsive */
  .login-modal {
    width: 95%;
    max-width: 350px;
    margin: 10px;
  }

  .login-modal-header {
    padding: 15px 20px 10px 20px;
  }

  .login-modal-body {
    padding: 20px;
  }

  .login-form-group input[type="text"],
  .login-form-group input[type="password"] {
    padding: 14px 15px;
    font-size: 16px;
  }
}

/* ============================= */
/*     Scroll bloqueado          */
/* ============================= */
body.no-scroll {
  overflow: hidden;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #dc3545, #ff1744);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
  animation: badgeBounce 0.5s ease-out;
}

@keyframes badgeBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ============================= */
/*          FOOTER               */
/* ============================= */

.enlaces-footer {
  background-color: #6F7271;
}

.enlaces-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.enlaces-titulo {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.enlaces-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.enlace-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 200px;
  justify-content: center;
}

.enlace-btn:hover {
  background-color: #9F2241;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.enlace-btn i {
  margin-right: 8px;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .enlaces-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .enlace-btn {
    width: 100%;
    max-width: 300px;
  }
}