/* =========================================================
   SIR DOG — Design System
   Tienda online de ropa y accesorios para mascotas (Iquique)
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; }
img, picture, video { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --purple-900: #241040;
  --purple-800: #33175c;
  --purple-700: #45208a;
  --purple-600: #5c2fae;
  --purple-500: #7b4cc7;
  --purple-400: #a077d9;
  --purple-200: #d9c9f2;
  --purple-100: #ede3fa;
  --purple-50:  #f8f4fd;

  --gold-600: #e8a800;
  --gold-500: #ffc700;
  --gold-300: #ffdb4d;
  --gold-100: #fff6d9;

  --ink: #1b1523;
  --ink-soft: #4a4157;
  --cream: #fffaf3;
  --white: #ffffff;

  --success: #2f9e5b;
  --danger: #d8433d;
  --warning: #d9a441;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(36, 16, 64, 0.08);
  --shadow-md: 0 8px 24px rgba(36, 16, 64, 0.14);
  --shadow-lg: 0 20px 48px rgba(36, 16, 64, 0.22);
  --shadow-gold: 0 10px 30px rgba(177, 135, 63, 0.35);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1240px;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--purple-900);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-tight { padding: clamp(1.75rem, 4vw, 3rem) 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}
.section-head .eyebrow { justify-content: center; }
.section-head p { margin-top: .6rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold-500);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-800));
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--purple-900);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); }

.btn-outline {
  background: transparent;
  border-color: var(--purple-600);
  color: var(--purple-700);
}
.btn-outline:hover { background: var(--purple-600); color: var(--white); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }

.btn-block { width: 100%; }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple-50); color: var(--purple-700);
  transition: all .25s var(--ease);
}
.btn-icon:hover { background: var(--purple-600); color: var(--white); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36,16,64,.06);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,250,243,.98); }

.topbar {
  background: var(--purple-900);
  color: var(--purple-100);
  font-size: .8rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-block: .45rem; gap: 1rem; }
.topbar a { display: inline-flex; align-items: center; gap: .35rem; opacity: .9; transition: opacity .2s; }
.topbar a:hover { opacity: 1; color: var(--gold-300); }
.topbar .topbar-links { display: flex; gap: 1.1rem; }
.topbar-marquee { display: flex; align-items: center; gap: .4rem; font-weight: 500; }

.navbar { display: flex; align-items: center; justify-content: space-between; padding-block: .8rem; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { height: 48px; width: auto; filter: drop-shadow(0 2px 6px rgba(36,16,64,.25)); transition: transform .3s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--purple-900); }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  position: relative; font-weight: 600; font-size: .93rem; color: var(--ink);
  padding-block: .3rem;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--gold-500); transition: right .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--purple-700); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: .6rem; }

.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 4px;
  border-radius: 999px; background: var(--gold-500); color: var(--purple-900); font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--white);
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-badge.show { transform: scale(1); }
.cart-badge.bump { animation: bump .4s var(--ease); }

.icon-wrap { position: relative; display: inline-flex; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 30px; background: none; border: none;
  position: relative; z-index: 160;
}
.nav-toggle span { width: 100%; height: 2.5px; background: var(--purple-900); border-radius: 2px; transition: all .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 18% 20%, var(--purple-600), var(--purple-900) 65%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06);
  z-index: -1;
}
.hero::before { width: 420px; height: 420px; top: -120px; right: -80px; animation: float 9s ease-in-out infinite; }
.hero::after { width: 260px; height: 260px; bottom: -100px; left: 10%; animation: float 11s ease-in-out infinite reverse; }

.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2.5rem;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero p.lead { color: var(--purple-100); font-size: 1.08rem; max-width: 46ch; margin-block: 1.1rem 1.8rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 1.6rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--purple-100); }
.hero-badge .btn-icon { background: rgba(255,255,255,.12); color: var(--gold-300); pointer-events: none; }

.hero-art {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 0 3.5rem 2.5rem;
}
.hero-art .halo {
  position: absolute; inset: 0; margin: auto; width: 92%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(240,188,46,.28), transparent 70%);
  filter: blur(10px); animation: pulse 4s ease-in-out infinite;
}
.hero-photo-main {
  position: relative; width: 100%; max-width: 340px; aspect-ratio: 4/4.35;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 4px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  animation: floatSlow 6s ease-in-out infinite;
}
.hero-photo-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-accent {
  position: absolute; left: -1.8rem; bottom: -1.6rem; width: 44%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; z-index: 2;
  border: 5px solid var(--cream); box-shadow: var(--shadow-lg);
  animation: floatSlow 7.5s ease-in-out infinite reverse;
}
.hero-photo-accent img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-ring {
  position: absolute; top: -1.2rem; right: -0.6rem; width: 74px; height: 74px;
  border: 2px dashed rgba(240,188,46,.6); border-radius: 50%; z-index: 1;
  animation: pulse 3.5s ease-in-out infinite;
}
.hero-bubbles span {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,.5);
  animation: bubbleUp linear infinite;
}

/* ---------- Marquee de beneficios ---------- */
.perks-strip { background: var(--purple-800); color: var(--purple-50); overflow: hidden; }
.perks-track { display: flex; gap: 3.5rem; padding-block: .7rem; white-space: nowrap; animation: marquee 22s linear infinite; width: max-content; }
.perks-track span { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 500; }
.perks-strip:hover .perks-track { animation-play-state: paused; }

/* ---------- Categorías ---------- */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.category-card {
  background: var(--white); border-radius: var(--radius-md); padding: 1.6rem 1rem; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: .7rem; border: 1px solid rgba(36,16,64,.05);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.category-card .cat-icon {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--purple-100); color: var(--purple-700); transition: all .3s var(--ease);
}
.category-card:hover .cat-icon { background: var(--purple-600); color: var(--white); transform: rotate(-8deg) scale(1.08); }
.category-card span { font-weight: 600; font-size: .9rem; color: var(--purple-900); }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; max-width: 780px; margin-inline: auto; }
.service-card {
  background: var(--white); border-radius: var(--radius-md); padding: 2rem 1.6rem; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(36,16,64,.05);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--purple-100); color: var(--purple-700); margin-bottom: .4rem; transition: all .3s var(--ease);
}
.service-card:hover .service-icon { background: var(--purple-600); color: var(--white); transform: rotate(-8deg) scale(1.08); }
.service-card h3 { font-size: 1.1rem; }
.service-card p { font-size: .88rem; }
.service-price { font-size: .82rem; color: var(--ink-soft); margin: .3rem 0 .8rem; }
.service-price strong { color: var(--purple-800); font-size: 1.1rem; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }

.product-card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(36,16,64,.05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.product-thumb { position: relative; aspect-ratio: 1/1; background: var(--purple-50); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-thumb img { transform: scale(1.08); }
.product-thumb .placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--purple-300, var(--purple-400)); }

.product-badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; gap: .4rem; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 700;
  padding: .3rem .6rem; border-radius: var(--radius-pill); letter-spacing: .03em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.badge-new { background: var(--purple-700); color: #fff; }
.badge-sale { background: var(--danger); color: #fff; }
.badge-gift { background: var(--gold-500); color: var(--purple-900); animation: pulse 2.4s ease-in-out infinite; }
.badge-out { background: var(--ink-soft); color: #fff; }

.product-quick {
  position: absolute; right: .7rem; bottom: .7rem; z-index: 2;
  transform: translateY(12px); opacity: 0; transition: all .3s var(--ease);
}
.product-card:hover .product-quick { transform: translateY(0); opacity: 1; }

.product-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-600); font-weight: 600; }
.product-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--purple-900); font-weight: 700; }
.product-name a::after { content: ''; position: absolute; inset: 0; }
.product-price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .6rem; }
.price { font-weight: 700; color: var(--purple-800); font-size: 1.05rem; }
.price-compare { text-decoration: line-through; color: var(--ink-soft); font-size: .82rem; margin-right: .4rem; font-weight: 400; }

/* ---------- Promo banda regalo ---------- */
.gift-banner {
  background: linear-gradient(120deg, var(--gold-500), var(--gold-600));
  color: var(--purple-900); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem);
  display: flex; align-items: center; gap: 1.8rem; box-shadow: var(--shadow-gold);
  position: relative; overflow: hidden;
}
.gift-banner .paw-decor { position: absolute; opacity: .15; font-size: 8rem; right: -1rem; top: -2rem; transform: rotate(15deg); color: var(--purple-900); }
.gift-banner .gift-icon {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(36,16,64,.14);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--purple-900); animation: wiggle 3.4s ease-in-out infinite;
}
.gift-banner h3 { color: var(--purple-900); margin-bottom: .3rem; }
.gift-banner p { color: rgba(36,16,64,.8); margin: 0; }

/* ---------- Testimonios / trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.trust-card { background: var(--white); border-radius: var(--radius-md); padding: 1.8rem; box-shadow: var(--shadow-sm); text-align: center; }
.trust-card .btn-icon { margin-inline: auto; margin-bottom: .8rem; pointer-events: none; width: 54px; height: 54px; }
.stars { color: var(--gold-500); letter-spacing: .15em; margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-900); color: var(--purple-100); position: relative; overflow: hidden; }
.site-footer::before {
  content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(205,161,90,.12), transparent 60%);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: 3.5rem 2rem; position: relative; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.footer-brand img { height: 44px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a, .footer-col p { color: var(--purple-200); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-300); }
.social-row { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: all .25s var(--ease);
}
.social-row a:hover { background: var(--gold-500); color: var(--purple-900); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.3rem; font-size: .82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; color: var(--purple-200); position: relative;
}
.payment-icons { display: flex; gap: .5rem; align-items: center; }
.payment-icons span { background: rgba(255,255,255,.1); padding: .3rem .6rem; border-radius: 6px; font-size: .72rem; font-weight: 600; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  animation: pulseRing 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }

.back-top {
  position: fixed; right: 1.4rem; bottom: 5.6rem; z-index: 199;
  width: 46px; height: 46px; border-radius: 50%; background: var(--purple-800); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s var(--ease);
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; top: 1.2rem; right: 1.2rem; z-index: 300; display: flex; flex-direction: column; gap: .6rem; }
.toast {
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: .9rem 1.2rem; display: flex; align-items: center; gap: .8rem; min-width: 280px; max-width: 340px;
  border-left: 4px solid var(--purple-600);
  animation: slideInRight .35s var(--ease);
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.toast strong { display: block; font-size: .88rem; color: var(--purple-900); }
.toast p { font-size: .8rem; margin: 0; }
.toast.hide { animation: slideOutRight .3s var(--ease) forwards; }

/* ---------- Cart drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(27,21,35,.5); z-index: 250; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease); backdrop-filter: blur(2px);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--cream); z-index: 260;
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--purple-100); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.cart-drawer-foot { padding: 1.2rem 1.4rem 1.5rem; border-top: 1px solid var(--purple-100); background: var(--white); }

.cart-line { display: flex; gap: .9rem; padding-block: 1rem; border-bottom: 1px solid var(--purple-100); }
.cart-line img { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; background: var(--purple-50); }
.cart-line-info { flex: 1; }
.cart-line-info strong { font-size: .9rem; color: var(--purple-900); display: block; }
.cart-line-info small { color: var(--ink-soft); font-size: .78rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--purple-200); border-radius: var(--radius-pill); margin-top: .5rem; }
.qty-stepper button { width: 26px; height: 26px; background: none; border: none; font-weight: 700; color: var(--purple-700); }
.qty-stepper span { min-width: 22px; text-align: center; font-size: .85rem; font-weight: 600; }
.cart-line-remove { color: var(--danger); font-size: .75rem; font-weight: 600; margin-top: .4rem; display: inline-block; }

.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.cart-empty svg { color: var(--purple-200); margin-bottom: 1rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--purple-900); margin-bottom: .4rem; }
.field .hint { font-size: .76rem; color: var(--ink-soft); margin-top: .3rem; display: block; }
.field .error-msg { font-size: .76rem; color: var(--danger); margin-top: .3rem; display: block; font-weight: 600; }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], textarea, select {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--purple-200); border-radius: var(--radius-sm);
  background: var(--white); transition: border-color .2s, box-shadow .2s; font-size: .92rem;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--purple-600); box-shadow: 0 0 0 4px var(--purple-100);
}
textarea { resize: vertical; min-height: 110px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.radio-card {
  display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1.1rem; border: 1.5px solid var(--purple-200);
  border-radius: var(--radius-md); cursor: pointer; transition: all .25s var(--ease); margin-bottom: .9rem;
}
.radio-card:hover { border-color: var(--purple-400); }
.radio-card.selected { border-color: var(--purple-600); background: var(--purple-50); box-shadow: 0 0 0 4px var(--purple-100); }
.radio-card input { margin-top: .2rem; accent-color: var(--purple-600); }
.radio-card strong { display: block; font-size: .92rem; color: var(--purple-900); }
.radio-card small { color: var(--ink-soft); font-size: .8rem; }

/* ---------- Cards genéricas / breadcrumb / paginación ---------- */
.card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.6rem; }
.breadcrumb { font-size: .82rem; color: var(--ink-soft); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--purple-700); }

.page-banner { background: var(--purple-900); color: #fff; padding: 3rem 0 2.2rem; position: relative; overflow: hidden; }
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; margin-bottom: .5rem; }
.page-banner p { color: var(--purple-200); }

.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.pagination a, .pagination span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 600; font-size: .88rem; border: 1.5px solid var(--purple-200); color: var(--purple-800);
  transition: all .2s;
}
.pagination a:hover { background: var(--purple-100); }
.pagination .current { background: var(--purple-700); color: #fff; border-color: var(--purple-700); }

/* ---------- Utilities / animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

.text-center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-1{gap:.5rem} .gap-2{gap:1rem}

.alert { padding: 1rem 1.2rem; border-radius: var(--radius-md); font-size: .88rem; margin-bottom: 1.2rem; font-weight: 500; }
.alert-success { background: #e7f7ee; color: #1e7a45; border: 1px solid #b9e6cc; }
.alert-error { background: #fdecea; color: #a8322c; border: 1px solid #f3bdb8; }
.alert-info { background: var(--purple-50); color: var(--purple-800); border: 1px solid var(--purple-200); }

.skeleton { background: linear-gradient(90deg, var(--purple-50) 25%, var(--purple-100) 37%, var(--purple-50) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }

/* ---------- Keyframes ---------- */
@keyframes float { 0%,100%{transform:translateY(0) translateX(0);} 50%{transform:translateY(-24px) translateX(12px);} }
@keyframes floatSlow { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-16px);} }
@keyframes pulse { 0%,100%{transform:scale(1); opacity:1;} 50%{transform:scale(1.06); opacity:.85;} }
@keyframes pulseRing { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.55);} 70%{box-shadow:0 0 0 14px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }
@keyframes wiggle { 0%,100%{transform:rotate(0deg);} 25%{transform:rotate(-10deg);} 75%{transform:rotate(10deg);} }
@keyframes bump { 0%{transform:scale(1);} 40%{transform:scale(1.5);} 100%{transform:scale(1);} }
@keyframes marquee { from{transform:translateX(0);} to{transform:translateX(-50%);} }
@keyframes bubbleUp { from{transform:translateY(0); opacity:.6;} to{transform:translateY(-140px); opacity:0;} }
@keyframes slideInRight { from{transform:translateX(120%); opacity:0;} to{transform:translateX(0); opacity:1;} }
@keyframes slideOutRight { to{transform:translateX(120%); opacity:0;} }
@keyframes shimmer { 0%{background-position:100% 0;} 100%{background-position:0 0;} }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-ctas, .hero-badges { justify-content: center; }
  .hero-art { order: -1; }
  .topbar .topbar-links { display: none; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 82vw);
    background: var(--white); flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 6rem 2rem 2rem; gap: 1.6rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 150;
  }
  .nav-links.open { transform: translateX(0); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
  .gift-banner { flex-direction: column; text-align: center; }
  .input-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
}

@media (max-width: 520px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .product-body { padding: .8rem .9rem 1rem; }
  .hero-badges { gap: 1rem; }
}

.nav-overlay {
  display: none;
}
@media (max-width: 780px) {
  .nav-overlay.open {
    display: block; position: fixed; inset: 0; background: rgba(27,21,35,.5); z-index: 140;
  }
}
