/* General */


html, body {

  margin: 0;
  display: flex;
  flex-direction: column;
}
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #222;
}
a {
  text-decoration: none;
  color: inherit;
}
body > main {
  flex: 1;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: #000;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  height: 80px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.navbar .logo {
  display: flex;
  align-items: center;
}
.navbar .logo img {
  height: 10rem;
  display: block;
  margin-top: 8px;
}
.navbar nav {
  display: flex;
  align-items: center;
}
.navbar nav a {
  margin-left: 1.5rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative; /* Necesario para el badge */
}
.navbar nav a:hover,
.navbar nav a.active {
  color: #f7931e;
}
nav#navbar-links {
  margin-right: 1rem;
}
#navbar-links a {
  font-size: 1.3rem;
  /* NO poner padding-right aquí, solo en .carrito-link */
}

/* Menú Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  margin-right: 2rem;
  background: white;
  display: block;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
.mobile-menu a {
  color: white;
  font-size: 1.3rem;
  padding: 1rem;
  text-align: center;
  display: block;
  transition: color 0.3s ease;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: #f7931e;
}

/* Hero */
/* ... --- SIN CAMBIOS --- ... (todo tu CSS anterior igual aquí, sólo se muestra el bloque relevante arriba y abajo) ... */

/* Responsive */
@media (max-width: 768px) {
  .grid-productos {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .buscador {
    flex-direction: column;
  }
  .buscador input {
    margin-bottom: 1rem;
    width: 100%;
  }
  .faq ul {
    padding-left: 1rem;
  }
  .navbar .logo img {
    height: 7rem;
    margin-top: 0;
  }
  .navbar .logo {
    margin-left: 0;
  }
  .navbar {
    padding: 0.75rem 0.8rem;
  }
  .menu-toggle {
    display: flex;
  }
  nav#navbar-links {
    display: none;
    flex-direction: column;
    background-color: #1a1a1a;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    padding: 1rem;
    z-index: 999;
  }
  nav#navbar-links.active {
    display: flex;
  }
  nav#navbar-links a {
    margin: 0.5rem 0;
    font-size: 1.2rem;
  }
  .slider-marcas .swiper-slide img {
    width: 90px;
    height: 90px;
  }
  .brands-title, .marcas-titulo {
    font-size: 1.5rem;
  }
  .brands-title::after, .marcas-titulo::after {
    width: 100px;
  }
  .beneficio {
    padding: 1rem;
    margin: 1rem 0;
  }
  .beneficio img {
    max-width: 7rem;
  }
  .beneficio h3 {
    font-size: 1.5rem;
  }
  .beneficio p {
    font-size: 1rem;
  }
  .seccion-presentacion .contenedor-texto {
    padding: 1.2rem 1rem;
    margin: 1rem auto;
    border-radius: 12px;
  }
  .seccion-presentacion h2 {
    font-size: 1.5rem;
  }
  .seccion-presentacion p {
    font-size: 1rem;
  }
  .seccion-presentacion .linea {
    margin-bottom: 1.2rem;
  }
 }
  

#navbar-links a {
    position: relative;
    display: inline-block;
    padding-right: 24px; /* espacio extra SOLO para el badge, no afecta otros links */
}


/* Menú Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  margin-right: 2rem;
  background: white;
  display: block;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
.mobile-menu a {
  color: white;
  font-size: 1.3rem;
  padding: 1rem;
  text-align: center;
  display: block;
  transition: color 0.3s ease;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: #f7931e;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  min-height: 75vh; /* Más compacto para que no tape tanto */
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
}
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
  object-position: center 20%;   /* <-- Esto sube el foco del video */
}
.hero-content,
#particles-canvas {
  position: relative;
  z-index: 2;
}
.hero-content {
  background-color: rgba(0, 0, 0, 0.80);
  padding: 2.2rem 2.5rem;
  border-radius: 18px;
  max-width: 650px;
  text-align: left;
  margin-left: 4%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  box-shadow: 0 4px 24px 4px rgba(0,0,0,0.14);
  transition: background 0.2s, box-shadow 0.3s;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.18;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.72);
}
.hero p {
  font-size: 1.13rem;
  margin-bottom: 1.5rem;
  color: #f6f6f6;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.78);
}
.btn-primary {
  background-color: #e4871d;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, box-shadow 0.2s;
  margin-top: 1rem;
  font-size: 1.13rem;
}
.btn-primary:hover {
  background-color: #e6902f;
  box-shadow: 0 0 12px 4px rgba(255, 153, 0, 0.5);
}

/* Animaciones */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}
@keyframes underlineGrow {
  to { transform: translateX(-50%) scaleX(1);}
}

/* Buscador */
.buscador {
  margin-top: -2rem;
  display: flex;
  justify-content: center;
  padding: 2rem;
}
.buscador input {
  padding: 0.75rem;
  width: 300px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-right: 1rem;
}
.buscador button {
  padding: 0.75rem 1.5rem;
  background-color: #f7931e;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

/* Categorías */
.categorias {
  padding: 4rem 2rem;
  background-color: white;
}
.categorias h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}
.categoria {
  background-color: #f4f4f4;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Productos Destacados */
.productos-destacados {
  padding-bottom: 2rem;
  background-color: #f5f5f5;
  text-align: center;
}
.productos-destacados h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.grid-productos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.producto {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  /* animation: fadeInUp 0.5s ease forwards;  <-- ELIMINADA */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.producto:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}
.producto img {
  max-height: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}
.producto h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.producto button {
  background-color: #f58220;
  color: white;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}
.producto button:hover {
  background-color: #d76e14;
}
.badge-top {
  position: absolute;
  top: 10px;
  left: -10px;
  background: linear-gradient(135deg, #28a745, #218838);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .badge-top {
    left: 10px;
    top: 10px;
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
  }
}

/* Carrito */
.carrito {
  padding: 2rem;
  background-color: #fff;
}
.carrito h1 {
  text-align: center;
  margin-bottom: 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Nosotros */
.nosotros {
  padding: 2rem;
  background-color: #fefefe;
}
.nosotros h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.nosotros p {
  max-width: 800px;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.faq {
  max-width: 800px;
  margin-top: 2rem;
}
.faq h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.faq ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.faq li {
  margin-bottom: 1rem;
  line-height: 1.5;
}
.faq strong {
  color: #000;
}

/* Footer */
.footer {
  background-color: #000;
  color: white;

  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.footer div {
  margin-bottom: 1rem;
}
.footer h3 {
  margin-bottom: 0.5rem;
}
/* Redes Sociales en el Footer */
.footer .redes-sociales {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}
.footer .redes-sociales img {
  width: 2.5rem;
  height: 2.5rem;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}
.footer .redes-sociales img:hover {
  transform: scale(1.2);
}
.footer .redes-sociales a span {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  transition: color 0.3s ease;
}
.footer .redes-sociales a span:hover {
  color: #f7931e;
}
#ig {
  width: 3rem;
  height: 3rem;
}

/* WhatsApp Button */
.wsp-btn {
  position: fixed;
  bottom: 50px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  transition: transform 0.2s ease;
}
.wsp-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.wsp-btn:hover {
  transform: scale(1.15);
}

@media (max-width: 600px) {
  .wsp-btn {
    bottom: 75px;  /* Más espacio si el footer legal es alto en mobile */
  }
}
/* Slider de Marcas */
.slider-marcas {
  background-color: #000;
  padding: 40px 0;
  text-align: center;
}
.brands-title,
.marcas-titulo {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
  text-shadow: 2px 2px 5px rgba(255, 153, 0, 0.5);
}
.brands-title::after,
.marcas-titulo::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 3px;
  background-color: #f7931e;
  animation: underlineGrow 1s ease forwards;
  animation-delay: 1s;
}
.slider-marcas .swiper-slide img {
  width: 160px;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  background: radial-gradient(circle at center, #ffffff, #f2f2f2);
  padding: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.slider-marcas .swiper-slide img:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Cartel Único */
.cartel-unico {
  background-color: #eaf4ff;
  border: 1px solid #cce5ff;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

/* Título y Subrayado */
.titulo-seccion, .titulo-subrayado {
  position: relative;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  display: inline-block;
  text-align: center;
}
.titulo-seccion::after, .titulo-subrayado::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #f7931e;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Explicación */
.explicacion {
  font-size: 1rem;
  color: #002b4d;
  max-width: 90%;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.subtitulo-cartel {
  color: #004085;
  font-weight: 600;
  font-size: 1.05rem;
}
/* Botón Carrito */
.btn-carrito {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: #f7931e;
  color: white;
  padding: 12px 28px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}
.btn-carrito:hover {
  background-color: #e58200;
}

/* Compra Segura */
.compra-segura {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}
.titulo-compra {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.beneficios {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.beneficio {
  background-color: #f77f1cf1;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(255, 94, 0, 0.3);
  transition: transform 0.3s ease;
}
.beneficio:hover {
  transform: translateY(-5px);
}
.beneficio img {
  width: 10rem;
  height: auto;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}
.beneficio:hover img {
  transform: scale(1.1);
}
.beneficio h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.beneficio p {
  color: #f2f2f2;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Sección Presentación */
.seccion-presentacion {
  position: relative;
  background-color: #fff;
  padding: 5rem 2rem 6rem;
  text-align: center;
  z-index: 1;
  overflow: hidden;
  min-height: 400px;
  animation: fadeIn 1s ease-in-out;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}
.seccion-presentacion::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/banner2.jpg') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
  filter: brightness(0.9) grayscale(30%) contrast(100%) blur(1px);
}
.seccion-presentacion * {
  position: relative;
  z-index: 2;
}
.seccion-presentacion .contenedor-texto {
  background-color: rgba(255, 255, 255, 0.65);
  padding: 2rem;
  border-radius: 0.75rem;
  display: inline-block;
  max-width: 800px;
  margin: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.seccion-presentacion h2 {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  font-size: 2rem;
  font-weight: bold;
}
.seccion-presentacion p {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  font-size: 1.2rem;
}
.seccion-presentacion .linea {
  width: 60px;
  height: 4px;
  background-color: #f7931e;
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* Info Cotización */
.info-cotizacion {
  background-color: #eaf4ff;
  color: #003366;
  border: 1px solid #b3d9ff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  max-width: 800px;
  margin: 2rem auto;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Formulario de Contacto */
.formulario-contacto {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
}
.formulario-contacto h2 {
  font-size: 2em;
  color: #1a1a1a;
  margin-bottom: 0.2em;
}
.subrayado-naranja {
  display: block;
  width: 50px;
  height: 4px;
  background-color: orange;
  margin: 0 auto 30px auto;
  border-radius: 3px;
}
.formulario-contacto form {
  max-width: 600px;
  margin: auto;
}
.fila {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.fila input {
  flex: 1 1 45%;
  min-width: 200px;
  max-width: 260px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}
textarea {
  width: 100%;
  padding: 10px;
  height: 120px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  resize: none;
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* Botón outline */
.btn-outline-warning:hover {
  background-color: #f7931e;
  color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Utilidades */
.text-center {
  text-align: center;
}

/* Partículas (decoración) */
#particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .beneficios {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .grid-productos {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .buscador {
    flex-direction: column;
  }
  .buscador input {
    margin-bottom: 1rem;
    width: 100%;
  }
  .faq ul {
    padding-left: 1rem;
  }
  .navbar .logo img {
    height: 7rem;
    margin-top: 0;
  }
  .navbar .logo {
    margin-left: 0;
  }
  .navbar {
    padding: 0.75rem 0.8rem;
  }
  .menu-toggle {
    display: flex;
  }
  nav#navbar-links {
    display: none;
    flex-direction: column;
    background-color: #1a1a1a;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    padding: 1rem;
    z-index: 999;
  }



  nav#navbar-links.active {
    display: flex;
  }
  nav#navbar-links a {
    margin: 0.5rem 0;
    font-size: 1.2rem;
  }
  .slider-marcas .swiper-slide img {
    width: 90px;
    height: 90px;
  }
  .brands-title, .marcas-titulo {
    font-size: 1.5rem;
  }
  .brands-title::after, .marcas-titulo::after {
    width: 100px;
  }
  .beneficio {
    padding: 1rem;
    margin: 1rem 0;
  }
  .beneficio img {
    max-width: 7rem;
  }
  .beneficio h3 {
    font-size: 1.5rem;
  }
  .beneficio p {
    font-size: 1rem;
  }
  .seccion-presentacion .contenedor-texto {
    padding: 1.2rem 1rem;
    margin: 1rem auto;
    border-radius: 12px;
  }
  .seccion-presentacion h2 {
    font-size: 1.5rem;
  }
  .seccion-presentacion p {
    font-size: 1rem;
  }
  .seccion-presentacion .linea {
    margin-bottom: 1.2rem;
  }
}
/* HERO MOBILE OPTIMIZADO */
@media (max-width: 600px) {
 .hero {
    min-height: 60vh;  /* Cambiá este valor a gusto (60-70-80) */
    height: 60vh;
    margin-top: 100px;
    padding: 0;
    position: relative;
    overflow: hidden;
  }
  .hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 60vh;
    max-height: 60vh;
    opacity: 0.83;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    padding: 2.2rem 1rem;
    border-radius: 11px;
    max-width: 95vw;
    background-color: rgba(0,0,0,0.5);
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 2px 16px 2px rgba(0,0,0,0.18);
  }
  .hero h1 {
    font-size: 1.22rem;
    line-height: 1.24;
    margin-bottom: 0.8rem;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.15rem;
  }
  .btn-primary {
    width: 100%;
    max-width: 350px;
    padding: 0.9rem 0;
    font-size: 1.04rem;
    margin: 0 auto;
    margin-bottom: 0.4rem;
    display: block;
  }
  .beneficios {
    grid-template-columns: 1fr;
  }
  .fila {
    flex-direction: column;
  }
  .fila input, textarea, .btn-primary {
    width: 90%;
    max-width: 90%;
    margin: 0 auto 20px auto;
  }
}

.footer-legal {
  width: 100%;
  background: linear-gradient(0deg, #121618 65%, #232e39 100%);
  color: #e3edf7;
  font-size: 1rem;
  text-align: center;
  padding: 1.2rem 0 1rem 0;
  border-top: 1px solid #45576a;
  letter-spacing: 0.01em;
}

.footer-legal a.footer-link {
  color: #bee1fd;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-legal a.footer-link:hover {
  color: #f7931e;
  text-decoration: underline;
}

.footer-legal div {
  margin-bottom: 0.15em;
}

@media (max-width: 600px) {
  .footer-legal {
    font-size: 0.92rem;
    padding: 1rem 0 0.7rem 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
    z-index: 1001;
  }
  nav#navbar-links {
    display: none !important;
    flex-direction: column;
    background-color: #1a1a1a;
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    width: 100vw;
    padding: 1rem;
    z-index: 999;
  }
  nav#navbar-links.active {
    display: flex !important;
     background: #000 !important;  /* Asegura el negro */
  }
}

/*Nosotros*/

.nosotros-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.07);
  padding: 2.5rem 2rem;
  margin: 2rem auto 3rem auto;
  max-width: 1100px;
  min-height: 400px;
}
.nosotros-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.nosotros-texto {
  flex: 1 1 350px;
}
.nosotros-texto h1 {
  font-size: 2.4rem;
  margin-bottom: 0.3em;
  color: #000000;
}
.nosotros-texto .lead {
  font-size: 1.18rem;
  font-weight: 500;
  color: #111;
  margin-bottom: 1.2rem;
}
.nosotros-texto p {
  font-size: 1.04rem;
  color: #333;
  margin-bottom: 0.9em;
}
.nosotros-texto b {
  color: #e67e22;
  font-weight: 600;
}
.nosotros-img {
  flex: 1 1 320px;
  min-width: 280px;
  text-align: center;
}
.nosotros-img img {
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
  .nosotros-flex {
    flex-direction: column-reverse;
    gap: 1.2rem;
  }
  .nosotros-section {
    padding: 1.2rem 0.5rem;
  }
}


.nosotros-texto,
.nosotros-img {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.61,.25,.23,.96);
}

.nosotros-section.animada .nosotros-texto,
.nosotros-section.animada .nosotros-img {
  opacity: 1;
  transform: none;
}


.nosotros-img img {
  transition: box-shadow 0.3s cubic-bezier(.5,.07,.65,1.25), transform 0.35s cubic-bezier(.5,.07,.65,1.25);
}
.nosotros-img img:hover {
  box-shadow: 0 8px 36px rgba(230,126,34,0.23);
  transform: scale(1.03) translateY(-5px);
}

.titulo-central {
  text-align: center;
  color: #222; /* negro fuerte */
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.4em;
  letter-spacing: -1px;
}

.subrayado-naranja {
  display: block;
  margin: 0 auto 1.2em auto;
  width: 60px;
  height: 4px;
  background: none;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.subrayado-naranja::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #f7931e;
  margin: 0 auto;
  border-radius: 2px;
  animation: underlineAnim 1.3s cubic-bezier(.61,.25,.23,.96);
}

@keyframes underlineAnim {
  from { width: 0; }
  to   { width: 60px; }
}


/* --------------------------
   Carrito - Tabla de productos y Carrito
-------------------------- */
main {
  max-width: 1100px;
  margin: 100px auto 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.08);
  padding: 2.2rem 2.5rem 2.5rem 2.5rem;
}

h1, .carrito-titulo {
  font-weight: 700;
  margin-bottom: 22px;
}

#form-filtros {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
#form-filtros input[type="text"], #form-filtros select {
  padding: 10px 14px;
  border: 2px solid #e6e6e6;
  border-radius: 7px;
  font-size: 1.13rem;
  background: #f9f9f9;
  color: #333;
  transition: border-color 0.3s;
  min-width: 150px;
}
#form-filtros input[type="text"]:focus,
#form-filtros select:focus {
  border-color: #f7931e;
  outline: none;
}
#form-filtros button {
  padding: 10px 22px;
  font-size: 1.08rem;
  background: #f7931e;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.19s;
}
#form-filtros button:hover { background: #db7d12; }

.tabla-prods th, .tabla-carrito th {
  background: #eaf4ff;
  font-weight: 700;
  font-size: 1.06rem;
  padding: 12px 10px;
  color: #1a335a;
  border-bottom: 2px solid #cce5ff;
  text-align: left;
}
.tabla-prods td, .tabla-carrito td {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  font-size: 1.08rem;
  padding: 11px 10px;
  color: #222;
}
.tabla-carrito th { background: #d3ffe4; color: #09624c; border-bottom: 2px solid #7fe6bb; }
.tabla-prods tr:last-child td,
.tabla-carrito tr:last-child td { border-bottom: none; }

.tabla-prods input[type="number"], .tabla-carrito input[type="number"] {
  width: 65px;
  padding: 6px 8px;
  border: 1.5px solid #dadada;
  border-radius: 7px;
  font-size: 1.07rem;
  text-align: center;
  background: #f9f9f9;
}

/* --------------------------
   Carrito - Botones
-------------------------- */
.btn-naranja {
  background: #f7931e;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
  padding: 7px 14px;
  transition: background .14s;
  user-select: none;
}
.btn-naranja:hover { background: #db7d12; }
.btn-agregar {
  background: #2a9d8f;
  color: #fff;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 18px;
  transition: background .13s;
  margin-left: 3px;
}
.btn-agregar:hover { background: #207163; }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-radius: 8px;
  padding: 14px 35px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  border: none;
  margin: 5px 0;
  text-decoration: none;
  transition: background .16s;
}
.btn-whatsapp:hover { background: #1ebe57; }
.btn-eliminar {
  background: #e74c3c;
  color: #fff;
  border-radius: 7px;
  padding: 6px 16px;
  font-weight: 700;
  border: none;
}
.btn-eliminar:hover { background: #b82d19; }

.paginacion {
  text-align: center;
  margin: 25px 0 20px;
  font-size: 1.08rem;
}
.paginacion a, .paginacion span {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 15px;
  border: 1.3px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  color: #222;
  text-decoration: none;
  transition: background .15s, color .14s, border .16s;
}
.paginacion a:hover,
.paginacion .actual {
  background: #f7931e;
  color: #fff;
  border-color: #f7931e;
  font-weight: 700;
}

/* --------------------------
   Carrito - Mensaje de éxito
-------------------------- */
.pedido-exito {
  background: #e6fff4;
  border: 2px solid #1ebe57;
  padding: 22px;
  border-radius: 11px;
  margin-bottom: 30px;
  color: #116d44;
  font-size: 1.13rem;
}

/* Responsive SOLO para carrito y tablas */
/* Responsive - más compacto aún */

@media (max-width: 600px) {
  html, body {
    width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  main {
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 95px 1rem 40px 1rem !important; /* Top para despegar del navbar y laterales cómodos */
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
  }

  #form-filtros {
    margin-top: 0.5rem !important; /* Bajá este valor si ves demasiado espacio */
  }

  /* Reset padding/margin en tablas y sus celdas */
  table, thead, tbody, tr, th, td {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Para que no desborde horizontal */
  .tabla-prods,
  .tabla-carrito {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Ajustar filas como bloques verticales */
  .tabla-prods tbody tr,
  .tabla-carrito tbody tr {
    display: block !important;
    padding: 8px 6px !important;
    margin-bottom: 1rem !important;
    border-radius: 6px !important;
    background: #fafafa !important;
    box-shadow: 0 1.5px 5px rgba(0,0,0,0.05) !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }

  /* Ocultar thead */
  .tabla-prods thead,
  .tabla-carrito thead {
    display: none !important;
  }

  /* Cada celda toda la fila, sin overflow */
  .tabla-prods td,
  .tabla-carrito td {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 6px 16px !important; /* <- Más padding lateral aquí */
    font-size: 0.9rem !important;
    border-bottom: 1px solid #ddd !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }

  .tabla-prods td:last-child,
  .tabla-carrito td:last-child {
    border-bottom: none !important;
    justify-content: center !important;
  }

  .tabla-prods td::before,
  .tabla-carrito td::before {
    content: attr(data-label) !important;
    font-weight: 700 !important;
    color: #666 !important;
    flex: 1 1 35% !important;
  }

  .tabla-prods td > *:not(::before),
  .tabla-carrito td > *:not(::before) {
    flex: 1 1 65% !important;
  }

  /* Inputs y botones */
  input[type="text"],
  select,
  input[type="number"],
  button {
    font-size: 0.9rem !important;
    padding: 6px 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto 8px auto !important;
    box-sizing: border-box !important;
  }

  .btn-agregar,
  .btn-naranja {
    font-size: 0.8rem !important;
    padding: 4px 8px !important;
    min-width: 45px !important;
    max-width: 70px !important;
    margin: 2px auto !important;
    display: block !important;
  }

  .input-cantidad {
    width: 35px !important;
    font-size: 0.9rem !important;
    padding: 3px 4px !important;
    margin: 0 4px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  /* Botones eliminar */
  .btn-eliminar {
    min-width: 45px !important;
    padding: 5px 8px !important;
    font-size: 0.85rem !important;
    display: inline-block !important;
    margin: 0 auto !important;
  }

  /* Footer no fijo */
  .footer {
    position: static !important;
    width: 100% !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
  }
}

.btn-flotante-movil {
  display: none !important;
}

@media (max-width: 600px) {
  .btn-flotante-movil {
    display: flex !important;
    position: fixed !important;
    right: 20px !important;
    bottom: 140px !important; /* Flota arriba del wsp (ajustá si querés) */
    background-color: #f7931e;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    z-index: 1100;
    text-decoration: none;
    align-items: center;
    gap: 8px;
    user-select: none;
    width: auto !important;
    min-width: unset !important;
    left: unset !important;
    margin: 0 !important;
  }
  .btn-flotante-movil:hover {
    background-color: #db7d12;
  }
}

/* --- CARRITO --- */
.carrito-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 28px; /* espacio para el badge */
}

.carrito-badge {
  position: absolute;
  top: -8px;
  right: 0;
  background: #e74c3c;
  color: #fff;
  border-radius: 10px; /* ovalado */
  padding: 0 7px;
  font-size: 0.95em;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 7px rgba(0,0,0,0.12);
  z-index: 2;
  border: 2px solid #000;
  display: inline-block;
  pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .carrito-link {
    padding-right: 24px;
  }
  .carrito-badge {
    top: -7px;
    font-size: 1em;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 6px;
  }
}

@media (max-width: 600px) {
  .carrito-link {
    padding-right: 20px;
  }
  .carrito-badge {
    top: -5px;
    font-size: 1em;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 5px;
  }
}

.total-general td {
    text-align: center;
    font-weight: bold;
    background: #f8f5e6;
    padding: 12px;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
  .tabla-carrito tr.total-general td {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-weight: bold;
    margin: 0 auto !important;
  }
}


/* Carrito: mantener los botones de cantidad en fila, aunque la descripción sea muy larga */
@media (min-width: 601px) {
  .tabla-carrito td[data-label="Cantidad"] {
    display: inline-flex;           /* fila por defecto */
    align-items: center;
    gap: 6px;
    white-space: nowrap;            /* NO envolver */
    min-width: 140px;               /* dale un piso de ancho a la columna */
  }

  /* Botones y número en cantidad: tamaño consistente */
  .tabla-carrito td[data-label="Cantidad"] .btn-naranja {
    min-width: 28px;
    padding: 6px 10px;
  }
  .tabla-carrito td[data-label="Cantidad"] .cantidad-valor-carrito {
    display: inline-block;
    min-width: 18px;
    text-align: center;
  }

  /* Por si la descripción empuja demasiado, permití romper palabras ahí,
     NO en cantidad */
  .tabla-carrito td[data-label="Descripción"] {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}


/* ==== Carrito (ESCRITORIO) ==== */
.tabla-carrito { table-layout: fixed; }

.tabla-carrito th:nth-child(1),
.tabla-carrito td:nth-child(1) { width: 12%; }       /* Código */
.tabla-carrito th:nth-child(2),
.tabla-carrito td:nth-child(2) {                     /* Descripción largaaaa */
  width: 40%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;                           /* corta con … */
}
.tabla-carrito th:nth-child(3),
.tabla-carrito td:nth-child(3) { width: 12%; }       /* Categoría */
.tabla-carrito th:nth-child(4),
.tabla-carrito td:nth-child(4) { width: 140px; }     /* Cantidad */
.tabla-carrito th:nth-child(5),
.tabla-carrito td:nth-child(5),
.tabla-carrito th:nth-child(6),
.tabla-carrito td:nth-child(6) { width: 120px; }     /* Precio/Subtotal */
.tabla-carrito th:nth-child(7),
.tabla-carrito td:nth-child(7) { width: 70px; }      /* Quitar */

/* Que NO se apilen números ni controles */
.tabla-carrito td:nth-child(4),
.tabla-carrito td:nth-child(5),
.tabla-carrito td:nth-child(6),
.tabla-carrito td:nth-child(7) {
  white-space: nowrap;
  vertical-align: middle;
}

/* Controles de cantidad uno al lado del otro */
.tabla-carrito td:nth-child(4) {
  overflow: hidden;         /* por si acaso */
}
.tabla-carrito td:nth-child(4) .btn-naranja,
.tabla-carrito td:nth-child(4) .cantidad-valor-carrito {
  display: inline-block;
  vertical-align: middle;
}
.cantidad-valor-carrito { min-width: 20px; text-align: center; }

/* Total general, que no haga wrap */
.tabla-carrito tr.total-general td { white-space: nowrap; }

/* ==== Carrito (MÓVIL) ==== */
@media (max-width: 600px) {
  /* Evitar que el valor salte de línea en estas etiquetas */
  .tabla-carrito td[data-label="Cantidad"],
  .tabla-carrito td[data-label="Precio (Pesos)"],
  .tabla-carrito td[data-label="Subtotal"],
  .tabla-carrito td[data-label="Quitar"] {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    justify-content: space-between !important;
  }

  /* En Cantidad los botones + número siempre en línea */
  .tabla-carrito td[data-label="Cantidad"] > * {
    display: inline-block !important;
  }

  /* Total general centrado y sin wrap */
  .tabla-carrito tr.total-general td {
    white-space: nowrap !important;
    text-align: center !important;
  }

  /* La descripción puede ocupar todo, pero sin romper */
  .tabla-carrito td[data-label="Descripción"] {
    white-space: normal !important;   /* permitimos varias líneas acá */
    word-break: break-word !important;
  }
}