/* ========================================
   COPY CAESS S.A.S — Hoja de Estilos
   ======================================== */

:root {
  --primary:        #1a5fa8;
  --primary-light:  #2874c8;
  --primary-dark:   #0f3d72;
  --accent:         #0ea5e9;
  --accent-warm:    #f59e0b;
  --bg:             #fafaf7;
  --bg-card:        #ffffff;
  --bg-muted:       #f1f4f9;
  --fg:             #111827;
  --fg-muted:       #6b7280;
  --fg-light:       #9ca3af;
  --border:         #e5e7eb;
  --border-focus:   #1a5fa8;
  --success:        #16a34a;
  --danger:         #dc2626;
  --warning:        #d97706;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:      0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:      0 12px 32px rgba(0,0,0,.12);
  --shadow-xl:      0 24px 48px rgba(0,0,0,.14);
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-full:    9999px;
  --font-sans:      'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif:     'DM Serif Display', Georgia, serif;
  --font-mono:      'JetBrains Mono', monospace;
  --transition:     all .2s cubic-bezier(.4,0,.2,1);
  --navbar-h:       64px;
  --ease-expo:      cubic-bezier(.16, 1, .3, 1);
  --ease-back:      cubic-bezier(.34, 1.56, .64, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}
@media (min-width: 480px)  { .container { padding: 0 1.25rem; } }
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); line-height: 1.2; color: var(--fg); }
h1 { font-size: clamp(1.75rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.4rem;
  border: none; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .9rem; font-weight: 600;
  transition:
    background .22s ease,
    color .22s ease,
    transform .18s cubic-bezier(.22,1,.36,1),
    box-shadow .22s ease,
    border-color .18s ease;
  cursor: pointer; white-space: nowrap;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative; overflow: hidden;
}
/* Ripple layer */
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--rx,50%) var(--ry,50%), rgba(255,255,255,.28) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.btn:active::after { opacity: 1; }
.btn:active        { transform: scale(.96) !important; }

.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(26,95,168,.25); }
.btn--primary:hover { background: var(--primary-light); box-shadow: 0 6px 20px rgba(26,95,168,.38); transform: translateY(-2px); }

.btn--accent  { background: var(--accent); color: #fff; }
.btn--accent:hover  { background: #0284c7; box-shadow: 0 6px 20px rgba(14,165,233,.35); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(26,95,168,.3); transform: translateY(-2px); }

.btn--ghost   { background: transparent; color: var(--fg-muted); }
.btn--ghost:hover   { background: var(--bg-muted); color: var(--fg); transform: translateY(-1px); }

.btn--danger  { background: var(--danger); color: #fff; }
.btn--danger:hover  { background: #b91c1c; box-shadow: 0 6px 18px rgba(220,38,38,.32); transform: translateY(-2px); }

.btn--sm  { padding: .4rem 1rem; font-size: .82rem; }
.btn--lg  { padding: .85rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: transparent; border: none; border-radius: var(--radius);
  color: var(--fg-muted); font-size: 1.1rem; transition: var(--transition);
  position: relative; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; flex-shrink: 0;
}
.btn-icon:hover { background: var(--bg-muted); color: var(--primary); }

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  /* backdrop-filter solo en navegadores que no lo glitchean en Android */
  border-bottom: 1px solid var(--border);
  height: var(--navbar-h);
  width: 100%;
}
@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 768px) {
    .navbar {
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
  }
}
.navbar__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem;
}
.navbar__brand {
  display: flex; align-items: center; gap: .5rem;
  text-decoration: none; flex-shrink: 0;
  min-width: 0;
}
.navbar__nav {
  display: none;
  align-items: center; gap: .15rem;
  flex-shrink: 0;
}
@media (min-width: 768px) { .navbar__nav { display: flex; } }
.navbar__link {
  padding: .45rem .75rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; color: var(--fg-muted);
  transition: color .2s ease, background .2s ease; white-space: nowrap;
  position: relative;
}
/* Animated underline */
.navbar__link::after {
  content: '';
  position: absolute; bottom: 2px; left: .75rem; right: .75rem;
  height: 2px; border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.navbar__link:hover, .navbar__link--active {
  color: var(--primary); background: rgba(26,95,168,.06);
}
.navbar__link:hover::after, .navbar__link--active::after {
  transform: scaleX(1);
}
.navbar__actions {
  display: flex; align-items: center; gap: .2rem;
  flex-shrink: 0;
}
.navbar__hamburger { display: flex; }
@media (min-width: 768px) { .navbar__hamburger { display: none; } }

/* Store status — oculto en móvil para no saturar navbar */
.store-status {
  display: none;
  align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--fg-muted);
  flex-shrink: 0; white-space: nowrap;
}
@media (min-width: 640px) { .store-status { display: flex; } }
.store-status__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Cart badge */
.cart-badge {
  position: absolute; top: 1px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 3px;
  background: var(--danger); color: #fff;
  font-size: .6rem; font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

/* User dropdown */
.navbar__user-menu { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 200px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: .5rem; display: none; z-index: 200;
}
.dropdown.open { display: block; animation: _fadePop .16s var(--ease-back) both; }
.dropdown__header { padding: .5rem .75rem .75rem; border-bottom: 1px solid var(--border); margin-bottom: .35rem; }
.dropdown__header strong { display: block; font-size: .875rem; }
.dropdown__header small { color: var(--fg-muted); font-size: .75rem; }
.dropdown__item {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .75rem; border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--fg); transition: var(--transition);
  background: none; border: none; width: 100%; text-align: left;
  cursor: pointer; font-family: inherit;
}
.dropdown__item:hover { background: var(--bg-muted); color: var(--primary); }
.dropdown__item--danger:hover { background: #fef2f2; color: var(--danger); }

/* Mobile Nav */
.navbar__mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: .5rem .75rem .75rem;
  gap: .2rem;
  position: absolute; top: var(--navbar-h); left: 0; right: 0;
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.navbar__mobile.open { display: flex; }
.navbar__mobile-link {
  display: block;
  padding: .7rem .85rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; color: var(--fg-muted);
  transition: var(--transition); background: none; border: none;
  text-align: left; cursor: pointer; font-family: inherit; width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.navbar__mobile-link:hover, .navbar__mobile-link--active {
  background: rgba(26,95,168,.07); color: var(--primary);
}

/* ---- Cart Sidebar ---- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 150; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 92%; max-width: 400px;
  background: var(--bg-card);
  z-index: 200; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
  /* Fix para que se vea bien en Android con barra de navegación */
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-sidebar__header h2 { font-size: 1.15rem; }
.cart-sidebar__body { flex: 1; overflow-y: auto; padding: .75rem 1.25rem; -webkit-overflow-scrolling: touch; }
.cart-empty { text-align: center; padding: 2.5rem 1rem; color: var(--fg-muted); }
.cart-empty i { font-size: 2.5rem; margin-bottom: .75rem; opacity: .4; }
.cart-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .85rem 0; border-bottom: 1px solid var(--border);
}
.cart-item__img {
  width: 56px; height: 56px; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-muted); flex-shrink: 0;
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: .85rem; margin-bottom: .2rem; word-break: break-word; }
.cart-item__price { color: var(--primary); font-weight: 700; font-size: .85rem; }
.cart-item__qty { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.cart-item__qty button {
  width: 28px; height: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-muted); font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
}
.cart-item__qty span { font-size: .875rem; font-weight: 600; min-width: 18px; text-align: center; }
.cart-item__remove { color: var(--fg-light); padding: .3rem; background: none; border: none; font-size: .9rem; flex-shrink: 0; }
.cart-item__remove:hover { color: var(--danger); }
.cart-sidebar__footer {
  padding: 1rem 1.25rem; border-top: 1px solid var(--border); flex-shrink: 0;
}
.cart-total { display: flex; justify-content: space-between; margin-bottom: .85rem; font-size: 1.05rem; }
.cart-total strong { color: var(--primary); }

/* ---- Cards ---- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card__body { padding: 1.25rem; }
.card__header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card__title { font-size: 1.05rem; font-weight: 700; }

/* ---- Product Card ---- */
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition:
    transform     .35s cubic-bezier(.22,1,.36,1),
    box-shadow    .35s cubic-bezier(.22,1,.36,1),
    border-color  .25s ease;
}
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-6px) scale(1.012);
    box-shadow: 0 20px 48px rgba(26,95,168,.13);
    border-color: rgba(26,95,168,.22);
  }
}
.product-card__img-wrap {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-muted);
}
/* Gloss overlay on hover */
.product-card__img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 1;
}
@media (hover: hover) {
  .product-card:hover .product-card__img-wrap::after { opacity: 1; }
}
.product-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}
@media (hover: hover) {
  .product-card:hover .product-card__img { transform: scale(1.07); }
}
.product-card__badge {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  background: var(--primary); color: #fff;
  font-size: .68rem; font-weight: 700; padding: .2rem .55rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
.product-card__badge--low { background: var(--warning); }
.product-card__badge--out { background: var(--fg-muted); }
.product-card__body { padding: .9rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.product-card__category { font-size: .7rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.product-card__name { font-family: var(--font-serif); font-size: .95rem; line-height: 1.3; }
.product-card__name a { transition: color .18s ease; }
@media (hover: hover) { .product-card:hover .product-card__name a { color: var(--primary); } }
.product-card__desc { font-size: .8rem; color: var(--fg-muted); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; gap: .4rem; flex-wrap: wrap; }
.product-card__price {
  font-size: 1.1rem; font-weight: 800; color: var(--primary);
  transition: transform .2s cubic-bezier(.22,1,.36,1);
}
@media (hover: hover) { .product-card:hover .product-card__price { transform: scale(1.05); } }
.product-card__actions { display: flex; gap: .35rem; }

/* ---- Forms ---- */
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-label { font-size: .85rem; font-weight: 600; color: var(--fg); }
.form-input {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 1rem; color: var(--fg);
  background: var(--bg-card);
  transition: border-color .22s ease, box-shadow .22s ease, transform .15s ease; outline: none;
  font-size: max(1rem, 16px);
  -webkit-appearance: none; appearance: none;
}
.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(26,95,168,.1);
  transform: translateY(-1px);
}
.form-input:hover:not(:focus) { border-color: rgba(26,95,168,.3); }
.form-input::placeholder { color: var(--fg-light); }
.form-hint { font-size: .78rem; color: var(--fg-muted); }
.form-error { font-size: .78rem; color: var(--danger); }
textarea.form-input { resize: vertical; min-height: 100px; font-size: 1rem; }
select.form-input {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem; border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
.badge--primary { background: rgba(26,95,168,.12); color: var(--primary); }
.badge--success { background: rgba(22,163,74,.1);  color: var(--success); }
.badge--danger  { background: rgba(220,38,38,.1);  color: var(--danger); }
.badge--warning { background: rgba(217,119,6,.12); color: var(--warning); }
.badge--muted   { background: var(--bg-muted); color: var(--fg-muted); }
.badge--accent  { background: rgba(14,165,233,.1); color: var(--accent); }

/* ---- Sections ---- */
.section { padding: 3.5rem 0; }
.section--lg { padding: 5rem 0; }
.section--muted { background: var(--bg-muted); }
.section__header { text-align: center; margin-bottom: 2.5rem; }
.section__header p { color: var(--fg-muted); margin-top: .6rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding: 3.5rem 0 3rem;
  background: var(--bg);
}
/* Ambient background orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,95,168,.08) 0%, transparent 70%);
  top: -200px; right: -150px;
  animation: _orbDrift 18s ease-in-out infinite;
}
.hero::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,.06) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  animation: _orbDrift 24s ease-in-out infinite reverse;
}
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(26,95,168,.1); color: var(--primary);
  padding: .3rem .85rem; border-radius: var(--radius-full);
  font-size: .78rem; font-weight: 700; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.hero__title { margin-bottom: 1rem; }
.hero__title span { color: var(--primary); }
.hero__desc { color: var(--fg-muted); font-size: 1rem; margin-bottom: 1.75rem; line-height: 1.75; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero__pillars {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.hero__pillar {
  display: flex; align-items: center; gap: .65rem;
  flex: 1; min-width: 120px;
}
.hero__pillar-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(26,95,168,.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: .95rem;
}
.hero__pillar-title { font-weight: 700; font-size: .82rem; line-height: 1.2; color: var(--fg); }
.hero__pillar-sub   { font-size: .74rem; color: var(--fg-muted); line-height: 1.3; margin-top: .1rem; }
.hero__stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero__stat {
  padding: .5rem .75rem;
  border-radius: var(--radius);
  transition: transform .25s cubic-bezier(.22,1,.36,1), background .2s;
  cursor: default;
}
@media (hover: hover) {
  .hero__stat:hover { transform: translateY(-2px); background: rgba(26,95,168,.05); }
}
.hero__stat strong { display: block; font-size: 1.35rem; font-weight: 800; color: var(--primary); }
.hero__stat span   { font-size: .78rem; color: var(--fg-muted); }
.hero__img-wrap { position: relative; }
.hero__img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); }
.hero__badge {
  position: absolute; bottom: -1rem; left: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: .75rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .65rem;
}
.hero__badge-dot { width: 9px; height: 9px; background: #22c55e; border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }
.hero__badge-text strong { display: block; font-size: .8rem; }
.hero__badge-text small { color: var(--fg-muted); font-size: .7rem; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ---- Services ---- */
.services-grid { display: grid; gap: 1.25rem; }
@media (min-width: 480px)  { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3,1fr); } }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  text-align: center;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  text-align: center;
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              box-shadow .35s cubic-bezier(.22,1,.36,1),
              border-color .25s ease;
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 48px rgba(26,95,168,.13);
  border-color: rgba(26,95,168,.2);
}
.service-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  background: rgba(26,95,168,.08);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: var(--primary);
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              background .25s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.15) rotate(-6deg);
  background: rgba(26,95,168,.15);
}
.service-card h3 { margin-bottom: .6rem; font-size: 1rem; }
.service-card p  { color: var(--fg-muted); font-size: .85rem; }

/* ---- Products Grid ---- */
.products-grid { display: grid; gap: 1rem; }
@media (min-width: 360px)  { .products-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 768px)  { .products-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4,1fr); } }

/* ---- Filter Bar ---- */
.filter-bar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1rem;
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  margin-bottom: 1.5rem;
}
.filter-bar .search-wrap { position: relative; flex: 1; min-width: 180px; }
.filter-bar .search-wrap i {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  color: var(--fg-muted); font-size: .875rem; pointer-events: none;
}
.filter-bar .search-wrap input { padding-left: 2.5rem; }
.view-toggle { display: flex; gap: .2rem; }
.view-toggle button {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-muted); color: var(--fg-muted);
}
.view-toggle button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- Contact ---- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-item { display: flex; gap: .85rem; align-items: flex-start; }
.contact-item__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(26,95,168,.1); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: .95rem;
}
.map-iframe { width: 100%; height: 320px; border-radius: var(--radius-lg); border: 0; }

/* ---- Auth Page ---- */
.auth-page {
  min-height: calc(100vh - var(--navbar-h));
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
  align-items: stretch;
}
@media (min-width: 1024px) {
  .auth-page { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.auth-page__form {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 2rem 1rem;
}
@media (min-width: 480px)  { .auth-page__form { padding: 2.5rem 1.5rem; } }
@media (min-width: 1024px) {
  .auth-page__form { padding: 4rem 3rem 4rem 4rem; align-items: center; }
}
.auth-box {
  width: 100%; max-width: 460px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 1.25rem;
}
@media (min-width: 480px) { .auth-box { padding: 2.25rem 2rem; } }
.auth-page__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .auth-page__panel {
    justify-content: flex-start;
    padding: 4rem 4rem 4rem 2rem;
    border-top: none;
    border-left: 1px solid var(--border);
    background: var(--bg);
  }
}

/* ---- Checkout ---- */
.checkout-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .checkout-grid { grid-template-columns: 1.4fr 1fr; } }
.order-summary { position: sticky; top: calc(var(--navbar-h) + 1rem); }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
thead th {
  padding: .75rem 1rem; background: var(--bg-muted);
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--fg-muted); text-align: left; white-space: nowrap;
}
tbody td { padding: .8rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
tbody tr:hover { background: rgba(26,95,168,.02); }

/* ---- Admin ---- */
.admin-layout { display: flex; min-height: calc(100vh - var(--navbar-h)); }
.admin-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--bg-card); border-right: 1px solid var(--border);
  padding: 1.25rem .85rem;
  position: sticky; top: var(--navbar-h); height: calc(100vh - var(--navbar-h));
  overflow-y: auto;
}
.admin-sidebar__link {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .85rem; border-radius: var(--radius);
  font-size: .85rem; font-weight: 500; color: var(--fg-muted);
  transition: var(--transition); background: none; border: none;
  width: 100%; text-align: left; cursor: pointer; font-family: inherit;
}
.admin-sidebar__link:hover, .admin-sidebar__link.active {
  background: rgba(26,95,168,.08); color: var(--primary);
}
.admin-content { flex: 1; padding: 1.5rem; overflow-x: hidden; min-width: 0; }
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--border); padding: .75rem; }
  .admin-content { padding: 1rem; }
}

/* ---- Stats ---- */
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .85rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.1rem;
}
.stat-card__label { font-size: .74rem; color: var(--fg-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.stat-card__value { font-size: 1.6rem; font-weight: 800; color: var(--fg); line-height: 1; }
.stat-card__sub { font-size: .75rem; color: var(--fg-muted); margin-top: .35rem; }

/* ---- Footer ---- */
.footer { background: #111827; color: rgba(255,255,255,.8); padding: 3.5rem 0 0; }
.footer__grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 480px)  { .footer__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer__brand .footer__logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-serif); font-size: 1.1rem; color: #fff;
  margin-bottom: .85rem;
}
.footer__brand .footer__logo i {
  width: 32px; height: 32px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem;
}
.footer__brand p { font-size: .83rem; line-height: 1.65; color: rgba(255,255,255,.55); }
.footer__social { display: flex; gap: .6rem; margin-top: 1rem; }
.social-btn {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255,255,255,.15); transition: border-color .2s;
  flex-shrink: 0;
}
.social-btn:hover { border-color: rgba(255,255,255,.5); }
.social-btn img { width: 100%; height: 100%; object-fit: cover; }
.footer__col h4 { color: #fff; font-size: .9rem; margin-bottom: .85rem; font-family: var(--font-sans); }
.footer__col ul { display: flex; flex-direction: column; gap: .45rem; }
.footer__col ul li a,
.footer__col ul li span { font-size: .83rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer__col ul li a:hover { color: rgba(255,255,255,.85); }
.footer__contact { display: flex; flex-direction: column; gap: .5rem; }
.footer__contact p { font-size: .83rem; color: rgba(255,255,255,.55); display: flex; align-items: flex-start; gap: .5rem; }
.footer__contact p i { margin-top: .15rem; flex-shrink: 0; color: var(--accent); }
.footer__contact a { color: rgba(255,255,255,.6); }
.footer__contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.1rem 0; text-align: center; }
.footer__bottom p { font-size: .78rem; color: rgba(255,255,255,.35); }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.25rem; z-index: 90;
  width: 52px; height: 52px;
  background: #25d366; color: #fff;
  border-radius: 50%; box-shadow: 0 4px 16px rgba(37,211,102,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  /* safe area para Android con barra de navegación */
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

/* ---- Alerts ---- */
.alert { padding: .85rem 1rem; border-radius: var(--radius); font-size: .875rem; }
.alert--success { background: rgba(22,163,74,.08); color: var(--success); border: 1px solid rgba(22,163,74,.2); }
.alert--danger  { background: rgba(220,38,38,.08);  color: var(--danger);  border: 1px solid rgba(220,38,38,.2); }
.alert--warning { background: rgba(217,119,6,.08);  color: var(--warning); border: 1px solid rgba(217,119,6,.2); }

/* ---- Spinner ---- */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .65s linear infinite; vertical-align: middle; margin-right: .35rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Scroll Reveal ---- */
.animate-on-scroll {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s var(--ease-expo), transform .55s var(--ease-expo);
  transition-delay: var(--anim-delay, 0s);
  will-change: opacity, transform;
}
.animate-visible { opacity: 1 !important; transform: none !important; }
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s var(--ease-expo), transform .55s var(--ease-expo);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.reveal--left  { transform: translateX(-22px); }
.reveal.reveal--right { transform: translateX( 22px); }
.reveal.reveal--scale { transform: scale(.96); }
.reveal.reveal--fade  { transform: none; }
.reveal.is-visible    { opacity: 1 !important; transform: none !important; }

/* ════════════════════════════════════════════════
   KEYFRAMES — Senior-grade motion system
   ════════════════════════════════════════════════ */

/* Page enter */
@keyframes _pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Navbar slide */
@keyframes _navDrop {
  from { opacity: 0; transform: translateY(-110%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero sequence — spring-feel */
@keyframes _heroTitle {
  0%   { opacity: 0; transform: translateY(48px) skewY(2deg); }
  100% { opacity: 1; transform: translateY(0) skewY(0); }
}
@keyframes _heroSub {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes _heroImg {
  from { opacity: 0; transform: translateX(60px) scale(.96); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}
@keyframes _heroEyebrow {
  from { opacity: 0; transform: translateY(-18px) scale(.94); }
  to   { opacity: 1; transform: translateY(0)     scale(1); }
}

/* Stat counter shimmer */
@keyframes _statGlow {
  0%,100% { text-shadow: none; }
  50%     { text-shadow: 0 0 18px rgba(26,95,168,.35); }
}

/* Auth box */
@keyframes _authBox {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes _authPanel {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* WhatsApp float */
@keyframes _waFloat {
  0%,100% { transform: translateY(0) scale(1);    box-shadow: 0 4px 16px rgba(37,211,102,.4); }
  50%     { transform: translateY(-4px) scale(1.04); box-shadow: 0 10px 28px rgba(37,211,102,.55); }
}

/* Ambient background orb */
@keyframes _orbDrift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(30px,-20px) scale(1.08); }
  66%  { transform: translate(-20px,15px) scale(.96); }
  100% { transform: translate(0,0) scale(1); }
}

/* Shimmer scan (skeleton) */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Apply page enter ── */
body    { animation: _pageEnter .3s ease both; }
.navbar { animation: _navDrop .5s cubic-bezier(.22,1,.36,1) both; }

/* ── Hero sequence ── */
.hero__eyebrow  { animation: _heroEyebrow .5s .05s cubic-bezier(.22,1,.36,1) both; }
.hero__title    { animation: _heroTitle   .72s .12s cubic-bezier(.22,1,.36,1) both; }
.hero__desc     { animation: _heroSub     .6s  .22s cubic-bezier(.22,1,.36,1) both; }
.hero__actions  { animation: _heroSub     .6s  .3s  cubic-bezier(.22,1,.36,1) both; }
.hero__stats    { animation: _heroSub     .6s  .38s cubic-bezier(.22,1,.36,1) both; }
.hero__pillars  { animation: _heroSub     .6s  .38s cubic-bezier(.22,1,.36,1) both; }
.hero__img-wrap { animation: _heroImg     .75s .15s cubic-bezier(.22,1,.36,1) both; }

/* Stat numbers glow after hero loads */
.hero__stat strong { animation: _statGlow 3.2s 1.2s ease-in-out infinite; }

/* ── Auth ── */
.auth-box         { animation: _authBox   .6s .08s cubic-bezier(.22,1,.36,1) both; }
.auth-page__panel { animation: _authPanel .65s .18s cubic-bezier(.22,1,.36,1) both; }

/* ── WhatsApp float ── */
.whatsapp-float       { animation: _waFloat 3.5s ease-in-out infinite; }
.whatsapp-float:hover { animation: none; transform: scale(1.08); box-shadow: 0 12px 32px rgba(37,211,102,.6); }

/* ---- Google Sign-In button ---- */
/* El botón vive en un iframe de Google — usamos overflow:hidden en el wrapper
   para aplicar el border-radius sin tocar el iframe directamente             */
#google-login-btn,
#google-register-btn {
  width: 100% !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  min-height: 44px !important;
  display: block !important;
}
#google-login-btn > div,
#google-register-btn > div {
  width: 100% !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
}
#google-login-btn > div > div,
#google-register-btn > div > div {
  width: 100% !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
}
#google-login-btn iframe,
#google-register-btn iframe {
  width: 100% !important;
  min-width: 100% !important;
  border-radius: var(--radius) !important;
  height: 44px !important;
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-muted { color: var(--fg-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.font-serif { font-family: var(--font-serif); }
.font-bold { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.mr-2 { margin-right: .5rem; } .ml-2 { margin-left: .5rem; }
.p-4 { padding: 1rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.separator { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.skeleton { background: linear-gradient(90deg, var(--bg-muted) 25%, var(--border) 50%, var(--bg-muted) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--fg-muted); font-size: .82rem; margin: 1rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.sticky-top { position: sticky; top: calc(var(--navbar-h) + 1rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-muted); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-light); }

/* ════════════════════════════════════════════════
   RESPONSIVE MÓVIL
   ════════════════════════════════════════════════ */

/* ── Móvil pequeño < 360px ── */
@media (max-width: 359px) {
  :root { --navbar-h: 56px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .container { padding: 0 .75rem; }
  .btn { padding: .6rem 1rem; font-size: .85rem; }
  .auth-box { padding: 1.5rem 1rem; }
  .product-card__body { padding: .7rem; }
  .product-card__name { font-size: .82rem; }
  .product-card__price { font-size: .95rem; }
}

/* ── < 480px — todos los móviles ── */
@media (max-width: 479px) {
  .section { padding: 2.5rem 0; }
  .section--lg { padding: 3rem 0; }
  .section__header { margin-bottom: 1.5rem; }
  .hero { padding: 2rem 0 1.75rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 1rem; }
  .hero__badge { display: none; } /* ocultar en móvil — no cabe bien */
  .products-grid { grid-template-columns: repeat(2,1fr); gap: .75rem; }
  .services-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .search-wrap { min-width: unset; }
  .map-iframe { height: 240px; }
  .auth-box { padding: 1.75rem 1.1rem; }
  /* Nombre/Apellido en 1 col */
  #registerForm [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .footer { padding: 2.5rem 0 0; }
  .whatsapp-float { width: 46px; height: 46px; font-size: 1.35rem; right: 1rem; }
  .table-wrap { font-size: .78rem; }
  thead th, tbody td { padding: .5rem .65rem; }
}

/* ── 480–767px — móvil mediano / tablet pequeña ── */
@media (min-width: 480px) and (max-width: 767px) {
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .footer__grid  { grid-template-columns: repeat(2,1fr); }
}

/* ── 768–1023px — tablet ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .products-grid { grid-template-columns: repeat(3,1fr); }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .footer__grid  { grid-template-columns: repeat(2,1fr); }
  .auth-box { max-width: 420px; }
}

/* ════════════════════════════════════════════════════
   SISTEMA data-anim — scroll-driven entry animations
   Valores: up | down | left | right | scale | fade | pop | flip | blur
   ════════════════════════════════════════════════════ */
[data-anim] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity   0.7s cubic-bezier(.22,1,.36,1),
    transform 0.7s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--anim-d, 0s);
}
[data-anim="up"]    { transform: translateY(44px); }
[data-anim="down"]  { transform: translateY(-32px); }
[data-anim="left"]  { transform: translateX(44px); }
[data-anim="right"] { transform: translateX(-44px); }
[data-anim="scale"] { transform: scale(0.86); }
[data-anim="fade"]  { transform: none; }
[data-anim="pop"]   { transform: scale(0.80) translateY(12px); }
[data-anim="flip"]  { transform: rotateX(18deg) translateY(28px); transform-origin: top center; }
[data-anim="blur"]  { transform: none; }
[data-anim="rise"]  { transform: translateY(64px) scale(.97); }

[data-anim].is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger children inside a [data-stagger] parent */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity   .6s cubic-bezier(.22,1,.36,1),
    transform .6s cubic-bezier(.22,1,.36,1);
}
[data-stagger].is-visible > * { opacity:1; transform:none; }
