/* =========================================================
   LA CASA DE LAS RACIONES — estilos
   Paleta y tipografía tomadas del manual de marca (branding/):
   marrón oscuro, marrón terracota, crema y amarillo dorado,
   con títulos condensados y recursos gráficos propios
   (huella con casa, "mordida", insignias con borde).
   ========================================================= */

:root {
  --brown-dark: #42251d;
  --brown: #73401c;
  --cream: #fffab6;
  --cream-soft: #fffdf0;
  --gold: #ffec00;
  --gold-dark: #e0ce00;
  --ink: #2b1810;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebd5a;
  --oferta: #e0402a;
  --oferta-dark: #b8331e;

  --header-h: 76px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(43, 24, 16, 0.12);
  --font-display: "Fredoka", "Nunito", sans-serif;
  --font-body: "Nunito", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-soft);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

section[id] { scroll-margin-top: var(--header-h); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; letter-spacing: -0.005em; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

.eyebrow {
  display: block;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--brown);
  margin-bottom: 8px;
}
.eyebrow.on-dark { color: var(--gold); }

/* ===== Buttons & badges ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(255, 236, 0, 0.35);
}
.btn-primary:hover { background: var(--gold-dark); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--brown);
  color: var(--brown);
}
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

.pill {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.pill-dark { background: var(--brown-dark); color: var(--cream); }

/* outline badge, estilo "Consulta" / "Reservas por DM" del manual */
.badge-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: .85rem;
}

/* insignia de "mordida" circular, como en el manual (15% OFF, etc.) */
.bite-badge {
  --bite: var(--brown-dark);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--bite);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.1;
  flex-shrink: 0;
  mask-image: radial-gradient(circle at 50% 50%, black 46%, transparent 46.2%),
    repeating-conic-gradient(black 0deg 18deg, transparent 18deg 20deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 46%, transparent 46.2%),
    repeating-conic-gradient(black 0deg 18deg, transparent 18deg 20deg);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
.bite-badge-inner {
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: var(--bite);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* ===== Ticker / marquee ===== */
.ticker {
  background: var(--gold);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .01em;
}
.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: ticker 26s linear infinite;
  padding-left: 2.5rem;
}
.ticker span { display: inline-flex; align-items: center; gap: .5em; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ===== Scallop / "mordida" section divider ===== */
.scallop {
  width: 100%;
  height: 22px;
  background-repeat: repeat-x;
  background-size: 32px 44px;
  background-position: top center;
}
.scallop-cream-on-dark {
  background-color: var(--brown-dark);
  background-image: radial-gradient(circle at 16px 0, var(--cream) 15px, transparent 15.5px);
}
.scallop-dark-on-cream {
  background-color: var(--cream);
  background-image: radial-gradient(circle at 16px 0, var(--brown-dark) 15px, transparent 15.5px);
}
.scallop-cream-on-white {
  background-color: var(--cream-soft);
  background-image: radial-gradient(circle at 16px 0, var(--cream) 15px, transparent 15.5px);
}
.scallop-gold-on-cream {
  background-color: var(--cream);
  background-image: radial-gradient(circle at 16px 0, var(--gold) 15px, transparent 15.5px);
}
.scallop-creamsoft-on-cream {
  background-color: var(--cream);
  background-image: radial-gradient(circle at 16px 0, var(--cream-soft) 15px, transparent 15.5px);
}
.scallop-creamsoft-on-white {
  background-color: var(--white);
  background-image: radial-gradient(circle at 16px 0, var(--cream-soft) 15px, transparent 15.5px);
}
.scallop-gold-on-dark {
  background-color: var(--brown-dark);
  background-image: radial-gradient(circle at 16px 0, var(--gold) 15px, transparent 15.5px);
}
.scallop-dark-on-gold {
  background-color: var(--gold);
  background-image: radial-gradient(circle at 16px 0, var(--brown-dark) 15px, transparent 15.5px);
}
.scallop-creamsoft-on-dark {
  background-color: var(--brown-dark);
  background-image: radial-gradient(circle at 16px 0, var(--cream-soft) 15px, transparent 15.5px);
}
.scallop-dark-on-creamsoft {
  background-color: var(--cream-soft);
  background-image: radial-gradient(circle at 16px 0, var(--brown-dark) 15px, transparent 15.5px);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream-soft);
  border-bottom: 1px solid rgba(122, 69, 32, 0.15);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brown-dark);
  flex-shrink: 0;
}
.brand-mark { color: var(--brown-dark); flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  font-size: 1rem;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  font-weight: 700;
  color: var(--brown-dark);
  position: relative;
  padding: 4px 0;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--brown); }
.main-nav a.nav-ofertas {
  color: var(--oferta);
  text-transform: uppercase;
  font-weight: 800;
}
.main-nav a.nav-ofertas:hover { color: var(--oferta-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--brown-dark);
  cursor: pointer;
}
.icon-btn:hover { background: rgba(122, 69, 32, 0.1); }
.whatsapp-link { color: var(--whatsapp-dark); }
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--gold);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  background: var(--brown-dark);
  color: var(--cream-soft);
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 32px;
  padding: 60px 20px 48px;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  color: var(--cream-soft);
}
.hero .accent { color: var(--gold); }
.hero-text p {
  font-size: 1.1rem;
  max-width: 46ch;
  color: rgba(255, 253, 240, 0.85);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-art {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-bowl {
  width: min(380px, 85%);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.35));
}

/* ===== Generic section heads ===== */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.section-head h2 { font-size: 2rem; color: var(--brown-dark); }
.section-head.on-dark h2 { color: var(--cream-soft); }
.section-head.on-dark p { color: rgba(255,253,240,.8); }

/* ===== Nosotros ===== */
.nosotros { padding: 72px 0; background: var(--cream-soft); }
.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.nosotros-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}
.nosotros h2 { color: var(--brown-dark); font-size: 2rem; }
.nosotros-facts {
  display: flex;
  gap: 22px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.nosotros-fact { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brown-dark); }
.nosotros-fact img { width: 28px; height: 28px; color: var(--brown); }

/* ===== Servicios ===== */
.servicios { padding: 72px 0; background: var(--brown-dark); }

/* Categorías del catálogo, como tiles grandes de color */
.categorias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}
.categoria-tile {
  border-radius: var(--radius);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.categoria-tile:hover { transform: translateY(-5px) rotate(-0.5deg); box-shadow: 0 16px 34px rgba(43,24,16,.18); }
.categoria-icon { font-size: 2.6rem; margin-bottom: 8px; line-height: 1; }
.categoria-tile h3 { margin: 0; font-size: 1.2rem; font-family: var(--font-display); }
.categoria-tile p { margin: 0; font-size: .85rem; }
.tile-gold { background: var(--gold); color: var(--ink); }
.tile-gold p { color: rgba(43,24,16,.75); }
.tile-cream { background: var(--cream-soft); color: var(--brown-dark); }
.tile-cream p { color: #6b5a4e; }
.tile-white { background: var(--white); color: var(--brown-dark); }
.tile-white p { color: #6b5a4e; }
.tile-dark { background: var(--brown); color: var(--cream-soft); }
.tile-dark p { color: rgba(255,253,240,.8); }
.tile-oferta { background: var(--oferta); color: var(--white); }
.tile-oferta p { color: rgba(255,255,255,.85); }

/* Servicios adicionales, como tarjetas horizontales */
.servicios-extra {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
.servicio-feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.servicio-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.servicio-feature h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--brown-dark); }
.servicio-feature p { font-size: .88rem; color: #6b5a4e; margin: 0 0 8px; }
.servicio-feature a { font-weight: 800; font-size: .85rem; color: var(--brown); }
.servicio-feature a:hover { text-decoration: underline; }

/* ===== Marcas ===== */
.marcas { padding: 56px 0; background: var(--cream-soft); text-align: center; }
.marcas h2 { color: var(--brown-dark); font-size: 1.6rem; margin-bottom: 8px; }
.marcas-sub { color: #6b5a4e; margin-bottom: 28px; }
.marcas-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.marca-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: 150px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
}
.marca-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===== Balanceada / por qué elegirnos ===== */
.balanceada {
  padding: 80px 0 90px;
  background: var(--brown-dark);
  color: var(--cream-soft);
  position: relative;
  overflow: hidden;
}
.balanceada-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.balanceada h2 { color: var(--cream-soft); font-size: 2.1rem; }
.balanceada p { color: rgba(255,253,240,.82); max-width: 44ch; }
.nutrient-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-content: center;
}
.nutrient-tag {
  background: var(--cream);
  color: var(--brown-dark);
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .92rem;
}
.nutrient-tag.gold { background: var(--gold); }
.spin-badge {
  position: absolute;
  width: 150px;
  height: 150px;
  right: 6%;
  top: 14px;
  opacity: .9;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin-badge { animation: none; } }

/* ===== Alianza veterinaria ===== */
.alianza { padding: 64px 0; background: var(--gold); }
.alianza-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.alianza-logos {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.alianza-logo {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.alianza-logo img { width: 100%; height: 100%; object-fit: cover; }
.alianza h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 4px; }
.alianza p { margin: 0; color: var(--ink); font-weight: 600; }
.alianza-cta {
  flex-shrink: 0;
  background: var(--brown-dark);
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(66, 37, 29, 0.35);
}
.alianza-cta:hover { background: var(--brown); }

/* ===== Destacados (portada) ===== */
.destacados { padding: 72px 0; background: var(--cream-soft); }
.destacados-foot { text-align: center; margin-top: 40px; }

/* ===== Catálogo (tienda.html) ===== */
.catalogo { padding: 56px 0 80px; background: var(--cream-soft); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(43, 24, 16, 0.16);
}
.product-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.product-img {
  height: 200px;
  padding: 10px;
  border-radius: 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}
.product-card h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--brown-dark);
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  color: var(--brown);
  font-weight: 700;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 700;
}
.product-desc {
  font-size: .88rem;
  color: #6b5a4e;
  margin: 0;
  flex: 1;
}
.add-btn {
  display: inline-flex;
  align-items: center;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .88rem;
  white-space: nowrap;
  transition: background .15s ease;
}
.product-card:hover .add-btn { background: var(--gold-dark); }
.out-of-stock {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--brown-dark);
  color: var(--cream);
  font-size: .7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.oferta-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--oferta);
  color: var(--white);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 1;
}
.price-old {
  font-size: .8rem;
  font-weight: 700;
  color: #a0917f;
  text-decoration: line-through;
  margin-left: 4px;
}

/* ===== Zonas de envío ===== */
.zonas { background: var(--cream); padding: 64px 0; }
.zonas-inner { max-width: 720px; margin: 0 auto; text-align: left; }
.zonas h2 { color: var(--brown-dark); font-size: 2rem; }
.zone-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.zone-list li {
  font-weight: 700;
  color: var(--brown-dark);
  border-bottom: 1px dashed rgba(122, 69, 32, 0.3);
  padding-bottom: 8px;
}
.zone-note { font-style: italic; color: var(--brown); }

/* ===== Contacto ===== */
.contacto {
  background: var(--brown-dark);
  color: var(--cream-soft);
  padding: 64px 0;
  text-align: center;
}
.contacto h2 { color: var(--cream-soft); font-size: 2rem; }
.contacto p { color: rgba(255, 253, 240, 0.85); }
.balanceada-tagline {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--gold);
  font-weight: 600;
  margin: 4px 0 20px;
}
.contacto-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.contacto .btn-outline { border-color: var(--cream); color: var(--cream); }
.contacto .btn-outline:hover { background: var(--cream); color: var(--brown-dark); }
.contacto-address {
  margin-top: 28px;
  font-size: .9rem;
  color: rgba(255,253,240,.7);
}
.map-embed {
  margin: 24px auto 0;
  max-width: 720px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  line-height: 0;
}
.map-embed iframe { display: block; width: 100%; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 24px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .9rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 700; }
.footer-credit {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-credit a { color: rgba(255,255,255,.75); font-weight: 700; }
.footer-credit a:hover { color: var(--gold); }

/* ===== Carrito lateral ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 24, 16, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 200;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 92vw);
  background: var(--cream-soft);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,.2);
}
.cart-panel.open { transform: translateX(0); }

.cart-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(122, 69, 32, 0.15);
}
.cart-panel-head h3 { margin: 0; color: var(--brown-dark); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.cart-empty { color: #8a776a; text-align: center; margin-top: 40px; }

.cart-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(122, 69, 32, 0.12);
}
.cart-item-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.cart-item-name { font-weight: 700; color: var(--brown-dark); font-size: .92rem; }
.cart-item-price { font-size: .82rem; color: var(--brown); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--brown);
  background: transparent;
  color: var(--brown);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}
.qty-btn:hover { background: var(--brown); color: var(--white); }
.remove-btn {
  grid-column: 3;
  justify-self: end;
  border: none;
  background: none;
  color: #b34a3a;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-panel-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(122, 69, 32, 0.15);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 14px;
}
.cart-hint {
  font-size: .78rem;
  color: #8a776a;
  text-align: center;
  margin: 10px 0 0;
}

/* ===== Detalle de producto (producto.html) ===== */
.product-detail { padding: 56px 0 80px; }
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.pd-gallery {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}
.pd-gallery img { width: 100%; height: 100%; object-fit: contain; padding: 20px; box-sizing: border-box; }
.pd-oferta-badge { position: static; display: inline-block; margin-left: 10px; vertical-align: middle; }
.pd-marca {
  display: inline-block;
  font-weight: 800;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .85rem;
  margin-bottom: 6px;
}
.pd-info h1 { color: var(--brown-dark); font-size: 2rem; margin-bottom: 6px; }
.pd-price { font-family: var(--font-display); font-size: 1.8rem; color: var(--ink); margin: 10px 0 20px; }
.pd-price .pd-price-old { font-size: 1.1rem; color: #a0917f; text-decoration: line-through; margin-left: 10px; }
.pd-block { margin-bottom: 22px; }
.pd-block h4 {
  font-family: var(--font-display);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brown-dark);
  margin: 0 0 10px;
}
.pd-sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-sizes button {
  border: 2px solid var(--brown);
  background: var(--white);
  color: var(--brown-dark);
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.pd-sizes button.is-active { background: var(--brown); color: var(--white); }
.pd-sizes button:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.pd-qty { display: flex; align-items: center; gap: 14px; }
.pd-qty .qty-btn { width: 36px; height: 36px; font-size: 1.1rem; }
.pd-qty span { font-weight: 800; font-size: 1.1rem; min-width: 20px; text-align: center; }
.pd-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.pd-back { display: inline-block; margin-top: 20px; font-weight: 700; color: var(--brown); }
.pd-back:hover { text-decoration: underline; }
.related { padding: 0 0 80px; }

/* ===== Page banner (tienda.html) ===== */
.page-banner {
  background: var(--brown-dark);
  color: var(--cream-soft);
  padding: 48px 0 40px;
  text-align: center;
}
.page-banner h1 { color: var(--cream-soft); font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 10px; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: .82rem;
  color: rgba(255,253,240,.7);
}
.breadcrumb a:hover { color: var(--gold); }

/* ===== Shop layout (tienda.html) ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}
.shop-filter-toggle { display: none; }
.shop-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.shop-filter-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.filter-block { border-bottom: 1px solid rgba(122,69,32,.15); padding-bottom: 18px; margin-bottom: 18px; }
.filter-block:last-of-type { border-bottom: none; margin-bottom: 8px; padding-bottom: 0; }
.filter-block h4 {
  font-family: var(--font-display);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brown-dark);
  margin: 0 0 12px;
}
.filter-block label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: 10px;
  cursor: pointer;
}
.filter-block input[type="radio"] { accent-color: var(--brown); width: 16px; height: 16px; }
.filter-block label.label-ofertas { color: var(--oferta); font-weight: 800; }
.filter-block label.label-ofertas input { accent-color: var(--oferta); }
.filter-block input[type="range"] { accent-color: var(--brown); }

.filter-marca summary {
  font-family: var(--font-display);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brown-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}
.filter-marca summary::-webkit-details-marker { display: none; }
.filter-marca summary::after {
  content: "▾";
  font-size: .8rem;
  transition: transform .15s ease;
}
.filter-marca[open] summary::after { transform: rotate(180deg); }
.filter-marca #filterMarca { margin-top: 12px; max-height: 240px; overflow-y: auto; }
.price-range { display: flex; justify-content: space-between; font-size: .8rem; color: var(--brown); margin-top: 6px; font-weight: 700; }

.shop-main { min-width: 0; }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.result-count { font-size: .9rem; color: var(--brown); font-weight: 700; }
.search-input {
  border: 2px solid var(--brown);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .88rem;
  background: var(--white);
  color: var(--brown-dark);
  font-family: var(--font-body);
  flex: 1;
  min-width: 160px;
  max-width: 280px;
}
.sort-select {
  border: 2px solid var(--brown);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .88rem;
  background: var(--white);
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-weight: 700;
}
.empty-state {
  text-align: center;
  color: #8a776a;
  padding: 60px 0;
  font-size: 1rem;
}

/* ===== Botones flotantes (WhatsApp / Instagram) ===== */
.floating-social {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-social a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(43, 24, 16, 0.3);
  transition: transform .15s ease;
}
.floating-social a:hover { transform: scale(1.08); }
.floating-social .fs-whatsapp { background: var(--whatsapp); }
.floating-social .fs-instagram {
  background: radial-gradient(circle at 30% 110%, #ffdb73 0%, #fdad4e 12%, #ff7847 26%, #e6404d 42%, #d92e7f 60%, #9a3cb8 78%, #5e5fd0 100%);
}
.floating-social .fs-facebook { background: #1877f2; }
.floating-social .fs-maps { background: #ea4335; }

/* ===== Animaciones ===== */
.hero-text {
  animation: fadeInUp .7s ease both;
}
.hero-art {
  animation: fadeInUp .8s ease .15s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.reveal { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.reveal:not(.is-visible) { transform: translateY(18px); }
.reveal.is-visible { opacity: 1; }

/* Efecto escalonado para tarjetas dentro de una misma grilla */
.categorias-grid .reveal:nth-child(2),
.servicios-extra .reveal:nth-child(2),
.product-grid .reveal:nth-child(2),
.marcas-row .reveal:nth-child(2) { transition-delay: .05s; }
.categorias-grid .reveal:nth-child(3),
.servicios-extra .reveal:nth-child(3),
.product-grid .reveal:nth-child(3),
.marcas-row .reveal:nth-child(3) { transition-delay: .1s; }
.categorias-grid .reveal:nth-child(4),
.product-grid .reveal:nth-child(4),
.marcas-row .reveal:nth-child(4) { transition-delay: .15s; }
.product-grid .reveal:nth-child(n+5) { transition-delay: .2s; }

.cart-count.bump { animation: bump .35s ease; }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text, .hero-art { animation: none; }
  .reveal, .reveal:not(.is-visible) { opacity: 1; transform: none; transition: none; }
  .cart-count.bump { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 48px 20px; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .nosotros-inner { grid-template-columns: 1fr; text-align: center; }
  .nosotros-facts { justify-content: center; }
  .categorias-grid { grid-template-columns: repeat(2, 1fr); }
  .servicios-extra { grid-template-columns: 1fr; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-sizes { justify-content: center; }
  .pd-actions { justify-content: center; }
  .balanceada-inner { grid-template-columns: 1fr; text-align: center; }
  .balanceada p { margin-left: auto; margin-right: auto; }
  .nutrient-tags { justify-content: center; }
  .spin-badge { position: static; display: block; margin: 0 auto 18px; }
  .alianza-inner { grid-template-columns: 1fr; text-align: center; }
  .alianza-logos { justify-content: center; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream-soft);
    flex-direction: column;
    padding: 16px 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(122, 69, 32, 0.15);
    display: none;
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .zone-list { grid-template-columns: 1fr; }
  .alianza-inner { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card { padding: 14px; gap: 8px; }
  .product-img { height: 150px; padding: 8px; font-size: 2.2rem; }
  .product-card h3 { font-size: .92rem; }
  .product-meta { flex-wrap: wrap; gap: 4px; font-size: .82rem; }
  .product-price { font-size: 1.05rem; }
  .product-desc { font-size: .8rem; }
  .add-btn { padding: 8px 12px; font-size: .8rem; }
  .shop-filter-toggle { display: flex; margin-bottom: 16px; }
  .shop-sidebar { position: static; }
  .shop-filter-panel { display: none; }
  .shop-filter-panel.is-open { display: block; margin-bottom: 8px; }
  .floating-social { right: 14px; bottom: 14px; }
  .floating-social a { width: 48px; height: 48px; }
}
