:root {
  color-scheme: dark;
  --black: #080808;
  --ink: #141414;
  --panel: #1d1d1d;
  --paper: #f7f4ef;
  --muted: #aaa39a;
  --line: rgba(255, 255, 255, 0.12);
  --red: #e1132f;
  --red-dark: #a70c20;
  --gold: #d6b268;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --quicknav-h: 46px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--black);
  color: white;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: var(--quicknav-h);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
}

.quick-nav {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--quicknav-h);
  padding: 0 clamp(12px, 3vw, 32px);
  background: var(--black);
  border-bottom: 1px solid var(--line);
}

.quick-nav-logo {
  display: flex;
  align-items: center;
  min-width: max-content;
}

.quick-nav-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.quick-nav-search {
  flex: 1;
  min-width: 0;
  margin: 0 8px;
}

.quick-nav-search:not([hidden]) {
  display: block;
}

.quick-nav-search input {
  width: 100%;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 0.86rem;
}

.quick-nav-search input::placeholder {
  color: var(--muted);
}

.quick-nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.quick-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #dfdad3;
  cursor: pointer;
}

.quick-nav-btn:hover,
.quick-nav-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.quick-nav-categories span {
  font-size: 0.82rem;
  font-weight: 700;
}

.quick-nav-panel {
  position: absolute;
  top: 100%;
  right: clamp(12px, 3vw, 32px);
  z-index: 25;
  flex-direction: column;
  gap: 2px;
  width: min(260px, calc(100vw - 24px));
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.quick-nav-panel:not([hidden]) {
  display: flex;
}

.quick-nav-panel button {
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dfdad3;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.quick-nav-panel button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.quick-nav-panel button.active {
  background: var(--red);
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow,
.product-category {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  color: #dfdad3;
  font-size: 0.94rem;
}

main {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  min-height: calc(100vh - 74px);
  padding: clamp(34px, 5vw, 68px) clamp(18px, 5vw, 72px) 40px;
}

.hero-copy {
  max-width: 560px;
}

.hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(3.8rem, 9vw, 7.8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-logo {
  display: block;
  width: clamp(76px, 9vw, 108px);
  height: auto;
  margin: 18px 0 18px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.42));
}

.hero-text {
  max-width: 500px;
  margin: 0 0 26px;
  color: #d7d0c8;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button:hover,
.filter-row button:hover,
.icon-button:hover,
.gallery-nav:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--red);
  color: white;
}

.primary:hover {
  background: #ff1739;
}

.secondary,
.dark {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.whatsapp {
  background: #128c4a;
  color: white;
}

.full {
  width: 100%;
}

.hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: min(620px, calc(100vh - 138px));
}

.showcase-card,
.product-card,
.featured-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141414;
  box-shadow: var(--shadow);
}

.showcase-card {
  position: relative;
  display: grid;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(225, 19, 47, 0.16), transparent 46%),
    #050505;
}

.showcase-card.tall {
  grid-row: 1 / span 2;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  object-position: center;
}

.showcase-card div {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 46px 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.showcase-card span,
.showcase-card strong {
  display: block;
}

.showcase-card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.showcase-card strong {
  margin-top: 4px;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.featured-section,
.catalog-section,
.offers-band,
.footer {
  padding-right: clamp(18px, 5vw, 72px);
  padding-left: clamp(18px, 5vw, 72px);
}

#catalogo,
#ofertas,
#productGrid {
  scroll-margin-top: calc(var(--quicknav-h) + 74px);
}

.featured-section,
.catalog-section {
  padding-top: clamp(48px, 7vw, 86px);
  padding-bottom: clamp(48px, 7vw, 86px);
}

.section-heading,
.catalog-head,
.offers-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

h2 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.featured-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #101010;
  color: white;
  cursor: zoom-in;
}

.card-media img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  object-position: center;
  transition: transform 240ms ease;
}

.product-card:hover .card-media img {
  transform: scale(1.035);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 4px;
  background: var(--red);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.card-body h3 {
  margin: 4px 0 8px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.card-body p {
  margin: 0;
  color: #cfc7be;
  line-height: 1.45;
}

.simple-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.simple-price del {
  color: #8f877e;
  font-weight: 700;
}

.simple-price strong {
  color: white;
  font-size: 1.7rem;
}

.temple-price-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.temple-price-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.temple-price-option:hover {
  border-color: rgba(225, 19, 47, 0.6);
}

.temple-price-option span {
  color: #cfc7be;
  font-size: 0.86rem;
  font-weight: 700;
}

.temple-price-option strong {
  min-width: max-content;
}

.temple-price-option.is-selected {
  border-color: rgba(225, 19, 47, 0.6);
  background: rgba(225, 19, 47, 0.12);
}

.catalog-section {
  background: var(--paper);
  color: var(--black);
}

.catalog-section .eyebrow,
.catalog-section .product-category {
  color: #7a726a;
}

.catalog-section .product-card {
  background: white;
  color: var(--black);
  box-shadow: 0 20px 60px rgba(10, 10, 10, 0.12);
}

.catalog-section .card-body p,
.catalog-section .temple-price-option span {
  color: #625b55;
}

.catalog-section .simple-price strong {
  color: var(--red);
}

.catalog-section .temple-price-option {
  border-color: rgba(0, 0, 0, 0.12);
}

.catalog-section .dark {
  background: var(--black);
}

.search-box {
  display: grid;
  gap: 8px;
  min-width: min(100%, 360px);
  color: #615b54;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 6px;
  padding: 0 14px;
  background: white;
  color: var(--black);
  outline: none;
}

.search-box input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(225, 19, 47, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.filter-row button,
.link-button,
.icon-button,
.gallery-nav {
  cursor: pointer;
}

.filter-row button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  font-weight: 800;
}

.filter-row button.active {
  border-color: var(--black);
  background: var(--black);
  color: white;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  color: #6d655e;
  font-weight: 800;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--red-dark);
  font-weight: 900;
}

.empty-state {
  padding: 40px 0;
  color: #625b55;
  font-weight: 800;
}

.offers-band {
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--red-dark);
}

.offers-band p {
  max-width: 780px;
  margin: 12px 0 0;
  color: #ffe3e0;
  line-height: 1.6;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.footer p {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--muted);
}

.footer p a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
}

.image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 260px;
  place-content: center;
  gap: 10px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(225, 19, 47, 0.18), transparent 40%),
    #171717;
  color: white;
  text-align: center;
}

.image-placeholder span {
  color: var(--red);
  font-weight: 900;
}

.image-placeholder strong {
  font-size: 1.2rem;
}

.image-placeholder small {
  color: var(--muted);
  font-weight: 800;
}

.product-modal {
  width: min(1100px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  color: white;
  box-shadow: var(--shadow);
}

.product-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 0;
  max-height: calc(100vh - 28px);
  overflow: hidden;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
}

.icon-button,
.gallery-nav {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  font-size: 1.8rem;
  line-height: 1;
}

.modal-gallery {
  position: relative;
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  min-height: 620px;
  background: #050505;
}

.modal-image-wrap {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  font-size: 2rem;
}

#prevImage {
  left: 14px;
}

#nextImage {
  right: 14px;
}

.thumb-row {
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.thumb-row button {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
}

.thumb-row button.active {
  border-color: var(--red);
}

.thumb-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 4vw, 42px);
  min-height: 0;
  overflow-y: auto;
}

.modal-info h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.modal-info p {
  margin: 0;
  color: #d7d0c8;
  line-height: 1.6;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.detail-list div {
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.detail-list span,
.detail-list strong {
  display: block;
}

.detail-list span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .hero,
  .modal-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-showcase {
    min-height: 0;
    grid-template-rows: minmax(360px, 0.95fr) minmax(240px, 0.7fr);
  }

  .featured-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-gallery {
    min-height: 420px;
  }
}

/* ---------- Carrito y checkout ---------- */

.cart-toggle {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  place-items: center;
  line-height: 1;
}

.cart-count:not([hidden]) {
  display: grid;
}

.cart-toast {
  position: fixed;
  top: 86px;
  left: 50%;
  z-index: 60;
  align-items: center;
  gap: 14px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.cart-toast:not([hidden]) {
  display: flex;
}

.cart-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cart-toast strong {
  color: var(--gold);
}

.cart-toast-view {
  flex: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 720px) {
  .cart-toast {
    top: auto;
    bottom: 18px;
    transform: translate(-50%, 12px);
  }

  .cart-toast.is-visible {
    transform: translate(-50%, 0);
  }
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.6);
}

/* En escritorio el carrito es un panel lateral que no bloquea el catalogo:
   se puede seguir explorando y agregando productos mientras esta abierto. */
@media (min-width: 721px) {
  .cart-backdrop {
    display: none;
  }
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  flex-direction: column;
  width: min(420px, 100vw);
  background: var(--ink);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: white;
}

.cart-drawer:not([hidden]) {
  display: flex;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}

.cart-empty {
  padding: 40px 0;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line-media {
  overflow: hidden;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #050505;
}

.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-line-name {
  margin: 0;
  font-weight: 800;
}

.cart-line-variant {
  margin: 2px 0 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-line-price {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-line-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  text-align: right;
}

.cart-line-end .link-button {
  font-size: 0.8rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: max-content;
}

.qty-btn {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.qty-value {
  min-width: 1.4ch;
  text-align: center;
  font-weight: 800;
}

.cart-drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.cart-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-drawer-footer .link-button {
  display: block;
  margin: 10px auto 0;
}

/* Controles "agregar al carrito" dentro de tarjetas y modal */

.add-to-cart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.add-to-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.add-to-cart-btn {
  flex: 1;
}

.add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Dialogo de checkout (pasos) */

.checkout-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  color: white;
  box-shadow: var(--shadow);
}

.checkout-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.checkout-shell {
  position: relative;
  max-height: calc(100vh - 28px);
  padding: clamp(24px, 4vw, 40px);
  overflow-y: auto;
}

.checkout-shell .close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
}

.checkout-step h2 {
  margin: 4px 0 20px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-weight: 800;
}

.field input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  outline: none;
}

.field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(225, 19, 47, 0.2);
}

.field-group {
  margin-bottom: 16px;
}

.field-group-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-option {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.segmented-option.is-selected {
  border-color: var(--red);
  background: var(--red);
}

.destination-fields {
  margin-bottom: 4px;
}

.field-hint {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid rgba(225, 19, 47, 0.5);
  border-radius: 6px;
  background: rgba(225, 19, 47, 0.12);
  color: #ffb3ba;
  font-weight: 700;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.checkout-actions .button {
  flex: 1 1 160px;
}

.summary-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d7d0c8;
  font-size: 0.9rem;
}

.summary-totals {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
}

.summary-row.advance {
  background: rgba(225, 19, 47, 0.16);
}

.summary-row.advance strong {
  font-size: 1.3rem;
  color: white;
}

.summary-row.shipping {
  color: var(--muted);
  font-size: 0.85rem;
}

.summary-row.shipping strong {
  font-weight: 700;
  font-size: 0.85rem;
}

.delivery-terms {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  line-height: 1.55;
}

.delivery-terms-title {
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 800;
}

.delivery-terms p {
  margin: 0 0 6px;
  color: #d7d0c8;
}

.delivery-terms p:last-child {
  margin-bottom: 0;
}

.payment-methods {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.payment-method {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
}

.payment-method.is-selected {
  border-color: var(--red);
  background: rgba(225, 19, 47, 0.18);
}

.payment-detail {
  min-height: 40px;
}

.payment-qr {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--black);
  text-align: center;
}

.payment-qr img {
  width: min(220px, 60vw);
  height: auto;
  border-radius: 6px;
}

.payment-holder {
  margin: 0;
  font-weight: 800;
}

.payment-phone {
  margin: 0;
  color: #6d655e;
  font-size: 0.86rem;
}

.payment-qr-hint {
  margin: 0;
  max-width: 320px;
  color: #6d655e;
  font-size: 0.8rem;
}

.payment-phone-box {
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.payment-phone-box p {
  margin: 0 0 8px;
  color: #6d655e;
  font-size: 0.86rem;
}

.payment-phone-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-phone-number {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.payment-qr-missing {
  background: rgba(255, 255, 255, 0.05);
  color: #d7d0c8;
}

.payment-disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .site-header,
  .catalog-head,
  .section-heading,
  .offers-band,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  nav {
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 22vw, 6.2rem);
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(280px, 48vh));
    min-height: 0;
  }

  .showcase-card.tall {
    grid-row: auto;
  }

  .featured-grid,
  .product-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .card-actions .button {
    flex: 1 1 160px;
  }

  .modal-info {
    padding-bottom: 30px;
  }

  .cart-drawer {
    width: 100vw;
    border-left: 0;
  }

  .checkout-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .checkout-shell {
    max-height: 100%;
  }

  .payment-qr {
    gap: 6px;
    padding: 12px;
  }

  .payment-qr img {
    width: min(130px, 34vw);
  }

  .payment-qr-hint {
    font-size: 0.74rem;
  }

  .payment-disclaimer {
    margin-top: 8px;
    font-size: 0.74rem;
  }

  .field-hint {
    font-size: 0.82rem;
  }

  .payment-phone-box {
    padding-top: 8px;
  }

  .payment-methods {
    flex-direction: column;
  }

  .checkout-actions .button {
    flex: 1 1 100%;
  }
}

/* Botón flotante de WhatsApp (todas las páginas) */
.ba-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.ba-wa__icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease;
}

.ba-wa__icon::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.55;
  animation: ba-wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}

.ba-wa:hover .ba-wa__icon {
  transform: scale(1.06);
}

.ba-wa__label {
  background: #2b2b2b;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 9px 12px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.ba-wa:hover .ba-wa__label {
  opacity: 1;
  transform: translateX(0);
}

@keyframes ba-wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.7);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .ba-wa__label {
    display: none;
  }
  .ba-wa {
    right: 14px;
    bottom: 14px;
  }
  .ba-wa__icon,
  .ba-wa__icon::after {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ba-wa__icon::after {
    animation: none;
    opacity: 0;
  }
}

/* Botón flotante de carrito: solo en móvil, para que siempre se pueda
   llegar al carrito aunque se haya scrolleado lejos del header. */
.cart-float {
  display: none;
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 45;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: white;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.cart-float-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 900;
  place-items: center;
  line-height: 1;
}

.cart-float-count:not([hidden]) {
  display: grid;
}

@media (max-width: 720px) {
  .cart-float {
    display: flex;
  }
}

/* Enlaces de páginas legales en el footer */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: underline;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Páginas de contenido (Políticas, Nosotros) */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) clamp(18px, 5vw, 72px) clamp(64px, 8vw, 96px);
}

.legal-page .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.legal-page .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 36px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 16px 20px;
  margin: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
}

.legal-toc a {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
}

.legal-page section {
  padding-top: 8px;
  margin-top: 8px;
  scroll-margin-top: 90px;
}

.legal-page section + section {
  border-top: 1px solid var(--line);
  padding-top: 36px;
  margin-top: 36px;
}

.legal-page h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 16px;
}

.legal-page h3 {
  color: var(--gold);
  font-size: 1.05rem;
  margin: 22px 0 8px;
}

.legal-page p,
.legal-page li {
  color: #dfdad3;
  line-height: 1.65;
}

.legal-page ul,
.legal-page ol {
  padding-left: 22px;
}

.legal-page a {
  color: var(--gold);
  text-decoration: underline;
}

.legal-page strong {
  color: white;
}
