:root {
  --primary: #1cb24b;
  --primary-dark: #018f43;
  --bg: #fafbfc;
  --card-bg: #fff;
  --shadow: 0 2px 14px rgba(0,0,0,0.07);
  --shadow-hover: 0 6px 30px rgba(0,0,0,0.13);
  --radius: 18px;
  --footer-bg: #111;
  --text-main: #181c1f;
  --text-muted: #4a5054;
  --border: #e8ecef;
  --nuevo-bg: #22c55e;
  --nuevo-text: #fff;
}

/* ----------- ESTILOS GENERALES ------------ */
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  margin: 0;
  color: var(--text-main);
}

/* ---------------- HEADER ----------------- */
.catalogo-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 34px 8px 30px;    /* MÁS COMPACTO, alinea mejor */
  min-height: 62px;
  gap: 17px;
}
.catalogo-navbar-logo {
  height: 80px;                /* Más uniforme en mobile/pc */
  margin-right: 10px;
  transition: transform .15s;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.07));
  display: block;
  align-self: center;
}
.catalogo-navbar-logo:hover { transform: scale(1.08); }
.catalogo-navbar-buscar {
  width: 370px;               /* MÁS LARGO en PC */
  max-width: 100vw;
  min-width: 120px;
  padding: 9px 18px;          /* MÁS FINO (menos alto) */
  border-radius: 12px;
  border: 1.4px solid var(--border);
  font-size: 1.07em;
  background: #f9f9f9;
  transition: border .17s;
  outline: none;
  color: #333;
  margin-right: auto;
  margin-left: 0;
  box-sizing: border-box;
  align-self: center;
}
.catalogo-navbar-buscar:focus { border-color: var(--primary); }
.menu-hamburguesa {
  margin-left: 12px;
  align-self: center;
}

@media (max-width: 900px) {
  .catalogo-navbar {
    padding: 7px 3vw 7px 3vw;
    gap: 8px;
    min-height: 56px;
  }
  .catalogo-navbar-buscar {
    width: 100%;
    max-width: 85vw;
    font-size: 1em;
    padding: 8px 12px;         /* Más fina en mobile */
  }
}

@media (max-width: 650px) {
  .catalogo-navbar-logo { height: 70px; }
  .catalogo-navbar-buscar {
    width: 100%;
    max-width: 60vw;
    min-width: 90px;
    font-size: 0.97em;
    padding: 7px 9px;
  }
}

/* ----------- SECCIÓN CATEGORÍAS ------------ */
.catalogo-categorias-section {
  margin: 0 auto 38px auto;
  max-width: 1120px;
}
.catalogo-sub {
  color: var(--primary);
  font-size: 1em;
  margin: 30px 0 2px 0;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .98;
  text-align: center;
}
.catalogo-titulo {
  font-size: 1.6em;
  font-weight: 800;
  margin: 0 0 28px 0;
  color: var(--text-main);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}
.catalogo-categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
  justify-content: center;
  align-items: stretch;
  margin: 0 8px;
}
.categoria-btn {
  background: #fff;
  color: #181c1f;
  border: 1.2px solid #181c1f;
  border-radius: 18px;
  font-size: 1.12em;
  font-weight: 700;
  padding: 40px 2px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
  transition:
    box-shadow .16s,
    border .13s,
    color .13s,
    background .13s,
    transform .12s;
  min-height: 90px;
  min-width: 170px;
  max-width: 100%;
  cursor: pointer;
  outline: none;
}
.categoria-btn:hover, .categoria-btn:focus {
  background: #fff;
  color: #181c1f;
  border-color: #181c1f;
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-3px) scale(1.025);
}
@media (max-width: 600px) {
  .categoria-btn {padding: 18px 2px; font-size: .97em; min-width: 90px; min-height: 60px;}
}

/* ----------- SECCIÓN PRODUCTOS DESTACADOS ------------ */
.catalogo-destacados-section {
  margin: 44px auto 16px auto;
  max-width: 1340px;
}
.catalogo-destacados-section > h2 {
  font-size: 2em;
  font-weight: 800;
  margin: 0 0 28px 0;
  color: var(--text-main);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.destacados-productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  justify-content: center;
  align-items: stretch;
  margin: 0 24px;
  padding-bottom: 18px;
}

/* CARD DE PRODUCTO */
.producto-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: none;
  transition: transform .17s, box-shadow .18s, background .11s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 340px;
  max-width: 255px;
  margin: 0 auto;
  position: relative;
  padding: 14px 14px 18px 14px;
}
.producto-card:hover {
  transform: translateY(-7px) scale(1.065);
  box-shadow: var(--shadow-hover);
  background: #fff;
}
.producto-card img {
  width: 100%;
  max-width: 175px;
  max-height: 120px;
  object-fit: contain;
  margin: 10px 0 13px 0;
  border-radius: 12px;
  background: #fff;
  border: 1.2px solid #efefef;
  transition: box-shadow .12s;
  box-shadow: 0 1px 7px rgba(0,0,0,0.05);
}
.nuevo-badge {
  position: absolute;
  left: 13px;
  top: 13px;
  background: var(--nuevo-bg);
  color: var(--nuevo-text);
  font-size: .86em;
  font-weight: 800;
  padding: 2px 14px;
  border-radius: 12px;
  letter-spacing: .06em;
  box-shadow: 0 2px 10px rgba(20,190,100,0.09);
  z-index: 2;
  text-transform: uppercase;
}
.producto-card h3 {
  font-size: 1.12em;
  font-weight: 800;
  margin: 13px 0 2px 0;
  color: #181c1f;
  text-align: center;
  min-height: 34px;
  letter-spacing: .01em;
}
.producto-card p {
  font-size: .97em;
  color: #222;
  margin: 5px 0 6px 0;
  text-align: center;
  min-height: 30px;
}
.producto-precio {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.09em;
  margin: 6px 0 13px 0;
}
.producto-vermas {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 8px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none;
  font-size: 1.05em;
  margin-top: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  display: inline-block;
}
.producto-vermas:hover {
  background: var(--primary);
  color: #fff;
}

/* --------- MEJORAS MOBILE: CATEGORÍAS Y PRODUCTOS DE A DOS --------- */
@media (max-width: 650px) {
  .catalogo-categorias-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    margin: 0 2vw;
  }
  .categoria-btn {
    padding: 15px 2px;
    font-size: 0.98em;
    min-width: 70px;
    min-height: 43px;
    border-radius: 13px;
    box-shadow: 0 1px 7px rgba(0,0,0,0.08);
    letter-spacing: .02em;
  }
  .catalogo-destacados-section > h2 {font-size: 1.21em; margin-bottom: 17px;}
  .destacados-productos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    margin: 0 3vw;
  }
  .producto-card {
    min-height: 185px;
    max-width: 99vw;
    font-size: 0.96em;
    padding: 7px 3px 11px 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.09);
  }
  .producto-card img {
    max-width: 94vw;
    max-height: 85px;
    margin: 7px auto 2px auto;
    display: block;
    object-fit: contain;
  }
  .producto-card h3 {
    font-size: 0.96em;
    margin: 9px 0 2px 0;
    min-height: unset;
  }
  .producto-card p {
    font-size: 0.92em;
    max-height: 29px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    color: #4a5054;
  }
  .producto-precio {
    font-size: 1em;
  }
}

/* En pantallas más chicas, forzamos que se vea bien */
@media (max-width: 500px) {
  .catalogo-categorias-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 0 1vw;
  }
  .categoria-btn {
    padding: 12px 2px;
    font-size: 0.89em;
    min-width: 52px;
    min-height: 35px;
    border-radius: 9px;
  }
}

/* ----------- RESTO ----------- */
.catalogo-empty {
  font-size: 1.1em;
  color: #b52929;
  margin: 18px auto;
  padding: 10px 8px;
  text-align: center;
  border-radius: 9px;
  background: #f6eaea;
  max-width: 290px;
}
.catalogo-confian-section { margin: 38px auto 0 auto; max-width: 1100px; padding: 0 14px; text-align: center;}
.catalogo-confian-section > h2 {font-size: 1.05em; color: #222; margin-bottom: 9px; font-weight: 700;}
.catalogo-marcas-carrusel { display: flex; gap: 44px; overflow-x: auto; padding: 7px 0 7px 0; align-items: center; justify-content: center;}
.catalogo-marcas-carrusel::-webkit-scrollbar {display:none;}
.marca-item img {height: 36px; object-fit: contain; filter: grayscale(.7) contrast(1.1); transition: filter .13s; opacity: .97;}
.marca-item img:hover {filter: none; opacity: 1;}

.catalogo-novedades-section {margin: 34px auto 0 auto; max-width: 500px; padding: 0 12px 6px 12px; text-align: center;}
.catalogo-novedades-section > h2 {font-size: 1.01em; color: var(--primary-dark); margin-bottom: 8px; font-weight: 700;}
.catalogo-novedades-form { display: flex; flex-direction: column; align-items: center; gap: 8px;}
.catalogo-novedades-form input[type="email"] {padding: 10px 13px; border-radius: 7px; border: 1.4px solid var(--border); background: #f8faf8; font-size: .99em; width: 100%; max-width: 270px; transition: border .13s; outline: none;}
.catalogo-novedades-form input[type="email"]:focus { border-color: var(--primary);}
.catalogo-novedades-form button {background: var(--primary); color: #fff; border: none; border-radius: 7px; padding: 8px 22px; font-weight: 700; font-size: 1em; cursor: pointer; transition: background .13s;}
.catalogo-novedades-form button:hover {background: var(--primary-dark);}

.catalogo-footer {
  background: var(--footer-bg);
  color: #fff;
  text-align: center;
  padding: 23px 0 10px 0;
  font-size: 1.02em;
  margin-top: 30px;
  letter-spacing: .4px;
  border-top: 1px solid #1a1a1a;
}
.wapp-float-btn {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 22px 0 rgba(44,72,43,0.23);
  transition: box-shadow .22s, transform .22s;
  animation: wapp-float-show 0.7s;
}
.wapp-float-btn:hover {
  box-shadow: 0 8px 32px 0 rgba(30,203,71,0.30);
  transform: scale(1.07);
  background: #1cc161;
}
.wapp-float-img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.11));
}
@media (max-width: 700px) {
  .wapp-float-btn { right: 12px; bottom: 12px; width: 48px; height: 48px; }
  .wapp-float-img { width: 24px; height: 24px; }
}
@keyframes wapp-float-show {
  0% { opacity: 0; transform: scale(0.75) translateY(60px);}
  100% { opacity: 1; transform: scale(1) translateY(0);}
}
.catalogo-marcas-carrusel {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 28px 0 28px 0;
  border-radius: 0;
  box-shadow: 0 8px 28px rgba(34, 83, 104, 0.07);
  z-index: 2;
  display: flex;
  justify-content: center;
}

.marcas-slider {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: scrollMarcas 36s linear infinite;
  height: 70px;
}

.marca-item {
  flex: 0 0 auto;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  transition: opacity .3s, transform .3s;
}
.marca-item:hover {
  opacity: 1;
  transform: scale(1.08);
}
.marca-item img {
  max-height: 100px;
  max-width: 150px;
  object-fit: contain;
  background: transparent;
  transition: filter 0.2s;
  filter: none;
}
@keyframes scrollMarcas {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .catalogo-marcas-carrusel {
    padding: 18px 0 18px 0;
  }
  .marcas-slider {
    gap: 32px;
    height: 40px;
  }
  .marca-item { width: 100px; }
  .marca-item img { max-height: 50px; }
}

.menu-hamburguesa {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  z-index: 3001;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: filter 0.2s;
}
.menu-hamburguesa span {
  display: block;
  width: 30px;
  height: 3.7px;
  background: #222;
  border-radius: 3px;
  transition: all .28s cubic-bezier(.42,0,.58,1);
}
.menu-hamburguesa:active { filter: brightness(0.85); }

.menu-lateral {
  position: fixed;
  top: 0; right: -100vw;
  width: 350px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 40px rgba(0,0,0,.10);
  z-index: 3002;
  transition: right .33s cubic-bezier(.38,1.1,.57,1);
  display: flex;
  flex-direction: column;
  padding: 0 0 32px 0;
  border-radius: 0;
}
.menu-lateral.abierto { right: 0; }

.menu-lateral-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 8px 22px;
  border-bottom: 1px solid #ececec;
  min-height: 54px;
}
.menu-lateral-header strong {
  font-size: 1.2em;
  letter-spacing: 0.03em;
}
.cerrar-menu {
  background: none;
  border: none;
  font-size: 2.2em;
  color: #222;
  cursor: pointer;
  line-height: 1;
  padding: 0 3px;
}
.menu-lateral ul {
  list-style: none;
  padding: 20px 22px 0 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-lateral ul li a {
  text-decoration: none;
  color: #1a2329;
  font-size: 1.10em;
  font-weight: 500;
  padding: 7px 4px;
  border-radius: 6px;
  transition: background .17s, color .17s;
  display: block;
}
.menu-lateral ul li a:hover,
.menu-lateral ul li a:focus {
  background: #f1f3f8;
  color: #1dbf73;
}
#menu-overlay {
  display: none;
  position: fixed;
  z-index: 3000;
  inset: 0;
  background: rgba(33,41,56,0.13);
  transition: background .28s;
}
.menu-lateral.abierto + #menu-overlay {
  display: block;
}

/* MOBILE ULTRA-RESPONSIVE */
@media (max-width: 900px) {
  .menu-lateral {
    width: 50vw !important;
    max-width: 92vw !important;
    border-radius: 0 12px 12px 0;
    left: unset; right: -80vw;
  }
  .menu-lateral-header {
    padding: 14px 12px 6px 14px;
  }
  .menu-lateral ul {
    padding: 13px 12px 0 14px;
    gap: 9px;
  }
  .menu-hamburguesa {
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
  }
  .menu-hamburguesa span { width: 21px; height: 2.7px; }
}

/* Extra: Si hay problemas de superposición */
body.menu-abierto {
  overflow: hidden;
  touch-action: none;
}
.ver-mas-categorias-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

.ver-mas-categorias.btn-brillo {
  background: #111;
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;    /* Más chico que productos */
  padding: 9px 24px;  /* Más compacto */
  border-radius: 22px;
  margin: 0 auto;
  transition: box-shadow 0.2s, transform 0.2s;
  z-index: 1;
  letter-spacing: 0.03em;
}

@media (max-width: 600px) {
  .ver-mas-categorias.btn-brillo {
    font-size: 0.93rem;
    padding: 8px 16px;
    border-radius: 18px;
  }
}

.ver-mas-categorias.btn-brillo:hover,
.ver-mas-categorias.btn-brillo:focus {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  transform: translateY(-1px) scale(1.04);
}

.ver-mas-categorias.btn-brillo::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 100%);
  transition: left 0.4s cubic-bezier(.4,.2,.2,1);
  pointer-events: none;
  z-index: 2;
}

.ver-mas-categorias.btn-brillo:hover::before,
.ver-mas-categorias.btn-brillo:focus::before,
.ver-mas-categorias.btn-brillo:active::before,
.ver-mas-categorias.btn-brillo.touch-brillo::before {
  left: 110%;
  transition: left 0.4s cubic-bezier(.4,.2,.2,1);
}
#preloader {
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  width: 300px;
  height: 300px;
  filter: drop-shadow(0 2px 8px rgba(60,120,60,0.14));
  animation: loader-zoom 1.2s infinite alternate, loader-brillo 2s infinite alternate;
}

@keyframes loader-zoom {
  0% { transform: scale(1);}
  100% { transform: scale(1.13);}
}

@keyframes loader-brillo {
  0% { filter: drop-shadow(0 2px 8px rgba(60,120,60,0.18)) brightness(1);}
  100% { filter: drop-shadow(0 2px 18px rgba(60,180,100,0.36)) brightness(1.17);}
}

.preloader-dots {
  margin-top: 20px;
  font-size: 32px;
  color: #17b349;
  letter-spacing: 6px;
}

.preloader-dots span {
  opacity: 0.1;
  animation: dotsFade 1.4s infinite;
  font-weight: bold;
}
.preloader-dots span:nth-child(1) { animation-delay: 0s; }
.preloader-dots span:nth-child(2) { animation-delay: 0.2s; }
.preloader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotsFade {
  0%, 80%, 100% { opacity: 0.1; transform: scale(1);}
  30%, 50% { opacity: 1; transform: scale(1.3);}
}
.footer-redes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 1.13rem;
}

.footer-redes span {
  font-weight: 600;
  color: #fff;
  margin-right: 7px;
  font-size: 1.06em;
  letter-spacing: .2px;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: none;
  border: none;
  border-radius: 7px;
  transition: color .2s, transform .2s;
  margin-left: 3px;
  padding: 3px;
  font-size: 1.18em;
}

.footer-icon:hover {
  color: var(--blanco);
  transform: scale(1.13) rotate(-7deg);
  background: rgba(22,193,117,0.10);
}


.catalogo-navbar-logo,
.catalogo-navbar-buscar,
.menu-hamburguesa {
  align-self: center !important;
}


.catalogo-navbar,
.catalogo-navbar * {
  box-sizing: border-box;
}
.catalogo-navbar {
  display: flex;
  align-items: center !important;
}
.menu-hamburguesa {
  align-self: center !important;
  position: static !important;
  margin-left: 10px;
  height: 40px;  /* Ajustá igual al logo si es necesario */
}
