/* =========================================================
   ILUMINA — BASE
========================================================= */

:root {
  --pink-bg: #fbe3ea;
  --pink-surface: #f7d1dc;
  --pink-light: #f3c0cf;
  --pink-mid: #e99db3;
  --pink-deep: #b94d72;

  --dark: #221a1e;

  --ink: #4a2f3a;
  --ink-soft: #7f5d6b;
  --line: #eebfcd;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--pink-bg);
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--pink-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pink-deep);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.initial-loader {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--dark);
}

.loader-i {
  color: #ffe3c2;
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 300;
  animation: loader-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes loader-pulse {
  from { opacity: 0.3; text-shadow: 0 0 0 transparent; }
  to { opacity: 1; text-shadow: 0 0 30px rgba(255, 190, 130, 0.7); }
}

/* =========================================================
   BOTONES
========================================================= */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 26px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;

  cursor: pointer;
  user-select: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* Brillo que cruza el botón */
.btn::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 70%
  );
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}

.btn:hover:not(:disabled)::after {
  transform: translateX(130%);
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.96);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(74, 47, 58, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--pink-deep);
  border-color: var(--pink-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(185, 77, 114, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.btn-outline:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 11px;
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  display: inline-block;
  font-size: 15px;
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-link {
  padding: 10px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-link:hover {
  color: var(--pink-deep);
}

/* =========================================================
   CONTADOR DE CANTIDAD
========================================================= */

.stepper {
  display: inline-flex;
  align-items: center;
  flex: none;

  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.stepper button {
  width: 36px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.stepper button:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
}

.stepper button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.stepper output {
  min-width: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stepper--sm button {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.stepper--sm output {
  min-width: 24px;
  font-size: 12px;
}

/* =========================================================
   IMÁGENES SUAVES (placeholder + fade)
========================================================= */

.smooth {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--pink-surface) 30%,
    var(--pink-light) 50%,
    var(--pink-surface) 70%
  );
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.smooth.is-loaded {
  animation: none;
  background: var(--pink-surface);
}

.smooth img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.smooth.is-loaded img {
  opacity: 1;
}

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;

  height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 56px);

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(251, 227, 234, 0.97);
  border-bottom: 1px solid var(--line);

  /* Aparece cuando amanece la intro */
  animation: nav-in 0.9s 5.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-logo {
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--ink);

  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.28em;

  cursor: pointer;
}

.nav-logo span {
  color: var(--pink-deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-cart {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);

  color: var(--ink);
  font-size: 12px;
  font-weight: 500;

  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-cart:hover {
  background: var(--ink);
  color: #fff;
}

.nav-cart.is-bump {
  animation: cart-bump 0.6s ease;
}

@keyframes cart-bump {
  0% { transform: scale(1); }
  30% { transform: scale(1.14) rotate(-3deg); box-shadow: 0 0 0 6px rgba(255, 148, 86, 0.35); }
  60% { transform: scale(0.97); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

.cart-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   RECORRIDO HORIZONTAL
   (sin scroll-behavior: smooth, el suavizado lo hace app.js)
========================================================= */

.horizontal-viewport {
  position: fixed;
  z-index: 1;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;

  overflow-x: auto;
  overflow-y: hidden;

  background: var(--pink-bg);

  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;

  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}

.horizontal-viewport::-webkit-scrollbar {
  display: none;
}

.horizontal-track {
  width: max-content;
  min-width: 100%;
  height: 100%;

  display: flex;
  align-items: stretch;
}

.hero-panel {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(24px, 5vw, 70px);
  overflow: hidden;

  background-color: var(--dark);
  animation: hero-dawn 1.8s 4.6s ease forwards;
}

@keyframes hero-dawn {
  from { background-color: var(--dark); }
  to { background-color: var(--pink-bg); }
}

.collection-intro {
  flex: 0 0 clamp(340px, 46vw, 650px);
  min-width: 0;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(28px, 5vw, 76px);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.product-item {
  flex: 0 0 clamp(270px, 32vw, 440px);
  min-width: 0;
  height: 100%;

  display: flex;
  align-items: center;

  padding: clamp(18px, 2.5vw, 36px);
  border-left: 1px solid var(--line);

  contain: layout style;
}

.end-panel {
  flex: 0 0 clamp(300px, 42vw, 580px);
  min-width: 0;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(28px, 5vw, 76px);
  border-left: 1px solid var(--line);
  overflow: hidden;
}

/* =========================================================
   HERO — LA I ENCENDIDA
========================================================= */

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.hero-brand {
  display: flex;
  align-items: flex-end;
  justify-content: center;

  max-width: 100%;
  white-space: nowrap;
  user-select: none;

  font-family: var(--font-serif);
  font-size: clamp(100px, 17vw, 210px);
  font-weight: 300;
  line-height: 0.8;
}

/* La I: aparece tenue, se enciende, y al final se asienta en rosa */
.hero-i {
  position: relative;
  display: inline-block;

  font-size: inherit;
  line-height: inherit;

  color: #5b4048;
  opacity: 0;

  animation:
    i-appear 0.9s 0.2s ease forwards,
    i-light 1.2s 1.2s ease forwards,
    i-settle 1.8s 4.6s ease forwards;
}

@keyframes i-appear {
  to { opacity: 1; }
}

@keyframes i-light {
  from {
    color: #5b4048;
    text-shadow: none;
  }
  40% {
    color: #fff3dc;
    text-shadow:
      0 0 40px rgba(255, 214, 150, 0.95),
      0 0 100px rgba(255, 160, 120, 0.55);
  }
  to {
    color: #ffe3c2;
    text-shadow:
      0 0 28px rgba(255, 200, 140, 0.7),
      0 0 70px rgba(255, 150, 120, 0.35);
  }
}

@keyframes i-settle {
  from {
    color: #ffe3c2;
    text-shadow:
      0 0 28px rgba(255, 200, 140, 0.7),
      0 0 70px rgba(255, 150, 120, 0.35);
  }
  to {
    color: var(--pink-deep);
    text-shadow: 0 0 0 transparent;
  }
}

/* Halo cálido detrás de la I */
.hero-i::before {
  content: '';
  position: absolute;
  z-index: -1;

  width: 200%;
  height: 170%;
  top: -35%;
  left: -50%;

  background: radial-gradient(
    ellipse,
    rgba(255, 170, 130, 0.38) 0%,
    rgba(255, 170, 130, 0.12) 40%,
    transparent 72%
  );

  filter: blur(16px);
  opacity: 0;

  animation: i-halo 4.8s 1.2s ease forwards;
}

@keyframes i-halo {
  0% { opacity: 0; transform: scale(0.4); }
  20% { opacity: 1; transform: scale(1.1); }
  70% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

/* La llama sobre la I, como una vela */
.hero-flame {
  position: absolute;
  left: 50%;
  top: 0.1em;
  width: 0.22em;
  height: 0.4em;
  transform: translate(-50%, -92%);
  pointer-events: none;
}

.hero-flame-inner {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 0.09em rgba(255, 170, 90, 0.95));

  animation: flame-life 3s 1.5s ease-in-out forwards;
}

.hero-flame-inner svg {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 100%;
  animation: flame-flicker 0.16s ease-in-out infinite alternate;
}

@keyframes flame-life {
  0% { opacity: 0; transform: scale(0); }
  12% { opacity: 1; transform: scale(1.15); }
  22% { transform: scale(1); }
  78% { opacity: 1; transform: scale(1); }
  90% { opacity: 0.9; transform: scale(0.55) translateY(4%); }
  100% { opacity: 0; transform: scale(0) translateY(-8%); }
}

@keyframes flame-flicker {
  from { transform: scale(1, 1) rotate(-2deg); }
  to { transform: scale(0.93, 1.08) rotate(2.5deg); }
}

/* Humo al apagarse */
.hero-smoke {
  position: absolute;
  left: 50%;
  top: 0.04em;
  width: 0.12em;
  height: 0.12em;
  margin-left: -0.06em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(6px);
  opacity: 0;
  pointer-events: none;

  animation: smoke-rise 1.9s 4.2s ease-out forwards;
}

@keyframes smoke-rise {
  0% { opacity: 0; transform: translateY(0) scale(0.4); }
  25% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-1.3em) scale(2.6); }
}

/* "LUMINA" se revela detrás de la I mientras ella se desplaza a la izquierda */
.hero-word-wrap {
  display: grid;
  grid-template-columns: 0fr;
  animation: word-expand 1.7s 4.6s cubic-bezier(0.65, 0, 0.25, 1) forwards;
}

@keyframes word-expand {
  to { grid-template-columns: 1fr; }
}

.hero-word {
  display: block;
  min-width: 0;
  overflow: hidden;

  padding: 0.15em 0.02em;
  margin: -0.15em 0;

  color: var(--ink);
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0.015em;
}

.hero-subtitle {
  margin-top: clamp(24px, 4vw, 42px);

  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-align: center;

  opacity: 0;
  animation: fade-up 1s 5.9s ease forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pie del hero */

.hero-footer {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(24px, 4vw, 48px);
  left: clamp(24px, 4vw, 56px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  opacity: 0;
  animation: fade-up 1s 6.1s ease forwards;
}

.hero-caption {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.22em;
  line-height: 1.7;
}

/* =========================================================
   PRESENTACIÓN DE COLECCIÓN
========================================================= */

.collection-eyebrow {
  margin-bottom: 20px;

  color: var(--pink-deep);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.collection-title {
  max-width: 500px;
  margin: 0;

  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(48px, 6.5vw, 90px);
  font-weight: 300;
  line-height: 0.95;
}

.collection-title em {
  color: var(--pink-deep);
  font-weight: 300;
}

.collection-description {
  max-width: 330px;
  margin-top: 26px;

  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.collection-count {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);

  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.collection-count strong {
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   TARJETAS DE PRODUCTOS
========================================================= */

.product-card {
  width: 100%;
  max-width: 440px;
  margin: auto;
}

.product-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;

  aspect-ratio: 0.84;
  min-height: 200px;
  max-height: calc(100vh - var(--header-height) - 290px);
  max-height: calc(100svh - var(--header-height) - 290px);

  overflow: hidden;
  border-radius: 8px;
  background: var(--pink-surface);
  cursor: pointer;
}

.product-image:hover .smooth.is-loaded img {
  transform: scale(1.045);
}

.product-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: flex-end;
  justify-content: flex-end;

  padding: 16px;

  background: linear-gradient(to top, rgba(74, 47, 58, 0.2), transparent 35%);

  opacity: 0;
  transition: opacity 0.35s ease;
}

.product-image:hover .product-overlay {
  opacity: 1;
}

.product-open {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: #fff;
  color: var(--ink);

  font-size: 19px;
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.product-image:hover .product-open {
  transform: translateY(0);
}

.product-info {
  padding: 16px 1px 0;
}

.product-category {
  margin: 0 0 6px;

  color: var(--pink-deep);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-name {
  margin: 0;

  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin-top: 8px;

  color: var(--ink-soft);
  font-size: 11px;
}

.product-meta strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.btn-add {
  flex: 1;
  padding: 12px 16px;
}

/* =========================================================
   FINAL DEL RECORRIDO
========================================================= */

.end-eyebrow {
  color: var(--pink-deep);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.end-title {
  margin: 22px 0 0;

  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 300;
  line-height: 0.98;
}

.end-title em {
  color: var(--pink-deep);
}

.end-description {
  max-width: 320px;
  margin-top: 24px;

  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.end-home {
  width: fit-content;
  margin-top: 36px;
}

/* =========================================================
   OVERLAY
========================================================= */

.overlay {
  position: fixed;
  z-index: 80;
  inset: 0;

  background: rgba(55, 30, 41, 0.45);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* =========================================================
   DETALLE DE PRODUCTO
========================================================= */

.detail-drawer {
  position: fixed;
  z-index: 81;
  top: 0;
  right: 0;
  bottom: 0;

  width: min(900px, 90vw);
  max-width: 100%;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

  background: var(--pink-bg);

  transform: translateX(102%);
  visibility: hidden;
  transition:
    transform 0.55s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s 0.55s;

  will-change: transform;
  overflow: hidden;
}

.detail-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.detail-close,
.checkout-close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 22px;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1.5px solid var(--ink);
  border-radius: 50%;

  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;

  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.detail-close:hover,
.checkout-close:hover {
  background: var(--ink);
  color: #fff;
  transform: rotate(90deg);
}

.detail-image-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--pink-surface);
}

.detail-content {
  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(24px, 4vw, 56px);
  overflow-y: auto;
}

.detail-eyebrow {
  margin: 0;
  color: var(--pink-deep);
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
}

.detail-name {
  margin: 12px 0 18px;

  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 300;
  line-height: 0.98;
}

.detail-description {
  margin: 0 0 28px;

  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.detail-specs {
  margin-bottom: 26px;
  border-top: 1px solid var(--line);
}

.detail-spec {
  display: grid;
  grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;

  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-spec span {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.detail-spec strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.detail-buy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.detail-price {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 30px;
}

.detail-unit {
  color: var(--ink-soft);
  font-size: 11px;
}

.detail-buy-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-buy-actions .btn {
  flex: 1;
  padding: 15px 20px;
}

.detail-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;

  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.detail-navigation button {
  padding: 8px 0;
  border: 0;
  background: transparent;

  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.detail-navigation button:hover {
  color: var(--pink-deep);
}

/* =========================================================
   CARRITO
========================================================= */

.cart-drawer {
  position: fixed;
  z-index: 91;
  top: 0;
  right: 0;
  bottom: 0;

  width: min(440px, 100%);
  max-width: 100%;

  display: flex;
  flex-direction: column;

  background: var(--pink-bg);

  transform: translateX(102%);
  visibility: hidden;
  transition:
    transform 0.5s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s 0.5s;

  will-change: transform;
}

.cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.cart-header {
  min-height: 76px;
  padding: 20px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;

  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
}

.cart-close {
  width: 38px;
  height: 38px;

  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;

  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.cart-close:hover {
  background: var(--ink);
  color: #fff;
}

.cart-body {
  flex: 1;
  min-height: 0;

  padding: 24px;
  overflow-y: auto;
}

.cart-empty {
  padding: 70px 10px;

  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 19px;
  font-style: italic;
  text-align: center;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 22px;

  padding: 0;
  margin: 0;
  list-style: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.cart-item-image {
  position: relative;
  width: 76px;
  height: 86px;

  overflow: hidden;
  border-radius: 6px;
  background: var(--pink-surface);
}

.cart-item-name {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.cart-item-price {
  margin: 4px 0 0;
  color: var(--pink-deep);
  font-size: 11px;
  font-weight: 500;
}

.cart-item .stepper {
  margin-top: 10px;
}

.remove-item {
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.remove-item:hover {
  color: var(--pink-deep);
}

.cart-footer {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 6px;

  color: var(--ink-soft);
  font-size: 12px;
}

.cart-subtotal strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.cart-note {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 11px;
}

/* =========================================================
   CHECKOUT
========================================================= */

.checkout {
  position: fixed;
  z-index: 101;
  top: 50%;
  left: 50%;

  width: min(980px, 94vw);
  max-height: 92vh;
  max-height: 92svh;

  display: flex;

  border-radius: 22px;
  background: var(--pink-bg);
  box-shadow: 0 30px 80px rgba(74, 47, 58, 0.4);
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -46%) scale(0.97);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s 0.45s;
}

.checkout.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0s;
}

.checkout-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.checkout-form,
.checkout-summary {
  min-width: 0;
  max-height: 92vh;
  max-height: 92svh;
  padding: 34px;
  overflow-y: auto;
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  background: var(--pink-surface);
}

.checkout h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
}

.checkout h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
}

.checkout-lead {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.field label em {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;

  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff8fa;

  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 70px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 3px rgba(185, 77, 114, 0.18);
}

.field.has-error input,
.field.has-error select {
  border-color: #c0392b;
}

.field-error {
  margin: 0;
  color: #b0332a;
  font-size: 11px;
}

.geo-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;

  margin-bottom: 8px;
  padding: 16px;

  border: 1.5px dashed var(--pink-mid);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.geo-box strong {
  font-size: 12px;
}

.geo-box em {
  color: var(--ink-soft);
  font-size: 11px;
  font-style: normal;
}

.geo-box p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.geo-ok {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: #2f6b45;
  font-weight: 500;
}

.geo-ok a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.geo-ok .btn-link {
  padding: 0;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;

  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.summary-item span:last-child {
  white-space: nowrap;
  font-weight: 500;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--pink-mid);
  font-size: 12px;
  color: var(--ink-soft);
}

.summary-row span:last-child {
  color: var(--ink);
  font-weight: 500;
}

.summary-total {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.summary-total span:last-child {
  font-size: 17px;
}

.checkout-summary .btn {
  margin-top: 16px;
  padding: 16px 20px;
}

.checkout-fineprint {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.6;
}

.checkout-done {
  width: 100%;
  padding: 56px 34px;
  text-align: center;
}

.checkout-done .done-flame {
  width: 34px;
  height: 50px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 0 8px rgba(255, 170, 90, 0.8));
}

.checkout-done p {
  max-width: 420px;
  margin: 8px auto 24px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.checkout-done .btn + .btn {
  margin-left: 8px;
}

/* =========================================================
   CHISPAS / FUEGO AL AÑADIR
========================================================= */

.spark-layer {
  position: fixed;
  z-index: 140;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.spark-burst {
  position: absolute;
  width: 0;
  height: 0;
}

.spark {
  position: absolute;
  left: 0;
  top: 0;

  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);

  border-radius: 50%;
  opacity: 0;

  animation: spark-fly var(--dur) var(--delay) cubic-bezier(0.12, 0.7, 0.3, 1) forwards;
}

.spark--0 { background: #ffe08a; box-shadow: 0 0 8px 2px rgba(255, 210, 120, 0.9); }
.spark--1 { background: #ff9d4d; box-shadow: 0 0 8px 2px rgba(255, 140, 60, 0.85); }
.spark--2 { background: #ff7fa3; box-shadow: 0 0 8px 2px rgba(255, 110, 150, 0.85); }

@keyframes spark-fly {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.1); }
}

.burst-flame {
  position: absolute;
  left: -15px;
  top: -42px;
  width: 30px;
  height: 44px;

  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 8px rgba(255, 160, 80, 0.9));
  animation: burst-flame 0.95s ease-out forwards;
}

.burst-flame svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes burst-flame {
  0% { opacity: 0; transform: scale(0.2); }
  25% { opacity: 1; transform: scale(1.2); }
  60% { opacity: 1; transform: translateY(-14px) scale(1); }
  100% { opacity: 0; transform: translateY(-46px) scale(0.3); }
}

/* =========================================================
   TOAST
========================================================= */

.toast-container {
  position: fixed;
  z-index: 130;
  bottom: 24px;
  left: 50%;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  width: max-content;
  max-width: calc(100vw - 32px);

  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 13px 22px;
  border-radius: 999px;

  background: var(--ink);
  color: #fff;

  font-size: 12px;
  text-align: center;

  box-shadow: 0 8px 30px rgba(74, 47, 58, 0.25);

  animation: toast-in 0.35s ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {
  .collection-intro { flex-basis: 42vw; }
  .product-item { flex-basis: 42vw; }

  .detail-drawer { width: min(760px, 94vw); }
  .detail-content { padding: 28px; }

  .checkout-form,
  .checkout-summary { padding: 26px; }
}

/* =========================================================
   RESPONSIVE — MÓVIL
========================================================= */

@media (max-width: 640px) {
  :root { --header-height: 62px; }

  .navbar { padding: 0 19px; }

  .nav-logo {
    font-size: 15px;
    letter-spacing: 0.22em;
  }

  .nav-cart {
    padding: 8px 14px;
    font-size: 11px;
  }

  .hero-panel {
    flex-basis: 100vw;
    width: 100vw;
    padding: 22px;
  }

  .hero-brand { font-size: clamp(66px, 17vw, 112px); }

  .hero-subtitle {
    max-width: 260px;
    font-size: 8px;
    letter-spacing: 0.24em;
    line-height: 1.8;
  }

  .hero-footer {
    right: 20px;
    bottom: 22px;
    left: 20px;

    align-items: flex-end;
    gap: 14px;
  }

  .hero-caption {
    max-width: 145px;
    font-size: 8px;
    letter-spacing: 0.13em;
  }

  .hero-cta {
    flex-shrink: 0;
    padding: 13px 16px;
    gap: 8px;
    font-size: 11px;
  }

  .collection-intro {
    flex-basis: 78vw;
    padding: 28px;
  }

  .collection-title { font-size: clamp(48px, 12vw, 68px); }

  .collection-description {
    max-width: 270px;
    font-size: 11px;
  }

  .product-item {
    flex-basis: 78vw;
    padding: 18px;
  }

  .product-image {
    aspect-ratio: 0.88;
    max-height: calc(100vh - var(--header-height) - 250px);
    max-height: calc(100svh - var(--header-height) - 250px);
  }

  .product-name { font-size: 23px; }

  .product-overlay {
    opacity: 1;
    background: transparent;
    padding: 12px;
  }

  .product-open {
    width: 36px;
    height: 36px;
    transform: none;
  }

  .end-panel {
    flex-basis: 78vw;
    padding: 28px;
  }

  .end-title { font-size: 52px; }

  .detail-drawer {
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(190px, 34svh) minmax(0, 1fr);
  }

  .detail-image-wrap img { object-position: center 48%; }

  .detail-content {
    padding: 22px 24px 28px;
    justify-content: flex-start;
  }

  .detail-eyebrow { font-size: 17px; }

  .detail-name {
    margin: 7px 0 12px;
    font-size: 38px;
  }

  .detail-description {
    margin-bottom: 18px;
    font-size: 11px;
    line-height: 1.7;
  }

  .detail-specs { margin-bottom: 18px; }
  .detail-spec { padding: 9px 0; }
  .detail-price { font-size: 27px; }
  .detail-navigation { margin-top: 18px; padding-top: 12px; }

  .detail-close {
    top: 14px;
    right: 14px;
  }

  .cart-header { padding: 18px 20px; }
  .cart-body { padding: 20px; }
  .cart-footer { padding: 18px 20px; }

  /* Checkout a pantalla completa */
  .checkout {
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    max-height: none;
    border-radius: 0;
    transform: translateY(4%);
  }

  .checkout.is-open { transform: none; }

  .checkout-grid {
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .checkout-form,
  .checkout-summary {
    max-height: none;
    overflow: visible;
    padding: 24px 20px;
  }

  .checkout-close {
    top: 12px;
    right: 12px;
  }

  .checkout h2 { font-size: 28px; padding-right: 44px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .field input,
  .field select,
  .field textarea { font-size: 16px; }
}

/* =========================================================
   PANTALLAS BAJAS
========================================================= */

@media (max-height: 560px) and (min-width: 641px) {
  .hero-brand { font-size: clamp(70px, 12vw, 130px); }
  .hero-subtitle { margin-top: 18px; }

  .collection-intro {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .collection-description { margin-top: 14px; }
  .collection-count { margin-top: 20px; }

  .product-item {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .product-image {
    max-height: calc(100vh - var(--header-height) - 200px);
  }
}

/* =========================================================
   ACCESIBILIDAD — MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-flame,
  .hero-smoke {
    display: none;
  }
}



/* =====================================================
   ILUMINA — PRODUCT DETAIL FULLSCREEN
===================================================== */

.navbar {
  border-bottom: 0 !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .07em;
  transition: opacity .3s ease;
}

.nav-instagram:hover {
  opacity: .55;
}

.nav-instagram svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* Pantalla completa */

.detail-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--detail-bg);
  color: var(--detail-text);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.025);
  transition:
    opacity .75s ease,
    visibility .75s ease,
    transform 1s cubic-bezier(.2,.7,.2,1),
    background .7s ease;
  isolation: isolate;
}

.detail-fullscreen.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

/* Niebla blanca */

.detail-fullscreen::before {
  content: "";
  position: fixed;
  z-index: 10;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(255,255,255,.98) 0%,
      rgba(255,255,255,.85) 22%,
      rgba(255,255,255,.35) 52%,
      transparent 75%
    );
  opacity: 0;
  transform: scale(.45);
}

.detail-fullscreen.is-open::before {
  animation: detailFogIn 1.05s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes detailFogIn {
  0% {
    opacity: 1;
    transform: scale(.45);
  }
  45% {
    opacity: .9;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

.detail-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 15% 20%,
      rgba(255,255,255,.48),
      transparent 45%
    ),
    radial-gradient(
      ellipse at 90% 80%,
      rgba(255,255,255,.24),
      transparent 45%
    );
}

/* Botón volver */

.detail-back {
  position: fixed;
  z-index: 20;
  top: 30px;
  left: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid rgba(50,40,35,.14);
  border-radius: 40px;
  background: rgba(255,255,255,.35);
  color: var(--detail-text);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .06em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background .3s ease,
    transform .3s ease,
    border-color .3s ease;
}

.detail-back:hover {
  background: rgba(255,255,255,.75);
  border-color: rgba(50,40,35,.25);
  transform: translateX(-3px);
}

.detail-back span:first-child {
  font-size: 17px;
}

/* Composición */

.detail-fullscreen-inner {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 100px 7% 65px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr);
  align-items: center;
  gap: clamp(45px, 8vw, 120px);
}

.detail-fullscreen-image {
  position: relative;
  width: 100%;
  height: min(70vh, 720px);
  min-height: 430px;
  overflow: hidden;
  background: var(--detail-surface);
  border-radius: 3px;
  box-shadow: 0 30px 90px rgba(40,30,25,.09);
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity .8s ease .2s,
    transform 1s cubic-bezier(.2,.7,.2,1) .2s;
}

.detail-fullscreen.is-open .detail-fullscreen-image {
  opacity: 1;
  transform: translateY(0);
}

.detail-fullscreen-image .smooth,
.detail-fullscreen-image img {
  width: 100%;
  height: 100%;
}

.detail-fullscreen-image img {
  object-fit: cover;
}

.detail-image-caption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: white;
  font-size: 9px;
  letter-spacing: .17em;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

.detail-fullscreen-content {
  width: 100%;
  max-width: 490px;
  padding: 20px 0;
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity .8s ease .35s,
    transform 1s cubic-bezier(.2,.7,.2,1) .35s;
}

.detail-fullscreen.is-open .detail-fullscreen-content {
  opacity: 1;
  transform: translateY(0);
}

.detail-fullscreen .detail-eyebrow {
  color: var(--detail-accent);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.detail-fullscreen .detail-name {
  margin: 15px 0 18px;
  color: var(--detail-text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 400;
  line-height: .98;
}

.detail-fullscreen .detail-description {
  max-width: 420px;
  color: var(--detail-muted);
  font-size: 13px;
  line-height: 1.9;
}

/* Notas */

.detail-fullscreen-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 30px;
  margin: 38px 0;
  padding: 27px 0;
  border-top: 1px solid rgba(50,40,35,.14);
  border-bottom: 1px solid rgba(50,40,35,.14);
}

.detail-fullscreen .detail-spec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-fullscreen .detail-spec span {
  color: var(--detail-muted);
  font-size: 9px;
  letter-spacing: .12em;
}

.detail-fullscreen .detail-spec strong {
  color: var(--detail-text);
  font-size: 12px;
  font-weight: 500;
}

/* Compra */

.detail-fullscreen-buy {
  margin-top: 15px;
}

.detail-fullscreen .detail-price {
  color: var(--detail-text);
  font-family: "Cormorant Garamond", serif;
  font-size: 35px;
}

.detail-fullscreen .detail-unit {
  color: var(--detail-muted);
  font-size: 11px;
}

.detail-fullscreen .detail-buy-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.detail-fullscreen .detail-add-button {
  flex: 1;
  background: var(--detail-accent);
  border-color: var(--detail-accent);
  color: white;
}

.detail-fullscreen .detail-add-button:hover {
  filter: brightness(.92);
}

/* Navegación entre productos */

.detail-fullscreen .detail-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid rgba(50,40,35,.12);
}

.detail-fullscreen .detail-navigation button {
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--detail-muted);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: color .3s ease;
}

.detail-fullscreen .detail-navigation button:hover {
  color: var(--detail-accent);
}

/* Tablet */

@media (max-width: 900px) {
  .detail-fullscreen-inner {
    gap: 35px;
    padding-left: 5%;
    padding-right: 5%;
  }

  .detail-fullscreen-image {
    height: 60vh;
    min-height: 380px;
  }

  .detail-fullscreen .detail-name {
    font-size: 58px;
  }
}

/* Móvil */

@media (max-width: 650px) {
  .nav-instagram span {
    display: none;
  }

  .nav-actions {
    gap: 15px;
  }

  .detail-back {
    top: 16px;
    left: 16px;
    padding: 9px 12px;
    font-size: 10px;
  }

  .detail-fullscreen-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    padding: 75px 20px 45px;
  }

  .detail-fullscreen-image {
    width: 100%;
    height: 43vh;
    min-height: 280px;
    max-height: 440px;
  }

  .detail-fullscreen-content {
    max-width: none;
    padding: 0 2px;
  }

  .detail-fullscreen .detail-name {
    font-size: 53px;
  }

  .detail-fullscreen .detail-description {
    font-size: 12px;
  }

  .detail-fullscreen-specs {
    gap: 20px 14px;
    margin: 28px 0;
    padding: 22px 0;
  }

  .detail-fullscreen .detail-buy-actions {
    gap: 10px;
  }

  .detail-fullscreen .detail-add-button {
    padding-left: 13px;
    padding-right: 13px;
    font-size: 11px;
  }

  .detail-fullscreen .detail-navigation {
    margin-top: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-fullscreen,
  .detail-fullscreen *,
  .detail-fullscreen::before {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* INTRO: eliminar completamente el navbar */
body.intro-active .navbar {
  display: none !important;
}

body.intro-active .horizontal-viewport {
  top: 0 !important;
}

/* Evitar líneas o separadores residuales */
body.intro-active header,
body.intro-active nav {
  border: none !important;
  box-shadow: none !important;
}

body.intro-active header::before,
body.intro-active header::after,
body.intro-active nav::before,
body.intro-active nav::after {
  display: none !important;
}

/* =========================================================
   ILUMINA — CARRUSEL DE IMÁGENES EN DETALLES
========================================================= */

.detail-fullscreen-image {
  position: relative;
  overflow: hidden;
}

/* Flechas de navegación */

.detail-gallery-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.55);
  color: #453326;

  font-size: 22px;
  font-family: inherit;

  cursor: pointer;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
}

.detail-gallery-prev {
  left: 22px;
}

.detail-gallery-next {
  right: 22px;
}

.detail-gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

.detail-gallery-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.detail-gallery-next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* Indicadores inferiores */

.detail-gallery-indicators {
  position: absolute;
  z-index: 5;

  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.detail-gallery-dot {
  width: 7px;
  height: 7px;

  padding: 0;
  border: none;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.55);

  cursor: pointer;

  transition:
    width 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease;
}

.detail-gallery-dot.is-active {
  width: 23px;
  background: #fff;
}

/* Contador de imágenes */

.detail-gallery-counter {
  position: absolute;
  z-index: 5;

  right: 24px;
  bottom: 25px;

  color: #fff;

  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;

  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Adaptación móvil */

@media (max-width: 768px) {
  .detail-gallery-arrow {
    width: 37px;
    height: 37px;
    font-size: 19px;
  }

  .detail-gallery-prev {
    left: 13px;
  }

  .detail-gallery-next {
    right: 13px;
  }

  .detail-gallery-indicators {
    bottom: 19px;
    gap: 7px;
  }

  .detail-gallery-dot {
    width: 6px;
    height: 6px;
  }

  .detail-gallery-dot.is-active {
    width: 19px;
  }

  .detail-gallery-counter {
    right: 15px;
    bottom: 17px;
    font-size: 9px;
  }
}



/* =========================================================
   ILUMINA — NAVIDAD BOTÁNICA
========================================================= */

.christmas-botanicals {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;

  opacity: 0;
  visibility: hidden;

  animation:
    christmas-reveal 1.8s 5.1s ease forwards;
}

@keyframes christmas-reveal {
  from {
    opacity: 0;
    visibility: visible;
  }

  to {
    opacity: 1;
    visibility: visible;
  }
}

.christmas-branch {
  position: absolute;
  width: clamp(220px, 34vw, 430px);
  height: auto;
  overflow: visible;

  opacity: 0.76;
  filter: drop-shadow(0 5px 12px rgba(55, 65, 42, 0.08));

  animation: branch-float 9s ease-in-out infinite alternate;
}

.christmas-branch--top {
  top: -35px;
  right: -30px;
  transform-origin: 90% 10%;
}

.christmas-branch--bottom {
  bottom: -65px;
  left: -35px;
  transform-origin: 10% 90%;
  animation-delay: -4s;
}

/* Tallos */

.branch-main {
  stroke: #596d50;
  stroke-width: 2.1;
  stroke-linecap: round;
  opacity: 0.8;
}

/* Hojas */

.branch-leaves {
  fill: #657b59;
  stroke: #52694a;
  stroke-width: 0.9;
  opacity: 0.88;
}

/* Bayas navideñas */

.branch-berries {
  fill: #a84d5b;
  stroke: #91404e;
  stroke-width: 0.7;
}

/* Movimiento orgánico muy leve */

@keyframes branch-float {
  from {
    transform: rotate(-1deg) translate3d(0, 0, 0);
  }

  to {
    transform: rotate(1deg) translate3d(0, -5px, 0);
  }
}

/* Pequeños destellos cálidos */

.christmas-glint {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff4d9;
  box-shadow:
    0 0 8px rgba(255, 218, 155, 0.9),
    0 0 18px rgba(255, 193, 120, 0.45);

  opacity: 0;
  animation: christmas-glint 3.8s ease-in-out infinite;
}

.christmas-glint--one {
  top: 23%;
  right: 24%;
  animation-delay: 1s;
}

.christmas-glint--two {
  bottom: 27%;
  left: 23%;
  animation-delay: 2.2s;
}

.christmas-glint--three {
  top: 68%;
  right: 15%;
  animation-delay: 3s;
}

@keyframes christmas-glint {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.3);
  }
}

/* Mantener el contenido por encima de la decoración */

.hero-content,
.hero-footer {
  position: relative;
  z-index: 2;
}

/* Adaptación móvil */

@media (max-width: 650px) {
  .christmas-branch {
    width: clamp(190px, 58vw, 280px);
    opacity: 0.65;
  }

  .christmas-branch--top {
    top: -12px;
    right: -65px;
  }

  .christmas-branch--bottom {
    bottom: -55px;
    left: -75px;
  }

  .christmas-glint {
    width: 3px;
    height: 3px;
  }
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
  .christmas-botanicals {
    animation: none;
    opacity: 1;
    visibility: visible;
  }

  .christmas-branch,
  .christmas-glint {
    animation: none;
  }
}


/* =========================================================
   ILUMINA — NEVADA BOTÁNICA NAVIDEÑA
========================================================= */

.christmas-fall {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;

  opacity: 0;
  animation: christmas-fall-appear 1.8s 6.2s ease forwards;
}

@keyframes christmas-fall-appear {
  to { opacity: 1; }
}

.christmas-fall__item {
  position: absolute;
  top: -65px;

  width: clamp(23px, 2.5vw, 38px);
  height: clamp(23px, 2.5vw, 38px);

  opacity: 0;
  transform-origin: center;

  animation:
    christmas-leaf-fall var(--fall-duration) var(--fall-delay)
    linear infinite;
  will-change: transform;
}

.christmas-fall__item svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;

  filter: drop-shadow(0 2px 3px rgba(48, 55, 37, 0.12));
}

.christmas-fall__item.type-0,
.christmas-fall__item.type-3 {
  width: clamp(27px, 2.8vw, 43px);
  height: clamp(27px, 2.8vw, 43px);
}

.christmas-fall__item.type-1 {
  width: clamp(22px, 2.2vw, 34px);
  height: clamp(22px, 2.2vw, 34px);
}

.christmas-fall__item.type-2 {
  width: clamp(25px, 2.5vw, 38px);
  height: clamp(25px, 2.5vw, 38px);
}

@keyframes christmas-leaf-fall {
  0% {
    opacity: 0;
    transform:
      translate3d(0, -8vh, 0)
      rotate(var(--fall-rotation))
      scale(var(--fall-scale));
  }

  10% {
    opacity: 0.85;
  }

  25% {
    transform:
      translate3d(calc(var(--fall-drift) * -0.45), 25vh, 0)
      rotate(calc(var(--fall-rotation) + 85deg))
      scale(var(--fall-scale));
  }

  50% {
    transform:
      translate3d(var(--fall-drift), 55vh, 0)
      rotate(calc(var(--fall-rotation) + 190deg))
      scale(var(--fall-scale));
  }

  75% {
    transform:
      translate3d(calc(var(--fall-drift) * -0.3), 85vh, 0)
      rotate(calc(var(--fall-rotation) + 275deg))
      scale(var(--fall-scale));
  }

  90% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform:
      translate3d(var(--fall-drift), 115vh, 0)
      rotate(calc(var(--fall-rotation) + 360deg))
      scale(var(--fall-scale));
  }
}

/* Móvil: hojas más pequeñas y menos densidad visual */
@media (max-width: 650px) {
  .christmas-fall__item {
    width: 23px;
    height: 23px;
  }

  .christmas-fall__item.type-0,
  .christmas-fall__item.type-3 {
    width: 27px;
    height: 27px;
  }

  .christmas-fall__item.type-1 {
    width: 20px;
    height: 20px;
  }

  .christmas-fall__item.type-2 {
    width: 22px;
    height: 22px;
  }
}

/* No ejecutar animaciones si el usuario reduce el movimiento */
@media (prefers-reduced-motion: reduce) {
  .christmas-fall {
    display: none;
    animation: none;
  }
}
/* ESFERAS NAVIDEÑAS */
.il-ornament {
  filter: drop-shadow(1px 3px 3px rgba(40, 20, 15, .18));
}

.il-ornament-ball {
  fill: #a8423f;
  stroke: #85302e;
  stroke-width: 1;
}

.il-ornament-highlight {
  fill: rgba(255,255,255,.45);
}

.il-ornament-cap {
  fill: #c4a66b;
  stroke: #947544;
  stroke-width: .7;
}

/* BASTONES DE CARAMELO */
.il-candy {
  filter: drop-shadow(1px 3px 3px rgba(40, 20, 15, .14));
}

.il-candy-base {
  fill: #fffaf0;
  stroke: #e5d9cb;
  stroke-width: 1;
}

.il-candy-stripe {
  fill: none;
  stroke: #bd4c4a;
  stroke-width: 5;
  stroke-linecap: round;
}

/* MUÉRDAGO NAVIDEÑO */

.il-mistletoe-leaf {
  fill: #829477;
  stroke: #5e7455;
  stroke-width: 0.8;
}

.il-mistletoe-vein {
  fill: none;
  stroke: #c0c9a9;
  stroke-width: 0.8;
  opacity: 0.8;
}

.il-mistletoe-berry {
  fill: #f5eee0;
  stroke: #d7cbb5;
  stroke-width: 0.7;
}