
  :root{
    --bg:#f5f5f5;
    --card:#ffffff;
    --muted:#6b7280;
    --border:#e5e7eb;
    --primary:#008080;
    --primary-soft:#0f9f9f;
  }

  *{
    box-sizing:border-box;
    margin:0;
    padding:0;
  }

  body{
    margin:0;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:var(--bg);
    color:#111827;
    -webkit-font-smoothing:antialiased;
  }

  a{
    text-decoration:none;
    color:inherit;
  }

  button{
    font-family:inherit;
  }

  /* ============= LAYOUT GENERAL ============= */

  .page{
    min-height:100vh;
    display:flex;
    flex-direction:column;
  }


  /* ================= HEADER MINI ================= */
  .mt-header {
    position:sticky;
    top:0;
    z-index:50;
    background:#ffffff;
    border-bottom:1px solid #e5e7eb;
    padding:10px 14px;
  }


  /* ============= NAV TABS ============= */

  .nav-tabs{
    border-top:1px solid rgba(0,0,0,.03);
    border-bottom:1px solid rgba(0,0,0,.04);
    background:#ffffffee;
  }

  .nav-inner{
    max-width:1200px;
    margin:0 auto;
    padding:6px 12px;
    display:flex;
    gap:4px;
    overflow-x:auto;
    scrollbar-width:none;
  }

  .nav-inner::-webkit-scrollbar{
    display:none;
  }

  .nav-link{
    border:none;
    background:transparent;
    padding:6px 14px;
    border-radius:999px;
    font-size:13px;
    color:#4b5563;
    cursor:pointer;
    white-space:nowrap;
    transition:background .15s ease, color .15s ease, transform .15s ease;
  }

  .nav-link:hover{
    background:#e5f3f3;
    color:#111827;
    transform:translateY(-1px);
  }

  .nav-link.active{
    background:var(--primary);
    color:#ffffff;
  }

  /* ============= MAIN / CATÁLOGO ============= */

  main{
    flex:1;
  }

  .catalog-shell{
    max-width:1200px;
    margin:0 auto;
    padding:12px 12px 32px;
  }

  .catalog-header{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:flex-end;
    gap:8px;
    margin-bottom:12px;
  }

  .catalog-title{
    font-size:22px;
    font-weight:300;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:#0f172a;
  }

  .catalog-subtitle{
    font-size:13px;
    color:var(--muted);
  }

  .catalog-actions{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
  }

  .result-count{
    font-size:12px;
    color:var(--muted);
  }

  .btn-outline{
    border-radius:999px;
    border:1px solid var(--border);
    background:#ffffff;
    font-size:13px;
    padding:6px 12px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    cursor:pointer;
    color:#374151;
    transition:background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  }

  .btn-outline span.icon{
    font-size:14px;
  }

  .btn-outline:hover{
    background:#e5f3f3;
    border-color:rgba(0,128,128,.4);
    transform:translateY(-1px);
    box-shadow:0 3px 8px rgba(0,0,0,.05);
  }

/* ================= BANNER CATÁLOGO ================= */

.catalog-banner{
  max-width:1200px;
  margin:0 auto 20px;
  padding:0 12px;
}

.banner-wrap{
  width:100%;
  border-radius:12px;
  overflow:hidden;
  background:transparent;
}

.banner-img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

/* Controles debajo del banner */
.banner-controls{
  margin-top:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.banner-controls .result-count{
  font-size:13px;
  color:#6b7280;
}



  /* ============= GRID DE PRODUCTOS ============= */

  .product-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:10px;
  }

  .product-card{
    background:var(--card);
    border-radius:10px;
    border:1px solid rgba(15,23,42,.04);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 4px 18px rgba(15,23,42,.04);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    cursor:pointer;
  }

  .product-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 30px rgba(15,23,42,.10);
    border-color:rgba(0,128,128,.35);
  }

  .product-image-wrap{
    position:relative;
    width:100%;
    padding-top:75%; /* ✔ relación 4:3 */
    background:#e5e7eb;
    overflow:hidden;
  }

  .product-image{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:contain;
  }

  .product-placeholder{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    color:#9ca3af;
  }

  .badge-oferta{
    position:absolute;
    top:8px;
    left:0;
    background:#ef4444;
    color:#ffffff;
    padding:3px 10px 4px 10px;
    font-size:11px;
    font-weight:500;
    border-radius:0 12px 12px 0;
    letter-spacing:.04em;
    text-transform:uppercase;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
    z-index:5;   /* ⭐ AGREGA ESTO */
  }

  .product-body{
    padding:8px 9px 10px;
    display:flex;
    flex-direction:column;
    gap:4px;
  }

  .product-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
  }

  .product-category{
    font-size:11px;
    color:var(--primary);
    text-transform:uppercase;
    letter-spacing:.08em;
  }

  .product-code{
    font-size:11px;
    color:#6b7280;
  }

  .product-name{
    font-size:13px;
    font-weight:600;
    color:#111827;
  }

  .product-specs{
    font-size:11px;
    color:var(--muted);
  }

  .product-bottom{
    margin-top:4px;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:6px;
  }

  .price-block{
    display:flex;
    flex-direction:column;
    gap:1px;
  }

  .price-old{
    font-size:11px;
    color:#9ca3af;
    text-decoration:line-through;
  }

  .price-current{
    font-size:14px;
    font-weight:600;
    color:#111827;
  }

  .btn-primary{
    border:none;
    border-radius:999px;
    background:var(--primary);
    color:#ffffff;
    font-size:11px;
    padding:6px 10px;
    cursor:pointer;
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
    gap:4px;
    transition:background .15s ease, transform .15s ease, box-shadow .15s ease;
  }

  .btn-primary:hover{
    background:var(--primary-soft);
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(0,128,128,.35);
  }

  .btn-primary span.icon{
    font-size:10px;
  }

  /* ============= PAGINACIÓN ============= */

  .pagination{
    margin-top:18px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    font-size:13px;
    color:var(--muted);
  }

  .pagination-btn{
    border-radius:999px;
    border:1px solid var(--border);
    background:#ffffff;
    padding:6px 12px;
    font-size:13px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    cursor:pointer;
    transition:background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  }

  .pagination-btn:hover:not(:disabled){
    background:#e5f3f3;
    border-color:rgba(0,128,128,.4);
    transform:translateY(-1px);
    box-shadow:0 3px 8px rgba(0,0,0,.05);
  }

  .pagination-btn:disabled{
    opacity:.5;
    cursor:default;
  }

  /* ============= WHATSAPP FAB ============= */

  .whatsapp-fab{
    position:fixed;
    right:16px;
    bottom:20px;
    width:50px;
    height:50px;
    border-radius:999px;
    background:#25D366;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ffffff;
    font-size:24px;
    box-shadow:0 8px 20px rgba(0,0,0,.35);
    cursor:pointer;
    z-index:60;
    transition:transform .15s ease, box-shadow .15s ease;
  }

  .whatsapp-fab img.whatsapp-icon {
    width: 65%;      /* tamaño del PNG equilibrado */
    height: 65%;
    object-fit: contain;
    pointer-events: none;
  }



  .whatsapp-fab:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 26px rgba(0,0,0,.45);
  }

/* ============= FOOTER ============= */

footer{
  border-top:1px solid rgba(0,0,0,.06);
  background:linear-gradient(to right, #ffffff, #f9fafb);
  padding:28px 16px 24px;   /* ← Usamos el padding GRANDE (el bonito) */
}

.footer-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.footer-column{
  min-width:180px;
  font-size:14px;
  color:var(--muted);
  line-height:1.5;
}

/* Logo */
.footer-logo img{
  height:54px;
  width:auto;
  margin-bottom:10px;
}

/* Enlaces */
.footer-links{
  list-style:none;
  margin-top:8px;
}

.footer-links li a{
  font-size:14px;
  color:var(--muted);
}

.footer-links li a:hover{
  color:var(--primary);
  text-decoration:underline;
}

/* Redes sociales */
.footer-column .social-icons {
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:8px;
}

.social-img img{
  width:34px;
  height:34px;
  object-fit:contain;
  display:block;
  transition:transform .15s ease;
}

.social-img img:hover{
  transform:translateY(-2px);
}

/* Línea final */
.footer-bottom{
  max-width:1200px;
  margin:12px auto 0;
  text-align:center;
  font-size:12px;
  color:#9ca3af;
  padding-top:12px;
}




  /* ============= RESPONSIVE ============= */

  @media (max-width:1024px){
    .product-grid{
      grid-template-columns:repeat(3,minmax(0,1fr));
    }
  }

  @media (max-width:768px){
    .header-inner{
      padding:24px 10px;
      gap:6px;
    }

    .back-btn{
      display:none;
    }

    .header-center{
      order:3;
      width:100%;
    }

    .search-box{
      max-width:none;
    }

    .header-right{
      margin-left:auto;
    }

    .icon-btn{
      width:32px;
      height:32px;
      font-size:15px;
    }

    .icon-btn.desktop-only{
      display:none;
    }

    .menu-btn{
      display:inline-flex;
    }

    .catalog-shell{
      padding:10px 10px 24px;
    }

    .catalog-header{
      align-items:flex-start;
    }

    .product-grid{
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
    }

    .footer-inner{
      flex-direction:column;
      gap:10px;
    }

    .whatsapp-fab{
      right:14px;
      bottom:14px;
      width:46px;
      height:46px;
      font-size:22px;
    }
  }

  @media (max-width:480px){
    .product-grid{
      grid-template-columns:repeat(2,minmax(0,1fr));
    }
  }
  /* ============= DRAWER LATERAL ============= */

.drawer-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(2px);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
  z-index:80;
}

.drawer-overlay.active{
  opacity:1;
  pointer-events:auto;
}

.drawer{
  position:fixed;
  top:0;
  left:0;
  width:260px;
  height:100%;
  background: rgba(255, 255, 255, 0.75); /* ← SEMI TRANSPARENTE */
  backdrop-filter: blur(10px);           /* ← EFECTO GLASS */
  box-shadow:4px 0 16px rgba(0,0,0,.15);
  transform:translateX(-100%);
  transition:transform .25s ease;
  z-index:81;
  padding:18px 14px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.drawer.active{
  transform:translateX(0);
}

.drawer-title {
  display: flex;
  justify-content: center;  /* Centra horizontal */
  align-items: center;       /* Centra vertical */
  padding: 10px 0;
}


.drawer-title-img {
  height: 65px;      /* ajusta tamaño */
  width: auto;
  object-fit: contain;
}

/* Lista del menú tamaño de titulos de drawer */
.drawer-menu{
  list-style:none;
  padding:0;
}

.drawer-menu a{
  display:flex;              /* permite alinear ícono + texto */
  align-items:center;        /* centra verticalmente */
  gap:12px;                  /* espacio entre ícono y texto */
  padding:4px 0;
}

/* 🔥 Corrección para centrar los íconos Font Awesome */
.drawer-icon {
  font-size:20px;           /* tamaño real del icono */
  width:22px;               /* espacio reservado */
  display:flex;             /* convierte el <i> en un contenedor */
  align-items:center;       /* centra verticalmente */
  justify-content:center;   /* centra horizontalmente */
  line-height:1;            /* evita que el icono se suba */
  flex-shrink:0;
}


.drawer-menu li{
  margin:12px 0;  /* más separación */
}

.drawer-menu a{
  font-size:16px;
  color:#334155;
}

.drawer-menu a:hover{
  color:#008080;
}

.divider {
  width: 100%;
  height: 1px;
  background: #e5e7eb;
  margin: 12px 0;
}


/* ================= HEADER MINI ================= */



.mt-header-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:16px;
}

/* LOGO */
.mt-logo img{
  width:58px;
  height:auto;
  object-fit:contain;
}

/* ICONOS */
.mt-icons{
  display:flex;
  gap:10px;
  align-items:center;
}

.mt-icon-btn{
  border:none;
  background:none;
  padding:4px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.mt-icon-img{
  width:26px;
  height:26px;
  object-fit:contain;
}
.mt-menu-btn .mt-icon-img{
  width:30px;
  height:30px;
}


/* BUSCADOR */
.mt-search{
  flex:1;
  display:flex;
  align-items:center;
  background:#f3f4f6;
  border-radius:8px;
  padding:0 12px;
  position:relative;
  max-width:460px;   /* ⭐ Evita que se estire demasiado */
}



.mt-search-input{
  width:100%;
  border:none;
  background:none;
  padding:10px 8px;
  font-size:15px;
  color:#111827;
}

.mt-search-input:focus{
  outline:none;
}

.mt-search-icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  opacity:.8;
}

.mt-search-clear{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  opacity:.8;
  display:none;
  cursor:pointer;
}

/* Mostrar la X cuando escriban */
.mt-search-input:not(:placeholder-shown) ~ .mt-search-clear{
  display:block;
}

/* ICONOS */
.mt-icons{
  display:flex;
  gap:10px;
  align-items:center;
}

.mt-icon-btn{
  border:none;
  background:none;
  padding:4px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.mt-icon-btn svg{
  width:26px;
  height:26px;
}

/* Ocultar favoritos/usuario en móvil */
.desktop-only{
  display:none;
}

.mt-menu-btn svg{
  width:30px;
  height:30px;
}

/* ======== ICONOS PNG/SVG PERSONALIZADOS ======== */
.mt-icon-img{
  width:26px;
  height:26px;
  object-fit:contain;
}

.mt-menu-btn .mt-icon-img{
  width:30px;
  height:30px;
}


/* RESPONSIVE */
@media(min-width:768px){
  .desktop-only{
    display:flex;
  }
}

/* ============= MODAL GLASS DE FILTROS ============= */

.filter-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(3px);
  opacity:0;
  pointer-events:none;
  transition:.2s;
  z-index:90;
}

.filter-modal-overlay.active{
  opacity:1;
  pointer-events:auto;
}

.filter-modal{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%) scale(.8);
  width:90%;
  max-width:360px;
  background:rgba(255,255,255,.35);
  backdrop-filter:blur(18px);
  padding:20px;
  border-radius:16px;
  box-shadow:0 8px 30px rgba(0,0,0,.15);
  z-index:91;
  opacity:0;
  pointer-events:none;
  transition:.25s ease;
}

.filter-modal.active{
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%, -50%) scale(1);
}

/* Títulos */
.filter-title-modal{
  font-size:20px;
  font-weight:600;
  margin-bottom:12px;
  text-align:center;
  color:#0f172a;
}

/* Grupos */
.filter-group{
  margin-bottom:16px;
}

.filter-group h4{
  font-size:15px;
  font-weight:600;
  color:#111827;
  margin-bottom:6px;
}


/* Botón aplicar */
.modal-apply{
  width:100%;
  margin-top:8px;
  padding:10px;
  background:#008080;
  color:#ffffff;
  border:none;
  border-radius:12px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
}

.modal-apply:hover{
  background:#0f9f9f;
}

/* ==== FILAS DE FILTRO (texto + toggle) ==== */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  font-size: 15px;
  color: #334155;
}

/* ==== TOGGLES ESTILO iOS ==== */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1; /* gris suave */
  border-radius: 24px;
  transition: .25s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: .25s;
}

/* Activo */
/* ---- Toggle activo ---- */
.switch input:checked + .slider {
  background: #008080; /* color ON */
}

/* bolita */
.switch input:checked + .slider:before {
  transform: translateX(20px);
  background: #ffffff; /* bolita blanca */
}


/* Quitar flechas de inputs type="number" - versión moderna */
input[type="number"] {
  appearance: textfield;        /* estándar */
  -moz-appearance: textfield;   /* Firefox */
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  appearance: none;             /* estándar */
  -webkit-appearance: none;     /* Chrome/Safari */
  margin: 0;
}


/* Inputs desde / hasta */
.price-range {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  width: 100%;         /* 🔥 evita desbordes */
  max-width: 100%;     /* 🔥 prohibe que se salga */
  flex-wrap: wrap;     /* 🔥 si no cabe → baja a segunda línea */
}
.price-field {
  flex: 1;             /* 🔥 ambos inputs ocupan el mismo ancho */
  min-width: 120px;    /* 🔥 evita que sean muy pequeños */
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-field label {
  font-size: 14px;
  color: #334155;
}
.price-field input {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 15px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  transition: border-color .2s;
}
.price-field input:focus {
  outline: none;
  border-color: #008080;
  box-shadow: 0 0 0 2px rgba(0,128,128,.25);
}

.contact-card{
  padding:14px;
  border:1px solid #00808040;
  border-radius:10px;
  background:#ffffff80;
}

/* Contacto CSS */
.contact-line{
  border-left:2px solid #008080;
  padding-left:12px;
}

/* 🔥 ESTILO GENERAL PARA LOS BOTONES DEL DRAWER */
.drawer-menu li a,
.drawer-menu li .logout-btn {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:6px 12px;
  border-radius:10px;
  text-decoration:none;
  font-size:16px;
  color:#000000; /* Color del texto  */
  transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
}

/* 🔥 HOVER: fondo rojo suave + zoom */
.drawer-menu li a:hover,
.drawer-menu li .logout-btn:hover {
  background:rgba(255, 255, 255, 0.35); /* ⚪ blanco con transparencia */
  backdrop-filter:blur(6px);            /* efecto glass */
  transform:scale(1.03);
  box-shadow:0 4px 10px rgba(0, 0, 0, 0.25);
  color:#000000; /* más oscuro al hover */
}

.drawer-menu li a .drawer-icon {
  font-size:20px;
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  flex-shrink:0;
}


/* Botón Cerrar sesión */
.logout-btn {
  background:none;
  border:none;
  text-align:left;
}

.menu-red   { color:#dc2626 !important; }  /* rojo */
.menu-blue  { color:#2563eb !important; }  /* azul */
.menu-green { color:#059669 !important; }  /* verde */
.menu-yellow{ color:#ca8a04 !important; }  /* amarillo */