:root {
  --ambiente:"PRO";
  --azul-oscuro: #004aad;
  --azul-medio: #005cb8;
  --fondo-claro: #e8eefb;
  --blanco: #ffffff;
}



/* Corrección: logotipo centrado y visible en móvil */
@media (max-width: 480px) {
 

  .icon {
    margin-left:1rem!important;
  }



}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
  font-family: 'Raleway', sans-serif;
}

body {
  background-color: var(--blanco);
  color: #333;
  line-height: 1.6;
  font-family: 'Raleway', sans-serif;
}

header {
  background-color: var(--blanco);
  color: var(--blanco);
  padding: 20px;
  text-align: center;
}

nav {
  margin-top: 10px;
}

nav a {
  color: var(--blanco);
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
}

.logo-mobile {
  display: none;
}

.tituloStd{
    margin: 60px;
    justify-items: center;
    border-bottom: inset;
}

.menu-principal-mobille-titulo {
  display: none;
}

.banner {
  background-color: var(--blanco);
  padding: 20px;
  text-align: center;
  margin: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carrusel {
  display: flex;
  /* overflow-x: auto; */
  gap: 20px;
  padding: 20px;
  scroll-snap-type: x mandatory;
  /* margin: 10px; */
}

.carrusel iframe {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.tarjeta {
  background-color: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  text-align: center;
}

.tarjeta img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
}

.tarjeta h3 {
  font-size: 16px;
  margin: 10px 0;
}

.tarjeta .precio {
  font-weight: bold;
  color: var(--azul-medio);
}

.tarjeta button {
  background-color: var(--azul-medio);
  color: var(--blanco);
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 8px;
  cursor: pointer;
}

footer {
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.hero-banners {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  border-radius: 16px;
  overflow: hidden;
}

.hero-banners img,
.hero-banners .slide img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  max-height: 380px;
  object-fit: cover;
}

/* Estilos para header nuevo */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: var(--blanco);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  /* min-width: 200px; */
}

.logo img {
  height: 100px;
  margin-bottom: 2px;
}

.logo h1 {
  font-size: 1rem;
  color: var(--azul-oscuro);
  line-height: 1.2;
  padding-left: 5px;
}

.input-group {
  display: flex;
  width: 100%;
}

.input-group input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.input-group button {
  padding: 0 16px;
  border: none;
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


.icon-text {
  font-size: smaller
}

.icon {
  max-height: 30px;
}

.busqueda {
  flex: 1;
  margin: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.busqueda input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.busqueda span {
  margin-top: 8px;
  color: var(--azul-oscuro);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.busqueda button {
  padding: 8px 12px;
  border: none;
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.acciones {
  display: contents;
}

.acciones a {
  margin-left: 15px;
  color: var(--azul-oscuro);
  text-decoration: none;
  font-size: 18px;
}

.menu-principal {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--blanco);
  place-content: center;
  margin-top:12rem;
}

.menu-principal-titulo {
  display: flex;
  align-items: center;
  padding: 5px 5px;
  background-color: var(--blanco);
  color: var(--azul-oscuro);
  /* margin-top:7rem; */
}

.btn-categorias {
  background-color: var(--azul-medio);
  color: var(--blanco);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 20px;
}

.nav-slogan {
  margin-left: 15px;
  color: var(--azul-oscuro);
  text-decoration: none;
  font-weight: 800;
}


.nav-secundario a {
  margin-right: 15px;
  color: var(--azul-oscuro);
  text-decoration: none;
  font-weight: 600;
}


.nav-secundario a:hover {
  text-decoration: underline;
}

.menu-categorias {
  background-color: #f9f9f9;
  padding: 10px 20px;
  border-top: 1px solid #ddd;
}

.menu-categorias ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-categorias li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #333;
}




.menu-busqueda {
  background-color: #f9f9f9;
  padding: 10px 20px;
  border-top: 1px solid #ddd;
}

.menu-busqueda ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-busqueda li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  color: #333;
}

.video-title {
  margin-top: 10px;
  font-size: 14px;
  color: var(--azul-oscuro);
  font-weight: 600;
  text-align: center;
}

@media (max-width: 580px) {
  .carrusel iframe {
    flex: 0 0 240px;
    height: 140px;
  }
}



/* ===== MENÚ HAMBURGUESA ===== */
.hamburguesa {
  display: none;
  cursor: pointer;
  padding: 2px;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1001;
}

.hamburguesa span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px;
  background: var(--azul-oscuro);
}

/* Menú móvil */
.menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blanco);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 20px;
  overflow-y: auto;
  z-index:10000;
}

.menu-mobile.active {
  transform: translateX(0);
}

.menu-mobile .cerrar {
  text-align: right;
  font-size: 24px;
  /* margin-bottom: 20px; */
  cursor: pointer;
}

.menu-mobile-busqueda {
  display: flex;
  margin-bottom: 20px;
}

.menu-mobile-busqueda input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.menu-mobile-busqueda button {
  padding: 8px;
  background: var(--azul-oscuro);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
}

.menu-mobile-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-mobile-links li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.menu-mobile-links a {
  text-decoration: none;
  color: var(--azul-oscuro);
  font-weight: 600;
}

.menu-mobile-acciones a {
  display: block;
  margin: 15px 0;
  font-weight: bold;
  color: var(--azul-medio);
  text-decoration: none;
}

.menu-mobile-social {
  display: inline-grid;
  gap: 10px;
  margin-top: 20px;
    color: var(--azul-oscuro);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    margin-right: 30px;
}

.menu-mobile-social a {
  font-size: 20px;
  text-decoration: none;
    color: var(--azul-oscuro);
    font-family: 'Raleway', sans-serif;
}



.menu-mobile-social-2 {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.menu-mobile-social-2 a {
  font-size: 20px;
  text-decoration: none;
}


.swiper-button-next {
  padding-right: 30px;
}

.swiper-button-prev {
  padding-left: 30px;
}

/* Mostrar solo en móviles */
@media (max-width: 580px) {
  .hamburguesa {
    display: block;
  }

  headerX, .menu-principal, .menu-categorias, .acciones, .menu-principal-titulo,.logo-mobile {
    display: none;
  }

  .top-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
  }

  .logo {
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
    display: none;
  }

  .logo img {
    height: 80px;
  }

  .menu-principal-titulo {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    width: 100%;
  }

  .menu-principal-titulo h1 {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .busqueda span {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
  }

}





/* Corrección: logotipo centrado y visible en móvil */
@media (max-width: 580px) {
  /* .logo-mobile {
    display: block;
    text-align: center;
    padding-top: 25px;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
  } */

  .logo-mobile img {
    height: 80px;
  }

  .logo img {
    height: 80px;
  }

  .swiper-button-prev {
    display: none;
  }

  .swiper-button-next {
    display: none
  }

  .menu-principal-mobille-titulo {
    display: inline;
    align-items: center;
    padding: 5px 5px;
    background-color: var(--blanco);
    color: var(--azul-oscuro);
    text-align: center;
  }

  .top-header {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .logo {
    align-items: center;
    text-align: center;
    min-width: unset;
  }

  .logo img {
    height: 80px;
  }

  .logo h1 {
    font-size: 1.1rem;
    color: var(--azul-oscuro);
    text-align: center;
  }

  .acciones {
    flex-wrap: wrap;
    justify-content: center;
  }

  .menu-movil {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .busqueda span {
    text-align: center;
    font-size: 13px;
  }



  

    .menu-busqueda {      
      width: fit-content!important;      
    }


}

/* Corrección: carrusel independiente con scroll-snap */
.hero-banners {
  display: flex;
  /* overflow-x: auto; */
  scroll-snap-type: x mandatory;
  gap: 0;
  /* margin: 10px; */
}

.hero-banners img,
.hero-banners .slide img {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

/* Corrección: prevenir scroll horizontal en el menú hamburguesa */
body, html {
  overflow-x: hidden;
}


.menu-mobile-tabs {
  display: flex;
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  color: #666;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: var(--azul-medio);
  border-bottom: 3px solid var(--azul-medio);
}


.contenedor-categorias {
  position: relative;
  display: inline-block;
}

.menu-categorias {
  display: none;
  position: absolute;
  top: 100%;
  /* debajo del botón */
  left: 0;
  width: max-content;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
  z-index: 999;
}

.menu-categorias ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-categorias li {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  color: #333;
  cursor: pointer;
}

.menu-categorias li:hover {
  background-color: var(--fondo-claro);
}



.menu-busqueda {
  
  position: absolute;
  top: 100%;
  /* debajo del botón */
  display:none;
  left: 0;
  width: max-content;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
  z-index: 999;
}


.menu-busqueda li:hover {
  background-color: var(--fondo-claro);
}

/* Overlay background */
.overlay-busqueda {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(242, 242, 242, 0.7); /* gris clarito */
  z-index: 100;
  display: none;
}

/* Contenedor del modal */
.modal-busqueda {
  background: white;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  border-radius: 8px;
  color: #333;
}

/* Botón cerrar */
.modal-busqueda .btn-cerrar {
  display: block;
  margin-left: auto;
  margin-bottom: 20px;
  background: var(--azul-medio);
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
}

/* Resultados */
.resultados-busqueda {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resultado-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s;
}

.resultado-item:hover {
  background: var(--fondo-claro);
}

.resultado-item img {
  width: 90px;
  height: 63px;
  object-fit: cover;
  border-radius: 4px;
}


.overlay-busqueda {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-busqueda {
  background: #fff;
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  overflow-y: auto;
  max-height: 80vh;
}

.modal-busqueda .btn-cerrar {
  float: right;
  background: var(--azul-medio);
  color: #fff;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.resultados-busqueda {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resultado-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--azul-oscuro);
  transition: background 0.3s;
}

.resultado-item:hover {
  background: var(--fondo-claro);
}

.resultado-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}


.dropdown-busqueda {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
  display: none;
}

.dropdown-busqueda .resultado-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--azul-oscuro);
}

.dropdown-busqueda .resultado-item:hover {
  background-color: var(--fondo-claro);
}

.dropdown-busqueda .resultado-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}


.input-group {
  position: relative;
}

.dropdown-busqueda {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
  display: none; /* oculto inicialmente */
}

.dropdown-busqueda .resultado-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--azul-oscuro);
}

.dropdown-busqueda .resultado-item:hover {
  background-color: var(--fondo-claro);
}

.dropdown-busqueda .resultado-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}


.carrusel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.swiper-slide {
  text-align: center;
}
.swiper-slide video {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;

}
.video-title {
  margin-top: 8px;
  color: var(--azul-oscuro);
  font-weight: 600;
  font-size: 14px;
}
@media (max-width: 580px) {
  .swiper-slide video {
    max-width: 90vw;
    
  }
}


.video-container {
  width: 300px;           /* ancho deseado */
  height: 350px;          /* alto deseado */
  background: #f0f0f0;    /* fondo de relleno */
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-carrito {
  position: relative;
  display: inline-block;
}

.badge-carrito {
  position: static;
  top: -8px;
  right: -8px;
  background: #e60023;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}

@media (max-width: 580px) {
  .badge-carrito {
    top: 55%;
    right: 1rem;
    font-size: 10px;
    /* padding: 1px 4px; */
    position:absolute;
  }

  .badge-carrito{
    min-width:0;
  }
}



.pagination-container {
  margin-top: 20px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  gap: 8px;
}

.pagination li {
  display: inline;
}

.pagination a, 
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  background-color: var(--blanco);
  color: var(--azul-oscuro);
  text-decoration: none;
  border: 1px solid var(--azul-oscuro);
  border-radius: 4px;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: var(--azul-medio);
  color: var(--blanco);
  border-color: var(--azul-medio);
}

.pagination .active a {
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  cursor: default;
}

.pagination .disabled span {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-info span {
  background: none;
  border: none;
  color: var(--azul-oscuro);
  font-weight: 600;
  padding: 8px;
}


/* Contenedor de todas las tarjetas */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Cada tarjeta */
.producto-card {
  flex: 1 1 calc(25% - 32px); /* 4 tarjetas x fila, menos gap */
  background-color: #ffffff;
  border: 1px solid #2D4D84;
  border-radius: 10px;
  max-width: 250px;
  padding: 16px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.producto-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 10px;
}
/* Título y texto alineados */
.producto-titulo {
  font-size: 15px;
  font-weight: bold;
  color: #2c5282;
  min-height: 45px;
  text-align: center;
  margin: 8px 0;
}

.producto-clave {
  font-size: 12px;
  color: #777;
}

.producto-descripcion {
  font-size: 13px;
  color: #555;
  min-height: 60px;
  margin: 8px 0;
  text-align: center;
}

.producto-precio {
  color: #2c5282;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
}

.producto-stock {
  font-weight: bold;
  text-align: center;
  margin-top: 8px;
}

.producto-stock .con-stock {
  color: #005cb8;
}

.producto-stock .sin-stock {
  color: #b43536;
}

.btn-comprar {
  background-color: #005cb8;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px;
  text-decoration: none;
  display: block;
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-comprar:hover {
  background-color: #003a80;
}

.producto-opcion {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
}

.producto-opcion select {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 4px;
  font-size: 13px;
}

/* Responsive: 2 columnas en móviles */
@media (max-width: 580px) {
  .producto-card {
    flex: 1 1 calc(50% - 16px);
    max-width: 90%;
  }
}

@media (max-width: 580px) {
  .producto-card {
    flex: 1 1 100%;
  }
}


    h4, h5 {
      font-weight: 600;
      color: #32415B;
    }

    .main-container {
      max-width: 960px;
      margin: 0 auto;
      padding: 30px 15px;
      background: #ffffff;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      text-align: center;
    }

    .btn-cim {
      background-color: #005cb8;
      color: #fff;
      font-weight: 600;
      font-size: 17px;
      border-radius: 8px;
      padding: 18px 30px;
      width: 100%;
      max-width: 300px;
      margin: 15px auto;
      transition: all 0.3s ease;
    }

    .btn-cim:hover {
      background-color: #004aad;
      color: #fff;
    }

    .contacto h4 {
      margin-top: 30px;
      font-size: 1.5rem;
    }

    .contacto span {
      color: #E38E6D;
      font-weight: bold;
      font-size: 1.8rem;
      display: block;
      margin-top: 10px;
    }

    .catalogo-img {
      width: 155px;
      height: 155px;
      margin: 20px 0;
    }

    .terms-link {
      color: #003a80;
      font-weight: 600;
      text-decoration: none;
      margin-top: 30px;
      display: inline-block;
    }

    .terms-link img {
      width: 40px;
      margin-left: 10px;
      vertical-align: middle;
    }


        .container-terminos {
            max-width: 1000px;
            margin: 30px auto;
            background: #fff;
            padding: 40px 30px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        h2 {
            color: #003a80;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .btn-cerrar {
            background-color: #EDC3B3;
            color: #000;
            border: none;
            padding: 12px 25px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .btn-cerrar:hover {
            background-color: #e0a68f;
            color: #000;
        }

        textarea {
            width: 100%;
            min-height: 400px;
            padding: 15px;
            font-size: 16px;
            color: #333;
            background-color: #E6EDF9;
            border: 1px solid #ccc;
            border-radius: 8px;
            resize: vertical;
        }

        .leyes-icon {
            width: 58px;
            height: auto;
            vertical-align: middle;
            margin-left: 10px;
        }    


    .main-title {
      font-size: 2rem;
      color: #005cb8;
      font-weight: bold;
      text-align: center;
      margin-bottom: 30px;
    }

    .card-product {
      background: #fff;
      border-radius: 8px;
      border: 1px solid #dee2e6;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      margin-bottom: 30px;
      padding: 20px;
    }

    .card-product img {
      max-width: 160px;
      height: auto;
      margin-bottom: 10px;
    }

    .product-details {
      font-size: 16px;
      color: #555;
    }

    .product-details span {
      display: block;
      margin-bottom: 5px;
    }

    .elegant-button {
      background-color: #005cb8;
      color: #fff;
      padding: 12px 24px;
      font-size: 16px;
      border: none;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      display: block;
      place-self:center;
      margin: 10px 5px;
    }

    .elegant-button:hover {
      background-color: #004aad;
    }

    .elegant-button2 {
      background-color: transparent;
      border: 2px solid #005cb8;
      color: #005cb8;
      padding: 10px 20px;
      border-radius: 6px;
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s ease;
      display: inline-block;
      margin: 10px 5px;
    }

    .elegant-button2:hover {
      background-color: #e8eefb;
    }

    .summary-card {
      background: #ffffff;
      border-radius: 8px;
      border: 1px solid #dee2e6;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      padding: 20px;
      margin-top: 30px;
      text-align: center;
    }

    .summary-card h5 {
      color: #005cb8;
      font-weight: bold;
      margin-bottom: 20px;
    }

    .summary-card span {
      display: block;
      margin: 5px 0;
      font-weight: 600;
      color: #333;
    }

    textarea {
      width: 100%;
      background-color: #E6EDF9;
      color: #333;
      font-size: 16px;
      border-radius: 8px;
      padding: 15px;
      border: 1px solid #ccc;
      resize: vertical;
    }

    .terms-link {
      color: #005cb8;
      text-decoration: none;
      font-weight: bold;
      margin-top: 30px;
      display: inline-block;
    }

    .terms-link img {
      width: 40px;
      vertical-align: middle;
      margin-left: 10px;
    }        

     
        .main-container {
            max-width: 900px;
            margin: auto;
            padding: 20px;
        }
        .card-product {
            border: 1px solid #2D4D84;
            border-radius: 10px;
            margin-bottom: 30px;
            background-color: #ffffff;
        }
        .card-product img {
            max-width: 150px;
            margin: 15px auto;
        }
        .product-details {
            font-size: 16px;
            color: #32415B;
        }
        .product-details strong {
            color: #005cb8;
        }
        .btn-custom {
            background-color: #005cb8;
            color: #fff;
            font-weight: bold;
        }
        .btn-custom:hover {
            background-color: #004aad;
        }

 @media (max-width: 580px) {
    .container {
      padding: 15px;
    }

    .container div[align="center"] {
      font-size: 18px;
    }

    textarea[name="termino"] {
      width: 100% !important;
      height: auto;
      font-size: 16px;
    }

    img {
      max-width: 100%;
      height: auto;
    }
  }

  @media (max-width: 580px) {
    .container div[align="center"] {
      font-size: 16px;
    }

    textarea[name="termino"] {
      font-size: 14px;
    }
  }        



  /* Estilo Amazon para campo activo */
#prod:focus {
  border: 2px solid var(--azul-medio); /* naranja  */
  outline: none;
}

/* Input siempre con esquinas redondeadas */
#prod {
  border-radius: 4px 0 0 4px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* Botón buscar */
#btnBuscar {
  background: var(--azul-medio); /* naranja  */
  border: none;
  padding: 10px 16px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* Botón clear (X) */
.btn-clear {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  z-index: 200000;
}

.btn-clear:hover {
  color: #000;
}

/* Dropdown  */
#resultadoBusqueda {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  /* max-height: 350px; */ 
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
  display: none;
}

#resultadoBusqueda a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

#resultadoBusqueda a:hover {
  background-color: #f3f3f3;
}

#prod {
  background-color: #ffffff !important;
  color: #333;
  z-index:200000
}

#prod:focus {
  background-color: #ffffff !important;
  border: 2px solid --azul-oscuro;
  outline: none;
}

#resultadoBusqueda {
  background-color: #ffffff;
  color: #333;
  border: 1px solid #ddd;
  border-top: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 200000;
  display: none;
}

#resultadoBusqueda a {
  background-color: #ffffff;
}

#resultadoBusqueda a:hover {
  background-color: #f3f3f3;
}

.input-group {
  position: relative;
  z-index: 2000; /* por encima del overlay */
}

  .password-container {
      position: relative;
      /* width: 250px; */
    }
    .toggle-eye {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      font-size: 18px;
    }
    input[type="password"],
    input[type="text"] {
      width: 100%;
      padding-right: 30px;
    }



.logo-mobile {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 9999;
  text-align: center;
  padding: 10px;
  transition: all 0.3s ease;
}

.logo-mobile img {
  height: 80px;
  transition: height 0.3s ease;
}

.logo-mobile.shrink img {
  height: 50px;
}

.top-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 9999;
  transition: all 0.3s ease;
}

.logo img {
  height: 100px;
  transition: height 0.3s ease;
}

.top-header.scrolled .logo img {
  /* height: 60px; */
}

/* .margenBarraFija{
   padding-top:200px;
  } */


 @media (max-width: 580px) {
  .barraFijaMovil{
    position: fixed;
    z-index: 100000;
    background-color: rgb(255, 255, 255);
    width: 100%;
     height: 4rem; 
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-around;
    align-items: center;
    border-bottom:inset;
    border-color:var(--azul-oscuro);
  }

    .margenBarraFijaMovil{
    padding-top:70px;
  }

  /* .margenBarraFija{
    display:none;
  } */


  .carrito2movil{
     color:#394457;
     font-size:16px;         
    position: fixed;
    top: 4rem!important;
    z-index: 1000;
    width: 100%;
    background-color: whitesmoke;
  }

  .carrito2movil {  
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  /* max-width: 300px; */
}

.carrito2movil.minimizado {
  max-width: 40px;
  overflow: hidden;
  padding: 5px;
  
}

#toggleCarrito {
  cursor: pointer;
  font-size: 18px;
  display: inline;
  text-align: right;
}

 }


 .barraFijaEsc{
   position: fixed;
    z-index: 100000;
    background-color: rgb(255, 255, 255);
    width: 100%;
    top:0;
    /* height: 7%; */
    /* display: flex; */
    /* flex-direction: row; */
    /* flex-wrap: nowrap; */
    /* align-content: center; */
    /* justify-content: space-around; */
    /* align-items: center; */
    border-bottom:inset;
    border-color:var(--azul-oscuro);
}
 @media (max-width: 580px) {
  .barraFijaEsc{
   position: relative;
    z-index: 100;
    border-bottom:none;
    padding-top:48px;
  }

  .tituloStd{
    margin: 5px;
    justify-items: center;
    border-bottom: none;
  }

  .icono-recarga{
    max-width:50px;
  }
 }


 /* .top-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 9999;
  transition: all 0.3s ease;
}

.logo img {
  height: 80px;
  transition: height 0.3s ease;
}

.top-header.scrolled .logo img {
  height: 60px;
}
 */





/* .acciones a i {
  height: 1px;
  transition: height 0.3s ease;
}
.top-header.scrolled .acciones a img {
  vertical-align:super;
}

.top-header.scrolled .acciones a i {
  transition: height 0.3s ease;
  display:none;   
  
} */

/*header 2*/
    /* .menu-principal-titulo  {
      transition: all 0.3s ease;
    } */
 /* Compras inteligentes */
    /* .menu-principal-titulo div h1 {
      display:inline!important;
      transition: display 0.3s ease;
    }

    .menu-principal-titulo.scrolled div h1 {
      display: none!important;    
    } */
/* menu adicionales */

 /* .menu-principal-titulo.scrolled .acciones a i {
      display:none;
      transition: display 0.3s ease;
    } */

