:root {
  --bg: #fff7f2;
  --frame: #fffaf7;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.06);
  --ink: #2a0907;
  --muted: rgba(42, 9, 7, 0.72);
  --line: rgba(255, 59, 48, 0.16);
  --red: #ff3b30;
  --red-deep: #d82820;
  --red-soft: rgba(255, 59, 48, 0.16);
  --shadow: 0 28px 60px rgba(112, 20, 16, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 59, 48, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf7 0%, var(--bg) 100%);
  background-size: 44px 44px, auto;
}

img,
canvas {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(100% - 24px, 1500px);
  margin: 24px auto 40px;
}

.experience-sequence {
  position: relative;
  margin-bottom: clamp(96px, 14vh, 180px);
}

.experience-frame {
  position: sticky;
  top: 16px;
  min-height: calc(100vh - 32px);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 59, 48, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #fffaf7 0%, #fff1eb 100%);
  background-size: 42px 42px, auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.experience-header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 22px;
  padding: 22px 28px;
}

.top-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-ribbon-links,
.experience-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.top-ribbon a,
.experience-nav a {
  color: inherit;
  text-decoration: none;
}

.main-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
}

.experience-brand {
  text-decoration: none;
  color: var(--red);
  line-height: 0.9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.22);
}

.experience-brand span,
.experience-brand small,
.overlay-copy h1,
.overlay-copy h2,
.panel-content h3 {
  font-family: "Anton", sans-serif;
  letter-spacing: 0.02em;
}

.experience-brand span {
  display: block;
  font-size: 1.8rem;
}

.experience-brand small {
  display: block;
  color: var(--red-deep);
  font-size: 0.78rem;
}

.experience-nav {
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 30px;
}

.experience-meta {
  font-size: 0.78rem;
  color: rgba(216, 40, 32, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 59, 48, 0.25);
  color: var(--red);
  transition: background 160ms, border-color 160ms, transform 160ms;
}

.social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: scale(1.08);
}

.experience-stage {
  position: absolute;
  inset: 0;
}

.experience-product {
  position: absolute;
  left: 61%;
  top: 54%;
  width: clamp(220px, 23vw, 360px);
  height: clamp(220px, 23vw, 360px);
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 160ms ease-out;
  will-change: transform, opacity;
  cursor: grab;
  perspective: 900px;
  transform-style: preserve-3d;
  touch-action: none;
  clip-path: inset(-35% -35% -35% -35%);
}

body[data-scene="contacto"] .experience-product {
  clip-path: inset(-35% -35% 48% -35%);
}

.experience-product.is-dragging {
  cursor: grabbing;
}

.experience-product::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 71%;
  width: 74%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 31, 15, 0.38) 0%, transparent 68%);
  filter: blur(10px);
  transform: translate(-50%, -50%) rotateX(62deg);
  z-index: 1;
  pointer-events: none;
}

.product-halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 59, 48, 0.28) 0%, rgba(255, 59, 48, 0.12) 30%, transparent 68%);
  filter: blur(10px);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.cookie-photo-model {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 48% 51% 47% 50%;
  object-fit: cover;
  object-position: center;
  z-index: 7;
  box-shadow:
    inset 0 -18px 26px rgba(92, 36, 12, 0.22),
    inset 0 16px 20px rgba(255, 244, 218, 0.3),
    0 18px 0 rgba(116, 55, 22, 0.22),
    0 36px 58px rgba(92, 28, 14, 0.3);
  filter: saturate(1.2) contrast(1.08) brightness(1.02);
  pointer-events: none;
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: visible;
  clip-path: ellipse(48% 45% at 50% 51%);
}

body.use-glb-models .cookie-photo-model,
body.use-glb-models .cookie-fallback {
  display: none;
}

body.model-load-error .three-status {
  opacity: 1;
}

.three-status {
  position: absolute;
  right: 12%;
  top: 18%;
  z-index: 4;
  padding: 8px 10px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fffaf7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(255, 59, 48, 0.22);
  pointer-events: none;
}

.experience-product.is-3d-ready .three-status {
  content: "3D activo";
  opacity: 0;
}

.cookie-fallback {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 56%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-10deg);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 31%, rgba(255, 242, 219, 0.88) 0 5%, transparent 6%),
    radial-gradient(circle at 62% 26%, rgba(111, 48, 28, 0.9) 0 6%, transparent 7%),
    radial-gradient(circle at 72% 58%, rgba(111, 48, 28, 0.92) 0 5.5%, transparent 6.5%),
    radial-gradient(circle at 31% 64%, rgba(111, 48, 28, 0.9) 0 5%, transparent 6%),
    radial-gradient(circle at 50% 50%, #e7a96c 0%, #c97943 66%, #94502d 100%);
  border: 10px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 26px 0 #8f4c2a,
    0 46px 80px rgba(96, 20, 14, 0.34);
  z-index: 1;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.experience-product.is-3d-ready .cookie-fallback {
  opacity: 0;
}

.chip,
.cream {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.chip {
  width: 12%;
  aspect-ratio: 1;
  background: #492417;
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.18);
}

.chip-1 { left: 22%; top: 42%; }
.chip-2 { left: 45%; top: 24%; }
.chip-3 { right: 22%; top: 42%; }
.chip-4 { left: 43%; bottom: 22%; }
.chip-5 { right: 36%; bottom: 37%; }

.cream {
  height: 7%;
  width: 42%;
  background: #fff2e4;
  border-radius: 999px;
  transform: rotate(-16deg);
}

.cream-1 {
  left: 20%;
  top: 39%;
}

.cream-2 {
  right: 16%;
  top: 55%;
  transform: rotate(18deg);
}

.stage-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.media-card {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 59, 48, 0.18);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 40px rgba(106, 26, 19, 0.12);
  will-change: transform, opacity;
}

.media-card-left {
  left: 34px;
  bottom: 92px;
  width: 250px;
  min-height: 200px;
}

.media-card-top {
  top: 108px;
  right: 140px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
}

.media-card-right {
  right: 34px;
  bottom: 112px;
  width: 280px;
  min-height: 220px;
}

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

.media-card-pack {
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fff0eb 100%);
  backdrop-filter: blur(10px);
}

.media-card-pack h3 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: 2.2rem;
  line-height: 0.95;
}

.media-card-pack p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.media-kicker {
  margin: 0 0 12px !important;
  color: var(--red) !important;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.media-card-sticker {
  background: #fffaf8;
}

.box-catcher {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: clamp(240px, 24vw, 390px);
  height: clamp(150px, 15vw, 240px);
  border: 0;
  border-radius: 12px 12px 22px 22px;
  background:
    linear-gradient(135deg, rgba(255, 59, 48, 0.12) 0 25%, transparent 25% 50%, rgba(255, 59, 48, 0.12) 50% 75%, transparent 75%),
    linear-gradient(180deg, #fffaf7 0%, #ffe8df 100%);
  background-size: 34px 34px, auto;
  box-shadow:
    inset 0 0 0 3px var(--red),
    0 30px 60px rgba(112, 20, 16, 0.18);
  transform: translate(-50%, 0) rotateX(30deg) scale(0.92);
  transform-origin: center bottom;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transform-style: preserve-3d;
}

.box-label {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  font-family: "Anton", sans-serif;
  font-size: clamp(2rem, 4vw, 4.4rem);
  color: var(--red);
  letter-spacing: 0.04em;
  z-index: 6;
}

.box-mouth {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 10%;
  height: 28%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(71, 14, 9, 0.26) 0%, rgba(71, 14, 9, 0.06) 52%, transparent 72%);
  transform: rotateX(66deg);
  z-index: 2;
}

.box-flap {
  position: absolute;
  top: -28%;
  width: 53%;
  height: 38%;
  border: 3px solid rgba(255, 59, 48, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 59, 48, 0.07) 0 25%, transparent 25% 50%, rgba(255, 59, 48, 0.07) 50% 75%, transparent 75%),
    linear-gradient(180deg, rgba(255, 250, 247, 0.96) 0%, rgba(255, 238, 231, 0.96) 100%);
  background-size: 30px 30px, auto;
  z-index: 5;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 120ms linear;
}

.box-flap-left {
  left: -1%;
  border-radius: 12px 4px 8px 12px;
  transform: perspective(760px) rotateX(24deg) rotateY(0deg) rotateZ(-9deg) skewX(-4deg);
  transform-origin: right bottom;
}

.box-flap-right {
  right: -1%;
  border-radius: 4px 12px 12px 8px;
  transform: perspective(760px) rotateX(24deg) rotateY(0deg) rotateZ(9deg) skewX(4deg);
  transform-origin: left bottom;
}

.box-front {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72%;
  border: 3px solid var(--red);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background:
    linear-gradient(135deg, rgba(255, 59, 48, 0.12) 0 25%, transparent 25% 50%, rgba(255, 59, 48, 0.12) 50% 75%, transparent 75%),
    linear-gradient(180deg, rgba(255, 250, 247, 0.94) 0%, rgba(255, 232, 223, 0.98) 100%);
  background-size: 34px 34px, auto;
  z-index: 4;
}

body[data-scene="contacto"] .product-halo {
  opacity: 0.42;
}

.experience-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 59, 48, 0.16), transparent 30%),
    radial-gradient(circle at bottom center, rgba(255, 209, 190, 0.7), transparent 42%);
  z-index: 0;
}

#experience-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: grab;
  pointer-events: none;
  touch-action: none;
  opacity: 1;
}

#experience-canvas.is-dragging {
  cursor: grabbing;
}

.experience-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.overlay-copy {
  position: absolute;
  max-width: 430px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.overlay-copy[data-overlay="hero"] {
  opacity: 1;
  transform: translateY(0);
}

.overlay-copy-left {
  left: 36px;
}

.overlay-copy-right {
  right: 36px;
}

.overlay-copy[data-overlay="hero"] {
  top: 120px;
}

.overlay-copy[data-overlay="marca"] {
  top: 220px;
}

.overlay-copy[data-overlay="producto"] {
  top: 170px;
}

.overlay-copy[data-overlay="coleccion"] {
  top: 180px;
}

.overlay-copy[data-overlay="usuario"] {
  top: 170px;
}

.overlay-copy[data-overlay="contacto"] {
  top: 132px;
  max-width: 390px;
}

.overlay-copy[data-overlay="contacto"] h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
}

body[data-scene="contacto"] .media-card {
  opacity: 0 !important;
  transform: translateY(40px) rotate(0deg) scale(0.84) !important;
}

body[data-scene="contacto"] .box-catcher,
body.box-entering .box-catcher {
  opacity: 1;
}

.box-catcher {
  transition: opacity 280ms ease;
}

body[data-scene="products"] .experience-overlay,
body[data-scene="products"] .experience-product,
body[data-scene="products"] .stage-media {
  opacity: 0 !important;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--red);
}

.overlay-copy h1,
.overlay-copy h2 {
  margin: 0;
  font-size: clamp(3.1rem, 6vw, 5.4rem);
  line-height: 0.92;
  color: var(--red);
}

.overlay-text {
  max-width: 36ch;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 700;
}

.spec-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.spec-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.spec-list span {
  color: var(--red);
  font-weight: 800;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #fffaf8;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  border: 0;
  box-shadow: 0 16px 28px rgba(255, 59, 48, 0.22);
  pointer-events: auto;
}

.experience-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  z-index: 3;
}

.progress-line {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #ffb2aa 100%);
}

.story-scroll {
  position: relative;
  z-index: 4;
  margin-top: calc(100vh - 120px);
  margin-bottom: 24vh;
}

.story-panel {
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px 28px 52px;
  perspective: 1000px;
}

.story-panel:nth-child(even) {
  justify-content: flex-end;
}

#contacto.story-panel {
  justify-content: flex-start;
}

#contacto .panel-content {
  margin-left: clamp(12px, 5vw, 84px);
}

.panel-content {
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transform-origin: left center;
  will-change: transform, opacity;
}

.story-panel.is-active .panel-content {
  border-color: rgba(255, 59, 48, 0.34);
}

.panel-index {
  margin: 0 0 10px;
  font-family: "Anton", sans-serif;
  color: var(--red);
  font-size: 1.8rem;
}

.panel-content h3 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 0.95;
}

.panel-content p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-panel-wrap {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  margin-top: 120px;
}

.product-showcase {
  position: relative;
  z-index: 8;
  margin-top: 0;
  padding: 96px 0 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 59, 48, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 247, 0.98) 0%, rgba(255, 241, 235, 0.98) 100%);
  background-size: 44px 44px, auto;
  border-top: 1px solid var(--line);
  box-shadow: 0 -28px 70px rgba(255, 247, 242, 0.92);
}

.section-heading {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: clamp(2.1rem, 3.3vw, 3.35rem);
  line-height: 1;
  color: var(--red);
}

.product-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-height: 420px;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-photo {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background: #fff1ec;
  box-shadow: inset 0 0 0 1px rgba(255, 59, 48, 0.12);
}

.product-card:nth-child(2) .product-photo,
.product-card:nth-child(4) .product-photo {
  object-position: 50% 27%;
}

.product-kicker {
  margin: 18px 0 8px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: 2.45rem;
  line-height: 0.94;
  color: var(--ink);
}

.product-card p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.58;
  font-weight: 700;
}

.cookie-thumb {
  position: relative;
  height: 220px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 28%, #5a2a18 0 5%, transparent 6%),
    radial-gradient(circle at 63% 25%, #5a2a18 0 6%, transparent 7%),
    radial-gradient(circle at 72% 64%, #5a2a18 0 5%, transparent 6%),
    radial-gradient(circle at 40% 68%, #fff1df 0 5%, transparent 6%),
    radial-gradient(circle, #e6a263 0 34%, #c6753d 35% 62%, transparent 63%),
    linear-gradient(135deg, #fff3ed 0%, #ffe2d9 100%);
  overflow: hidden;
}

.cookie-thumb::before,
.cookie-thumb::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  height: 12px;
  border-radius: 999px;
  background: #fff2e2;
  box-shadow: 0 24px 0 rgba(74, 35, 23, 0.82);
}

.cookie-thumb::before {
  top: 43%;
  transform: rotate(-14deg);
}

.cookie-thumb::after {
  top: 54%;
  transform: rotate(17deg);
}

.cookie-thumb-red {
  background:
    radial-gradient(circle at 36% 26%, #fff1e8 0 5%, transparent 6%),
    radial-gradient(circle at 62% 35%, #4d2018 0 5%, transparent 6%),
    radial-gradient(circle at 72% 66%, #fff1e8 0 5%, transparent 6%),
    radial-gradient(circle, #d82820 0 34%, #b91f18 35% 62%, transparent 63%),
    linear-gradient(135deg, #fff4ef 0%, #ffd7cf 100%);
}

.cookie-thumb-dark {
  background:
    radial-gradient(circle at 31% 30%, #fff1e8 0 5%, transparent 6%),
    radial-gradient(circle at 63% 26%, #fff1e8 0 6%, transparent 7%),
    radial-gradient(circle at 72% 64%, #7a3022 0 5%, transparent 6%),
    radial-gradient(circle, #4f251a 0 34%, #35140f 35% 62%, transparent 63%),
    linear-gradient(135deg, #fff4ef 0%, #ffd7cf 100%);
}

.cookie-thumb-gift {
  background:
    radial-gradient(circle at 31% 29%, #5a2a18 0 5%, transparent 6%),
    radial-gradient(circle at 62% 29%, #fff1df 0 5%, transparent 6%),
    radial-gradient(circle at 45% 64%, #5a2a18 0 5%, transparent 6%),
    radial-gradient(circle, #e6a263 0 34%, #c6753d 35% 62%, transparent 63%),
    repeating-linear-gradient(45deg, #fffaf7 0 14px, #ff3b30 14px 28px);
}

.contact-card {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card-dark {
  background: linear-gradient(180deg, #ff3b30 0%, #d82820 100%);
  color: #fffaf7;
}

.contact-card-dark .eyebrow {
  color: rgba(255, 250, 247, 0.8);
}

.contact-card-dark ul {
  color: rgba(255, 250, 247, 0.88);
}

.contact-card-light {
  background: #ffffff;
}

.contact-card h3 {
  margin: 0 0 16px;
  font-family: "Anton", sans-serif;
  font-size: 2rem;
}

.contact-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.contact-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 59, 48, 0.2);
  background: #fff7f2;
  color: var(--ink);
  font: inherit;
}

.contact-card textarea {
  resize: vertical;
}

.contact-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-formats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff6f2;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .experience-frame {
    position: relative;
    min-height: 860px;
  }

  .experience-sequence {
    margin-bottom: 72px;
  }

  .story-scroll {
    margin-top: 40px;
    margin-bottom: 72px;
  }

  .main-nav {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .overlay-copy {
    max-width: min(100% - 48px, 520px);
  }

  .experience-product {
    width: min(42vw, 330px);
    height: min(42vw, 330px);
    left: 54%;
    top: 56%;
  }

  .media-card-left,
  .media-card-right {
    width: 150px;
    height: 210px;
  }

  .media-card-top {
    width: 88px;
    height: 88px;
    right: 80px;
  }

  .box-catcher {
    width: min(48vw, 320px);
    height: min(30vw, 190px);
    bottom: 7%;
  }

  .overlay-copy-left,
  .overlay-copy-right {
    left: 24px;
    right: 24px;
  }

  .contact-panel-wrap {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 12px, 1500px);
    margin-top: 12px;
  }

  .top-ribbon,
  .main-nav,
  .experience-nav,
  .top-ribbon-links {
    gap: 10px;
  }

  .top-ribbon,
  .main-nav {
    padding-left: 14px;
    padding-right: 14px;
  }

  .stage-media {
    display: none;
  }

  .box-catcher {
    width: min(78vw, 300px);
    height: min(48vw, 180px);
    bottom: 5%;
  }

  .experience-product {
    width: min(58vw, 280px);
    height: min(58vw, 280px);
    left: 50%;
    top: 61%;
  }

  .experience-nav {
    justify-content: center;
  }

  .overlay-copy[data-overlay="hero"],
  .overlay-copy[data-overlay="marca"],
  .overlay-copy[data-overlay="producto"],
  .overlay-copy[data-overlay="coleccion"],
  .overlay-copy[data-overlay="usuario"],
  .overlay-copy[data-overlay="contacto"] {
    top: 140px;
  }

  .overlay-copy[data-overlay="contacto"] {
    top: 96px;
    max-width: min(100% - 32px, 360px);
  }

  .overlay-copy h1,
  .overlay-copy h2 {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .overlay-copy[data-overlay="contacto"] h2 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .story-panel {
    min-height: 70vh;
    padding: 12px;
  }

  .experience-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px 12px;
    padding: 14px 18px;
  }

  /* Brand: fila 1 col 1 */
  .experience-brand {
    grid-column: 1;
    grid-row: 1;
  }

  /* Meta (social + carrito): fila 1 col 2 */
  .experience-meta {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
    gap: 8px;
  }

  /* Nav: fila 2 span 2 cols */
  .experience-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 0;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .experience-nav a {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .social-link {
    width: 30px;
    height: 30px;
  }

  .social-link svg {
    width: 15px;
    height: 15px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }


  .product-card {
    min-height: auto;
  }

  .product-showcase {
    margin-top: 0;
    padding-top: 56px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .product-photo {
    height: 210px;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .how-step {
    padding: 22px 20px;
  }

  .cart-btn {
    padding: 8px 10px;
  }
}

/* ─── CART BUTTON ──────────────────────────────────────────────────────────── */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 180ms ease, border-color 180ms ease;
}

.cart-btn:hover {
  background: #ffffff;
  border-color: var(--red);
  color: var(--red);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ─── CART TOAST ───────────────────────────────────────────────────────────── */
#cart-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf7;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 1100;
  transition: opacity 240ms ease, transform 240ms ease;
}

#cart-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── PRODUCT CARDS (mejoradas) ────────────────────────────────────────────── */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-photo-wrap {
  overflow: hidden;
  border-radius: 0;
  flex-shrink: 0;
}

.product-photo-wrap .product-photo {
  border-radius: 0;
  margin: 0;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.product-card-body p:not(.product-kicker) {
  flex: 1;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.58;
  font-weight: 700;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-price {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--red);
  background: transparent;
  color: var(--red);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.add-to-cart-btn:hover,
.add-to-cart-btn.is-added {
  background: var(--red);
  color: #fff;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card-featured {
  border-color: rgba(255, 59, 48, 0.34);
  box-shadow:
    var(--shadow),
    0 0 0 1.5px rgba(255, 59, 48, 0.18);
}

.section-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.96rem;
}

/* ─── COMO PEDIR ────────────────────────────────────────────────────────────── */
.how-section {
  position: relative;
  z-index: 8;
  padding: 88px 0 72px;
  border-top: 1px solid var(--line);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.how-step {
  padding: 28px 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.step-num {
  display: block;
  font-family: "Anton", sans-serif;
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.22;
}

.how-step h3 {
  margin: 0 0 10px;
  font-family: "Anton", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.how-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 700;
}

/* ─── CONTACT IMPROVEMENTS ─────────────────────────────────────────────────── */
.contact-card-dark a {
  color: rgba(255, 250, 247, 0.88);
  text-decoration: none;
  transition: color 160ms ease;
}

.contact-card-dark a:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0 20px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 160ms ease;
}

.contact-wa-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.payment-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  background: #fff7f2;
}

.payment-badge-mp {
  background: #009ee3;
  border-color: #009ee3;
  color: #fff;
}

/* ─── CART PANEL ────────────────────────────────────────────────────────────── */
.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}

.cart-panel.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cart-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 9, 7, 0.38);
  opacity: 0;
  transition: opacity 280ms ease;
  backdrop-filter: blur(3px);
}

.cart-panel.is-open .cart-panel-backdrop {
  opacity: 1;
}

.cart-panel-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 94vw);
  background: #fffaf7;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(112, 20, 16, 0.14);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.cart-panel-header h3 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-size: 1.7rem;
  color: var(--ink);
}

.cart-panel-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease;
}

.cart-panel-close:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.cart-items-list {
  flex: 0 0 auto;
  overflow-y: auto;
  max-height: 40vh;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.cart-item-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
}

.cart-item-price {
  font-family: "Anton", sans-serif;
  font-size: 1.1rem;
  color: var(--red);
  white-space: nowrap;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 140ms ease, color 140ms ease;
  line-height: 1;
}

.cart-item-qty-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.cart-item-qty {
  font-weight: 800;
  font-size: 0.88rem;
  min-width: 18px;
  text-align: center;
}

.cart-delivery-type {
  display: flex;
  gap: 8px;
  padding: 12px 22px 0;
  flex-shrink: 0;
  border-top: 1px solid var(--line);
}
.delivery-type-btn {
  flex: 1;
  padding: 9px 6px;
  border-radius: 10px;
  border: 1.5px solid #d8d0cc;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 160ms;
}
.delivery-type-btn.active {
  border-color: var(--red);
  color: var(--red);
  background: rgba(200,60,40,0.05);
}
.cart-address-wrap {
  flex-shrink: 0;
  padding: 12px 22px 4px;
}
.cart-address-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.cart-address-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #d8d0cc;
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms;
}
.cart-address-input:focus {
  border-color: #888;
}
.cart-address-input.is-valid {
  border-color: #00a651;
}
.cart-delivery-msg {
  margin-top: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 18px;
  transition: all 200ms;
}
.cart-delivery-msg.free  { color: #00a651; }
.cart-delivery-msg.paid  { color: var(--red); }
.cart-map-preview {
  display: none;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 10px;
  border: 1px solid #e8ddd8;
}

.cart-phone-wrap {
  flex-shrink: 0;
  padding: 10px 22px 8px;
}

/* Google Maps autocomplete dropdown */
.pac-container {
  z-index: 1200 !important;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-family: "DM Sans", sans-serif;
  margin-top: 4px;
}
.pac-item { padding: 8px 14px; font-size: 0.88rem; cursor: pointer; }
.pac-item:hover { background: var(--bg); }
.pac-item-selected { background: var(--bg); }

.cart-panel-footer {
  flex-shrink: 0;
  padding: 18px 22px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff7f2;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
}

.cart-total-row strong {
  font-family: "Anton", sans-serif;
  font-size: 1.9rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.mp-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: #009ee3;
  color: #fff;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease, transform 120ms ease;
  box-shadow: 0 10px 28px rgba(0, 158, 227, 0.28);
}

.mp-pay-btn:hover:not(:disabled) {
  background: #0080c0;
  transform: translateY(-1px);
}

.mp-pay-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.mp-pay-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.cart-wa-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.07);
  color: #1a7a40;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease;
}

.cart-wa-alt:hover {
  background: rgba(37, 211, 102, 0.16);
}

/* ─── STICKY CART BAR ───────────────────────────────────────────────────────── */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 12px 16px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 247, 242, 0.92) 18%);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.cart-bar:not([hidden]) {
  pointer-events: auto;
}

.cart-bar.is-visible {
  transform: translateY(0);
}

.cart-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 18px 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 8px 32px rgba(42, 9, 7, 0.28), 0 0 0 1px rgba(255, 59, 48, 0.18);
}

.cart-bar-info {
  color: rgba(255, 250, 247, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.cart-bar-info strong {
  color: #fff;
  font-family: "Anton", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.cart-bar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.cart-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: #009ee3;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, transform 120ms ease;
  flex-shrink: 0;
}

.cart-bar-btn:hover {
  background: #0080c0;
  transform: scale(1.03);
}

.cart-bar-btn-short { display: none; }

@media (max-width: 480px) {
  .cart-bar-inner {
    padding: 12px 14px 12px 18px;
    max-width: calc(100vw - 32px);
  }
  .cart-bar-btn {
    height: 40px;
    padding: 0 14px;
    font-size: 0.82rem;
  }
  .cart-bar-btn-full { display: none; }
  .cart-bar-btn-short { display: inline; }
}
