/* Tienda pública */
.wrap {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}
.muted {
  color: var(--muted);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}
.skip:focus {
  top: 12px;
}

/* Encabezado */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.brand-text {
  display: grid;
  line-height: 1.05;
}
.brand-text > span {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-text small {
  color: var(--green);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.contact-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
}
.footer-brand img {
  border-radius: 12px;
  margin-bottom: 8px;
}
.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.main-nav a:hover {
  background: var(--surface-2);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.cart-btn:hover {
  background: var(--green-d);
}
.cart-btn svg {
  width: 20px;
  height: 20px;
}
.cart-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.cart-count[hidden] {
  display: none;
}
.cart-count.bump {
  animation: bump 0.35s ease;
}
@keyframes bump {
  50% { transform: scale(1.35); }
}
.menu-btn {
  display: none;
}

/* Portada */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}
.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--green-soft), transparent);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  color: var(--green-d);
}
.hero-text {
  max-width: 54ch;
  color: var(--muted);
  font-size: 18px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-points li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e6b45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  min-height: 420px;
}
.hero-tile {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-tile:nth-child(1) {
  grid-row: span 2;
  background: var(--rose-soft);
}
.hero-tile:nth-child(2) {
  background: var(--honey-soft);
  aspect-ratio: 1;
}
.hero-tile:nth-child(3) {
  background: var(--green-soft);
  aspect-ratio: 1;
}
.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
}
.hero-badge b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--honey-soft);
  color: #8a5a10;
  font-family: var(--font-display);
  font-size: 15px;
}

/* Ventajas */
.perks {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.perk {
  display: flex;
  gap: 14px;
  padding: 24px 20px;
}
.perk + .perk {
  border-left: 1px solid var(--line);
}
.perk-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
}
.perk-icon svg {
  width: 22px;
  height: 22px;
}
.perk strong {
  display: block;
  margin-bottom: 2px;
}
.perk p {
  color: var(--muted);
  font-size: 14px;
}

/* Secciones */
.section {
  padding: 88px 0;
  scroll-margin-top: 60px;
}
.section-tinted {
  background: var(--surface-2);
}
.section h2 {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--green-d);
}
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow.light {
  color: var(--brand);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head.center {
  justify-content: center;
  text-align: center;
}

/* Buscador y filtros */
.search {
  position: relative;
  flex: 0 1 360px;
}
.search > svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
}
.search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.search input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 500;
  cursor: pointer;
}
.chip:hover {
  background: var(--surface-2);
}
.chip[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

/* Tarjetas de producto */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 18px;
  border: 0;
  background: var(--tint, var(--surface-2));
  cursor: pointer;
}
.product-media img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
  border-radius: 14px;
  mix-blend-mode: multiply;
  transition: transform 0.3s;
}
.product-card:hover .product-media img {
  transform: scale(1.04);
}
.product-media .badges {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 6px;
}
.badge-soldout {
  background: var(--ink);
  color: #fff;
}
.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
}
.product-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.product-body h3 {
  font-size: 21px;
}
.product-body h3 button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.product-body h3 button:hover {
  color: var(--green);
}
.product-short {
  color: var(--muted);
  font-size: 14px;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}
.price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--green-d);
}
.price small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.price s {
  margin-left: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.price.ask {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}
.add-btn {
  min-height: 42px;
}

/* Modal de producto */
.product-modal-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}
.pm-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--tint, var(--surface-2));
}
.pm-main {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
}
.pm-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.pm-main.ficha img {
  mix-blend-mode: normal;
  background: #fff;
}
.pm-thumbs {
  display: flex;
  gap: 8px;
}
.pm-thumbs button {
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.pm-thumbs button[aria-current="true"] {
  border-color: var(--green);
}
.product-media .badges {
  z-index: 1;
}
.pm-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pm-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px 28px;
}
.pm-info h2 {
  font-size: 32px;
  color: var(--green-d);
  padding-right: 40px;
}
.pm-info h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.checks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 30px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e6b45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pm-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pm-buy .btn {
  flex: 1 1 auto;
}
.qty {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.qty button {
  width: 42px;
  height: 100%;
  border: 0;
  background: none;
  font-size: 20px;
  cursor: pointer;
  border-radius: 999px;
}
.qty button:hover {
  background: var(--surface-2);
}
.qty output {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}
.qty.small {
  height: 36px;
}
.qty.small button {
  width: 34px;
  font-size: 17px;
}

/* Pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.steps li {
  padding: 30px 26px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.steps h3 {
  margin-bottom: 8px;
  font-size: 22px;
}
.steps p {
  color: var(--muted);
}

/* Nosotros */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-copy {
  display: grid;
  gap: 18px;
}
.about-copy > p {
  color: var(--muted);
  font-size: 17px;
}
.about-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.about-art img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  background: var(--surface-2);
}
.about-art img:nth-child(2) {
  transform: translateY(28px);
}

/* Rastreo */
.track {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.track > div {
  display: grid;
  gap: 12px;
}
.track-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}
.track-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.timeline {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  color: var(--muted);
}
.timeline li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: var(--surface);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::after {
  display: none;
}
.timeline li.done {
  color: var(--ink);
}
.timeline li.done::before {
  border-color: var(--green);
  background: var(--green);
}
.timeline li.done::after {
  background: var(--green);
}
.timeline small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.track-result {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Preguntas */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
}
.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 20px;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 20px 18px;
  color: var(--muted);
}

/* Contacto */
.contact-section {
  padding-top: 0;
}
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px;
  border-radius: 32px;
  background: var(--green-d);
  color: #f2f5ef;
  overflow: hidden;
  position: relative;
}
.contact-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.contact-card h2 {
  color: #fff;
}
.contact-copy {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: start;
}
.contact-copy p {
  color: #c9d6cc;
  font-size: 17px;
}
.contact-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}
.contact-list svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--brand);
}
.contact-list small {
  display: block;
  color: #b5c4b9;
  font-size: 13px;
}
.contact-list a {
  color: #fff;
}

/* Pie */
.site-footer {
  padding: 40px 0 100px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-inner strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
}
.legal {
  max-width: 60ch;
  margin-top: 6px;
}
.footer-links {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: start;
}
.footer-links a {
  color: var(--muted);
}
.socials {
  display: flex;
  gap: 8px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
}
.socials svg {
  width: 18px;
  height: 18px;
}

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1fa855;
  color: #fff;
  box-shadow: 0 10px 30px rgba(31, 168, 85, 0.4);
  transition: transform 0.2s;
}
.wa-float:hover {
  transform: scale(1.06);
}
.wa-float svg {
  width: 30px;
  height: 30px;
}
body:not(.has-wa) .wa-only {
  display: none !important;
}

/* Carrito */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 28, 22, 0.45);
  animation: fade 0.2s ease;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  width: min(100%, 440px);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  visibility: hidden;
}
.drawer.open {
  transform: none;
  visibility: visible;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  font-size: 24px;
  color: var(--green-d);
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 20px;
}
.cart-items {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--surface-2);
}
.cart-item h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}
.cart-item .sub {
  color: var(--muted);
  font-size: 13px;
}
.cart-item-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover {
  color: var(--danger);
}
.summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}
.summary-row.total {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-weight: 700;
  font-size: 18px;
}
.note {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--honey-soft);
  color: #6f4a0e;
  font-size: 14px;
}
.checkout {
  display: grid;
  gap: 16px;
}
.checkout-actions {
  display: grid;
  gap: 10px;
  position: sticky;
  bottom: -20px;
  margin: 0 -20px -20px;
  padding: 16px 20px 20px;
  background: linear-gradient(to top, var(--bg) 80%, transparent);
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}
.done {
  display: grid;
  gap: 16px;
  text-align: center;
  justify-items: center;
}
.done-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}
.done-icon svg {
  width: 40px;
  height: 40px;
}
.folio {
  padding: 10px 22px;
  border-radius: 14px;
  border: 2px dashed var(--green);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--green-d);
  letter-spacing: 0.04em;
}
.done .summary {
  width: 100%;
  text-align: left;
}
.transfer-box {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  white-space: pre-line;
  font-size: 14px;
}

/* Responsivo */
@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 14px 12px;
    border-radius: 12px;
  }
  .header-actions {
    margin-left: auto;
  }
  .menu-btn {
    display: inline-grid;
  }
  .hero-grid,
  .about,
  .track,
  .faq-wrap,
  .contact-card {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 0;
    max-width: 560px;
  }
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .perk:nth-child(3) {
    border-left: 0;
  }
  .perk:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .product-modal-card {
    grid-template-columns: 1fr;
  }
  .pm-gallery {
    padding: 20px 20px 16px;
  }
  .pm-main {
    max-height: 340px;
    aspect-ratio: auto;
    height: 340px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    height: 64px;
    gap: 12px;
  }
  .main-nav {
    top: 64px;
  }
  .brand-text > span {
    font-size: 18px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .cart-label {
    display: none;
  }
  .cart-btn {
    padding: 0 14px;
  }
  .hero {
    padding: 32px 0 48px;
  }
  .hero-text {
    font-size: 16px;
  }
  .hero-ctas .btn {
    flex: 1 1 auto;
  }
  .hero-art {
    gap: 10px;
  }
  .hero-tile {
    border-radius: 20px;
  }
  .hero-badge {
    left: 8px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .perks-grid {
    grid-template-columns: 1fr;
  }
  .perk + .perk {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .perk {
    padding: 16px 4px;
  }
  .section {
    padding: 60px 0;
  }
  .search {
    flex-basis: 100%;
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: none;
  }
  .chip {
    flex: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-media {
    padding: 10px;
  }
  .product-body {
    padding: 12px 12px 14px;
    gap: 6px;
  }
  .product-body h3 {
    font-size: 17px;
  }
  .product-short {
    display: none;
  }
  .product-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .price {
    font-size: 19px;
  }
  .add-btn {
    width: 100%;
  }
  .modal {
    padding: 0;
    align-items: end;
  }
  .modal-card {
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
  }
  .pm-main {
    height: 260px;
  }
  .pm-info {
    padding: 22px 20px 24px;
  }
  .pm-info h2 {
    font-size: 26px;
  }
  .track-fields {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 28px 20px;
    border-radius: 24px;
  }
  .footer-links {
    justify-items: start;
  }
  .about-art img:nth-child(2) {
    transform: translateY(16px);
  }
}

/* ------------------------------------------------------------------------- */
/* Pantalla de carga                                                         */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--bg);
  transition: opacity 0.5s ease, visibility 0.5s;
}
.splash img {
  border-radius: 22px;
  animation: splash-breathe 1.4s ease-in-out infinite;
}
.splash-bar {
  width: 120px;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}
.splash-bar i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 4px;
  background: var(--brand);
  animation: splash-load 1s ease-in-out infinite;
}
.splash.out {
  opacity: 0;
  visibility: hidden;
}
@keyframes splash-breathe {
  50% { transform: scale(1.06); }
}
@keyframes splash-load {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

/* Barra de avisos */
.announce {
  background: var(--charcoal);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
}
.announce-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}
.announce-msgs {
  position: relative;
  display: grid;
  width: 100%;
  text-align: center;
}
.announce-msgs span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s, transform 0.45s;
}
.announce-msgs span.on {
  opacity: 1;
  transform: none;
}
.announce-msgs span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: 1px;
}
.announce-socials {
  position: absolute;
  right: 0;
  display: flex;
  gap: 4px;
}
.announce-socials a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  opacity: 0.8;
}
.announce-socials a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}
.announce-socials svg {
  width: 15px;
  height: 15px;
}

/* Tarjetas de relleno mientras cargan los productos */
.skeleton-card {
  aspect-ratio: 3 / 4.4;
  border-radius: 22px;
  background: linear-gradient(100deg, var(--surface-2) 30%, #f7f9f4 50%, var(--surface-2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer {
  to { background-position: -150% 0; }
}

/* Sellos de confianza */
.trust {
  padding: 8px 0 72px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.seal {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.seal-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
}
.seal-icon svg {
  width: 24px;
  height: 24px;
}
.seal strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}
.seal p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Síguenos */
.social-section {
  padding-top: 40px;
}
.section-head.center p {
  margin: 8px 0 0;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.social-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--tint, var(--surface-2));
}
.social-grid img {
  width: 100%;
  height: 100%;
  padding: 12%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s;
}
.social-grid a span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(50, 50, 50, 0.55);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}
.social-grid a span svg {
  width: 30px;
  height: 30px;
}
.social-grid a:hover span {
  opacity: 1;
}
.social-grid a:hover img {
  transform: scale(1.06);
}
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* Pie de página */
.site-footer {
  padding: 56px 0 96px;
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}
.footer-brand .brand {
  margin-bottom: 14px;
}
.footer-brand img {
  margin: 0;
}
.footer-brand p {
  max-width: 40ch;
  margin: 0 0 16px;
}
.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}
.footer-col h3 {
  margin: 4px 0 4px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-col a {
  color: var(--muted);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--green);
}
.footer-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-pay > span {
  font-weight: 600;
  color: var(--ink);
}
.pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pay-chip {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 20px;
  font-size: 13px;
}
.footer-bottom .legal {
  margin: 0;
  max-width: 80ch;
}

/* Ficha de producto */
.pm-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.pm-facts div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
}
.pm-facts div + div {
  border-left: 1px solid var(--line);
}
.pm-facts small {
  color: var(--muted);
  font-size: 12px;
}
.pm-facts strong {
  font-size: 14px;
}
.pm-trust {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  border-radius: 14px;
  background: var(--green-soft);
  color: #1d4d24;
  font-size: 14px;
  font-weight: 500;
}
.pm-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-trust svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--green);
}
.pm-legal {
  font-size: 13px;
  color: var(--muted);
}
.pm-legal summary {
  cursor: pointer;
  font-weight: 600;
}
.pm-legal p {
  margin: 8px 0 0;
}
.pm-related {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pm-related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pm-related-list button {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 0 0 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pm-related-list button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pm-related-img {
  display: block;
  aspect-ratio: 1;
  background: var(--tint, var(--surface-2));
}
.pm-related-img img {
  width: 100%;
  height: 100%;
  padding: 10%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.pm-related-name {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.pm-related-list .price {
  padding: 0 10px;
  font-size: 14px;
}

/* Carrito: envío gratis, compra segura y aviso de privacidad */
.free-ship {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--green-soft);
  font-size: 14px;
}
.free-ship p {
  margin: 0 0 8px;
}
.free-ship-bar {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}
.free-ship-bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--brand);
  transition: width 0.4s ease;
}
.secure-note,
.consent {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.secure-note svg {
  width: 14px;
  height: 14px;
}
.consent {
  margin: 0;
}

/* Animaciones de entrada */
.anim .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
    box-shadow 0.2s;
}
.anim .reveal.in {
  opacity: 1;
  transform: none;
}
.anim .product-card.reveal.in:hover {
  transform: translateY(-3px);
  transition-delay: 0ms;
}
body.ready .hero-copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
body.ready .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
body.ready .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
body.ready .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
body.ready .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
body.ready .hero-tile {
  animation: tile-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
body.ready .hero-tile:nth-child(2) { animation-delay: 0.12s; }
body.ready .hero-tile:nth-child(3) { animation-delay: 0.24s; }
body.ready .hero-badge {
  animation: rise 0.7s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both, float 5s 1.2s ease-in-out infinite;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
}
@keyframes tile-in {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
}
@keyframes float {
  50% { transform: translateY(-8px); }
}
.btn:active {
  transform: scale(0.97);
}

/* Páginas legales */
.legal-body .header-inner {
  justify-content: space-between;
}
.legal-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding-block: 48px 72px;
  align-items: start;
}
.legal-tabs {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
}
.legal-tabs a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.legal-tabs a:hover {
  background: var(--surface-2);
}
.legal-tabs a[aria-current="page"] {
  background: var(--charcoal);
  color: #fff;
}
.legal-article {
  max-width: 72ch;
  padding: 40px 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.legal-article h1 {
  margin: 8px 0 8px;
  font-size: clamp(32px, 5vw, 44px);
  color: var(--green-d);
}
.legal-intro {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.legal-date {
  margin: 8px 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.legal-article h2 {
  margin: 28px 0 8px;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.legal-article p,
.legal-article li {
  color: #3d443d;
}
.legal-article ul {
  padding-left: 20px;
}
.legal-article li {
  margin-bottom: 6px;
}
.legal-foot {
  padding: 24px 0;
  text-align: center;
}

@media (max-width: 980px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .announce-socials {
    display: none;
  }
  .legal-page {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
  }
  .legal-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .legal-tabs a {
    flex: none;
  }
}

@media (max-width: 600px) {
  .announce {
    font-size: 12.5px;
  }
  .trust {
    padding-bottom: 48px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .seal {
    padding: 16px;
  }
  .social-grid {
    gap: 8px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .pm-facts div {
    padding: 10px;
  }
  .pm-related-name {
    font-size: 12px;
  }
  .legal-article {
    padding: 26px 20px;
    border-radius: 20px;
  }
  .legal-back {
    padding-inline: 12px;
  }
}

/* La foto acompaña al bajar por la ficha */
@media (min-width: 981px) {
  .product-modal-card {
    background: linear-gradient(90deg, var(--tint, var(--surface-2)) calc(100% / 2.1), var(--surface) 0);
  }
  .pm-gallery {
    position: sticky;
    top: 0;
    align-self: start;
  }
}
.pm-related-list .price.ask {
  font-size: 12.5px;
}

/* ------------------------------------------------------------------------- */
/* Comercio: estrellas, favoritos, orden, sugerencias, reseñas               */

.stars {
  --r: 0;
  position: relative;
  display: inline-block;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
  background: linear-gradient(90deg, #f2a91e calc(var(--r) / 5 * 100%), #d6dbd2 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stars.lg {
  font-size: 24px;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* Herramientas del catálogo */
.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 28px;
}
.catalog-tools .chips {
  margin-bottom: 0;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.result-count {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.sort select {
  height: 40px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232623' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    right 12px center / 14px no-repeat;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}
.sort select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.chip-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip-fav svg {
  width: 15px;
  height: 15px;
  color: #d9435b;
}
.chip-fav[aria-pressed="true"] svg {
  color: #fff;
  fill: #fff;
}

/* Sugerencias del buscador */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: pop 0.15s ease;
}
.search-suggest li > button {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.search-suggest li.active > button,
.search-suggest li > button:hover {
  background: var(--surface-2);
}
.sug-img {
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--tint, var(--surface-2));
}
.search .sug-img img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.sug-text {
  display: grid;
  min-width: 0;
}
.sug-text strong {
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sug-text small {
  color: var(--muted);
  font-size: 12px;
}
.search-suggest .price {
  font-size: 14px;
}
.search-suggest .price.ask {
  font-size: 11.5px;
}
.sug-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* Tarjeta: favorito y piezas limitadas */
.product-card {
  position: relative;
}
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.15s;
}
.fav-btn svg {
  width: 19px;
  height: 19px;
}
.fav-btn:hover {
  transform: scale(1.08);
}
.fav-btn[aria-pressed="true"],
.fav-toggle[aria-pressed="true"] {
  color: #d9435b;
}
.fav-btn[aria-pressed="true"] svg,
.fav-toggle[aria-pressed="true"] svg {
  fill: currentColor;
  animation: heart 0.35s ease;
}
@keyframes heart {
  50% { transform: scale(1.3); }
}
.badge-low {
  background: #fde3d6;
  color: #a2401a;
}
.add-btn svg {
  width: 16px;
  height: 16px;
}

/* Vistos recientemente */
.recent-section {
  padding: 0 0 56px;
}
.recent-head h2 {
  margin: 0 0 16px;
  font-size: 24px;
}
.recent-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.mini-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.mini-img {
  display: block;
  aspect-ratio: 1;
  background: var(--tint, var(--surface-2));
}
.mini-img img {
  width: 100%;
  height: 100%;
  padding: 10%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.mini-name {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.mini-card .price {
  padding: 0 10px;
  font-size: 14px;
}
.mini-card .price.ask {
  font-size: 12px;
}

/* Ficha: calificación, comprar ahora, avísame, reseñas */
.pm-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.pm-rating:hover span {
  text-decoration: underline;
}
.pm-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.btn-dark {
  background: var(--charcoal);
  color: #fff;
}
.btn-dark:hover {
  background: #1f1f1f;
}
.pm-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.pm-secondary .btn {
  width: 100%;
}
.waitlist {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 1px dashed #c9d2c4;
  border-radius: 16px;
  background: var(--bg);
}
.waitlist p {
  margin: 0;
  font-size: 14px;
}
.waitlist-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.waitlist small {
  font-size: 12px;
}
.waitlist-done {
  display: flex;
  align-items: center;
  gap: 10px;
}
.waitlist-done svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.pm-reviews {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.reviews-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: var(--bg);
  text-align: center;
}
.reviews-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg);
}
.reviews-avg {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.reviews-avg strong {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
}
.reviews-avg small {
  color: var(--muted);
  font-size: 12px;
}
.reviews-bars {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.reviews-bars div {
  display: grid;
  grid-template-columns: 26px 1fr 22px;
  align-items: center;
  gap: 8px;
}
.reviews-bars i {
  height: 7px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--line);
}
.reviews-bars b {
  display: block;
  height: 100%;
  background: #f2a91e;
}
.reviews-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reviews-list li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.review-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.review-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.review-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
}
.reviews-list p {
  margin: 10px 0 0;
  font-size: 14px;
}
.review-reply {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--bg);
  font-size: 13px;
}
.review-reply p {
  margin: 4px 0 0;
}

/* Barra fija para comprar en el celular */
.pm-sticky {
  display: none;
}

/* Carrito: complementa tu pedido y aviso con botón */
.cross-sell {
  margin: 16px 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg);
}
.cross-sell h3 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cross-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.cross-item + .cross-item {
  border-top: 1px solid var(--line);
}
.cross-img {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--tint, var(--surface-2));
}
.cross-img img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.cross-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}
.cross-item .price {
  font-size: 14px;
}
.cross-item .price.ask {
  font-size: 12px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 14px;
}
.toast-action {
  flex: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Rastreo: calificar productos */
.review-forms {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.review-forms h3 {
  margin: 0;
  font-size: 19px;
}
.review-forms > p {
  margin: 0;
}
.review-form {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.review-form.done {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 14px;
}
.review-form.done svg {
  width: 18px;
  height: 18px;
}
.review-form-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.star-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.star-input label {
  font-size: 30px;
  line-height: 1;
  color: #d6dbd2;
  cursor: pointer;
  transition: color 0.12s, transform 0.12s;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: #f2a91e;
}
.star-input label:hover {
  transform: scale(1.12);
}
.star-input input:focus-visible + label {
  outline: 2px solid var(--green);
  border-radius: 4px;
}

/* Página 404 */
.notfound-body {
  display: grid;
  min-height: 100dvh;
  place-items: center;
}
.notfound {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 520px;
  padding: 32px 20px;
  text-align: center;
}
.notfound img {
  border-radius: 22px;
  margin-bottom: 8px;
}
.notfound h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 44px);
  color: var(--green-d);
}
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .recent-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .catalog-tools {
    margin-bottom: 20px;
  }
  .sort-wrap {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .sort > span {
    display: none;
  }
  .fav-btn {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }
  .rating small {
    font-size: 12px;
  }
  .recent-list {
    display: flex;
    overflow-x: auto;
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: none;
  }
  .mini-card {
    flex: 0 0 140px;
  }
  .waitlist-fields {
    grid-template-columns: 1fr;
  }
  .pm-sticky {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -20px -24px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
  }
  .pm-sticky .price {
    font-size: 20px;
  }
  .pm-sticky .price.ask {
    font-size: 14px;
  }
  .reviews-summary {
    grid-template-columns: 1fr;
  }
}

/* Pantallas muy angostas: el selector de orden no desborda */
.sort-wrap {
  min-width: 0;
  flex-wrap: wrap;
}
.sort select {
  max-width: 100%;
  min-width: 0;
}
.sort {
  min-width: 0;
}
