/* ============================================================
   EINARY - Tienda
   Direccion editorial calida (ref. El Refugio de Lana):
   serif expresiva en tinta, dos cremas alternadas, botones
   oscuros, un solo acento terracota y copy que vende.
   ============================================================ */

/* Utilidades compartidas */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 14px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
}

.section-head h2 em,
.hero-title em,
.story-text h2 em {
  font-style: normal;
  color: var(--terracota);
}

.section-sub {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Navegador vertical de secciones (linea de escenas) */
.scene-nav {
  position: fixed;
  left: clamp(14px, 2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0;
}

.scene-nav::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    rgba(198, 126, 110, 0.45) 0 5px,
    transparent 5px 10px
  );
}

.scene-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.scene-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cream-deep);
  box-shadow: 0 0 0 2px rgba(198, 126, 110, 0.5);
  transition: all 0.25s ease;
}

.scene-dot:hover .scene-mark {
  background: var(--terracota);
}

.scene-dot.is-active .scene-mark {
  width: 15px;
  height: 15px;
  background: var(--terracota);
  box-shadow: 0 0 0 4px rgba(198, 126, 110, 0.22);
}

.scene-label {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scene-dot.is-active .scene-label,
.scene-dot:hover .scene-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (min-width: 1180px) {
  .scene-nav {
    display: flex;
  }
}

/* Cabecera */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(16px, 5vw, 64px);
  background: rgba(252, 248, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(78, 54, 43, 0.09);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.header-nav {
  display: flex;
  gap: 22px;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.header-nav a:hover {
  color: var(--ink);
}

.search-box {
  flex: 1;
  max-width: 320px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid rgba(78, 54, 43, 0.12);
  border-radius: 999px;
  padding: 9px 18px;
  transition: border-color 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--terracota);
}

.search-box svg {
  width: 17px;
  height: 17px;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.95rem;
}

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(78, 54, 43, 0.12);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.cart-btn:hover {
  border-color: var(--ink);
  transform: scale(1.05);
}

.cart-btn svg {
  width: 21px;
  height: 21px;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: var(--accion);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Hero: ocupa la primera pantalla completa menos cabecera y cinta,
   para que la marquesina cierre el primer viewport. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  max-width: 1240px;
  margin: 0 auto;
  min-height: calc(100svh - var(--first-screen-offset, 116px));
  padding: clamp(20px, 3vw, 44px) clamp(16px, 5vw, 64px);
}

.hero-content, .hero-bento {
  position: relative;
  z-index: 1;
}

/* Decoracion de marca: nubes cosidas, estrellas y corazon */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.decor-star, .decor-heart {
  position: absolute;
  width: 20px;
  animation: twinkle 3.6s ease-in-out infinite;
}

.decor-star path, .decor-heart path {
  fill: currentColor;
}

.decor-star-1 { top: 9%; left: 44%; color: var(--pastel-yellow); }
.decor-star-2 { top: 16%; right: 3%; width: 16px; color: var(--pastel-lilac); animation-delay: 0.9s; }
.decor-star-3 { bottom: 14%; left: 2%; width: 15px; color: var(--pastel-teal); animation-delay: 1.8s; }
.decor-star-4 { bottom: 7%; right: 42%; width: 17px; color: var(--color-primario); animation-delay: 2.7s; }
.decor-heart { top: 46%; left: 47%; width: 15px; color: var(--rubor); animation-delay: 1.3s; }

.decor-cloud {
  position: absolute;
  width: clamp(80px, 8vw, 120px);
  animation: drift 11s ease-in-out infinite;
}

.decor-cloud path {
  fill: var(--white);
  stroke: rgba(198, 126, 110, 0.55);
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
}

.decor-cloud-1 { top: 5%; left: 1%; }
.decor-cloud-2 { bottom: 6%; right: 0%; width: clamp(64px, 6vw, 95px); animation-delay: 2.2s; }

.decor-cloud-2 path {
  stroke: rgba(150, 178, 158, 0.6);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(-6deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(8deg); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -7px); }
}

.hero-eyebrow {
  animation: rise 0.6s ease both;
}

.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  animation: rise 0.6s 0.06s ease both;
}

.hero-sub {
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 30px;
  animation: rise 0.6s 0.12s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.6s 0.18s ease both;
}

.hero-proof {
  margin-top: 18px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
  animation: rise 0.6s 0.24s ease both;
}

/* Bento de fotos */
.hero-bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 0.72fr;
  gap: 14px;
  height: clamp(360px, 33vw, 500px);
  animation: rise 0.7s 0.15s ease both;
}

.bento-tile {
  position: relative;
  border-radius: 24px;
  background-color: var(--cream-deep);
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

/* Costura punteada interior, como las etiquetas del kit de marca */
.bento-tile::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  border-radius: 17px;
  pointer-events: none;
}

.bento-d::after {
  border-color: rgba(198, 126, 110, 0.5);
}

.bento-a {
  grid-row: 1 / 3;
}

.bento-d {
  display: grid;
  place-items: center;
  background: rgba(150, 178, 158, 0.22);
}

.bento-d img {
  width: 70%;
  max-width: 160px;
}

/* Movimiento suave y continuo de las fotos */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.bento-a { animation: bob 8s ease-in-out infinite; }
.bento-b { animation: bob 7s 0.9s ease-in-out infinite; }
.bento-c { animation: bob 7s 1.8s ease-in-out infinite; }
.bento-d { animation: bob 7s 2.7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .bento-a, .bento-b, .bento-c, .bento-d,
  .story-photo, .story-photo-b, .marquee-track,
  .decor-star, .decor-heart, .decor-cloud {
    animation: none;
  }
}

/* Marquesina */
.marquee {
  overflow: hidden;
  background: var(--ink);
  padding: 13px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 56px;
  color: var(--cream);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.marquee-item svg path {
  fill: var(--pastel-yellow);
}

.marquee-item:nth-child(2n) svg path {
  fill: var(--color-primario);
}

.marquee-item:nth-child(3n) svg path {
  fill: var(--pastel-teal);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Historia / promesa */
.story {
  background: var(--cream-deep);
}

.story-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 64px);
}

.story-text h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.14;
  margin-bottom: 22px;
}

.story-text p:not(.eyebrow) {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 54ch;
}

.story-media {
  position: relative;
  min-height: clamp(320px, 30vw, 460px);
}

.story-photo {
  position: absolute;
  inset: 0 12% 10% 0;
  background-size: cover;
  background-position: center top;
  border-radius: 28px;
}

.story-photo::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  pointer-events: none;
}

.story-photo-b {
  inset: auto 0 0 auto;
  width: 52%;
  height: 52%;
  border-radius: 22px;
  border: 6px solid var(--cream-deep);
  animation: bob 8s 1.2s ease-in-out infinite;
}

/* Favoritos */
.featured {
  padding: clamp(52px, 7vw, 90px) 0 clamp(30px, 4vw, 50px);
}

.featured-row {
  display: flex;
  justify-content: safe center;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 4px clamp(16px, 5vw, 64px) 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--terracota) transparent;
}

.featured-row .card {
  flex: 0 0 min(250px, 70vw);
  scroll-snap-align: start;
}

/* Catalogo */
.catalog {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) clamp(16px, 5vw, 64px) 90px;
}

.catalog-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  border: 1.5px solid rgba(78, 54, 43, 0.16);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.18s ease;
}

.chip:hover {
  border-color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 26px;
}

.results-info {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.fav-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fav-filter svg {
  width: 15px;
  height: 15px;
}

.fav-filter.is-active {
  background: var(--accion);
  border-color: var(--accion);
  color: var(--white);
}

.fav-filter.is-active svg {
  fill: var(--white);
}

.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.sort-select {
  border: 1.5px solid rgba(78, 54, 43, 0.16);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 14px;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--terracota);
}

/* Corazon de favorito en la tarjeta */
.card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(78, 54, 43, 0.14);
  transition: transform 0.15s ease, color 0.15s ease;
}

.card-fav svg {
  width: 18px;
  height: 18px;
}

.card-fav:hover {
  transform: scale(1.12);
  color: var(--accion);
}

.card-fav.is-fav {
  color: var(--accion);
}

.card-fav.is-fav svg {
  fill: var(--accion);
}

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

/* Tarjeta de producto */
.card {
  position: relative;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(78, 54, 43, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  animation: rise 0.5s ease both;
}

.card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px dashed transparent;
  border-radius: 16px;
  pointer-events: none;
  z-index: 2;
  transition: border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-pop);
}

.card:hover::after {
  border-color: rgba(198, 126, 110, 0.5);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-deep);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.card-badge-offer {
  background: var(--accion);
  color: var(--white);
}

.card-badge-out {
  background: var(--ink);
  color: var(--cream);
}

.card.is-out .card-media img {
  filter: grayscale(0.5) opacity(0.72);
}

.card.is-out .card-price {
  color: var(--ink-soft);
}

.card-body {
  padding: 15px 17px 18px;
}

.card-category {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 5px;
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.price-old {
  font-size: 0.82em;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: line-through;
  margin-left: 6px;
}

.offer-pill {
  display: inline-block;
  vertical-align: middle;
  background: var(--accion);
  color: var(--white);
  font-size: 0.6em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-left: 10px;
}

.card-add {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(78, 54, 43, 0.14);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  transition: all 0.18s ease;
}

.card-add:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.card-add svg {
  width: 17px;
  height: 17px;
}

/* Paginacion del catalogo */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination:empty {
  display: none;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid rgba(78, 54, 43, 0.16);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.page-btn:hover:not([disabled]):not(.is-active) {
  border-color: var(--ink);
}

.page-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  cursor: default;
}

.page-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.page-nav {
  color: var(--ink-soft);
}

.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--ink-soft);
}

.empty-state p {
  margin-bottom: 18px;
  font-size: 1.05rem;
}

/* ============================================================
   Pagina de detalle de producto
   ============================================================ */
.pdp {
  padding: clamp(20px, 4vw, 44px) clamp(16px, 5vw, 64px) 70px;
}

.pdp-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.pdp-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 6px 0;
  margin-bottom: 22px;
  cursor: pointer;
  transition: color 0.15s ease, gap 0.15s ease;
}

.pdp-back svg {
  width: 18px;
  height: 18px;
}

.pdp-back:hover {
  color: var(--terracota);
  gap: 11px;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

/* Galeria */
.pdp-gallery {
  position: sticky;
  top: 90px;
}

.pdp-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 4 / 5;
  background-color: var(--cream-deep);
  background-size: cover;
  background-position: center top;
  border-radius: 28px;
  border: 7px solid var(--white);
  outline: 2px dashed rgba(198, 126, 110, 0.5);
  outline-offset: 7px;
  box-shadow: var(--shadow-pop);
  cursor: zoom-in;
}

.pdp-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(78, 54, 43, 0.82);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.pdp-photo:hover .pdp-zoom-hint,
.pdp-photo:focus-visible .pdp-zoom-hint {
  opacity: 1;
}

.pdp-zoom-hint svg {
  width: 15px;
  height: 15px;
}

/* Estado de stock */
.pdp-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.pdp-stock::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.pdp-stock.is-in { color: var(--exito); }
.pdp-stock.is-low { color: var(--gold-texto); }
.pdp-stock.is-out { color: var(--accion); }

/* Visor de imagen completa */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(53, 40, 33, 0.92);
  cursor: zoom-out;
}

.lightbox-img {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(252, 248, 241, 0.15);
  color: var(--cream);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(252, 248, 241, 0.3);
}

.pdp-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--pastel-yellow);
  color: var(--gold-texto);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.pdp-badge-offer {
  background: var(--accion);
  color: var(--white);
}

.pdp-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pdp-thumbs:empty {
  display: none;
}

.pdp-thumbs img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.pdp-thumbs img.is-active,
.pdp-thumbs img:hover {
  border-color: var(--terracota);
}

/* Informacion */
.pdp-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.pdp-title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.pdp-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
}

.pdp-desc {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 26px;
}

.pdp-block {
  margin-bottom: 26px;
}

.pdp-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.pdp-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdp-guide-link {
  border: none;
  background: transparent;
  color: var(--link);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  text-decoration: underline;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.pdp-guide-link:hover {
  color: var(--terracota);
}

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

.pdp-size-error {
  margin-top: 10px;
  color: var(--accion);
  font-weight: 800;
  font-size: 0.86rem;
}

/* Guia de tallas */
.guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(78, 54, 43, 0.45);
  backdrop-filter: blur(4px);
}

.guide-card {
  position: relative;
  width: min(460px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-pop);
  padding: 32px 28px;
}

.guide-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.guide-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.guide-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
}

.guide-table th,
.guide-table td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid rgba(78, 54, 43, 0.1);
  font-size: 0.92rem;
}

.guide-table th {
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-table td:first-child {
  font-weight: 800;
  color: var(--terracota);
}

.pdp-size {
  min-width: 46px;
  border: 1.5px solid rgba(78, 54, 43, 0.2);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 9px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pdp-size:hover {
  border-color: var(--ink);
}

.pdp-size.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.pdp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.pdp-actions .btn {
  flex: 1;
  min-width: 180px;
}

.pdp-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdp-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.pdp-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-secundario);
}

.pdp-features li:nth-child(2n)::before { background: var(--color-primario); }
.pdp-features li:nth-child(3n)::before { background: var(--pastel-yellow); }

.pdp-perks {
  margin: 4px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(78, 54, 43, 0.12);
}

.pdp-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.pdp-perks svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--terracota);
}

/* Relacionados */
.pdp-related {
  margin-top: clamp(50px, 7vw, 84px);
}

.pdp-related .section-head {
  text-align: center;
  margin-bottom: 26px;
}

.pdp-related-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

@media (max-width: 820px) {
  .pdp-grid {
    grid-template-columns: 1fr;
  }

  .pdp-gallery {
    position: static;
  }

  .pdp-related-row {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
}

/* Que incluye */
.includes {
  background: var(--cream-deep);
  padding: clamp(56px, 8vw, 100px) clamp(16px, 5vw, 64px);
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  max-width: 1240px;
  margin: 0 auto;
}

.include-item {
  text-align: center;
}

.include-item svg {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  color: var(--terracota);
}

.include-item h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.include-item p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 30ch;
  margin: 0 auto;
}

/* Testimonios de clientes */
.testimonials {
  padding: clamp(52px, 7vw, 90px) clamp(16px, 5vw, 64px);
}

.testimonials-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(78, 54, 43, 0.08);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.testimonial-stars .star {
  width: 18px;
  height: 18px;
}

.testimonial-stars .star path {
  fill: rgba(78, 54, 43, 0.14);
}

.testimonial-stars .star.is-on path {
  fill: var(--pastel-yellow);
}

.testimonial-msg {
  color: var(--ink);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 22px;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--cream-deep);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.testimonial-avatar-initials {
  display: grid;
  place-items: center;
  background: var(--color-primario);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-name {
  font-weight: 800;
  font-size: 0.94rem;
}

.testimonial-city {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Pasos */
.steps {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) clamp(16px, 5vw, 64px);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: paso;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--terracota);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Preguntas frecuentes */
.faq {
  background: var(--cream-deep);
  padding: clamp(56px, 8vw, 100px) clamp(16px, 5vw, 64px);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-list details {
  border-bottom: 1px solid rgba(78, 54, 43, 0.15);
}

.faq-list summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 20px 40px 20px 4px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--terracota);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  color: var(--ink-soft);
  line-height: 1.7;
  padding: 0 4px 22px;
  max-width: 65ch;
}

/* Banda de cierre (seccion oscura) */
.brand-band {
  text-align: center;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(64px, 9vw, 110px) clamp(16px, 5vw, 64px);
}

.band-logo {
  width: clamp(100px, 11vw, 140px);
  margin: 0 auto 24px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(252, 248, 241, 0.12);
}

.band-title {
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  max-width: 22ch;
  margin: 0 auto 14px;
}

.band-sub {
  color: rgba(252, 248, 241, 0.75);
  margin-bottom: 30px;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 16px 34px;
}

/* Pie */
.footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid rgba(252, 248, 241, 0.14);
  padding: 46px clamp(16px, 5vw, 64px) 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-logo {
  width: 72px;
  border-radius: 50%;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer-slogan {
  color: rgba(252, 248, 241, 0.7);
}

.footer-copy {
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(252, 248, 241, 0.45);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 6px;
}

.footer-link {
  border: none;
  background: transparent;
  color: rgba(252, 248, 241, 0.82);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--white);
}

.footer-business {
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(252, 248, 241, 0.55);
  max-width: 60ch;
}

.footer-business:empty {
  display: none;
}

.footer-admin {
  font-size: 0.78rem;
  color: rgba(252, 248, 241, 0.35);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.footer-admin:hover {
  color: var(--cream);
}

/* Modal de informacion (envios, cambios, pagos) */
.info-block {
  margin-bottom: 18px;
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 5px;
}

.info-block p:not(.info-label) {
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Libro de Reclamaciones */
.complaint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.complaint-grid .field-full {
  grid-column: 1 / -1;
}

.complaint-form .field span {
  display: block;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 5px;
}

.complaint-form .input {
  width: 100%;
  border: 1.5px solid rgba(78, 54, 43, 0.16);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 10px 12px;
  font-size: 0.94rem;
  outline: none;
}

.complaint-form .input:focus {
  border-color: var(--terracota);
}

.complaint-form textarea.input {
  resize: vertical;
}

.complaint-ok {
  color: var(--exito);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

@media (max-width: 560px) {
  .complaint-grid {
    grid-template-columns: 1fr;
  }
}

/* Aparicion al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal de producto */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(78, 54, 43, 0.45);
  backdrop-filter: blur(4px);
  padding: 20px;
}

.modal {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(880px, 100%);
  max-height: 90vh;
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  animation: pop 0.28s ease both;
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

.modal-gallery {
  background: var(--cream-deep);
  display: flex;
  flex-direction: column;
}

.modal-gallery > img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
}

.modal-thumbs:empty {
  display: none;
}

.modal-thumbs img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
}

.modal-thumbs img.is-active {
  border-color: var(--terracota);
}

.modal-info {
  padding: 34px 30px;
  overflow-y: auto;
}

.modal-category {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.modal-info h3 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
}

.modal-desc {
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 18px;
}

.modal-features ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.modal-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.modal-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secundario);
}

.modal-features li:nth-child(2n)::before {
  background: var(--color-primario);
}

.modal-features li:nth-child(3n)::before {
  background: var(--pastel-yellow);
}

.modal-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-sizes:empty {
  margin-bottom: 0;
}

.size-pill {
  border: 1.5px solid rgba(78, 54, 43, 0.18);
  background: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 12px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.size-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Carrito lateral */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(78, 54, 43, 0.45);
  backdrop-filter: blur(4px);
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 92vw);
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-pop);
  animation: slide-in 0.3s ease both;
}

@keyframes slide-in {
  from { transform: translateX(60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(78, 54, 43, 0.08);
}

.drawer-head .modal-close {
  position: static;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-empty {
  padding: 40px 22px;
  text-align: center;
  color: var(--ink-soft);
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-name {
  font-weight: 800;
  font-size: 0.92rem;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}

.cart-item-remove {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.1rem;
  cursor: pointer;
}

.drawer-foot {
  padding: 18px 22px 24px;
  border-top: 1px solid rgba(78, 54, 43, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-total {
  font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 1020px) {
  .header-nav {
    display: none;
  }
}

@media (max-width: 900px) {
  .modal {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .modal-gallery > img {
    max-height: 46vh;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
    padding-top: 36px;
    text-align: center;
  }

  .decor-cloud-1 { top: 2%; }
  .decor-star-1 { left: 8%; top: 5%; }
  .decor-star-4 { right: 6%; }
  .decor-heart { display: none; }

  .hero-actions {
    justify-content: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-bento {
    height: auto;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    aspect-ratio: 1 / 0.85;
  }

  .bento-a {
    grid-row: auto;
    grid-column: 1 / 3;
    aspect-ratio: 16 / 10;
  }

  .story-inner {
    grid-template-columns: 1fr;
  }

  .story-media {
    min-height: 320px;
  }

  .header {
    flex-wrap: wrap;
  }

  .search-box {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
}
