:root {
  --verde: #1e3a28;
  --verde-medio: #2d5a3f;
  --verde-hover: #162a1d;
  --verde-claro: #e8f0e9;
  --verde-banda: #e9efe2;
  --dorado: #d3b273;
  --dorado-claro: #e7d3a4;
  --crema: #f8f5ee;
  --crema-hero: #faf7f0;
  --crema-oscuro: #f1ece0;
  --rojo: #d64848;
  --rojo-claro: #fff0ef;
  --tinta: #243129;
  --muted: #7c837c;
  --linea: #e7e4da;
  --blanco: #ffffff;
  --sombra: 0 14px 36px rgba(31, 58, 41, .08);
  --sombra-hover: 0 18px 42px rgba(31, 58, 41, .16);
  --radius: 14px;
  --radius-small: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
body.modal-abierto { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(214, 72, 72, .35); outline-offset: 3px; }
svg { display: block; width: 1.25em; height: 1.25em; }
.contenedor { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--verde-medio); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 22px; height: 1px; background: var(--rojo); }
.titulo-script { margin: 0; color: var(--verde); font-family: 'Dancing Script', cursive; font-size: clamp(32px, 3.6vw, 44px); font-weight: 600; line-height: 1; letter-spacing: -.01em; }

/* ---------- Header ---------- */
.topbar { position: relative; overflow: hidden; background: var(--verde); color: rgba(255, 255, 255, .92); font-size: 12px; }
.topbar-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.sprig { position: absolute; width: 270px; height: auto; color: var(--dorado); opacity: .6; pointer-events: none; }
.sprig-izq { top: -30px; left: -46px; }
.sprig-der { top: -30px; right: -46px; transform: scaleX(-1); }
.marca { display: inline-flex; align-items: center; gap: 16px; color: inherit; }
.marca-icono { display: grid; place-items: center; width: 92px; height: 92px; flex: 0 0 auto; border-radius: 50%; }
.marca-icono img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
/* Logo del encabezado y del pie en relieve, como una medalla: sombra que lo levanta del verde,
   aro dorado y un biselado fino solo en el canto (nada encima del texto: un brillo sobre el logo
   no dejaba leer "Raíces & Aromas"). Los logos de los productos sin foto no usan esta clase. */
.marca .marca-icono { position: relative; box-shadow: 0 0 0 2px rgba(222, 190, 120, .65), 0 8px 18px rgba(0, 0, 0, .38), 0 3px 6px rgba(0, 0, 0, .28); transition: transform .25s ease, box-shadow .25s ease; }
.marca .marca-icono::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .35), inset 0 -3px 4px rgba(0, 0, 0, .35); }
.marca:hover .marca-icono { transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(222, 190, 120, .8), 0 12px 24px rgba(0, 0, 0, .42), 0 4px 8px rgba(0, 0, 0, .3); }
.marca-texto { display: flex; flex-direction: column; line-height: 1.15; }
.marca-texto strong { color: var(--dorado); font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.marca-texto small { margin-top: 6px; color: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.topbar-links { display: flex; align-items: center; gap: 30px; }
.topbar-links > a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 11.5px; line-height: 1.3; white-space: nowrap; transition: color .2s ease; }
.topbar-links > a:hover { color: var(--dorado-claro); }
.topbar-links > a[hidden] { display: none; }
.topbar-icon { display: inline-flex; color: #fff; }
.topbar-icon svg { width: 21px; height: 21px; }
/* Ubicación, WhatsApp e Instagram (arriba y en el pie) con un movimiento suave cada pocos segundos,
   uno después del otro: el pin rebota, WhatsApp late con un aro, el de Instagram se balancea y el del grupo salta. */
.topbar-icon, .footer-contacto a svg { position: relative; transform-origin: 50% 60%; transition: transform .2s ease; }
.topbar-links > a:nth-child(1) .topbar-icon, .footer-contacto a:nth-child(1) svg { animation: icono-pin 6s ease-in-out infinite; }
.topbar-links > a:nth-child(2) .topbar-icon, .footer-contacto a:nth-child(2) svg { animation: icono-late 6s ease-in-out 1.5s infinite; }
.topbar-links > a:nth-child(3) .topbar-icon, .footer-contacto a:nth-child(3) svg { animation: icono-balanceo 6s ease-in-out 3s infinite; }
.topbar-links > a:nth-child(2) .topbar-icon::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--dorado-claro, #e6c98a); opacity: 0; animation: icono-aro 6s ease-out 1.5s infinite; pointer-events: none; }
.topbar-links > a:nth-child(4) .topbar-icon { animation: icono-pin 6s ease-in-out 4.5s infinite; }
.topbar-links > a:hover .topbar-icon, .footer-contacto a:hover svg { animation-play-state: paused; transform: scale(1.18); }
@keyframes icono-pin { 0%, 22%, 100% { transform: translateY(0); } 6% { transform: translateY(-6px); } 12% { transform: translateY(0); } 16% { transform: translateY(-3px); } }
@keyframes icono-late { 0%, 22%, 100% { transform: scale(1); } 6% { transform: scale(1.22); } 12% { transform: scale(.96); } 17% { transform: scale(1.1); } }
@keyframes icono-aro { 0% { transform: scale(.7); opacity: .9; } 22% { transform: scale(1.9); opacity: 0; } 100% { opacity: 0; } }
@keyframes icono-balanceo { 0%, 24%, 100% { transform: rotate(0); } 5% { transform: rotate(-14deg); } 10% { transform: rotate(11deg); } 15% { transform: rotate(-6deg); } 20% { transform: rotate(3deg); } }
/* Se mueven también con "reducir movimiento" (muchos Android lo activan con el ahorro de batería
   y el dueño quiere que se vea): el movimiento es chico y suave. */
.carrito-boton { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(211, 178, 115, .55); border-radius: 999px; background: transparent; color: #fff; padding: 8px 11px; font-size: 12px; font-weight: 700; transition: background .2s ease, border-color .2s ease; }
.carrito-boton:hover { background: rgba(211, 178, 115, .18); border-color: var(--dorado); }
.carrito-icon svg { width: 19px; height: 19px; }
.favoritos-icono { color: #ff8a8a; font-size: 16px; line-height: 1; }
.favoritos-boton.activo { background: rgba(211, 178, 115, .25); border-color: var(--dorado); }
.contador-carrito { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--rojo); color: #fff; font-size: 10px; }

/* ---------- Hero ---------- */
.hero { background: var(--crema-hero); }
.hero-panel { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px 4.5vw; }
.hero-saludo { margin: 0 0 4px; color: var(--verde); font-family: 'Dancing Script', cursive; font-size: 28px; font-weight: 600; line-height: 1; }
.hero-script { margin: 0; color: var(--verde); font-family: 'Dancing Script', cursive; font-size: clamp(42px, 4.8vw, 60px); font-weight: 600; line-height: 1.02; letter-spacing: -.01em; }
.hero-lead { margin: 14px 0 0; color: #4d564e; font-size: 15.5px; line-height: 1.5; }
.hero-esencia { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; color: var(--verde); font-family: 'Dancing Script', cursive; font-size: 22px; }
.hero-esencia .filo { width: 86px; height: auto; color: var(--verde); opacity: .6; }
.corazon { font-size: 20px; line-height: 1; }
.hero-foto { position: relative; min-height: 300px; background: linear-gradient(145deg, rgba(75, 102, 70, .55), rgba(183, 147, 104, .5)), linear-gradient(135deg, #536b4c, #bc8f66); }
.hero-image { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; object-position: center; }

/* ---------- Buscador ---------- */
.buscador-seccion { padding: 26px 0 6px; }
.search-row { display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 auto; padding: 0 8px 0 20px; border: 1px solid #e2ded1; border-radius: 999px; background: #fff; color: var(--verde-medio); box-shadow: 0 4px 14px rgba(31, 58, 41, .04); }
.search-box > svg { flex: 0 0 auto; width: 18px; height: 18px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--tinta); padding: 15px 0; font-size: 13.5px; }
.search-box input::placeholder { color: #9aa39d; }
.search-filtros { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-left: 1px solid #eceadf; border-radius: 0 999px 999px 0; background: transparent; color: var(--verde-medio); }
.search-filtros svg { width: 19px; height: 19px; }
.search-filtros:hover { color: var(--verde); background: var(--verde-claro); }
.search-filtros.activo { color: #fff; background: var(--verde); border-left-color: var(--verde); }
.search-submit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Secciones ---------- */
.seccion { padding: 66px 0; }
.encabezado-seccion { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.titulo-con-icono { display: flex; align-items: center; gap: 12px; }
.icono-seccion { display: inline-flex; color: var(--verde); }
.icono-seccion svg { width: 30px; height: 30px; }
.encabezado-productos { gap: 22px; }
.linea-titulo { flex: 1; height: 1px; background: #d9d5c8; }
.enlace-seccion { display: inline-flex; align-items: center; gap: 9px; color: var(--verde-medio); font-size: 12px; font-weight: 700; white-space: nowrap; }
.enlace-seccion span { color: var(--verde); font-size: 20px; line-height: 0; transition: transform .2s ease; }
.enlace-seccion:hover span { transform: translateX(4px); }

/* ---------- Categorías ---------- */
.categorias-seccion { padding-top: 34px; padding-bottom: 20px; }
.categorias-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.categoria-card { display: flex; min-width: 0; flex-direction: column; padding: 0 0 4px; border: 1px solid var(--linea); border-radius: var(--radius-small); background: var(--blanco); color: var(--tinta); text-align: center; box-shadow: 0 4px 15px rgba(31, 58, 41, .035); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.categoria-card:hover { border-color: #cddacb; box-shadow: var(--sombra-hover); transform: translateY(-5px); }
.categoria-card.activo { border-color: var(--verde); box-shadow: 0 0 0 2px var(--verde), var(--sombra); }
.categoria-imagen { position: relative; display: grid; place-items: end center; height: 96px; border-radius: 12px 12px 0 0; background: var(--categoria-color, #edf1e8); }
.categoria-imagen::after { content: ''; position: absolute; right: 10px; bottom: 16px; width: 62px; height: 62px; border: 1px solid rgba(31, 58, 41, .1); border-radius: 50%; }
.categoria-imagen svg { position: relative; z-index: 1; width: 33px; height: 33px; margin-bottom: -16px; padding: 7px; border-radius: 50%; background: var(--verde); color: #fff; box-shadow: 0 0 0 4px #fff; }
.categoria-card.activo .categoria-imagen svg { background: #b7791f; }
.categoria-texto { display: block; padding: 20px 8px 10px; }
.categoria-texto strong { display: block; color: var(--verde); font-size: 12px; }
.categoria-texto small { display: block; min-height: 26px; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }

/* ---------- Productos ---------- */
.productos-seccion { padding-top: 40px; }
.controles-productos { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; min-height: 42px; margin: -4px 0 24px; }
.select-wrap { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.select-wrap select { min-width: 195px; border: 1px solid var(--linea); border-radius: 999px; background: #fff; color: var(--tinta); padding: 9px 30px 9px 13px; font-size: 11px; }
.check-wrap { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; cursor: pointer; }
.check-wrap input { position: absolute; opacity: 0; }
.check-custom { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid #c9d3c9; border-radius: 4px; background: #fff; }
.check-wrap input:checked + .check-custom { border-color: var(--verde); background: var(--verde); }
.check-wrap input:checked + .check-custom::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 800; }
.btn-outline { border: 1px solid #cbd8cb; border-radius: 999px; background: transparent; color: var(--verde); padding: 8px 14px; font-size: 11px; font-weight: 700; }
.btn-outline:hover { background: var(--verde-claro); }
.estado { flex: 1 1 240px; margin: 0; color: var(--verde-medio); font-size: 12px; font-weight: 600; }
.estado.error { color: var(--rojo); }
.filtro-activo { display: flex; align-items: center; gap: 12px; margin: -8px 0 20px; color: var(--verde-medio); font-size: 12px; font-weight: 600; }
.filtro-limpiar { border: 1px solid #cbd8cb; border-radius: 999px; background: transparent; color: var(--verde); padding: 6px 13px; font-size: 11px; font-weight: 700; }
.selector-variantes.falta-opcion .variantes-etiqueta { color: #c23b3b; font-weight: 800; }
.selector-variantes.falta-opcion .variantes-select { border-color: #c23b3b; background-color: #fff1f1; box-shadow: 0 0 0 3px rgba(194, 59, 59, .22); animation: sacudir .4s ease; }
.variantes-falta { margin: 3px 0 0; font-size: 12px; font-weight: 800; line-height: 1.3; color: #c23b3b; }
.variantes-falta[hidden] { display: none; }
.ficha-opcion.falta-opcion { color: #c23b3b; }
.ficha-opcion.falta-opcion .variantes-select { border-color: #c23b3b; background-color: #fff1f1; box-shadow: 0 0 0 3px rgba(194, 59, 59, .22); animation: sacudir .4s ease; }
@keyframes sacudir { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.filtro-limpiar:hover { background: var(--verde-claro); }
.filtro-activo.modo-favoritos { justify-content: space-between; flex-wrap: wrap; margin: -8px 0 22px; padding: 12px 14px; border: 1px solid #e7d3b0; border-radius: 14px; background: #fbf6ec; color: var(--verde); font-size: 14px; }
.modo-favoritos .favoritos-icono { color: #d64848; }
.volver-catalogo { border: 0; border-radius: 999px; background: var(--verde); color: #fff; padding: 10px 18px; font-size: 13px; font-weight: 700; cursor: pointer; }
.volver-catalogo:hover { background: var(--verde-hover); }
.paginacion .volver-catalogo { flex-basis: 100%; max-width: 260px; height: auto; margin: 10px auto 0; border: 0; border-radius: 999px; background: var(--verde); color: #fff; padding: 11px 18px; font-size: 13px; font-weight: 700; }
.paginacion .volver-catalogo:hover { background: var(--verde-hover); }
.grilla-productos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tarjeta-producto { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--linea); border-radius: var(--radius); background: var(--blanco); box-shadow: 0 4px 14px rgba(31, 58, 41, .035); transition: box-shadow .25s ease, transform .25s ease; }
.tarjeta-producto:hover { box-shadow: var(--sombra-hover); transform: translateY(-4px); }
.producto-imagen { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--crema-oscuro); }
.producto-imagen img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease, opacity .2s ease; }
.producto-imagen.cargando img, .ficha-foto.cargando img { opacity: .55; }
.tarjeta-producto:hover .producto-imagen img { transform: scale(1.05); }
/* Productos sin foto: se muestra el logo sobre un fondo crema suave. */
.imagen-fallback { display: block; width: 100%; height: 100%; object-fit: contain; padding: 18%; background: radial-gradient(circle at 50% 42%, #fdfbf5 0 30%, #f0ece0 31% 100%); }
.favorito { position: absolute; z-index: 2; top: 11px; right: 11px; display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #d64848; font-size: 20px; line-height: 1; box-shadow: 0 3px 9px rgba(31, 58, 41, .12); transition: color .2s ease, transform .2s ease, background .2s ease; }
.favorito:hover { color: var(--rojo); transform: scale(1.08); }
.favorito.activo { background: var(--rojo); color: #fff; }
.producto-badge { position: absolute; z-index: 2; top: 12px; left: 12px; border-radius: 999px; background: #8c958f; color: #fff; padding: 5px 8px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.producto-cuerpo { display: flex; flex: 1; flex-direction: column; padding: 14px 14px 15px; }
.producto-nombre { min-height: 37px; margin: 0; color: var(--tinta); font-size: 13px; font-weight: 700; line-height: 1.4; }
.producto-comentarios { min-height: 15px; margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.producto-precio-linea { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.producto-precio { color: var(--verde); font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.precio-anterior { color: #a0a8a1; font-size: 11px; text-decoration: line-through; }
.producto-stock { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: #5b7d63; font-size: 10px; }
.producto-stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #5aaa68; box-shadow: 0 0 0 3px #e7f4e7; }
.producto-stock.sin-stock { color: #9b6d6d; }
.producto-stock.sin-stock::before { background: #b27c7c; box-shadow: 0 0 0 3px #f7eaea; }
/* Bajo pedido: el proveedor lo tiene, nosotros no. Se puede comprar igual. */
.producto-stock.bajo-pedido { color: #8a6a3a; }
.producto-stock.bajo-pedido::before { background: #d3a45a; box-shadow: 0 0 0 3px #fbf2e2; }
.producto-acciones { display: flex; gap: 7px; margin-top: auto; padding-top: 14px; }

/* Selector de variantes */
.selector-variantes { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.variantes-etiqueta { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #7d8f82; }
.variantes-select {
  width: 100%;
  font: inherit;
  font-size: 13px;
  padding: 9px 30px 9px 10px;
  border: 1px solid #cfd8cf;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235b7d63' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 11px auto;
  appearance: none;
  cursor: pointer;
  color: #2f3a33;
}
.variantes-select:focus-visible { outline: 2px solid #5b7d63; outline-offset: 1px; }
.variantes-select:disabled { background-color: #f2f4f2; color: #9b6d6d; cursor: not-allowed; }
.variantes-nota { margin: 5px 0 0; font-size: 10px; color: #8a968c; }
.variantes-nota:empty { display: none; }

/* Carrito: nombre del producto + variante elegida */
#lista-carrito .info { display: flex; flex-direction: column; gap: 1px; }
.carrito-item-nombre { font-size: 13px; color: #2f3a33; }
.carrito-item-variante {
  font-size: 11px;
  color: #4a6b52;
  background: #eef4ee;
  border-radius: 5px;
  padding: 1px 6px;
  align-self: flex-start;
}
.carrito-item-precio { font-size: 12px; color: #7d8f82; }
.carrito-item-problema {
  border-left: 3px solid #c0392b;
  background: #fdf2f2;
}
.carrito-item-problema .info {
  opacity: 0.7;
}
.agregar-carrito { display: inline-flex; align-items: center; justify-content: center; width: 100%; gap: 9px; min-height: 40px; border: 0; border-radius: 9px; background: var(--verde); color: #fff; padding: 9px 12px; font-size: 11px; font-weight: 800; letter-spacing: .01em; transition: background .2s ease, transform .2s ease; }
.agregar-carrito:hover:not(:disabled) { background: var(--verde-hover); transform: translateY(-1px); }
.agregar-carrito:disabled { background: #d3d9d2; color: #89938b; cursor: not-allowed; }
.agregar-carrito svg { width: 17px; height: 17px; }
.agregar-check { font-size: 14px; font-weight: 800; }
.paginacion { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; padding: 31px 0 0; }
.paginacion button { min-width: 33px; height: 33px; border: 1px solid var(--linea); border-radius: 9px; background: #fff; color: var(--verde); padding: 0 9px; font-size: 11px; cursor: pointer; }
.paginacion button:hover:not(:disabled), .paginacion button[aria-current='true'] { border-color: var(--verde); background: var(--verde); color: #fff; }
.paginacion button:disabled { cursor: default; opacity: .38; }

/* ---------- Beneficios ---------- */
.beneficios { padding: 0 0 70px; }
.beneficios-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 18px; background: #f1ede1; padding: 30px 20px; }
.beneficio { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 4px 14px; }
.beneficio + .beneficio { border-left: 1px solid #e0dacb; }
.beneficio-icono { display: grid; place-items: center; margin-bottom: 10px; color: var(--verde-medio); }
.beneficio-icono svg { width: 26px; height: 26px; }
.beneficio strong { color: var(--verde); font-size: 11px; line-height: 1.3; }
.beneficio > span:last-child { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--verde); color: rgba(255, 255, 255, .8); }
.site-footer .sprig { bottom: -16px; top: auto; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.marca-footer { color: #fff; }
.marca-footer .marca-icono { width: 78px; height: 78px; }
.marca-footer .marca-texto strong { font-size: 25px; }
.marca-footer .marca-texto small { font-size: 11px; }
.footer-centro { text-align: center; }
.footer-centro p { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; color: #fff; font-family: 'Dancing Script', cursive; font-size: 28px; line-height: 1.1; }
.footer-centro .filo { width: 120px; height: auto; color: var(--dorado); opacity: .85; }
.footer-centro .corazon { color: var(--dorado); }
.footer-contacto { display: flex; align-items: flex-start; flex-direction: column; gap: 11px; font-size: 12.5px; }
.footer-contacto a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contacto a svg { width: 18px; height: 18px; color: var(--dorado); }
.footer-contacto a:hover { color: #fff; }

/* ---------- Carrito ---------- */
.overlay { position: fixed; z-index: 100; inset: 0; display: flex; justify-content: flex-end; background: rgba(15, 29, 20, .52); backdrop-filter: blur(4px); }
.panel-carrito { display: flex; width: min(450px, 100%); height: 100%; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; flex-direction: column; background: var(--blanco); box-shadow: -12px 0 35px rgba(0, 0, 0, .13); }
.panel-carrito-head { flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--linea); padding: 24px 24px 20px; }
.panel-carrito-head .eyebrow { margin-bottom: 5px; font-size: 9px; }
.panel-carrito-head h2 { margin: 0; color: var(--verde); font-size: 27px; letter-spacing: -.05em; }
.cerrar-carrito { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--linea); border-radius: 50%; background: #fff; color: var(--verde); font-size: 23px; line-height: 1; }
.cerrar-carrito:hover { background: var(--verde-claro); }
/* Todo el panel scrollea junto: si la lista scrolleara aparte, en el celular el formulario la aplasta a 0 y no se pueden quitar productos. */
#lista-carrito { flex: 1 0 auto; margin: 0; padding: 9px 24px; list-style: none; }
#lista-carrito li:not(.vaciar) { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--linea); padding: 15px 0; }
#lista-carrito .info { color: var(--tinta); font-size: 12px; font-weight: 600; }
#lista-carrito .cantidad { display: inline-flex; align-items: center; gap: 7px; }
#lista-carrito input { width: 51px; border: 1px solid var(--linea); border-radius: 7px; background: var(--crema); color: var(--tinta); padding: 6px; text-align: center; font-size: 11px; }
#lista-carrito .quitar { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--rojo); font-size: 22px; line-height: 1; cursor: pointer; }
#lista-carrito .quitar:hover { background: var(--rojo-claro); }
.vacio { padding: 35px 0; color: var(--muted); text-align: center; font-size: 12px; }
#lista-carrito .vaciar { padding-top: 18px; text-align: right; }
.vaciar { border: 1px solid #f0caca; border-radius: 999px; background: var(--rojo-claro); color: var(--rojo); padding: 7px 11px; font-size: 10px; font-weight: 700; }
.panel-carrito-foot { flex-shrink: 0; display: flex; flex-direction: column; gap: 13px; border-top: 1px solid var(--linea); padding: 20px 24px 24px; }
.total { display: flex; align-items: center; justify-content: space-between; margin: 0; color: var(--muted); font-size: 12px; }
.total strong { color: var(--verde); font-size: 25px; letter-spacing: -.05em; }
.datos-cliente { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.datos-cliente .dato-ancho { grid-column: 1 / -1; }
.datos-cliente label, .metodo-label { display: flex; flex-direction: column; gap: 5px; color: var(--verde); font-size: 10px; font-weight: 700; }
.entrega { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.entrega legend { margin-bottom: 5px; padding: 0; color: var(--verde); font-size: 10px; font-weight: 700; }
.entrega-opcion { display: flex; align-items: flex-start; gap: 7px; border: 1px solid var(--linea); border-radius: 9px; background: var(--crema); padding: 9px 10px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.entrega-opcion[hidden], .metodo-label[hidden] { display: none; }
.linea-envio { display: flex; align-items: center; justify-content: space-between; margin: 0 0 -8px; color: var(--muted); font-size: 12px; }
.linea-envio span { color: var(--verde); font-weight: 700; }
.entrega-opcion input { margin: 2px 0 0; accent-color: var(--verde); }
.entrega-opcion span { display: flex; flex-direction: column; gap: 2px; }
.entrega-opcion strong { color: var(--verde); font-size: 11.5px; line-height: 1.2; }
.entrega-opcion small { color: #8a968c; font-size: 10px; }
.entrega-opcion:has(input:checked) { border-color: var(--verde); background: #fff; box-shadow: inset 0 0 0 1px var(--verde); }
.datos-cliente input, .metodo-label select, .metodo-label input { width: 100%; border: 1px solid var(--linea); border-radius: 9px; background: var(--crema); color: var(--tinta); padding: 10px; font-size: 12px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 999px; background: var(--verde); color: #fff; padding: 14px 20px; font-size: 12px; font-weight: 800; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn-primary:hover { background: var(--verde-hover); box-shadow: 0 8px 20px rgba(31, 58, 41, .18); transform: translateY(-2px); }
.btn-confirmar { width: 100%; }
.aviso { margin: 0; color: var(--verde-medio); font-size: 11px; line-height: 1.45; }
.aviso.error { color: var(--rojo); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .topbar-links { gap: 18px; }
  .marca-icono { width: 74px; height: 74px; }
  .marca-texto strong { font-size: 27px; }
  .marca-texto small { font-size: 11.5px; }
  .categorias-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grilla-productos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-copy { padding: 36px 4vw; }
  .beneficios-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
  .beneficio:nth-child(odd) { border-left: 0; }
}

@media (max-width: 820px) {
  .hero-panel { grid-template-columns: 1fr; }
  .hero-copy { padding: 34px 24px 30px; text-align: center; align-items: center; }
  .hero-esencia { justify-content: center; }
  .hero-foto { min-height: 250px; }
  .grilla-productos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-centro { grid-column: 1 / -1; grid-row: 1; }
  .footer-marca { grid-row: 2; }
  .footer-contacto { grid-row: 2; }
}

@media (max-width: 600px) {
  .contenedor { width: min(100% - 30px, 1240px); }
  .topbar-inner { flex-wrap: wrap; gap: 14px; }
  .sprig { width: 130px; opacity: .38; }
  .marca { gap: 12px; }
  .marca-icono { width: 58px; height: 58px; }
  .marca-texto strong { font-size: 22px; }
  .marca-texto small { font-size: 9.5px; }
  .topbar-links { width: 100%; justify-content: space-between; gap: 10px; flex-wrap: wrap; row-gap: 8px; }
  .topbar-links > a { font-size: 9.5px; }
  .topbar-icon svg { width: 17px; height: 17px; }
  .carrito-boton { padding: 7px 9px; }
  .favoritos-boton { margin-left: auto; }
  .favoritos-texto { display: none; }
  .search-box { padding-left: 16px; }
  .hero-saludo { font-size: 25px; }
  .hero-script { font-size: 42px; }
  .hero-lead { font-size: 14px; }
  .hero-esencia { font-size: 20px; }
  .hero-foto { min-height: 200px; }
  .seccion { padding: 48px 0; }
  .encabezado-seccion { gap: 11px; margin-bottom: 20px; }
  .encabezado-productos { flex-direction: row; align-items: center; gap: 14px; }
  .linea-titulo { display: none; }
  .encabezado-productos .enlace-seccion { margin-left: auto; }
  .categorias-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .categoria-imagen { height: 88px; }
  .categoria-texto { padding-top: 18px; }
  .grilla-productos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .producto-cuerpo { padding: 12px 11px 12px; }
  .producto-nombre { min-height: 52px; font-size: 12px; }
  .producto-comentarios { min-height: 27px; }
  .producto-precio { font-size: 17px; }
  .agregar-carrito { min-height: 38px; font-size: 10px; gap: 6px; }
  .controles-productos { align-items: flex-start; flex-direction: column; gap: 11px; }
  .select-wrap { width: 100%; justify-content: space-between; }
  .select-wrap select { min-width: 0; width: 68%; }
  .estado { flex-basis: auto; }
  .filtro-activo { flex-wrap: wrap; }
  .beneficios { padding: 0 0 55px; }
  .beneficios-grid { padding: 24px 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; padding-bottom: 30px; }
  .footer-centro, .footer-marca, .footer-contacto { grid-column: auto; grid-row: auto; }
  .footer-centro { order: -1; }
  .marca-footer .marca-icono { width: 56px; height: 56px; }
  .panel-carrito-head, .panel-carrito-foot { padding-left: 18px; padding-right: 18px; }
  #lista-carrito { padding-left: 18px; padding-right: 18px; }
}

/* Fotos de las categorías (img/categorias/*.jpg): ocupan toda la parte de arriba de la tarjeta, con el ícono encima. */
.categoria-imagen:has(img) { height: 170px; }
.categoria-imagen:has(img)::after { display: none; }
.categoria-imagen img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px 12px 0 0; }
@media (max-width: 600px) { .categoria-imagen:has(img) { height: 150px; } }
.categoria-card.activo .categoria-imagen img { filter: saturate(1.15); }

/* Firma al pie, en letra chica */
.footer-firma { position: relative; z-index: 1; margin: 0; padding: 4px 16px 14px; text-align: center; font-size: 11px; letter-spacing: .3px; color: rgba(255, 255, 255, .55); }

/* Logo más grande para que se lea (antes 92/78 px, 74 y 58 en pantallas chicas). */
.marca-icono { width: 116px; height: 116px; }
.marca-footer .marca-icono { width: 100px; height: 100px; }
@media (max-width: 1024px) { .marca-icono { width: 96px; height: 96px; } }
@media (max-width: 640px) { .marca-icono { width: 76px; height: 76px; } .marca-footer .marca-icono { width: 76px; height: 76px; } }

/* Opción (aroma) que coincide con lo buscado: viene elegida y resaltada. */
.selector-variantes.variante-buscada .variantes-etiqueta { color: var(--verde); font-weight: 700; }
.selector-variantes.variante-buscada .variantes-select { border-color: var(--verde); box-shadow: 0 0 0 2px rgba(31, 58, 41, .12); }

/* Subfiltros dentro de una categoría (Bijouterie → Pulseras, Aros…). */
.subfiltros { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 20px; }
.subfiltro { border: 1px solid #cbd8cb; border-radius: 999px; background: var(--blanco); color: var(--verde); padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
.subfiltro small { margin-left: 4px; font-weight: 600; opacity: .65; }
.subfiltro:hover { background: var(--verde-claro); }
.subfiltro.activo { background: var(--verde); border-color: var(--verde); color: #fff; }

/* Botón "Compartir" en las tarjetas del catálogo. */
.compartir-producto { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 32px; border: 1px solid #cbd8cb; border-radius: 9px; background: transparent; color: var(--verde); font-size: 11px; font-weight: 700; cursor: pointer; }
.compartir-producto:hover { background: var(--verde-claro); }
.compartir-producto svg { width: 14px; height: 14px; }
.producto-acciones { flex-direction: column; }

/* Páginas de producto y categoría (/producto/…, /categoria/…). */
.pagina-ficha { background: var(--crema); }
.ficha-volver { color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.ficha-main { padding: 22px 0 48px; }
.ficha-migas { margin-bottom: 18px; color: var(--muted, #6b7a6e); font-size: 12px; }
.ficha-migas a { color: var(--verde); }
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.ficha-foto { position: relative; overflow: hidden; border-radius: 16px; background: var(--crema-oscuro); aspect-ratio: 1 / 1; }
.ficha-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ficha-foto img.imagen-fallback { object-fit: contain; }
.ficha-nombre { margin: 0 0 6px; color: var(--verde); font-size: 26px; line-height: 1.2; }
.ficha-precio { margin: 12px 0 6px; font-size: 30px; }
.ficha-opcion { display: flex; flex-direction: column; gap: 6px; margin: 16px 0 4px; font-size: 13px; font-weight: 600; color: var(--verde); }
.ficha-agregar { margin-top: 14px; min-height: 46px; font-size: 14px; text-decoration: none; }
.ficha-agregado, .ficha-copiado { margin: 10px 0 0; color: var(--verde); font-size: 13px; font-weight: 600; }
.ficha-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ficha-acciones .btn-outline { font-size: 12px; padding: 9px 16px; text-decoration: none; cursor: pointer; }
.ficha-nota { margin: 10px 0 0; color: #6b7a6e; font-size: 12px; }
.ficha-relacionados { margin-top: 40px; }
.ficha-relacionados h2, .ficha-grupo { color: var(--verde); font-size: 18px; margin: 26px 0 12px; }
.ficha-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.ficha-mini { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--linea); border-radius: 12px; background: var(--blanco); color: var(--tinta); text-decoration: none; font-size: 12px; }
.ficha-mini img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--crema-oscuro); }
.ficha-mini img.imagen-fallback { object-fit: contain; padding: 18%; }
.ficha-mini strong { color: var(--verde); font-size: 15px; }
.ficha-vacia { padding: 40px 0; text-align: center; }
.ficha-vacia .ficha-agregar { display: inline-flex; width: auto; padding: 0 26px; }
.ficha-pie { padding: 22px 0; font-size: 12px; }
.ficha-pie a { color: #fff; }
@media (max-width: 760px) {
  .ficha { grid-template-columns: 1fr; gap: 18px; }
  .ficha-volver { font-size: 11px; }
  .ficha-nombre { font-size: 22px; }
}
.link-olvidar { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
