/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  cursor: none;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  position: relative;
  touch-action: pan-y;
}

a { text-decoration: none; color: inherit; }
img, video { display: block; width: 100%; }
ul { list-style: none; }
button { border: none; background: none; cursor: none; font-family: inherit; }

/* ─── Custom Cursor ─── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
}

.cursor__dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--color-bone);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform var(--dur-fast) var(--ease),
              width var(--dur-base) var(--ease-out),
              height var(--dur-base) var(--ease-out);
}

.cursor__ring {
  position: absolute;
  width: 36px; height: 36px;
  border: 1px solid var(--color-bone);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 90ms linear,
              width var(--dur-base) var(--ease-out),
              height var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease);
}

.cursor--hover .cursor__dot  { width: 10px; height: 10px; }
.cursor--hover .cursor__ring { width: 60px; height: 60px; opacity: 0.6; }
.cursor--click .cursor__ring { width: 24px; height: 24px; opacity: 1; }

/* ─── Marquee ─── */
.marquee {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: var(--z-marquee);
  overflow: hidden;
  background: var(--color-off-black);
  color: var(--color-bone);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-dark);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee__content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  font-family: var(--font-sans);
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__sep { color: var(--color-sand); }

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

/* ─── Botones Globales ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  transition: background var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

.btn--primary {
  background: var(--color-black);
  color: var(--color-bone);
  border: 1px solid var(--color-black);
}
.btn--primary:hover {
  background: var(--color-off-black);
  border-color: var(--color-off-black);
}

.btn--ghost {
  background: transparent;
  color: var(--color-bone);
  border: 1px solid rgba(245, 245, 240, 0.45);
}
.btn--ghost:hover {
  background: rgba(245, 245, 240, 0.1);
  border-color: var(--color-bone);
}

/* ─── Spinner ─── */
.spinner {
  width: 32px; height: 32px;
  border: 1.5px solid var(--border);
  border-top-color: var(--color-dark-grey);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 5rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Newsletter Overlay ─── */
.newsletter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  overflow: hidden;
  z-index: var(--z-newsletter);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease),
              background var(--dur-slow) var(--ease);
}
.newsletter-overlay.is-open {
  opacity: 1;
  pointer-events: all;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(4px);
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(880px, 92vw);
  background: var(--color-bone);
  position: relative;
  transform: translateY(24px);
  transition: transform var(--dur-slow) var(--ease-out);
}
.newsletter-overlay.is-open .newsletter { transform: translateY(0); }

.newsletter__close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  z-index: 2;
  line-height: 1;
  transition: color var(--dur-fast) var(--ease);
}
.newsletter__close:hover { color: var(--color-black); }

.newsletter__media {
  overflow: hidden;
  min-height: 480px;
}
.newsletter__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-xslow) var(--ease);
}
.newsletter:hover .newsletter__media img { transform: scale(1.03); }

.newsletter__content {
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.newsletter__eyebrow {
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.newsletter__title {
  font-family: var(--font-serif);
  font-size: var(--size-3xl);
  font-weight: 400;
  line-height: 1.1;
}
.newsletter__title em { font-style: italic; color: var(--color-dark-grey); }

.newsletter__body {
  font-size: var(--size-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.newsletter__form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }

.newsletter__input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--size-sm);
  outline: none;
  transition: border-color var(--dur-base) var(--ease);
  cursor: none;
}
.newsletter__input:focus { border-color: var(--color-black); }
.newsletter__input::placeholder { color: var(--text-muted); }

.newsletter__submit { width: 100%; }

.newsletter__legal {
  font-size: var(--size-xs);
  color: var(--color-grey);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* ─── Collection Section Header ─── */
.collection {
  padding: var(--space-xl) var(--space-md);
  max-width: 1440px;
  margin: 0 auto;
}

.collection__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
}

.collection__eyebrow {
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.collection__title {
  font-family: var(--font-serif);
  font-size: var(--size-4xl);
  font-weight: 400;
  line-height: 1;
}

/* ─── WhatsApp Float Button ─── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .newsletter { grid-template-columns: 1fr; }
  .newsletter__media { display: none; }
  .newsletter-overlay {
    align-items: flex-start;
    padding: calc(var(--nav-h) + var(--marquee-h) + 1rem) 1rem 1rem;
  }
  .newsletter {
    width: 100%;
    max-height: calc(100dvh - var(--nav-h) - var(--marquee-h) - 2rem);
    overflow-y: auto;
  }
  .newsletter__content { padding: 2rem 1.5rem; }
  .collection__title { font-size: var(--size-3xl); }
  .collection { padding: var(--space-lg) var(--space-sm); }
  .collection__header { text-align: center; align-items: center; }
  html { cursor: auto; }
  .cursor { display: none; }
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
}
