

@font-face {
  font-family: "Mulgrave";
  src: url("../fonts/Mulgrave W00 Regular/Web Fonts/c7a6aeea915a139782e569aaaf55a5aa.woff2") format("woff2"),
       url("../fonts/Mulgrave W00 Regular/Mulgrave W00 Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Magda Text";
  src: url("../fonts/Magda Text Regular/Magda Text Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nu Century Gothic";
  src: url("../fonts/NuCenturyGothic/nu_century_gothic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HandStamp Swiss Rough Sans";
  src: url("../fonts/HandStamp/HandStampSwissRoughSans.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {

  color-scheme: light dark;
  --tienda-bg: #ffffff;
  --tienda-fg: #0f0f0f;
  --tienda-accent: #e60000;
  --tienda-muted: #6b6b6b;
  --font-ui: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-title: "Mulgrave", "Bebas Neue", Impact, sans-serif;
  --font-desc: "Nu Century Gothic", "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; touch-action: manipulation; }

body.tienda-body {
  min-height: 100svh;

  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  color: var(--tienda-fg);
  background: var(--tienda-bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.tienda-body > main { flex: 1 0 auto; }

body.tienda-body.tienda-dark {
  --tienda-bg: #0f0f0f;
  --tienda-fg: #f1ede4;
  --tienda-muted: rgba(241, 237, 228, 0.6);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.tienda-container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.tienda-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;

  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem clamp(1.2rem, 4vw, 3rem);
  background: var(--tienda-bg);
  transition: background-color 0.35s ease;
}

.tienda-logo { position: relative; flex: none; }

.tienda-logo-img {
  height: 30px;
  width: auto;
  transition: opacity 0.35s ease;
}

.tienda-logo-img--dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}

body.tienda-dark .tienda-logo-img--light { opacity: 0; }
body.tienda-dark .tienda-logo-img--dark { opacity: 1; }

.tienda-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 3.4vw, 3rem);
}

.tienda-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: var(--tienda-fg);
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.35s ease, border-color 0.2s ease;
}

.tienda-nav a.is-active,
.tienda-nav a:hover,
.tienda-nav a:focus-visible {
  border-bottom-color: var(--tienda-fg);
}

.cart-btn {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  color: var(--tienda-fg);
  cursor: pointer;
  transition: color 0.35s ease;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  place-items: center;
  border-radius: 999px;
  background: var(--tienda-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

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

@keyframes cart-count-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.cart-count.is-pulsing { animation: cart-count-pulse 0.4s ease; }

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translate(-50%, 12px);
  z-index: 200;
  opacity: 0;
  max-width: calc(100vw - 2.4rem);
  background: var(--tienda-fg);

  color: var(--tienda-bg);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.talle-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(15, 15, 15, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.talle-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.talle-modal {
  width: min(360px, 100%);
  background: var(--tienda-bg);
  color: var(--tienda-fg);
  padding: 1.4rem;
  border-radius: 10px;
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.talle-modal-overlay.is-open .talle-modal { transform: scale(1); }

.talle-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.talle-modal-nombre {
  font-weight: 600;
  font-size: 0.95rem;
}

.talle-modal-close {
  flex: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--tienda-fg);
  padding: 0.2rem;
}

.talle-modal-label {
  font-size: 0.82rem;
  color: var(--tienda-muted);
  margin-bottom: 0.8rem;
}

.talle-modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.talle-modal-error {
  font-size: 0.78rem;
  color: var(--tienda-accent);
  margin-bottom: 0.8rem;
}

.talle-modal-confirm {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 8px;
  background: var(--tienda-fg);
  color: var(--tienda-bg);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.talle-modal-confirm:hover { opacity: 0.85; }

.burger {
  display: none;
  position: fixed;
  top: 0.9rem;
  right: 1rem;
  z-index: 130;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(15, 15, 15, 0.25);
  padding: 0.55rem;
  cursor: pointer;
  transition: border-color 0.35s ease;
}

body.tienda-dark .burger { border-color: rgba(255, 255, 255, 0.3); }

.burger span {
  width: 22px;
  height: 2px;
  background: var(--tienda-fg);
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.35s ease;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--tienda-bg);
  display: grid;
  place-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, background-color 0.35s ease;
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu nav {
  display: grid;
  gap: 1.4rem;
}

.mobile-menu nav a {
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--tienda-fg);
  transition: color 0.35s ease;
}

.tienda-panel {
  position: relative;
  padding-block: clamp(2rem, 5vw, 3.4rem);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.tienda-panel[hidden] { display: none; }

.tienda-panel.is-switching { opacity: 0; }

.tienda-placeholder-text { color: var(--tienda-muted); }

.tienda-panel[data-panel="servicios"] {
  background: var(--tienda-bg);
  color: var(--tienda-fg);
  margin-inline: calc(50% - 50vw);
  padding-inline: clamp(1.2rem, 4vw, 3rem);
  transition: background-color 0.35s ease, color 0.35s ease;
}

.servicios-grid {
  width: min(1200px, 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.servicio-card { position: relative; }

.servicio-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, #3a3a3a 0%, #101010 70%);
}

.servicio-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: grayscale(1);
}

.servicio-media::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.servicio-info {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  z-index: 1;
}

.servicio-label {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.servicio-desc {
  font-family: var(--font-desc);
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s ease, opacity 0.6s ease;
}

@media (hover: hover) {
  .servicio-card:hover .servicio-desc,
  .servicio-card:focus-within .servicio-desc {
    max-height: 160px;
    opacity: 1;
  }
}

@media (hover: none) {
  .servicio-desc {
    max-height: none;
    opacity: 1;
    position: static;
  }
}

.estudios {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.estudios-titulo {

  font-family: "HandStamp Swiss Rough Sans", "Bebas Neue", Impact, sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.35;
  text-align: center;

  max-width: 46ch;
  margin-inline: auto;
}

.estudios-sinlimites {
  text-align: center;
  color: var(--tienda-accent);
  font-weight: 700;

  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  letter-spacing: 0.9em;
  text-indent: 0.9em;
  text-transform: uppercase;
  margin: 1rem 0 2rem;
}

.estudios-mapa-wrap {
  display: flex;
  height: clamp(420px, 55vw, 560px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.estudios-lista {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.estudios-buscar {
  flex: none;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 0.9rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  background: var(--tienda-bg);
  color: var(--tienda-fg);
}

.estudios-buscar::placeholder { color: var(--tienda-muted); }

.estudios-items {
  flex: 1;
  overflow-y: auto;

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) #1a1a1a;
}

.estudios-items::-webkit-scrollbar { width: 8px; }
.estudios-items::-webkit-scrollbar-track { background: #1a1a1a; }
.estudios-items::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}
.estudios-items::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

.estudios-loading {
  padding: 1.2rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--tienda-muted);
  text-align: center;
}

.estudio-item:not([hidden]) {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: none;
  cursor: pointer;
  font-family: var(--font-ui);
}

.estudio-item:hover,
.estudio-item:focus-visible { background: rgba(255, 255, 255, 0.08); }

.estudio-item-nombre {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--tienda-fg);
}

.estudio-item-lugar {
  display: block;
  font-size: 0.78rem;
  color: var(--tienda-muted);
  margin-top: 0.15rem;
}

.estudios-map {
  flex: 1;
  position: relative;
  background: #1a1a1a;
}

.estudios-map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--tienda-muted);
  font-size: 0.85rem;
  max-width: 32ch;
  margin-inline: auto;
}

.estudio-popup { min-width: 160px; }

.estudio-popup-foto {
  aspect-ratio: 4 / 3;
  margin-bottom: 0.5rem;
  overflow: hidden;
  border-radius: 4px;
}

.estudio-popup-foto img { width: 100%; height: 100%; object-fit: cover; }

.estudio-popup-foto--vacia { background: #2a2a2a; }

.mapboxgl-popup-content {
  background: #1a1a1a;
  color: var(--tienda-fg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.mapboxgl-popup-close-button { color: var(--tienda-fg); }

.mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip { border-bottom-color: #1a1a1a; }

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip { border-top-color: #1a1a1a; }

.mapboxgl-popup-anchor-left .mapboxgl-popup-tip { border-right-color: #1a1a1a; }
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip { border-left-color: #1a1a1a; }

.estudios-map .mapboxgl-ctrl-group {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.estudios-map .mapboxgl-ctrl-icon { filter: invert(1); }

.estudios-map .mapboxgl-ctrl-attrib {
  background: rgba(15, 15, 15, 0.7);
  color: rgba(241, 237, 228, 0.7);
}

.estudios-map .mapboxgl-ctrl-attrib a { color: rgba(241, 237, 228, 0.7); }

.estudios-cta {
  text-align: center;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.estudios-cta-titulo {

  font-family: "HandStamp Swiss Rough Sans", "Bebas Neue", Impact, sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 0.5rem;
}

.estudios-cta-desc {
  font-family: var(--font-desc);
  font-weight: 400;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--tienda-muted);
}

.estudios-cta .servicios-contacto-whatsapp { margin-top: 1.4rem; }

.servicios-contacto-whatsapp {
  margin-top: 0.5rem;
}

.servicios-contacto-whatsapp p {
  font-family: var(--font-desc);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.blur-reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(8px);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}

.blur-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.estudios-sinlimites.blur-reveal { transition-delay: 0.1s; }
.servicios-contacto-whatsapp.blur-reveal { transition-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
  .blur-reveal { opacity: 1; filter: none; transform: none; transition: none; }
  .product-skeleton-card { animation: none; }
  .tienda-panel { transition: none; }
}

.estudio-popup-nombre {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--tienda-fg);
}

.estudio-popup-lugar {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--tienda-muted);
}

@media (max-width: 700px) {
  .servicios-grid { grid-template-columns: 1fr; }
  .estudios-mapa-wrap { flex-direction: column; height: auto; }
  .estudios-lista { flex: none; border-right: none; border-bottom: 1px solid rgba(15, 15, 15, 0.12); max-height: 260px; }

  .estudios-map { flex: none; width: 100%; height: 320px; }
}

.product-grid:not([hidden]) {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 0.9rem);
}

.product-card { position: relative; display: grid; gap: 0.5rem; }

.product-grid {
  transition: opacity 0.3s ease;
}

.product-grid.is-loading {
  opacity: 0;
}

.product-grid-skeleton {
  position: absolute;
  inset: 0;
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 0.9rem);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-grid-skeleton.is-loaded { opacity: 0; }

.product-skeleton-card {
  aspect-ratio: 3 / 4;
  background: linear-gradient(100deg, rgba(15, 15, 15, 0.06) 30%, rgba(15, 15, 15, 0.12) 50%, rgba(15, 15, 15, 0.06) 70%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.4s ease-in-out infinite;
}

@keyframes skeleton-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 900px) {
  .product-grid-skeleton { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .product-grid-skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.product-card-link {
  display: grid;
  gap: 0.5rem;
  color: inherit;
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ececec;
}

.product-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-weight: 700;
  font-size: 2.4rem;
  color: rgba(15, 15, 15, 0.12);
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-image-hover {
  opacity: 0;
  transform: scale(1.38);
}

@media (hover: hover) {
  .product-card:hover .product-image-main,
  .product-card:focus-within .product-image-main {
    opacity: 0;
  }

  .product-card:hover .product-image-hover,
  .product-card:focus-within .product-image-hover {
    opacity: 1;
  }
}

.product-image.is-touch-hover .product-image-main { opacity: 0; }
.product-image.is-touch-hover .product-image-hover { opacity: 1; }

.product-badge {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  background: var(--tienda-fg);
  color: #fff;
  font-family: "HandStamp Swiss Rough Sans", "Bebas Neue", Impact, sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.product-title {

  font-family: var(--font-desc);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--tienda-fg);
}

.product-price {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--tienda-muted);
}

@media (hover: hover) {
  .product-title,
  .product-price {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .product-card:hover .product-title,
  .product-card:focus-within .product-title,
  .product-card:hover .product-price,
  .product-card:focus-within .product-price {
    opacity: 1;
    transform: none;
  }

  .product-badge {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .product-card:hover .product-badge,
  .product-card:focus-within .product-badge {
    opacity: 1;
    transform: translateX(-50%);
  }
}

.product-add {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--tienda-fg);
  background: #fff;
  border: 1px solid var(--tienda-fg);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.2s ease, transform 0.15s ease;
}

.product-add svg { width: 16px; height: 16px; }

@media (hover: hover) {
  .product-add { opacity: 0; }

  .product-card:hover .product-add,
  .product-card:focus-within .product-add {
    opacity: 1;
  }
}

.product-add:hover,
.product-add:focus-visible {
  background: var(--tienda-fg);
  color: #fff;
  transform: scale(1.08);
}

.product-add:disabled {
  cursor: default;
  border-color: rgba(15, 15, 15, 0.2);
  background: #f4f4f4;
  color: var(--tienda-muted);
}

.product-add:disabled:hover { transform: none; }

.tienda-footer {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-block: 1.1rem;
  padding-inline: clamp(1.2rem, 4vw, 3rem);
  border-top: 1px solid rgba(15, 15, 15, 0.1);
  font-size: 0.78rem;
  color: var(--tienda-muted);
  transition: color 0.35s ease, border-color 0.35s ease;
}

.tienda-footer-logo { position: relative; flex: none; }

.tienda-footer-logo-img {
  height: 16px;
  width: auto;
  display: block;
  transition: opacity 0.35s ease;
}

.tienda-footer-logo-img--dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}

body.tienda-dark .tienda-footer-logo-img--light { opacity: 0; }
body.tienda-dark .tienda-footer-logo-img--dark { opacity: 1; }

body.tienda-dark .tienda-footer { border-top-color: rgba(255, 255, 255, 0.15); }

.tienda-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.tienda-footer a { color: var(--tienda-fg); font-weight: 600; transition: color 0.35s ease; }
.tienda-footer a:hover { text-decoration: underline; }

.tienda-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}

.tienda-footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.tienda-footer-social a:hover { text-decoration: none; }

.tienda-footer-social-icon {
  display: inline-block;
  font-size: 1.15em;
  font-weight: 700;
  transition: transform 0.4s ease;
}

.tienda-footer-social a:hover .tienda-footer-social-icon,
.tienda-footer-social a:focus-visible .tienda-footer-social-icon {
  transform: rotate(360deg);
}

@media (max-width: 860px) {
  .tienda-nav { display: none; }

  .tienda-topbar:has(+ .burger) .cart-btn { margin-right: 3.4rem; }
  .burger { display: flex; }

  .tienda-topbar { padding-block: 0.9rem; }

  .tienda-footer { padding-block: 0.9rem; }
  .tienda-footer-row {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 0.5rem 1.5rem;
  }
}

@media (max-width: 1100px) {
  .product-grid:not([hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .product-grid:not([hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(15, 15, 15, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 141;
  width: min(420px, 100vw);
  background: var(--tienda-bg);
  color: var(--tienda-fg);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(15, 15, 15, 0.1);
}

.cart-drawer-head h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--tienda-fg);
  padding: 0.3rem;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.cart-cols:not([hidden]) {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tienda-muted);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(15, 15, 15, 0.1);
  margin-bottom: 1.2rem;
}

.cart-empty {
  color: var(--tienda-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 3rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-block: 1.2rem;
}

.cart-item + .cart-item { border-top: 1px solid rgba(15, 15, 15, 0.08); }

.cart-item-media {
  flex: none;
  width: 64px;
  height: 64px;
  display: grid;
  place-content: center;
  background: #ececec;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(15, 15, 15, 0.18);
  overflow: hidden;
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-body { flex: 1; min-width: 0; }

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.88rem;
}

.cart-item-line-total {
  flex: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--tienda-muted);
  margin-top: 0.2rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.7rem;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(15, 15, 15, 0.18);
}

.qty-stepper button {
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--tienda-fg);
}

.qty-stepper span {
  width: 26px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tienda-muted);
  padding: 0.3rem;
  transition: color 0.15s ease;
}

.cart-item-remove:focus-visible { color: var(--tienda-fg); }

.cart-drawer-foot {
  border-top: 1px solid rgba(15, 15, 15, 0.1);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.cart-shipping { margin-bottom: 1rem; }

.cart-shipping-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tienda-muted);
  margin-bottom: 0.5rem;
}

.cart-shipping-row {
  display: flex;
  gap: 0.6rem;
}

.cart-shipping-row input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(15, 15, 15, 0.2);
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--tienda-fg);
  background: var(--tienda-bg);
}

.cart-shipping-row input:focus { outline: none; border-color: var(--tienda-fg); }

.cart-shipping-btn {
  flex: none;
  background: none;
  border: 1px solid var(--tienda-fg);
  color: var(--tienda-fg);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0 1.1rem;
  cursor: pointer;
}

.cart-shipping-btn:hover:not(:disabled) { background: var(--tienda-fg); color: var(--tienda-bg); }
.cart-shipping-btn:disabled { opacity: 0.5; cursor: default; }

.cart-shipping-msg {
  font-size: 0.78rem;
  color: var(--tienda-muted);
  line-height: 1.4;
  margin-top: 0.5rem;
}

.cart-shipping-msg.is-error { color: var(--tienda-accent); }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.cart-total-row--shipping {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--tienda-muted);
}

.cart-total-row--shipping[hidden] { display: none; }

.cart-note {
  font-size: 0.76rem;
  color: var(--tienda-muted);
  line-height: 1.4;
  margin-bottom: 1.2rem;
}

.cart-checkout {
  display: block;
  width: 100%;
  background: var(--tienda-fg);

  color: var(--tienda-bg);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 1rem;
  border: none;
  cursor: pointer;
}

@media (max-width: 480px) {
  .cart-drawer { width: 100vw; }
}

.producto-topbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 0.4rem;
  column-gap: 1.4rem;
  min-width: 0;
}

.producto-topbar-link {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.producto-topbar-link:hover { text-decoration: underline; }

.producto-detalle:not([hidden]) {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.producto-loading:not([hidden]) {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.producto-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(15, 15, 15, 0.15);
  border-top-color: var(--tienda-fg);
  border-radius: 50%;
  animation: producto-spin 0.7s linear infinite;
}

@keyframes producto-spin {
  to { transform: rotate(360deg); }
}

.producto-carrusel { position: relative; }

.producto-carrusel-viewport {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f3f3;
}

.producto-carrusel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.producto-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.producto-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.producto-slide .product-placeholder {
  position: static;
  font-size: 4rem;
}

.producto-arrow:not([hidden]) {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 15, 15, 0.15);
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--tienda-fg);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.producto-arrow--prev { left: 0.8rem; }
.producto-arrow--next { right: 0.8rem; }

.producto-contador {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  font-size: 0.74rem;
  color: var(--tienda-muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.producto-info { padding-top: 0.4rem; }

.producto-titulo {

  font-family: var(--font-desc);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.producto-precio {
  font-size: 1.1rem;
  color: var(--tienda-muted);
  margin-bottom: 1.6rem;
}

.producto-talles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.producto-talle-chip {
  min-width: 2.6rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(15, 15, 15, 0.2);
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: var(--tienda-fg);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.producto-talle-chip:hover:not(.is-agotado) { border-color: var(--tienda-fg); }

.producto-talle-chip.is-selected {
  background: var(--tienda-fg);
  border-color: var(--tienda-fg);
  color: var(--tienda-bg);
}

.producto-talle-chip.is-agotado {
  border-color: rgba(15, 15, 15, 0.12);
  color: var(--tienda-muted);
  text-decoration: line-through;
  cursor: not-allowed;
}

.producto-talles-error {
  margin: -1rem 0 1.6rem;
  font-size: 0.78rem;
  color: var(--tienda-accent);
}

.producto-botones {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.producto-botones .product-add,
.producto-botones .cart-checkout {
  width: 100%;
  text-align: center;
  padding: 0.95rem;
  font-size: 0.85rem;
}

.producto-botones .product-add {
  position: static;
  opacity: 1;
  border-radius: 0;
}

.producto-descripcion {
  font-family: var(--font-desc);
  display: grid;
  gap: 1rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--tienda-fg);
  max-width: 46ch;
}

.producto-no-encontrado {
  padding-block: 5rem;
  text-align: center;
  color: var(--tienda-muted);
}

.producto-no-encontrado a { font-weight: 600; text-decoration: underline; }

@media (max-width: 800px) {

  .producto-detalle:not([hidden]) { grid-template-columns: 1fr; }
}
