/* =====================================================
   BajioIA — Tema claro elegante (estilo MercadoLibre)
   ===================================================== */

:root {
  --blanco:     #ffffff;
  --fondo:      #f5f5f5;
  --fondo-card: #ffffff;
  --texto:      #222222;
  --texto-sec:  #666666;
  --texto-ter:  #999999;
  --borde:      #e5e5e5;
  --azul:       #1a4fa8;
  --azul-hover: #1240a0;
  --azul-cl:    #3483fa;   /* azul ML */
  --verde:      #00a650;
  --verde-cl:   #39b54a;
  --wa:         #25D366;
  --dorado:     #f5a623;
  --rojo:       #e53935;
  --radio:      8px;
  --radio-lg:   12px;
  --sombra-sm:  0 1px 6px rgba(0,0,0,.08);
  --sombra:     0 4px 16px rgba(0,0,0,.1);
  --sombra-lg:  0 8px 32px rgba(0,0,0,.14);
  --fuente:     'Segoe UI', system-ui, -apple-system, sans-serif;
  --transicion: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--fuente);
  background: var(--fondo);
  color: var(--texto);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--azul-cl); text-decoration: none; }
a:hover { color: var(--azul); text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ===== BANNER SUPERIOR ===== */
.banner-top {
  background: var(--azul);
  color: #fff;
  text-align: center;
  font-size: .8rem;
  padding: .45rem 1rem;
  letter-spacing: .02em;
}
.banner-top a { color: var(--dorado); font-weight: 600; text-decoration: none; }

/* ===== NAVEGACIÓN ===== */
nav {
  background: var(--blanco);
  border-bottom: 1px solid var(--borde);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--sombra-sm);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo-txt {
  font-size: 1.25rem; font-weight: 800;
  color: var(--azul); letter-spacing: -.02em;
}

/* Barra de búsqueda */
.nav-busqueda {
  flex: 1;
  display: flex;
  background: var(--fondo);
  border: 2px solid var(--borde);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color var(--transicion);
}
.nav-busqueda:focus-within { border-color: var(--azul-cl); }
.nav-busqueda input {
  flex: 1; padding: .55rem 1.1rem;
  background: transparent; border: none;
  font-size: .95rem; color: var(--texto);
}
.nav-busqueda input::placeholder { color: var(--texto-ter); }
.nav-busqueda button {
  padding: 0 1.2rem;
  background: var(--azul-cl); color: #fff;
  font-size: 1rem; border: none;
  transition: background var(--transicion);
}
.nav-busqueda button:hover { background: var(--azul); }

/* Links nav */
.nav-links {
  display: flex; align-items: center; gap: .3rem;
  flex-shrink: 0;
}
.nav-links a {
  color: var(--texto-sec); font-size: .85rem;
  padding: .45rem .7rem; border-radius: var(--radio);
  display: flex; align-items: center; gap: .35rem;
  white-space: nowrap; text-decoration: none;
  transition: background var(--transicion), color var(--transicion);
}
.nav-links a:hover { background: var(--fondo); color: var(--azul); text-decoration: none; }

.nav-carrito {
  position: relative;
  background: var(--azul-cl) !important;
  color: #fff !important;
  font-weight: 600; border-radius: 999px !important;
  padding: .45rem 1.1rem !important;
}
.nav-carrito:hover { background: var(--azul) !important; }
.carrito-contador {
  position: absolute; top: -6px; right: -6px;
  background: var(--rojo); color: #fff;
  font-size: .65rem; font-weight: 700;
  border-radius: 50%; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* ===== CATEGORÍAS SECUNDARIAS (debajo del nav) ===== */
.nav-categorias {
  background: var(--blanco);
  border-bottom: 1px solid var(--borde);
}
.nav-cat-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; gap: .25rem; overflow-x: auto;
  scrollbar-width: none;
}
.nav-cat-inner::-webkit-scrollbar { display: none; }
.nav-cat-inner a {
  color: var(--texto-sec); font-size: .82rem;
  padding: .55rem .9rem;
  white-space: nowrap; text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transicion), border-color var(--transicion);
  display: block;
}
.nav-cat-inner a:hover,
.nav-cat-inner a.activa {
  color: var(--azul-cl);
  border-bottom-color: var(--azul-cl);
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a2f6b 0%, #1a4fa8 50%, #0d7cdb 100%);
  padding: 3.5rem 1.5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,.07) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: .78rem;
  padding: .3rem .9rem; border-radius: 999px;
  margin-bottom: 1rem; backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800; color: #fff; line-height: 1.2;
  margin-bottom: .75rem;
}
.hero h1 em { color: var(--dorado); font-style: normal; }
.hero-sub {
  color: rgba(255,255,255,.82); font-size: 1rem;
  margin-bottom: 1.75rem; max-width: 460px;
}
.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radio-lg); padding: 1.5rem;
  text-align: center;
}
.hero-stat strong {
  display: block; font-size: 1.6rem; font-weight: 800; color: var(--dorado);
}
.hero-stat span { color: rgba(255,255,255,.75); font-size: .78rem; }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.6rem;
  border-radius: 999px; font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer;
  transition: transform var(--transicion), box-shadow var(--transicion), background var(--transicion);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); text-decoration: none; }
.btn-primario  { background: var(--dorado); color: var(--texto); }
.btn-primario:hover { background: #e09400; }
.btn-blanco    { background: #fff; color: var(--azul); }
.btn-blanco:hover { background: #f0f5ff; }
.btn-azul      { background: var(--azul-cl); color: #fff; }
.btn-azul:hover { background: var(--azul); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--borde);
  color: var(--texto-sec);
}
.btn-ghost:hover { border-color: var(--azul-cl); color: var(--azul-cl); background: #f0f5ff; }
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover { background: #008040; }
.btn-sm { padding: .4rem 1rem; font-size: .82rem; }

/* ===== SECCIONES ===== */
.seccion { padding: 2.5rem 1.5rem; }
.seccion-inner { max-width: 1280px; margin: 0 auto; }
.seccion-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.seccion-titulo {
  font-size: 1.25rem; font-weight: 700; color: var(--texto);
}
.seccion-ver-todo {
  color: var(--azul-cl); font-size: .85rem; font-weight: 500;
  text-decoration: none;
}
.seccion-ver-todo:hover { text-decoration: underline; }

/* ===== PILLS DE CATEGORÍAS ===== */
.cat-pills {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--borde);
  background: var(--blanco); color: var(--texto-sec);
  font-size: .82rem; font-weight: 500; cursor: pointer;
  transition: all var(--transicion);
}
.cat-pill:hover { border-color: var(--azul-cl); color: var(--azul-cl); background: #f0f5ff; }
.cat-pill.activo {
  background: var(--azul-cl); color: #fff;
  border-color: var(--azul-cl);
}

/* ===== TARJETAS DE CATEGORÍA (portada) ===== */
.grid-cats-portada {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  padding: 1.5rem 1rem;
  text-align: center; cursor: pointer;
  display: block; text-decoration: none;
  color: var(--texto);
  box-shadow: var(--sombra-sm);
  transition: box-shadow var(--transicion), transform var(--transicion), border-color var(--transicion);
}
.cat-card:hover {
  box-shadow: var(--sombra);
  transform: translateY(-3px);
  border-color: var(--azul-cl);
  color: var(--azul-cl);
  text-decoration: none;
}
.cat-icono { font-size: 2rem; margin-bottom: .6rem; }
.cat-card h3 { font-size: .85rem; font-weight: 600; }

/* ===== GRID DE PRODUCTOS ===== */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* ===== TARJETA DE PRODUCTO ===== */
.tarjeta-producto {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--sombra-sm);
  transition: box-shadow var(--transicion), transform var(--transicion);
  position: relative;
}
.tarjeta-producto:hover {
  box-shadow: var(--sombra);
  transform: translateY(-3px);
}
.tarjeta-badge {
  position: absolute; top: .6rem; left: .6rem;
  background: var(--azul-cl); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 999px;
  z-index: 2;
}
.tarjeta-badge.verde { background: var(--verde); }
.tarjeta-badge.dorado { background: var(--dorado); color: var(--texto); }
.tarjeta-badge.rojo { background: var(--rojo); }

.tarjeta-img-wrap {
  height: 190px; background: var(--fondo);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.tarjeta-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.tarjeta-producto:hover .tarjeta-img-wrap img { transform: scale(1.06); }

.tarjeta-body { padding: .9rem; flex: 1; display: flex; flex-direction: column; }
.tarjeta-cat-lbl {
  font-size: .7rem; color: var(--texto-ter);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .3rem; font-weight: 600;
}
.tarjeta-nombre {
  font-size: .9rem; font-weight: 600; color: var(--texto);
  margin-bottom: .4rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.tarjeta-estrellas { display: flex; gap: .15rem; margin-bottom: .5rem; }
.estrella { color: var(--dorado); font-size: .75rem; }
.tarjeta-precio {
  font-size: 1.2rem; font-weight: 800; color: var(--texto);
  margin-bottom: .2rem;
}
.tarjeta-precio-sub {
  font-size: .75rem; color: var(--verde); font-weight: 500; margin-bottom: .7rem;
}

.tarjeta-footer {
  padding: .75rem .9rem;
  border-top: 1px solid var(--borde);
  display: flex; gap: .5rem;
}
.btn-agregar-mini {
  flex: 1; padding: .55rem;
  background: var(--azul-cl); color: #fff;
  border: none; border-radius: var(--radio);
  font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: background var(--transicion);
  display: flex; align-items: center; justify-content: center; gap: .3rem;
}
.btn-agregar-mini:hover { background: var(--azul); }
.btn-wa-mini {
  width: 36px; height: 36px;
  background: var(--wa); color: #fff;
  border: none; border-radius: var(--radio);
  cursor: pointer; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transicion);
  flex-shrink: 0;
}
.btn-wa-mini:hover { background: #1ebe5d; }

/* ===== PÁGINA DE DETALLE ===== */
.detalle-wrap {
  max-width: 1100px; margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
@media (max-width: 700px) { .detalle-wrap { grid-template-columns: 1fr; gap: 1.5rem; } }

.detalle-galeria {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1;
  box-shadow: var(--sombra-sm);
}
.detalle-galeria img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 1.5rem;
}
.detalle-info { display: flex; flex-direction: column; gap: .9rem; }
.detalle-cat-lbl {
  font-size: .75rem; color: var(--azul-cl);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.detalle-nombre {
  font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: var(--texto);
}
.detalle-estrellas {
  display: flex; align-items: center; gap: .5rem; font-size: .85rem;
}
.detalle-estrellas .stars { color: var(--dorado); font-size: .9rem; letter-spacing: .1rem; }
.detalle-estrellas span { color: var(--texto-sec); }
.detalle-precio {
  font-size: 2rem; font-weight: 800; color: var(--texto);
}
.detalle-precio-iva { font-size: .8rem; color: var(--texto-sec); font-weight: 400; }
.detalle-precio-msg { color: var(--verde); font-size: .85rem; font-weight: 600; }
.detalle-desc {
  color: var(--texto-sec); line-height: 1.7; font-size: .95rem;
  border-top: 1px solid var(--borde); padding-top: .9rem;
}
.detalle-cantidad {
  display: flex; align-items: center; gap: .75rem;
}
.cantidad-lbl { font-size: .85rem; color: var(--texto-sec); }
.cantidad-ctrl {
  display: flex; align-items: center;
  border: 1.5px solid var(--borde); border-radius: var(--radio);
  overflow: hidden;
}
.cantidad-ctrl button {
  width: 36px; height: 36px; background: var(--fondo);
  border: none; font-size: 1.1rem; color: var(--texto-sec);
  cursor: pointer; transition: background var(--transicion);
}
.cantidad-ctrl button:hover { background: #e5e5e5; }
.cantidad-ctrl span {
  width: 42px; text-align: center; font-weight: 700; font-size: .95rem;
}
.detalle-acciones { display: flex; flex-direction: column; gap: .65rem; }
.btn-comprar {
  width: 100%; padding: .9rem;
  background: var(--verde); color: #fff;
  border: none; border-radius: 999px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background var(--transicion);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-comprar:hover { background: #008040; }
.btn-agregar-det {
  width: 100%; padding: .9rem;
  background: #d6ebff; color: var(--azul);
  border: 1.5px solid var(--azul-cl); border-radius: 999px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background var(--transicion);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-agregar-det:hover { background: #b3d9ff; }
.detalle-garantia {
  display: flex; align-items: center; gap: .5rem;
  color: var(--texto-sec); font-size: .82rem;
  background: #f0fff4; border: 1px solid #c3e6cb;
  border-radius: var(--radio); padding: .6rem .9rem;
}
.codigo-prod { font-size: .75rem; color: var(--texto-ter); }

/* ===== CARRITO ===== */
.carrito-wrap {
  max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem;
  display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start;
}
@media (max-width: 700px) { .carrito-wrap { grid-template-columns: 1fr; } }

.carrito-lista { display: flex; flex-direction: column; gap: .75rem; }
.carrito-item {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio-lg); padding: 1rem;
  display: flex; gap: 1rem; align-items: center;
  box-shadow: var(--sombra-sm);
}
.carrito-item-img {
  width: 80px; height: 80px; flex-shrink: 0;
  border-radius: var(--radio); background: var(--fondo); overflow: hidden;
  border: 1px solid var(--borde);
}
.carrito-item-img img { width: 100%; height: 100%; object-fit: cover; }
.carrito-item-info { flex: 1; }
.carrito-item-info h4 { font-size: .9rem; font-weight: 600; margin-bottom: .25rem; }
.carrito-item-precio { color: var(--texto-sec); font-size: .82rem; }
.carrito-item-subtotal { font-weight: 700; font-size: 1rem; color: var(--texto); min-width: 90px; text-align: right; }
.carrito-item-ctrl {
  display: flex; align-items: center; gap: .5rem;
}
.carrito-item-ctrl button {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--fondo); border: 1px solid var(--borde);
  font-size: 1rem; color: var(--texto-sec); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transicion);
}
.carrito-item-ctrl button:hover { background: #e5e5e5; }
.carrito-item-ctrl span { font-weight: 700; min-width: 24px; text-align: center; }
.carrito-quitar {
  background: none; border: none; color: var(--texto-ter);
  cursor: pointer; padding: .2rem .5rem; font-size: 1rem;
  transition: color var(--transicion);
}
.carrito-quitar:hover { color: var(--rojo); }

/* Resumen carrito */
.carrito-resumen {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio-lg); padding: 1.5rem;
  box-shadow: var(--sombra-sm); position: sticky; top: 80px;
}
.carrito-resumen h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.resumen-linea {
  display: flex; justify-content: space-between;
  font-size: .88rem; color: var(--texto-sec); padding: .35rem 0;
}
.resumen-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.1rem; font-weight: 700; color: var(--texto);
  border-top: 2px solid var(--borde); margin-top: .75rem; padding-top: .75rem;
}
.btn-finalizar {
  width: 100%; margin-top: 1rem; padding: .9rem;
  background: var(--wa); color: #fff;
  border: none; border-radius: 999px;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background var(--transicion);
}
.btn-finalizar:hover { background: #1ebe5d; }
.resumen-nota {
  font-size: .72rem; color: var(--texto-ter);
  text-align: center; margin-top: .6rem; line-height: 1.5;
}

/* ===== CONTACTO ===== */
.contacto-wrap { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 680px) { .contacto-grid { grid-template-columns: 1fr; } }

.contacto-dato {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio-lg); padding: 1.1rem;
  box-shadow: var(--sombra-sm); margin-bottom: .75rem;
}
.contacto-icono-wrap {
  width: 42px; height: 42px; border-radius: 50%;
  background: #e8f1ff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contacto-dato-info strong { display: block; font-size: .85rem; color: var(--texto); margin-bottom: .2rem; }
.contacto-dato-info span, .contacto-dato-info a { font-size: .9rem; color: var(--texto-sec); }

/* Formulario de contacto */
.form-contacto {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radio-lg); padding: 2rem;
  box-shadow: var(--sombra-sm);
}
.form-contacto h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.form-grupo { margin-bottom: 1rem; }
.form-grupo label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--texto-sec); margin-bottom: .35rem;
}
.form-grupo input,
.form-grupo select,
.form-grupo textarea {
  width: 100%; padding: .65rem .9rem;
  background: var(--fondo); border: 1.5px solid var(--borde);
  border-radius: var(--radio); font-size: .9rem; color: var(--texto);
  transition: border-color var(--transicion);
}
.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus { border-color: var(--azul-cl); background: #fff; }
.form-grupo textarea { resize: vertical; min-height: 110px; }
.btn-form {
  width: 100%; padding: .9rem;
  background: var(--wa); color: #fff;
  border: none; border-radius: 999px;
  font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: background var(--transicion);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-form:hover { background: #1ebe5d; }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar { padding: .75rem 0; }
.breadcrumb-bar .inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.breadcrumb { display: flex; gap: .4rem; align-items: center; font-size: .8rem; color: var(--texto-sec); flex-wrap: wrap; }
.breadcrumb a { color: var(--texto-sec); text-decoration: none; }
.breadcrumb a:hover { color: var(--azul-cl); text-decoration: underline; }
.breadcrumb-sep { color: var(--texto-ter); }

/* ===== BÚSQUEDA VACÍA / SIN RESULTADOS ===== */
.sin-resultados, .carrito-vacio {
  text-align: center; padding: 4rem 1rem; color: var(--texto-sec);
}
.sin-resultados .emoji, .carrito-vacio .emoji { font-size: 3rem; margin-bottom: 1rem; }

/* ===== NOTIFICACIÓN ===== */
.notif-carrito {
  position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 990;
  background: #333; color: #fff;
  padding: .75rem 1.2rem; border-radius: var(--radio);
  font-size: .85rem; max-width: 280px;
  transform: translateY(120%); opacity: 0;
  transition: transform .28s, opacity .28s;
  box-shadow: var(--sombra-lg);
}
.notif-carrito.visible { transform: translateY(0); opacity: 1; }

/* ===== BOTÓN WA FLOTANTE ===== */
.wa-flotante {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 980;
  width: 56px; height: 56px;
  background: var(--wa); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--transicion), box-shadow var(--transicion);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-flotante:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%        { box-shadow: 0 4px 28px rgba(37,211,102,.7), 0 0 0 8px rgba(37,211,102,.12); }
}

/* ===== FOOTER ===== */
footer {
  background: var(--texto); color: rgba(255,255,255,.7);
  padding: 2.5rem 1.5rem; margin-top: 3rem;
  font-size: .82rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.2rem; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.05rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: rgba(255,255,255,.4); font-size: .75rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
}
@media (max-width: 640px) {
  .nav-inner { gap: .75rem; }
  .nav-links a:not(.nav-carrito) { display: none; }
  .seccion { padding: 2rem 1rem; }
  .grid-productos { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .tarjeta-img-wrap { height: 140px; }
  .tarjeta-nombre { font-size: .82rem; }
}
@media (max-width: 400px) {
  .grid-productos { grid-template-columns: 1fr; }
}
