/* ============================================================
   LIMPIO ROSARITO — Custom CSS
   Design System: Verde + Blanco + Acento dorado
   ============================================================ */

/* ─── VARIABLES ─────────────────────────────────────────────── */
:root {
  --lr-green:        #1e7e3e;
  --lr-green-dark:   #145a2c;
  --lr-green-light:  #28a553;
  --lr-green-soft:   #e8f5ee;
  --lr-accent:       #f59e0b;
  --lr-accent-dark:  #d97706;
  --lr-white:        #ffffff;
  --lr-bg:           #f8faf8;
  --lr-bg-alt:       #f0f5f1;
  --lr-border:       #d4e8da;
  --lr-text:         #1a2e1a;
  --lr-text-body:    #3d5440;
  --lr-text-light:   #6b8570;
  --lr-text-muted:   #9ab3a0;

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.16);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  --transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--lr-text-body);
  background: var(--lr-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: var(--lr-text); font-weight: 700; line-height: 1.2; }
a { color: var(--lr-green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--lr-green-dark); }
img { max-width: 100%; }

/* ─── UTILITY ────────────────────────────────────────────────── */
.bg-light-green  { background: var(--lr-bg-alt); }
.bg-primary-dark { background: var(--lr-green-dark); }
.text-accent     { color: var(--lr-accent) !important; }
.text-primary    { color: var(--lr-green) !important; }
.text-white-70   { color: rgba(255,255,255,0.75); }
.rounded-lr      { border-radius: var(--radius-lg); }
.py-section      { padding-top: 5rem; padding-bottom: 5rem; }
.min-vh-80       { min-height: 80vh; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
/* touch-action: manipulation elimina el delay de 300ms en iOS/Android  */
/* transition con propiedades específicas evita bug de Samsung Internet */
.btn,
.btn-add-cart, .btn-cart, .btn-wa-big, .btn-wa-inline, .btn-wa-footer,
.cat-card, .wa-float, .wa-option, .social-link, .nav-link {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  cursor: pointer;
}
/* Sobreescribir transition:all heredado de Bootstrap/custom — evita bug Android */
.btn {
  transition: background-color 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, box-shadow 0.2s ease !important;
}
.cat-card, .prod-card, .why-card, .btn-add-cart, .social-link {
  transition: background-color 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, box-shadow 0.2s ease;
}

.btn-lr-primary { background: var(--lr-green); color: #fff; border: 2px solid var(--lr-green); }
.btn-lr-primary:hover { background: var(--lr-green-dark); border-color: var(--lr-green-dark); color: #fff; }
.btn-lr-primary:active { background: var(--lr-green-dark); border-color: var(--lr-green-dark); color: #fff; transform: scale(0.97); }

.btn-lr-outline { background: transparent; color: var(--lr-green); border: 2px solid var(--lr-green); }
.btn-lr-outline:hover { background: var(--lr-green); color: #fff; }
.btn-lr-outline:active { background: var(--lr-green); color: #fff; transform: scale(0.97); }

.btn-lr-accent { background: var(--lr-accent); color: #fff; border: 2px solid var(--lr-accent); }
.btn-lr-accent:hover { background: var(--lr-accent-dark); border-color: var(--lr-accent-dark); color: #fff; }
.btn-lr-accent:active { background: var(--lr-accent-dark); color: #fff; transform: scale(0.97); }

.btn-xl { padding: 0.9rem 2.5rem; font-size: 1.1rem; }

.btn-wa-big { background: #25D366; color: #fff; border: none; border-radius: var(--radius-full); padding: 0.85rem 2.5rem; font-size: 1.1rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
.btn-wa-big:hover { background: #128C7E; color: #fff; }
.btn-wa-big:active { background: #128C7E; color: #fff; transform: scale(0.97); }

.btn-wa-inline,
a.btn-wa-inline,
a.btn.btn-wa-inline { background-color: #25D366 !important; color: #fff !important; border: 2px solid rgba(255,255,255,0.3) !important; border-radius: var(--radius-full); padding: 0.65rem 1.6rem; font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.4rem; box-shadow: 0 0 0 3px rgba(37,211,102,0.4), 0 4px 16px rgba(0,0,0,0.25); transition: var(--transition); letter-spacing: 0.01em; opacity: 1 !important; filter: none !important; }
.btn-wa-inline:hover,
a.btn-wa-inline:hover,
a.btn.btn-wa-inline:hover { background-color: #20c45d !important; color: #fff !important; box-shadow: 0 0 0 4px rgba(37,211,102,0.5), 0 6px 20px rgba(0,0,0,0.3); transform: translateY(-2px); }
.btn-wa-inline:focus,
a.btn-wa-inline:focus,
a.btn.btn-wa-inline:focus { background-color: #25D366 !important; color: #fff !important; box-shadow: 0 0 0 3px rgba(37,211,102,0.4) !important; }
.btn-wa-inline:active,
a.btn-wa-inline:active,
a.btn.btn-wa-inline:active { background-color: #1db954 !important; transform: translateY(0); }

.btn-wa-footer { background: rgba(37,211,102,0.15); color: #128C7E; border: 1.5px solid #25D366; border-radius: var(--radius-full); padding: 0.5rem 1.25rem; font-weight: 600; display: inline-flex; align-items: center; font-size: 0.9rem; transition: var(--transition); }
.btn-wa-footer:hover { background: #25D366; color: #fff; }
.btn-wa-footer:active { background: #25D366; color: #fff; }

/* Hover con transform SOLO para dispositivos con mouse real (no táctiles) */
@media (hover: hover) and (pointer: fine) {
  .btn-lr-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn-lr-outline:hover { transform: translateY(-1px); }
  .btn-lr-accent:hover  { transform: translateY(-1px); }
  .btn-wa-big:hover     { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .btn-cart:hover       { transform: scale(1.1); }
  .btn-add-cart:hover   { transform: scale(1.1); }
  .cat-card:hover       { transform: translateY(-4px); }
  .why-card:hover       { transform: translateY(-3px); }
  .prod-card:hover      { transform: translateY(-4px); }
  .social-link:hover    { transform: translateY(-2px); }
  .wa-float:hover       { transform: scale(1.1); }
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.lr-navbar { background: #fff; padding: 0.85rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,0.08); transition: var(--transition); border-bottom: 2px solid var(--lr-green-soft); }

.lr-brand { display: flex; align-items: center; gap: 0.5rem; color: #fff !important; font-size: 1.25rem; }
.brand-icon { background: var(--lr-accent); color: #fff; width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.brand-text { color: #fff; }
.brand-text strong { font-weight: 800; }
.navbar-logo { height: 48px; width: auto; object-fit: contain; }
.footer-logo  { height: 56px; width: auto; object-fit: contain; }

.lr-navbar .nav-link { color: var(--lr-text) !important; font-weight: 500; padding: 0.5rem 0.75rem !important; border-radius: var(--radius-sm); transition: var(--transition); }
.lr-navbar .nav-link:hover, .lr-navbar .nav-link.active { color: var(--lr-green) !important; background: var(--lr-green-soft); }

.navbar-search input { background: #fff; border: 2px solid var(--lr-green); color: var(--lr-text); border-radius: var(--radius-full); padding: 0.5rem 1.25rem; width: 280px; transition: var(--transition); font-size: 0.9rem; box-shadow: 0 2px 8px rgba(30,126,62,0.12); }
.navbar-search input::placeholder { color: var(--lr-text-muted); }
.navbar-search input:focus { background: #fff; border-color: var(--lr-green-dark); color: var(--lr-text); width: 320px; box-shadow: 0 0 0 4px rgba(30,126,62,0.15); outline: none; }

.search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-xl); z-index: 9999; overflow: hidden; max-height: 300px; overflow-y: auto; }
.search-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; border-bottom: 1px solid var(--lr-border); color: var(--lr-text); cursor: pointer; transition: var(--transition); }
.search-item:hover { background: var(--lr-green-soft); color: var(--lr-green); }
.search-item img { width: 36px; height: 36px; object-fit: cover; border-radius: var(--radius-sm); }

.btn-cart { position: relative; color: var(--lr-green); font-size: 1.1rem; transition: var(--transition); }
.btn-cart:hover { color: var(--lr-green-dark); }
.btn-cart:active { color: var(--lr-green-dark); }
.cart-badge { position: absolute; top: -8px; right: -8px; background: var(--lr-accent); color: #fff; border-radius: var(--radius-full); min-width: 18px; height: 18px; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero-section { background: linear-gradient(135deg, var(--lr-green-dark) 0%, var(--lr-green) 60%, var(--lr-green-light) 100%); position: relative; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: url('/assets/img/banner_img_01.webp') center/cover no-repeat; opacity: 0.08; pointer-events: none; z-index: 0; }
.hero-content { position: relative; z-index: 2; padding: 4rem 0 5rem; }
.hero-ctas { position: relative; z-index: 3; }

.hero-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-full); padding: 0.35rem 1rem; font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(0.34rem, 0.62vw, 0.45rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 520px; margin-bottom: 2rem; line-height: 1.7; text-align: justify; }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-ctas a { -webkit-tap-highlight-color: rgba(255,255,255,0.2); cursor: pointer; }
.hero-ctas .btn-lg { padding: 0.8rem 1.75rem; font-size: 0.95rem; }
.hero-ctas .btn-lr-primary { background: #fff; color: var(--lr-green); border-color: #fff; }
.hero-ctas .btn-lr-primary:hover { background: rgba(255,255,255,0.9); }
.hero-ctas .btn-lr-outline { border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.9); }
.hero-ctas .btn-lr-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.8); font-size: 0.85rem; }
.trust-item i { color: var(--lr-accent); }

.hero-img-wrapper { position: relative; }
.hero-img { border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); }
.hero-card { position: absolute; bottom: -1rem; left: -2rem; background: #fff; border-radius: var(--radius-md); padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.75rem; box-shadow: var(--shadow-lg); }
.hero-card .hc-icon { font-size: 1.5rem; }
.hero-card strong { display: block; font-size: 0.95rem; color: var(--lr-text); }
.hero-card small  { color: var(--lr-text-muted); font-size: 0.75rem; }

.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; pointer-events: none; z-index: 1; }
.hero-wave svg { display: block; }

/* ─── MARQUEE ────────────────────────────────────────────────── */
.clients-marquee { overflow: hidden; padding: 0.5rem 0; }
.clients-track { display: flex; gap: 2rem; white-space: nowrap; animation: marquee 20s linear infinite; }
.clients-track span { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; background: var(--lr-green-soft); color: var(--lr-green); border-radius: var(--radius-full); font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── SECTION HEADERS ────────────────────────────────────────── */
.section-tag { display: inline-block; background: var(--lr-green-soft); color: var(--lr-green); border-radius: var(--radius-full); padding: 0.3rem 1rem; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
.section-subtitle { color: var(--lr-text-light); max-width: 560px; margin: 0 auto; }
.section-sub-title { font-size: 1.25rem; font-weight: 700; color: var(--lr-text); }

/* ─── CATEGORY CARDS ─────────────────────────────────────────── */
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--lr-border); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; text-decoration: none; color: var(--lr-text-body); transition: var(--transition); height: 100%; }
.cat-card:hover { border-color: var(--lr-green); box-shadow: var(--shadow-lg); color: var(--lr-text); }
.cat-card:active { border-color: var(--lr-green); box-shadow: var(--shadow-lg); color: var(--lr-text); }
.cat-card-icon { width: 52px; height: 52px; background: var(--lr-green-soft); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--lr-green); margin-bottom: 1rem; transition: var(--transition); }
.cat-card:hover .cat-card-icon { background: var(--lr-green); color: #fff; }
.cat-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.cat-card-desc  { font-size: 0.85rem; color: var(--lr-text-light); flex-grow: 1; margin-bottom: 1rem; }
.cat-card-link  { font-size: 0.85rem; font-weight: 600; color: var(--lr-green); margin-top: auto; }

/* ─── WHY CARDS ──────────────────────────────────────────────── */
.why-card { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--lr-bg); text-align: center; transition: var(--transition); }
.why-card:hover { box-shadow: var(--shadow-md); }
.why-icon { width: 60px; height: 60px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin: 0 auto 1rem; }
.bg-primary-soft { background: var(--lr-green-soft); }
.bg-accent-soft  { background: rgba(245,158,11,0.1); }
.why-card h6 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.why-card p  { font-size: 0.875rem; color: var(--lr-text-light); margin: 0; }

/* ─── PRODUCT CARDS ──────────────────────────────────────────── */
.prod-card { background: #fff; border: 1.5px solid var(--lr-border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); height: 100%; display: flex; flex-direction: column; }
.prod-card:hover { box-shadow: var(--shadow-lg); border-color: var(--lr-green); }
.prod-card-img-link { display: block; overflow: hidden; aspect-ratio: 1; position: relative; }
.prod-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.prod-card:hover .prod-card-img { transform: scale(1.05); }
.prod-badge { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--lr-accent); color: #fff; border-radius: var(--radius-full); padding: 0.2rem 0.75rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; pointer-events: none; }
.prod-card-body { padding: 1rem; flex-grow: 1; display: flex; flex-direction: column; }
.prod-category { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lr-green); }
.prod-name   { font-size: 0.95rem; font-weight: 700; margin: 0.3rem 0 0.4rem; line-height: 1.3; }
.prod-name a { color: var(--lr-text); }
.prod-name a:hover { color: var(--lr-green); }
.prod-desc   { font-size: 0.8rem; color: var(--lr-text-light); flex-grow: 1; }
.prod-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 0.75rem; }
.price-current  { font-size: 1.1rem; font-weight: 700; color: var(--lr-text); }
.price-unit     { font-size: 0.75rem; color: var(--lr-text-muted); }
.price-mayoreo  { font-size: 0.72rem; color: var(--lr-green); font-weight: 500; }
.price-cotizar  { font-size: 0.85rem; font-weight: 600; color: var(--lr-green); }

.btn-add-cart { width: 44px; height: 44px; background: var(--lr-green); color: #fff; border: none; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; cursor: pointer; flex-shrink: 0; transition: var(--transition); }
.btn-add-cart:hover  { background: var(--lr-green-dark); }
.btn-add-cart:active { background: var(--lr-green-dark); transform: scale(0.92); }

/* Mini card relacionados */
.prod-card-mini a { color: var(--lr-text); }
.prod-card-mini a:hover { color: var(--lr-green); }
.prod-card-mini h6 { font-size: 0.85rem; margin-top: 0.5rem; }
.price-mini { font-size: 0.95rem; font-weight: 700; color: var(--lr-green); margin: 0; }

/* ─── B2B CTA ─────────────────────────────────────────────────── */
.cta-b2b-card { background: linear-gradient(135deg, var(--lr-green-dark) 0%, var(--lr-green) 100%); border-radius: var(--radius-xl); padding: 3rem; color: #fff; }
.cta-b2b-tag   { display: inline-block; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); border-radius: var(--radius-full); padding: 0.25rem 0.875rem; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; margin-bottom: 0.75rem; }
.cta-b2b-title { font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; margin-bottom: 0.75rem; }
.cta-b2b-text  { color: rgba(255,255,255,0.8); margin-bottom: 1.25rem; }
.cta-b2b-list  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.cta-b2b-list li { color: rgba(255,255,255,0.85); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.cta-b2b-list i  { color: var(--lr-accent); }


/* ─── FOOTER ─────────────────────────────────────────────────── */
.lr-footer { background: var(--lr-green-dark); color: rgba(255,255,255,0.8); padding-top: 1rem; }
.footer-brand { color: #fff !important; font-size: 1.3rem; font-weight: 700; display: inline-flex; align-items: center; }
.footer-brand i { color: var(--lr-accent); }
.footer-desc { font-size: 0.875rem; color: rgba(255,255,255,0.65); }
.footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.footer-contact-list i { color: var(--lr-accent); margin-top: 0.15rem; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,0.8); }
.footer-contact-list a:hover { color: #fff; }
.footer-heading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.served-types { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.served-types span { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); border-radius: var(--radius-full); padding: 0.3rem 0.75rem; font-size: 0.78rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-link  { width: 36px; height: 36px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: var(--transition); }
.social-link:hover  { background: var(--lr-accent); color: #fff; }
.social-link:active { background: var(--lr-accent); color: #fff; }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 1rem 0; margin-top: 1rem; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ─── WHATSAPP FLOTANTE ──────────────────────────────────────── */
.wa-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; pointer-events: none; }
.wa-widget .wa-float,
.wa-widget .wa-menu.show { pointer-events: auto; }
.wa-float { width: 58px; height: 58px; background: #25D366; color: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 4px 20px rgba(37,211,102,0.5); cursor: pointer; transition: var(--transition); animation: waPulse 2.5s ease-in-out infinite; position: relative; }
.wa-float:hover  { background: #128C7E; color: #fff; }
.wa-float:active { background: #128C7E; color: #fff; transform: scale(0.93); }
.wa-float.open { background: #128C7E; animation: none; transform: rotate(0deg); }
.wa-tooltip { position: absolute; right: 70px; background: #128C7E; color: #fff; padding: 0.35rem 0.9rem; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.wa-float:hover .wa-tooltip { opacity: 1; }
/* Menú de opciones */
.wa-menu { background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.18); width: 300px; overflow: hidden; transform: scale(0.85) translateY(20px); transform-origin: bottom right; opacity: 0; pointer-events: none; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), opacity 0.2s ease; }
.wa-menu.show { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.wa-menu-header { background: #25D366; padding: 1rem 1rem 1rem 1rem; display: flex; align-items: center; gap: 0.75rem; position: relative; }
.wa-menu-avatar { width: 40px; height: 40px; background: rgba(255,255,255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; flex-shrink: 0; }
.wa-menu-header strong { display: block; color: #fff; font-size: 0.95rem; }
.wa-menu-header span { display: block; color: rgba(255,255,255,0.85); font-size: 0.75rem; }
.wa-menu-close { position: absolute; top: 0.6rem; right: 0.6rem; background: none; border: none; color: rgba(255,255,255,0.8); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.5rem; border-radius: 50%; transition: background 0.15s; }
.wa-menu-close:hover { background: rgba(0,0,0,0.15); color: #fff; }
.wa-menu-body { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.wa-menu-intro { font-size: 0.78rem; color: var(--lr-text-muted); margin: 0 0 0.25rem; padding: 0 0.25rem; }
.wa-option { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.85rem; background: #f4f9f6; border-radius: 10px; color: var(--lr-text); font-size: 0.88rem; font-weight: 500; text-decoration: none; transition: background 0.15s, color 0.15s; }
.wa-option i { color: #25D366; font-size: 0.9rem; width: 16px; text-align: center; flex-shrink: 0; }
.wa-option:hover { background: #25D366; color: #fff; }
.wa-option:hover i { color: #fff; }
@keyframes waPulse { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,0.5)} 50%{box-shadow:0 4px 30px rgba(37,211,102,0.8)} }

/* ─── PAGE HEADERS ───────────────────────────────────────────── */
.page-header { background: linear-gradient(135deg, var(--lr-green-dark), var(--lr-green)); padding: 4rem 0 3rem; }
.page-header-sm { background: var(--lr-bg-alt); padding: 2rem 0; border-bottom: 1px solid var(--lr-border); }
.page-title    { font-size: clamp(1.75rem, 4vw, 2.75rem); color: #fff; margin: 0; }
.page-subtitle { color: rgba(255,255,255,0.78); margin-top: 0.5rem; font-size: 1.05rem; }
.page-header-sm .page-title { color: var(--lr-text); font-size: 1.75rem; }
.breadcrumb-item a { color: rgba(255,255,255,0.75); }
.breadcrumb-item.active { color: rgba(255,255,255,0.5); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }
.page-header-sm .breadcrumb-item a { color: var(--lr-green); }

/* ─── CATALOG SIDEBAR ────────────────────────────────────────── */
.catalog-sidebar { position: sticky; top: 5rem; }
.sidebar-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lr-text-muted); margin-bottom: 0.75rem; }
.sidebar-cats  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-cats a { display: flex; align-items: center; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); color: var(--lr-text-body); font-size: 0.875rem; transition: var(--transition); }
.sidebar-cats a:hover, .sidebar-cats a.active { background: var(--lr-green-soft); color: var(--lr-green); font-weight: 600; }
.sidebar-cats a i { width: 1.25rem; }
.sidebar-cta { background: linear-gradient(135deg, var(--lr-green-dark), var(--lr-green)); color: #fff; border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.sidebar-cta i { color: rgba(255,255,255,0.8); }
.sidebar-cta h6 { color: #fff; margin-bottom: 0.5rem; }
.sidebar-cta p  { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-bottom: 1rem; }
.catalog-count { color: var(--lr-text-light); font-size: 0.9rem; }

/* ─── PAGINATION ─────────────────────────────────────────────── */
.page-link { color: var(--lr-green); border-color: var(--lr-border); }
.page-item.active .page-link { background: var(--lr-green); border-color: var(--lr-green); }
.page-link:hover { color: var(--lr-green-dark); background: var(--lr-green-soft); }

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.empty-state { padding: 4rem 2rem; }
.empty-state h5 { color: var(--lr-text); }

/* ─── PRODUCT PAGE ───────────────────────────────────────────── */
.product-gallery { position: sticky; top: 5rem; }
.product-img-wrapper { position: sticky; top: 100px; }
.product-main-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: contain; max-height: 480px; background: #f8faf8; }
.prod-category-link a { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lr-green); }
.product-title { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.product-brand { color: var(--lr-text-muted); font-size: 0.875rem; }
.product-pricing { border-top: 1.5px solid var(--lr-border); border-bottom: 1.5px solid var(--lr-border); padding: 1rem 0; }
.price-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lr-text-muted); }
.price-value { font-size: 2rem; font-weight: 800; color: var(--lr-text); line-height: 1; }
.price-unit-label { font-size: 0.9rem; color: var(--lr-text-muted); }
.price-wholesale { font-size: 0.875rem; color: var(--lr-green); background: var(--lr-green-soft); display: inline-flex; align-items: center; padding: 0.3rem 0.75rem; border-radius: var(--radius-full); }
.price-cotizar-big { font-size: 1.1rem; font-weight: 600; color: var(--lr-green); }
.product-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.qty-selector { display: flex; align-items: center; border: 1.5px solid var(--lr-border); border-radius: var(--radius-md); overflow: hidden; }
.qty-btn  { background: var(--lr-bg); border: none; width: 38px; height: 42px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.qty-btn:hover { background: var(--lr-green-soft); }
.qty-input { border: none; width: 52px; text-align: center; font-weight: 600; font-size: 1rem; outline: none; }
.btn-add-big { flex: 1; }
.btn-wa-product { display: inline-flex; align-items: center; color: #128C7E; font-weight: 600; font-size: 0.9rem; }
.btn-wa-product:hover { color: #25D366; }
.stock-badge { display: inline-flex; align-items: center; border-radius: var(--radius-full); padding: 0.25rem 0.75rem; font-size: 0.8rem; font-weight: 600; }
.in-stock  { background: rgba(46,125,50,0.1); color: #2e7d32; }
.low-stock { background: rgba(245,158,11,0.1); color: #d97706; }
.out-stock { background: rgba(211,47,47,0.1);  color: #c62828; }

/* ─── FORMS ──────────────────────────────────────────────────── */
.lr-input { border: 1.5px solid var(--lr-border); border-radius: var(--radius-md) !important; padding: 0.65rem 1rem; color: var(--lr-text); transition: var(--transition); }
.lr-input:focus { border-color: var(--lr-green); box-shadow: 0 0 0 3px rgba(30,126,62,0.12); outline: none; }

/* ─── COTIZACIÓN ─────────────────────────────────────────────── */
.cotizacion-benefits { background: var(--lr-bg-alt); border-radius: var(--radius-lg); padding: 2rem; }
.benefits-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.benefits-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.cotizacion-form-card { background: #fff; border: 1.5px solid var(--lr-border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.productos-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.5rem; }
.check-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border: 1.5px solid var(--lr-border); border-radius: var(--radius-md); cursor: pointer; font-size: 0.85rem; transition: var(--transition); }
.check-item input { accent-color: var(--lr-green); }
.served-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.served-grid span { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; padding: 0.35rem 0; color: var(--lr-text-body); }

/* ─── CARRITO ────────────────────────────────────────────────── */
.cart-table-wrapper { border: 1.5px solid var(--lr-border); border-radius: var(--radius-lg); overflow: hidden; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead tr { background: var(--lr-bg-alt); }
.cart-table th, .cart-table td { padding: 0.9rem 1rem; text-align: left; font-size: 0.875rem; border-bottom: 1px solid var(--lr-border); }
.cart-table th { font-weight: 600; color: var(--lr-text-muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }
.cart-item-img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-name { font-weight: 600; color: var(--lr-text); font-size: 0.9rem; }
.qty-inline { display: flex; align-items: center; gap: 0.4rem; }
.qty-btn-sm { width: 26px; height: 26px; background: var(--lr-bg-alt); border: 1px solid var(--lr-border); border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.qty-btn-sm:hover { background: var(--lr-green-soft); }
.qty-val { min-width: 24px; text-align: center; font-weight: 600; }
.btn-remove-cart { background: none; border: none; color: var(--lr-text-muted); cursor: pointer; font-size: 0.9rem; transition: var(--transition); }
.btn-remove-cart:hover { color: #c62828; }
.cart-summary { background: var(--lr-bg-alt); border-radius: var(--radius-lg); padding: 1.75rem; }
.cart-summary-title { font-weight: 700; margin-bottom: 1.25rem; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.9rem; }
.cart-total-row { font-size: 1rem; }

/* ─── CHECKOUT ───────────────────────────────────────────────── */
.checkout-form-card { background: #fff; border: 1.5px solid var(--lr-border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.checkout-summary { background: var(--lr-bg-alt); border-radius: var(--radius-lg); padding: 1.75rem; }
.checkout-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--lr-border); }
.checkout-item-img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }

/* ─── CONTACT PAGE ───────────────────────────────────────────── */
.contact-info-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 1rem; }
.ci-icon { width: 40px; height: 40px; background: var(--lr-green-soft); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--lr-green); font-size: 1rem; flex-shrink: 0; }
.contact-info-list strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lr-text-muted); margin-bottom: 0.2rem; }
.contact-info-list p { margin: 0; font-size: 0.9rem; }
.contact-info-list a { color: var(--lr-green); }
.contact-form-card { background: #fff; border: 1.5px solid var(--lr-border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }

/* ─── ABOUT PAGE ─────────────────────────────────────────────── */
.text-body-lg { font-size: 1.1rem; line-height: 1.75; color: var(--lr-text-body); }
.about-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.about-stat  { display: flex; flex-direction: column; align-items: center; }
.about-stat strong { font-size: 2rem; font-weight: 800; color: var(--lr-green); line-height: 1; }
.about-stat small  { font-size: 0.8rem; color: var(--lr-text-muted); font-weight: 500; }
.value-card { background: #fff; border: 1.5px solid var(--lr-border); border-radius: var(--radius-lg); padding: 2rem; text-align: center; transition: var(--transition); }
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.value-icon { width: 56px; height: 56px; background: var(--lr-green-soft); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--lr-green); margin: 0 auto 1rem; }
.coverage-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.coverage-list li { font-size: 0.95rem; }

/* ─── ERROR PAGES ────────────────────────────────────────────── */
.error-page { padding: 6rem 0; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--lr-green-soft); line-height: 1; margin-bottom: 1rem; }

/* ─── NAVBAR MOBILE SEARCH ───────────────────────────────────── */
.navbar-search-mobile input {
  background: var(--lr-bg);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  font-size: 1rem; /* evita zoom en iOS */
}
.navbar-search-mobile input::placeholder { color: var(--lr-text-muted); }
.navbar-search-mobile input:focus { background: #fff; border-color: var(--lr-green); outline: none; box-shadow: none; color: var(--lr-text); }

/* Menú mobile abierto */
#navbarMain .navbar-nav .nav-link {
  padding: 0.75rem 0.5rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1rem;
}
#navbarMain .navbar-nav .nav-link:last-child { border-bottom: none; }

/* ─── CARRITO MOBILE CARDS ────────────────────────────────────── */
.cart-cards-list { display: flex; flex-direction: column; gap: 0.75rem; }

.cart-card-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  background: #fff;
  border: 1.5px solid var(--lr-border);
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  align-items: start;
}
.cart-card-img  { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-md); }
.cart-card-info { display: flex; flex-direction: column; gap: 0.2rem; }
.cart-card-name { font-weight: 700; font-size: 0.9rem; color: var(--lr-text); line-height: 1.3; }
.cart-card-unit { font-size: 0.75rem; color: var(--lr-text-muted); }
.cart-card-price { font-size: 0.8rem; color: var(--lr-text-light); }
.cart-card-actions { grid-column: 1 / -1; border-top: 1px solid var(--lr-border); padding-top: 0.6rem; margin-top: 0.25rem; }
.cart-card-subtotal { font-size: 1rem; color: var(--lr-text); }
.btn-remove-cart i { margin-right: 0.25rem; }

/* ─── TOAST ──────────────────────────────────────────────────── */
.lr-toast { position: fixed; bottom: 6rem; right: 2rem; background: var(--lr-green-dark); color: #fff; border-radius: var(--radius-md); padding: 0.65rem 0.75rem 0.65rem 1.1rem; font-weight: 500; z-index: 99999; transform: translateY(1rem); opacity: 0; pointer-events: none; transition: all var(--transition); font-size: 0.88rem; display: flex; align-items: center; gap: 0.75rem; box-shadow: var(--shadow-md); }
.lr-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.lr-toast-btn { display: inline-flex; align-items: center; background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; border-radius: var(--radius-sm); padding: 0.3rem 0.75rem; font-size: 0.82rem; font-weight: 600; white-space: nowrap; transition: background 0.15s ease; }
.lr-toast-btn:hover { background: rgba(255,255,255,0.35); color: #fff; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

/* ── Tablet landscape (< 992px) ── */
@media (max-width: 991.98px) {
  .hero-trust       { gap: 0.75rem; }
  .cta-b2b-card     { padding: 2rem; }
  .catalog-sidebar  { position: static; }
  .product-gallery  { position: static; margin-bottom: 2rem; }

  /* Hero card dentro de imagen — evitar desbordamiento */
  .hero-card { left: 0; bottom: 0; position: relative; margin-top: 1rem; display: inline-flex; }
  .hero-img-wrapper { position: static; }
}

/* ── Tablet portrait (< 768px) ── */
@media (max-width: 767.98px) {
  .py-section    { padding-top: 3rem; padding-bottom: 3rem; }
  .hero-content  { padding: 2.5rem 1.25rem 3rem; }
  .hero-section  { overflow: visible; }
  .min-vh-80     { min-height: unset; }
  .about-stats   { gap: 1rem; }
  .about-stat strong { font-size: 1.6rem; }
  .cta-b2b-card  { padding: 1.5rem; }
  .cta-b2b-title { font-size: 1.4rem; }

  /* Product page actions — stack vertical */
  .product-actions { flex-direction: column; align-items: stretch; }
  .product-actions .btn { width: 100%; justify-content: center; }
  .qty-selector    { width: fit-content; }
  .btn-wa-product  { justify-content: center; text-align: center; }

  /* Carrito: ocultar columna "Cantidad" en tabla, usar versión card */
  .cart-table-mobile { display: block; }
  .cart-table-desktop { display: none; }

  /* Página de error */
  .error-code { font-size: 5rem; }

  /* Sección B2B trust */
  .cta-b2b-list { gap: 0.3rem; }
  .cta-b2b-list li { font-size: 0.85rem; }

  /* Footer */
  .footer-bottom { text-align: center; }
  .footer-bottom .d-flex { flex-direction: column; align-items: center !important; gap: 0.25rem; }
}

/* ── Mobile (< 576px) ── */
@media (max-width: 575.98px) {
  /* Secciones */
  .py-section   { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .page-header  { padding: 2.5rem 1.25rem 2rem; }
  .section-title { font-size: 1.5rem; }

  /* Hero */
  .hero-content  { padding: 2.5rem 1.25rem 3rem; }
  .hero-title    { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-badge    { font-size: 0.78rem; padding: 0.3rem 0.75rem; }
  .hero-ctas     { flex-direction: column; }
  .hero-ctas .btn-lg { width: 100%; justify-content: center; padding: 0.85rem 1rem; }
  .hero-trust    { flex-direction: column; gap: 0.5rem; }
  .hero-trust .trust-item { font-size: 0.82rem; }

  /* Touch targets mínimo 44px */
  .btn-add-cart  { width: 100%; height: 44px; font-size: 0.85rem; border-radius: var(--radius-sm); gap: 0.4rem; }
  .btn-add-cart::after { content: ' Agregar'; }
  .qty-btn       { width: 44px; height: 44px; font-size: 1.2rem; }
  .qty-input     { height: 44px; font-size: 1rem; }
  .qty-btn-sm    { width: 36px; height: 36px; font-size: 1rem; }
  .btn-cart      { padding: 0.5rem; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .social-link   { width: 44px; height: 44px; }

  /* Cards de producto */
  .prod-card-body { padding: 0.75rem; }
  .prod-name      { font-size: 0.85rem; }
  .prod-footer    { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .price-current  { font-size: 1rem; }
  .prod-category  { font-size: 0.65rem; }

  /* Categorías — 1 columna en xs muy pequeño */
  .cat-card { padding: 1.25rem 1rem; }
  .cat-card-title { font-size: 0.9rem; }

  /* Why cards */
  .why-card  { padding: 1.25rem; }
  .why-icon  { width: 48px; height: 48px; font-size: 1.2rem; }

  /* Formularios */
  .lr-input  { font-size: 1rem; } /* Evita zoom en iOS */
  select.lr-input { font-size: 1rem; }

  /* Cotización checkboxes */
  .productos-check-grid { grid-template-columns: 1fr 1fr; }
  .check-item { font-size: 0.8rem; padding: 0.5rem; }

  /* Carrito summary */
  .cart-summary { padding: 1.25rem; }

  /* Checkout */
  .checkout-form-card { padding: 1.25rem; }
  .checkout-summary   { padding: 1.25rem; }

  /* Botones principales full width */
  .btn-wa-big  { width: 100%; justify-content: center; }

  /* WhatsApp flotante */
  .wa-widget { bottom: 1rem; right: 1rem; }
  .wa-float { width: 52px; height: 52px; font-size: 1.5rem; }
  .wa-menu { width: 270px; }

  /* Breadcrumbs */
  .breadcrumb { font-size: 0.8rem; }

  /* Toast */
  .lr-toast { right: 1rem; left: 1rem; bottom: calc(56px + env(safe-area-inset-bottom) + 0.75rem); justify-content: space-between; }
}

/* ── Muy pequeño (< 400px) ── */
@media (max-width: 399.98px) {
  .hero-title  { font-size: 1.5rem; }
  .page-title  { font-size: 1.5rem; }
  .prod-name   { font-size: 0.8rem; }
  .navbar-brand .brand-text { font-size: 1rem; }
  .cta-b2b-card { padding: 1.25rem; }
}

/* ─── CATALOG SIDEBAR MOBILE COLLAPSE ───────────────────────── */
@media (max-width: 991.98px) {
  #catalogSidebarCol {
    display: none;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  #catalogSidebarCol.sidebar-open { display: block; }
  #btnFiltros .fa-chevron-up,
  #btnFiltros .fa-chevron-down { transition: transform 0.2s ease; }
}
@media (min-width: 992px) {
  #catalogSidebarCol { display: block !important; }
  #btnFiltros { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMACIONES & DISEÑO MODERNO — Next.js Edition
   ═══════════════════════════════════════════════════════════════ */

/* ── Fix hero-title (corrige clamp erróneo del original) ──────── */
.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.25rem) !important;
}

/* ── Entrada de página ────────────────────────────────────────── */
@keyframes pageEnter {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.page-enter {
  animation: pageEnter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Scroll reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Variantes de dirección */
.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal-left.visible,
.reveal-right.visible { transform: translateX(0); }
.reveal-scale { transform: scale(0.94); }
.reveal-scale.visible { transform: scale(1); }

/* Delays para animaciones escalonadas */
.delay-1 { transition-delay: 80ms  !important; }
.delay-2 { transition-delay: 160ms !important; }
.delay-3 { transition-delay: 240ms !important; }
.delay-4 { transition-delay: 320ms !important; }
.delay-5 { transition-delay: 400ms !important; }
.delay-6 { transition-delay: 480ms !important; }

/* Reducir movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Animaciones de entrada del hero ─────────────────────────── */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hero-badge    { animation: heroSlideUp 0.55s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.hero-title    { animation: heroSlideUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.15s both; }
.hero-subtitle { animation: heroSlideUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.28s both; }
.hero-ctas     { animation: heroSlideUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.42s both; }
.hero-trust    { animation: heroSlideUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.55s both; }
.hero-img-wrapper { animation: heroSlideUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.25s both; }

/* ── Botón icono navbar (búsqueda + hamburguesa móvil) ─────────── */
.btn-icon-nav {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--lr-text);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-icon-nav:active { background: var(--lr-green-soft); color: var(--lr-green); }

/* ── Hamburguesa animada ───────────────────────────────────────── */
.btn-hamburger {
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lr-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.btn-hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.btn-hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menú móvil panel ─────────────────────────────────────────── */
.lr-mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 998;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-top: 2px solid var(--lr-green-soft);
  padding: 0.75rem 1rem 1.25rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), opacity 0.2s ease;
  max-height: calc(100dvh - 72px - 56px);
  overflow-y: auto;
}
.lr-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 992px) {
  .lr-mobile-menu { display: none !important; }
}

/* ── Backdrop ─────────────────────────────────────────────────── */
.lr-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 997;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* ── Links del menú móvil ─────────────────────────────────────── */
.lr-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lr-mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.25rem;
  color: var(--lr-text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--lr-border);
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
  transition: color 0.15s ease, background 0.15s ease;
}
.lr-mobile-nav-link:active { color: var(--lr-green); background: var(--lr-green-soft); }
.lr-mobile-nav-link.active { color: var(--lr-green); font-weight: 600; }
.lr-mobile-nav-link i { font-size: 0.75rem; color: var(--lr-text-muted); }
.lr-mobile-menu-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
}

/* ── Search Overlay ───────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.search-overlay__panel {
  position: relative;
  background: #fff;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  animation: overlaySlideDown 0.22s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes overlaySlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.search-overlay__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--lr-border);
  background: #fff;
}
.search-overlay__ico { color: var(--lr-text-muted); font-size: 1rem; flex-shrink: 0; }
.search-overlay__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--lr-text);
  background: transparent;
  min-width: 0;
}
.search-overlay__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lr-bg-alt);
  border: none;
  border-radius: 50%;
  color: var(--lr-text);
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
}
.search-overlay__results {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.search-overlay__status,
.search-overlay__hint {
  padding: 1.5rem 1rem;
  color: var(--lr-text-muted);
  font-size: 0.9rem;
}
.search-overlay__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--lr-border);
  text-decoration: none;
  color: var(--lr-text);
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
}
.search-overlay__item:active { background: var(--lr-green-soft); }
.search-overlay__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--lr-bg-alt);
}
.search-overlay__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.search-overlay__name {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-overlay__price {
  font-size: 0.85rem;
  color: var(--lr-green);
  font-weight: 600;
}
.search-overlay__arrow { color: var(--lr-text-muted); font-size: 0.75rem; flex-shrink: 0; }

/* ── Navbar scroll shrink ─────────────────────────────────────── */
.lr-navbar {
  transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}
.lr-navbar.scrolled {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
  box-shadow: 0 4px 28px rgba(0,0,0,0.13) !important;
}

/* ── Active nav link — línea animada ─────────────────────────── */
.lr-navbar .nav-link { position: relative; overflow: hidden; }
.lr-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--lr-green);
  border-radius: var(--radius-full);
  transition: left 0.25s ease, right 0.25s ease;
}
.lr-navbar .nav-link.active::after,
.lr-navbar .nav-link:hover::after {
  left: 0.6rem;
  right: 0.6rem;
}

/* ── Cart badge pop ───────────────────────────────────────────── */
@keyframes badgePop {
  0%   { transform: scale(0.5); }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.cart-badge.pop { animation: badgePop 0.3s cubic-bezier(0.34,1.56,0.64,1); }

/* ── Imagen fade-in al cargar ────────────────────────────────── */
.img-fade {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.img-fade.loaded { opacity: 1; }

/* ── Product card — posición y shimmer hover ─────────────────── */
.prod-card { position: relative; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .prod-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
      105deg,
      transparent 40%,
      rgba(255,255,255,0.22) 50%,
      transparent 60%
    );
    transition: left 0.55s ease;
    pointer-events: none;
    z-index: 2;
    border-radius: var(--radius-lg);
  }
  .prod-card:hover::before { left: 160%; }
}

/* ── Skeleton shimmer ────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--lr-bg-alt) 25%,
    #f0f8f3 50%,
    var(--lr-bg-alt) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
  color: transparent !important;
  pointer-events: none;
}

/* ── Smooth scroll global ────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Focus ring mejorado ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--lr-green);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Page header fade ────────────────────────────────────────── */
.page-header, .page-header-sm {
  animation: heroSlideUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.05s both;
}

/* ═══════════════════════════════════════════════════════════════
   CARRITO & CHECKOUT
   ═══════════════════════════════════════════════════════════════ */

/* ── Lista de items ──────────────────────────────────────────── */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--lr-white);
  border: 1px solid var(--lr-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: box-shadow 0.2s ease;
}
.cart-item:hover { box-shadow: var(--shadow-sm); }

.cart-item-img-link { flex-shrink: 0; }
.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--lr-bg);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--lr-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-name:hover { color: var(--lr-green); }
.cart-item-price {
  font-size: 0.82rem;
  color: var(--lr-text-light);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cart-item-subtotal {
  font-weight: 700;
  font-size: 1rem;
  color: var(--lr-green);
  min-width: 70px;
  text-align: right;
  flex-shrink: 0;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--lr-text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.cart-item-remove:hover {
  color: #dc3545;
  background: #fff0f0;
}

/* ── Resumen del carrito ─────────────────────────────────────── */
.cart-summary {
  background: var(--lr-white);
  border: 1px solid var(--lr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
.cart-summary-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--lr-text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--lr-border);
}
.cart-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-height: 220px;
  overflow-y: auto;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--lr-text-body);
  gap: 8px;
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 2px solid var(--lr-border);
  font-weight: 600;
  font-size: 1rem;
  color: var(--lr-text);
}
.cart-total-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--lr-green);
}
.cart-summary-note {
  font-size: 0.78rem;
  color: var(--lr-text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ── Botón WA outline ────────────────────────────────────────── */
.btn-wa-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid #25d366;
  color: #25d366;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-wa-outline:hover {
  background: #25d366;
  color: #fff;
}

/* ── Checkout form ───────────────────────────────────────────── */
.checkout-form-section {
  background: var(--lr-white);
  border: 1px solid var(--lr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.checkout-form-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--lr-text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--lr-border);
}

/* ── Confirmación de pedido ──────────────────────────────────── */
.checkout-success {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--lr-white);
  border: 1px solid var(--lr-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.checkout-success-icon {
  font-size: 4rem;
  color: var(--lr-green);
  margin-bottom: 1rem;
  animation: heroSlideUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.checkout-success-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--lr-text);
  margin-bottom: 0.5rem;
}
.checkout-success-num {
  font-size: 1rem;
  color: var(--lr-text-light);
  margin-bottom: 0.25rem;
}
.checkout-success-total {
  font-size: 1.1rem;
  color: var(--lr-green);
  margin-bottom: 0.25rem;
}
.checkout-success-msg {
  font-size: 0.92rem;
  color: var(--lr-text-body);
  margin: 1rem 0 0;
  line-height: 1.6;
}

/* ── Mobile cart ─────────────────────────────────────────────── */
@media (max-width: 576px) {
  .cart-item {
    flex-wrap: wrap;
  }
  .cart-item-img { width: 64px; height: 64px; }
  .cart-item-info { width: calc(100% - 80px); }
  .cart-item-qty { margin-left: auto; }
  .cart-item-subtotal { min-width: auto; }
}

/* ─── BOTTOM NAV MOBILE ──────────────────────────────────────── */
.lr-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  display: flex;
  align-items: stretch;
  background: var(--lr-white);
  border-top: 1px solid var(--lr-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  height: calc(56px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
}

.lr-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--lr-text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  touch-action: manipulation;
}

.lr-bottom-nav__item i {
  font-size: 1.15rem;
  display: block;
}

.lr-bottom-nav__item.active,
.lr-bottom-nav__item:active {
  color: var(--lr-green);
}

.lr-bottom-nav__item--wa {
  color: #25D366;
}

.lr-bottom-nav__item--wa:active {
  color: #128C7E;
}

/* Carrito con badge */
.lr-bottom-nav__cart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lr-bottom-nav__cart-wrap .cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  font-size: 0.6rem;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 4px;
}

/* Empujar contenido para que no quede bajo la barra */
@media (max-width: 991.98px) {
  main {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }

  /* WaWidget: subir sobre la bottom nav */
  .wa-widget {
    bottom: calc(56px + env(safe-area-inset-bottom) + 0.75rem) !important;
  }
}

/* ─── CATALOG DOWNLOAD BUTTON ───────────────────────────────── */
.cdl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
  color: var(--lr-green);
  border: 2px solid var(--lr-green);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              border-radius 0.3s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
  user-select: none;
}

/* Hover — solo en dispositivos con puntero fino */
@media (hover: hover) and (pointer: fine) {
  .cdl-btn--idle:hover {
    background: var(--lr-green);
    color: #fff;
    transform: translateY(-1px);
  }
  .cdl-btn--idle:hover .cdl-icon-left { transform: scale(1.1); }
}

/* Estado loading */
.cdl-btn--loading {
  border-color: var(--lr-green-dark);
  color: var(--lr-green-dark);
  pointer-events: none;
}

/* Estado done */
.cdl-btn--done {
  background: var(--lr-green);
  color: #fff;
  border-color: var(--lr-green);
  pointer-events: none;
}

/* Texto */
.cdl-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.2s ease;
  position: relative;
  z-index: 1;
}
.cdl-btn--loading .cdl-text { opacity: 0.45; }

.cdl-icon-left { transition: transform 0.2s ease; }

/* Flecha animada */
.cdl-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  margin-top: -0.5em;
  font-size: 1.1rem;
  color: var(--lr-green);
  opacity: 0;
  pointer-events: none;
}
.cdl-btn--loading .cdl-arrow {
  animation: cdl-arrow 2.8s cubic-bezier(0.39, 0.575, 0.565, 1) forwards;
}

@keyframes cdl-arrow {
  0%   { opacity: 0;   top: 30%; }
  10%  { opacity: 1;   top: 50%; }
  70%  { opacity: 1;   top: 65%; }
  85%  { opacity: 0;   top: 72%; }
  100% { opacity: 0;   top: 72%; }
}

/* Partículas */
.cdl-dot {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.cdl-btn--loading .cdl-dot {
  animation: cdl-dot-burst 0.8s var(--cdl-delay, 0.3s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cdl-dot-burst {
  0%   { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(calc(-50% + var(--cdl-dx)), calc(-50% + var(--cdl-dy))) scale(0.4); }
}

/* ─── BADGE POCAS UNIDADES ───────────────────────────────────── */
.prod-badge-stock {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #ef4444;
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
  letter-spacing: 0.02em;
}

/* ─── CHECKOUT: ETA ──────────────────────────────────────────── */
.checkout-success-eta {
  display: inline-flex;
  align-items: center;
  background: var(--lr-green-soft);
  color: var(--lr-green-dark);
  border-radius: var(--radius-md);
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ─── WAWIDGET: HORARIO ──────────────────────────────────────── */
.wa-schedule {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

/* ─── PÁGINA DE MANTENIMIENTO ─────────────────────────────── */
.maintenance-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--lr-green-dark) 0%, var(--lr-green) 100%); padding: 2rem; }
.maintenance-card { background: #fff; border-radius: var(--radius-xl); padding: 3rem 2.5rem; max-width: 480px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.maintenance-icon { font-size: 3.5rem; color: var(--lr-green); margin-bottom: 1.5rem; }
.maintenance-title { font-size: 1.75rem; font-weight: 800; color: var(--lr-text); margin-bottom: 1rem; }
.maintenance-msg { color: var(--lr-muted); line-height: 1.7; margin-bottom: 2rem; }
.maintenance-sub { color: var(--lr-muted); font-size: 0.85rem; margin-top: 1.5rem; margin-bottom: 0; }
