/* ============================
   VARIABLES — DARK (default)
   ============================ */
:root {
  --sage-main: #9cb39e;
  --sage-hover: #b5ccb7;
  --sage-bg: rgba(156, 179, 158, 0.15);

  --sky-bg: radial-gradient(circle at 50% 50%, #0c1412 0%, #060908 100%);
  --star-color: 255, 255, 255;
  --star-opacity: 0.15;

  --cursor-glow-color: rgba(156, 179, 158, 0.15);

  --bg-page: #0a0e14;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-nav: rgba(15, 20, 28, 0.75);
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --bg-input: rgba(10, 14, 20, 0.5);

  --text-primary: #f0f0f0;
  --text-muted: #a0a5ab;
  --text-secondary: #f0f0f0;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);

  --btn-text: #0a0e14;
  --ui-bg: transparent;

  --font-primary: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", "Cormorant Garamond", serif;
  --font-display: "Geologica", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-italic: "Cormorant Garamond", serif;

  --mouse-x: 0.5;
  --mouse-y: 0.5;
}

[data-theme="light"] {
  --sage-main: #6b8e70;
  --sage-hover: #527057;
  --sage-bg: #eef2ef;

  --sky-bg: var(--bg-page);
  --star-color: 107, 142, 112;
  --star-opacity: 0.35;

  --cursor-glow-color: rgba(107, 142, 112, 0.12);

  --bg-page: #f7f7f6;
  --bg-card: #ffffff;
  --bg-nav: rgba(247, 247, 246, 0.85);
  --bg-elevated: rgba(0, 0, 0, 0.03);
  --bg-input: #ffffff;

  --text-primary: #3d3d3c;
  --text-muted: #8a8a88;
  --text-secondary: #3d3d3c;

  --border-color: rgba(0, 0, 0, 0.05);
  --border-strong: rgba(0, 0, 0, 0.15);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);

  --btn-text: #ffffff;
  --ui-bg: #ffffff;
}

/* ============================
   RESET
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background-color 0.5s ease, color 0.5s ease;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; }

em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--sage-main);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================
   GLOBAL CURSOR GLOW
   ============================ */
.global-glow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(
    circle 300px at calc(var(--mouse-x) * 100vw) calc(var(--mouse-y) * 100vh),
    var(--cursor-glow-color),
    transparent 100%
  );
  transition: background 0.5s ease;
}

@media (hover: none) and (pointer: coarse) {
  .global-glow { display: none; }
}

/* ============================
   NIGHT SKY
   ============================ */
.night-sky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--sky-bg);
  pointer-events: none;
  transition: background 0.6s ease;
  perspective: 600px;
  overflow: hidden;
}

.sky-parallax {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate(
    calc((var(--mouse-x) - 0.5) * 25px),
    calc((var(--mouse-y) - 0.5) * 25px)
  );
  transition: transform 0.15s ease-out;
}

.star-rotation {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  animation: sky-drift 300s linear infinite;
}

@keyframes sky-drift {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.stars {
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(var(--star-color), var(--star-opacity)) 1px, transparent 1px),
    radial-gradient(circle, rgba(var(--star-color), calc(var(--star-opacity) * 0.6)) 1px, transparent 1px);
  background-size: 100px 100px, 180px 180px;
  background-position: 0 0, 40px 60px;
  transition: background-image 0.6s ease;
}

/* ============================
   UTILIDADES
   ============================ */
.liquid-glass {
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.clay-border {
  border-radius: 24px;
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.05),
    inset -3px -3px 7px rgba(0, 0, 0, 0.3), 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1400px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-radius: 50px;
  z-index: 100;
  gap: 12px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--sage-hover);
  flex-shrink: 0;
}

.logo-icon {
  width: 16px;
  height: 16px;
  background: var(--sage-main);
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(156, 179, 158, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(156, 179, 158, 0); }
}

.nav-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  margin: 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--sage-main); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--sage-main);
  color: var(--btn-text);
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  transition: background 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--sage-hover);
  transform: translateY(-2px);
}

/* ============================
   THEME SWITCH
   ============================ */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 28px;
  flex-shrink: 0;
}

.theme-switch input { opacity: 0; width: 0; height: 0; }

.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.05);
  transition: 0.4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  border: 1px solid var(--border-color);
}

[data-theme="light"] .theme-switch .slider {
  background-color: rgba(0, 0, 0, 0.06);
}

.theme-switch .slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: transparent;
  border: 2px solid var(--sage-main);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s;
  border-radius: 50%;
  box-sizing: border-box;
  z-index: 2;
  box-shadow: 0 0 8px rgba(156, 179, 158, 0.4);
}

.theme-switch input:checked + .slider::before {
  transform: translateX(28px);
}

.theme-switch .icon {
  font-size: 12px;
  z-index: 1;
  line-height: 1;
  user-select: none;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================
   CART BUTTON
   ============================ */
.nav-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sage-main);
  color: var(--btn-text);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.nav-cart:hover {
  background: var(--sage-hover);
  transform: translateY(-1px);
}

.nav-cart svg { stroke: var(--btn-text); }

.cart-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-width: 16px;
  text-align: center;
}

.cart-count.pop { animation: pop 0.25s ease; }

@keyframes pop {
  50% { transform: scale(1.4); }
}

/* ============================
   MENU TOGGLE
   ============================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 60px;
  overflow: hidden;
  background: transparent;
}

.hero-bg-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18vw;
  font-weight: 700;
  color: rgba(156, 179, 158, 0.04);
  letter-spacing: -0.02em;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

[data-theme="light"] .hero-bg-text {
  color: rgba(107, 142, 112, 0.06);
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.hero-content { max-width: 500px; flex: 1; }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  margin-bottom: 20px;
  letter-spacing: -1px;
  animation: fadeUp 1s ease-out 0.2s both;
  color: var(--text-primary);
}

.hero-subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  animation: fadeUp 1s ease-out 0.4s both;
  max-width: 450px;
}

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

/* ============================
   3D CAROUSEL
   ============================ */
.carousel-container {
  perspective: 1400px;
  width: 620px;
  max-width: 100%;
  height: 460px;
  position: relative;
  flex-shrink: 0;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.carousel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 420px;
  padding: 14px;
  margin: -210px 0 0 -150px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.4s ease, border 0.4s ease;
  transform-origin: center center;
  will-change: transform, opacity;
}

.carousel-card:hover {
  border: 1px solid rgba(156, 179, 158, 0.4);
  box-shadow: 0 20px 60px rgba(156, 179, 158, 0.15);
}

.card-image {
  width: 100%;
  height: 76%;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1a1a;
  margin-bottom: 14px;
  transition: transform 0.5s ease;
}

.carousel-card:hover .card-image { transform: scale(1.04); }

.card-info h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.card-info p {
  font-size: 0.8rem;
  color: var(--sage-main);
  font-weight: 500;
}

.card-info::after {
  content: "Ver detalles →";
  display: block;
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.3s;
}

.carousel-card:hover .card-info::after {
  color: var(--sage-main);
  transform: translateX(4px);
}

/* ============================
   ABOUT
   ============================ */
.about {
  padding: 120px 5% 100px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  text-align: center;
  align-items: center;
}

.about-label {
  color: var(--sage-main);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
}

.about-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-primary);
  line-height: 1.2;
}

.about-text {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 650px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
  width: 100%;
  max-width: 700px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 12px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: border 0.3s, transform 0.3s;
}

.stat:hover {
  border-color: var(--sage-main);
  transform: translateY(-4px);
}

.stat strong {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--sage-main);
  font-family: var(--font-display);
  font-weight: 900;
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ============================
   DISCOVER
   ============================ */
.discover {
  padding: 100px 5% 120px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.discover-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 2rem 1.5rem 1rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.discover-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
  color: var(--text-primary);
  line-height: 1;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--sage-main);
  border-radius: 2px;
}

.discover-subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.5;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

/* ============================
   CARDS
   ============================ */
.card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, background 0.4s, border-color 0.4s;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(156, 179, 158, 0.3);
}

[data-theme="light"] .card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}

[data-theme="light"] .img-wrap { background: #f0f0f0; }

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(0.95);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
}

.product-img.is-revealed {
  opacity: 1;
  transform: scale(1);
}

.card:hover .product-img.is-revealed {
  transform: scale(1.05);
}

.product-img--contain {
  object-fit: contain;
  background: #ffffff;
  padding: 20px;
}

.hover-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: calc(100% - 24px);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover .hover-bar {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.add-to-cart {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: var(--sage-main);
  color: var(--btn-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-to-cart:hover { background: var(--sage-hover); }
.add-to-cart:active { transform: scale(0.98); }

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  white-space: nowrap;
}

.description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variant-label-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 8px;
}

/* ============================
   MODAL
   ============================ */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.product-modal.active { opacity: 1; visibility: visible; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  background: var(--bg-card);
}

.product-modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-image {
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  min-height: 500px;
}

.modal-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.modal-category {
  color: var(--sage-main);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1.1;
  font-weight: 900;
}

.modal-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-top: auto;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.detail-row span { color: var(--text-muted); }
.detail-row strong { color: var(--text-primary); font-weight: 600; }

.modal-btn {
  background: var(--sage-main);
  color: var(--btn-text);
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.modal-btn:hover {
  background: var(--sage-hover);
  transform: translateY(-2px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.3s, transform 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

[data-theme="light"] .modal-close { background: rgba(0, 0, 0, 0.05); }
[data-theme="light"] .modal-close:hover { background: rgba(0, 0, 0, 0.1); }

/* ============================
   CART DRAWER
   ============================ */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}

.cart-drawer.active {
  pointer-events: auto;
  visibility: visible;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cart-drawer.active .cart-overlay {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: var(--bg-page);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .cart-panel {
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
}

.cart-drawer.active .cart-panel {
  transform: translateX(0);
}

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

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-header-title svg {
  color: var(--sage-main);
  flex-shrink: 0;
}

.cart-header-title h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

#cartDrawerCount {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.cart-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.3s;
  line-height: 1;
  padding-bottom: 2px;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

[data-theme="light"] .cart-close { background: rgba(0, 0, 0, 0.05); }
[data-theme="light"] .cart-close:hover { background: rgba(0, 0, 0, 0.1); }

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

.cart-items::-webkit-scrollbar { width: 6px; }
.cart-items::-webkit-scrollbar-track { background: transparent; }
.cart-items::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: border-color 0.2s;
  align-items: center;
}

.cart-item:hover {
  border-color: rgba(156, 179, 158, 0.3);
}

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  flex-shrink: 0;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--sage-bg);
  border-color: var(--sage-main);
  color: var(--sage-main);
}

.qty-value {
  min-width: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-item-total {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sage-main);
  white-space: nowrap;
}

.cart-item-remove {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
}

.cart-item-remove:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
}

.cart-empty {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 22px;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty.active { display: flex; }

.cart-empty svg {
  color: var(--text-muted);
  opacity: 0.4;
}

.cart-empty p {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.1rem;
}

.cart-empty-btn {
  padding: 10px 24px;
  border-radius: 30px;
  background: var(--sage-main);
  color: var(--btn-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.cart-empty-btn:hover { background: var(--sage-hover); }

.cart-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border-color);
  padding: 20px 22px;
  background: var(--bg-page);
  display: none;
}

.cart-footer.active { display: block; }

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.cart-summary-row span { color: var(--text-muted); }
.cart-summary-row strong {
  font-family: var(--font-mono);
  font-weight: 700;
}

.cart-summary-muted strong {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-summary-total {
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  margin-top: 6px;
}

.cart-summary-total span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.cart-summary-total strong {
  font-size: 1.15rem;
  color: var(--sage-main);
}

.cart-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.cart-clear {
  padding: 14px 18px;
  border-radius: 30px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.cart-clear:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

.cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 30px;
  background: var(--sage-main);
  color: var(--btn-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.cart-checkout:hover {
  background: var(--sage-hover);
  transform: translateY(-1px);
}

.cart-checkout:active { transform: scale(0.98); }

/* ============================
   CONTACT
   ============================ */
.contact {
  padding: 120px 5% 100px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-top: 1px solid var(--border-color);
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
}

.contact-label {
  color: var(--sage-main);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  line-height: 1.15;
}

.contact-subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: border 0.3s ease, background 0.3s ease;
  outline: none;
  width: 100%;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage-main);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239cb39e' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-page);
  color: var(--text-primary);
}

.form-submit {
  background: var(--sage-main);
  color: var(--btn-text);
  border: none;
  padding: 18px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-top: 10px;
}

.form-submit:hover {
  background: var(--sage-hover);
  transform: translateY(-2px);
}

.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success,
.form-error {
  display: none;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 8px;
}

.form-success { color: var(--sage-main); }
.form-error { color: #e74c3c; }

.form-success.active,
.form-error.active {
  display: block;
  animation: fadeUp 0.5s ease-out;
}

/* ============================
   WHATSAPP FLOAT
   ============================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: waPulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
  animation-play-state: paused;
}

.whatsapp-float svg { width: 28px; height: 28px; fill: #ffffff; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ============================
   RESPONSIVE — TABLET
   ============================ */
@media (max-width: 1024px) {
  .hero { padding: 110px 0 60px; min-height: auto; }

  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
  }

  .hero-content { max-width: 100%; }

  .carousel-container {
    width: 100%;
    height: 460px;
    display: flex;
    justify-content: center;
  }

  .about { padding: 100px 5% 80px; }
  .discover { padding: 80px 5% 100px; gap: 40px; }
  .contact { padding: 100px 5% 80px; }

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

/* ============================
   RESPONSIVE — MÓVIL
   ============================ */
@media (max-width: 768px) {
  .navbar {
    top: 10px;
    height: 58px;
    padding: 0 14px;
    width: 94%;
    gap: 8px;
  }

  .logo { font-size: 0.7rem; letter-spacing: 0; }
  .logo-icon { width: 14px; height: 14px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 0;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    gap: 8px;
  }

  .nav-links.active { display: flex; }
  .nav-links a { margin: 8px 0; font-size: 1rem; }

  .nav-actions { gap: 8px; }
  .nav-actions .btn-primary { display: none; }

  .theme-switch { width: 48px; height: 26px; }
  .theme-switch .slider::before { height: 20px; width: 20px; }
  .theme-switch input:checked + .slider::before { transform: translateX(22px); }
  .theme-switch .icon { font-size: 11px; }

  .nav-cart { padding: 7px 11px; font-size: 0.75rem; }
  .nav-cart svg { width: 16px; height: 16px; }

  .menu-toggle { display: flex; }

  .hero-bg-text { font-size: 26vw; top: 35%; }
  .hero { padding: 100px 0 50px; }
  .hero-container { width: 92%; }
  .carousel-container { height: 400px; }

  .carousel-card {
    width: 260px;
    height: 360px;
    margin: -180px 0 0 -130px;
  }

  .card-info h3 { font-size: 1rem; }
  .card-info p { font-size: 0.75rem; }

  .about { padding: 80px 5% 60px; }
  .about-stats { grid-template-columns: 1fr; gap: 16px; }

  .discover { padding: 70px 5% 80px; gap: 36px; }
  .discover-hero { padding: 1rem 1rem 0.5rem; }
  .discover-title { font-size: 2rem; }
  .discover-subtitle { font-size: 1rem; }

  .store-grid { grid-template-columns: 1fr; gap: 1.2rem; }

  .hover-bar {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }

  .modal-content { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-image { min-height: 240px; max-height: 260px; }
  .modal-info { padding: 28px 22px; }
  .modal-title { font-size: 1.5rem; }

  .contact { padding: 80px 5% 70px; }
  .contact-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 18px; }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg { width: 24px; height: 24px; }

  .cart-panel { width: 100%; }
}

/* ============================
   RESPONSIVE — MÓVIL PEQUEÑO
   ============================ */
@media (max-width: 480px) {
  .logo { font-size: 0.65rem; gap: 6px; }

  .theme-switch { width: 44px; height: 24px; }
  .theme-switch .slider::before { height: 18px; width: 18px; }
  .theme-switch input:checked + .slider::before { transform: translateX(20px); }
  .theme-switch .icon { font-size: 10px; }

  .nav-cart { padding: 6px 10px; font-size: 0.7rem; }
  .nav-cart svg { width: 14px; height: 14px; }

  .hero-title { font-size: 2rem; }
  .carousel-container { height: 380px; }
  .carousel-card { width: 240px; height: 340px; margin: -170px 0 0 -120px; }

  .discover-title { font-size: 1.6rem; }
  .card-name { font-size: 1rem; }
  .price { font-size: 0.85rem; }
  .description { font-size: 0.8rem; }
  .card-body { padding: 1rem; }

  .cart-header { padding: 16px 16px; }
  .cart-items { padding: 10px 16px; }
  .cart-footer { padding: 16px; }
  .cart-item { grid-template-columns: 60px 1fr auto; gap: 10px; padding: 10px; }
  .cart-item-image { width: 60px; height: 60px; }
  .cart-actions { grid-template-columns: 1fr; }
  .cart-clear { order: 2; }
}