/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

nav.scrolled {
  background: rgba(242, 232, 217, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 98, 45, 0.15);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--ocean);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocean);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--coral);
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: none;
  border: 1px solid var(--ocean);
  color: var(--ocean);
  padding: 6px 14px;
  cursor: none;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: var(--ocean);
  color: var(--sand);
}

/* ─── HERO ─── */
#hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* hero-bg.jpg placeholder — replace with real image when available */
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  /* CSS gradient fallback if image is missing */
  background-color: var(--sand);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,58,74,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 20% 80%, rgba(196,98,45,0.06) 0%, transparent 60%);
}

.hero-salt-crystal {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55vw;
  height: 80vh;
  background:
    radial-gradient(ellipse 60% 40% at 40% 50%, rgba(250,250,247,0.95) 0%, rgba(232,240,237,0.6) 60%, transparent 100%);
  border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%;
  filter: blur(0.5px);
  animation: morphCrystal 8s ease-in-out infinite;
}

.hero-salt-crystal::before {
  content: '';
  position: absolute;
  inset: 10%;
  background: radial-gradient(ellipse at 35% 40%, rgba(250,250,247,1) 0%, rgba(232,240,237,0.4) 70%);
  border-radius: 40% 60% 50% 50% / 40% 50% 60% 50%;
  animation: morphCrystal 6s ease-in-out infinite reverse;
}

.hero-salt-crystal::after {
  content: '';
  position: absolute;
  inset: 20%;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,0.9) 0%, transparent 60%);
  border-radius: 50%;
  animation: shimmer 4s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 8vw;
  max-width: 55%;
}

.nav-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.hero-logo {
  height: 440px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--ocean);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 0.07s + 0.15s);
}

.hero-title em {
  font-style: italic;
  color: var(--coral);
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--mist);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);  /* was: var(--ocean) opacity 0.75 — now real contrast value */
  max-width: 420px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 1.1s forwards;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--coral), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ─── ORIGIN ─── */
#origin {
  min-height: 100vh;
  background: var(--ocean);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.origin-bg-text {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 25vw;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  letter-spacing: -0.05em;
  pointer-events: none;
}

.origin-container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px 8vw;
  width: 100%;
}

.origin-left { align-self: center; }

.origin-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  color: var(--salt);
  line-height: 1.1;
  margin-bottom: 32px;
}

.origin-title em {
  font-style: italic;
  color: var(--mist);
}

.origin-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.80);  /* was 0.65 — improved to 5.1:1 on --deep */
  margin-bottom: 20px;
}

.origin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--coral);
  line-height: 1;
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 6px;
}

.origin-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.origin-map-glow {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.origin-map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.origin-map-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(13,32,48,0.85));
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.colima-label {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.9);
}

.coords {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--coral);
}

/* ─── LIGHTBOX ─── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox.open {
  display: flex;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

/* ─── BENEFITS ─── */
#benefits {
  min-height: 100vh;
  background: var(--salt);
  padding: 120px 8vw;
  position: relative;
  overflow: hidden;
}

.benefits-header {
  text-align: center;
  margin-bottom: 80px;
}

.benefits-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  color: var(--ocean);
  line-height: 1.05;
  margin-bottom: 16px;
}

.benefits-title em {
  font-style: italic;
  color: var(--coral);
}

.benefits-lead {
  font-size: 1.2rem;
  color: var(--mist);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(26,58,74,0.08);
}

.benefit-card {
  background: var(--salt);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: none;
}

.benefit-card:hover {
  background: var(--ocean);
  transform: translateY(-4px);
  z-index: 10;
  box-shadow: 0 20px 60px rgba(26,58,74,0.15);
}

.benefit-card:hover .benefit-icon { color: var(--coral); }
.benefit-card:hover .benefit-name { color: var(--salt); }
.benefit-card:hover .benefit-desc { color: rgba(255,255,255,0.65); }
.benefit-card:hover .benefit-tag  { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); }

.benefit-number {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(26,58,74,0.06);
  position: absolute;
  top: 20px; right: 24px;
  line-height: 1;
  transition: color 0.4s ease;
}

.benefit-card:hover .benefit-number { color: rgba(255,255,255,0.04); }

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--coral);
  transition: color 0.4s ease;
  display: block;
}

.benefit-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ocean);
  margin-bottom: 12px;
  transition: color 0.4s ease;
}

.benefit-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);  /* was: var(--ocean) opacity:0.65 */
  transition: color 0.4s ease;
}

.benefit-tag {
  display: inline-block;
  margin-top: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(26,58,74,0.15);
  padding: 4px 10px;
  color: var(--mist);
  transition: all 0.4s ease;
}

/* ─── PRODUCTS ─── */
#products {
  min-height: 100vh;
  background: var(--sand);
  padding: 120px 8vw;
  position: relative;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

.products-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  color: var(--ocean);
  line-height: 1.05;
}

.products-title em { font-style: italic; color: var(--coral); }

.products-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--salt);
  border: 1px solid rgba(26,58,74,0.08);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: none;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(26,58,74,0.12);
  border-color: transparent;
}

.product-img {
  height: 320px;
  background: linear-gradient(135deg, var(--foam) 0%, var(--sand) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.product-img img {
  transition: transform 0.4s ease;
}

.product-img:hover img {
  transform: scale(1.07);
}

.product-zoom-icon {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: rgba(26,58,74,0.65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-img:hover .product-zoom-icon {
  opacity: 1;
}

.product-img-placeholder {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  opacity: 0.3;
}

.product-img-label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ocean);
  color: var(--sand);
  padding: 6px 12px;
}

.product-info {
  padding: 28px;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ocean);
  margin-bottom: 8px;
}

.product-name-en {
  font-style: italic;
  font-size: 1rem;
  color: var(--mist);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);  /* was: var(--ocean) opacity:0.65 */
  margin-bottom: 20px;
}

.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--coral);
}

.product-price span {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--mist);
  font-weight: 400;
}

.product-add {
  width: 100%;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ocean);
  color: var(--sand);
  border: none;
  padding: 14px;
  cursor: none;
  transition: all 0.3s ease;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

.product-add::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--coral);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.product-add:hover::before { transform: translateX(0); }
.product-add span { position: relative; z-index: 1; }


/* ─── CART BADGE ─── */
.cart-badge {
  position: fixed;
  top: 24px;
  right: 160px;
  z-index: 600;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: var(--ocean);
  color: var(--sand);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: none;
  transition: all 0.3s ease;
}

.cart-badge:hover { background: var(--coral); }

.cart-count {
  background: var(--coral);
  color: white;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  transition: background 0.3s ease;
}

.cart-badge:hover .cart-count { background: white; color: var(--coral); }

/* ─── ORDER SECTION ─── */
#order {
  min-height: 60vh;
  background: var(--foam);
  padding: 100px 8vw;
  display: flex;
  align-items: center;
  gap: 80px;
}

.order-left { flex: 1; }

.order-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 900;
  color: var(--ocean);
  line-height: 1.1;
  margin-bottom: 16px;
}

.order-title em { font-style: italic; color: var(--coral); }

.order-desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);  /* was: var(--ocean) opacity:0.65 */
  margin-bottom: 32px;
  max-width: 400px;
}

.order-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-features li {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ocean);
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-features li::before {
  content: '◆';
  color: var(--coral);
  font-size: 0.5rem;
}

/* ─── CONTACT / FOOTER ─── */
#contact {
  background: var(--deep);
  padding: 80px 8vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.contact-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--salt);
  margin-bottom: 12px;
}

.contact-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--mist);
  font-size: 1rem;
  max-width: 220px;
  line-height: 1.5;
}

.contact-col h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 20px;
}

.contact-col a,
.contact-col p {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);  /* was 0.55 — improved contrast on --deep bg */
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.contact-col a:hover { color: var(--coral); }

.footer-bottom {
  background: var(--deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);  /* was 0.25 — minimum readable */
}

/* ─── AI CHAT BUTTON ─── */
#chat-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: var(--z-chat);
  width: 60px; height: 60px;  /* ≥44px touch target ✓ */
  background: var(--ocean);
  border: none;
  border-radius: 50%;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(26,58,74,0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

#chat-btn:hover {
  background: var(--coral);
  transform: scale(1.1);
}

#chat-btn svg { transition: transform 0.3s ease; }
#chat-btn:hover svg { transform: rotate(15deg); }

#chat-btn .pulse-ring {
  position: absolute;
  width: 100%; height: 100%;
  border: 2px solid var(--coral);
  border-radius: 50%;
  animation: pulsateRing 2s ease infinite;
}

/* ─── CHAT PANEL ─── */
#chat-panel {
  position: fixed;
  bottom: 108px;
  right: 32px;
  z-index: 800;
  width: 380px;
  max-height: 560px;
  background: var(--deep);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--coral), var(--ocean));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chat-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--salt);
}

.chat-status {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: #4CAF50;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-status::before {
  content: '';
  width: 6px; height: 6px;
  background: #4CAF50;
  border-radius: 50%;
  animation: blink 1.5s ease infinite;
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
  cursor: none;
  transition: color 0.2s ease;
}
.chat-close:hover { color: var(--coral); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 380px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.msg {
  display: flex;
  gap: 10px;
  animation: msgIn 0.3s ease;
}

.msg.user { flex-direction: row-reverse; }

.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.msg.user .msg-avatar { background: var(--mist); }

.msg-bubble {
  max-width: 240px;
  padding: 10px 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0;
}

.msg.bot .msg-bubble {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border-left: 2px solid var(--coral);
}

.msg.user .msg-bubble {
  background: var(--ocean);
  color: var(--salt);
  border-right: 2px solid var(--mist);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border-left: 2px solid var(--coral);
  width: fit-content;
}

.typing-dot {
  width: 6px; height: 6px;
  background: var(--mist);
  border-radius: 50%;
  animation: typingDot 1.2s ease infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--salt);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
}

.chat-input:focus { border-color: var(--coral); }
.chat-input::placeholder { color: rgba(255,255,255,0.25); font-style: italic; }

.chat-send {
  background: var(--coral);
  border: none;
  color: white;
  padding: 10px 16px;
  cursor: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.chat-send:hover { background: var(--ocean); }

/* ─── QUICK REPLIES ─── */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 12px;
}

.quick-reply {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  padding: 5px 10px;
  cursor: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-reply:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* ─── CART MODAL ─── */
#cart-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(13,32,48,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#cart-modal.open {
  opacity: 1;
  pointer-events: all;
}

.cart-panel {
  background: var(--salt);
  width: 480px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

#cart-modal.open .cart-panel { transform: scale(1); }

.cart-panel-header {
  padding: 24px 32px;
  background: var(--ocean);
  color: var(--salt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.cart-panel-close {
  background: none;
  border: none;
  color: var(--salt);
  font-size: 1.3rem;
  cursor: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.cart-panel-close:hover { opacity: 1; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(26,58,74,0.08);
}

.cart-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ocean);
}

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

.qty-btn {
  width: 24px; height: 24px;
  background: var(--ocean);
  color: var(--salt);
  border: none;
  font-size: 0.9rem;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.qty-btn:hover { background: var(--coral); }

.qty-display {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
  color: var(--ocean);
}

.cart-item-price {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--coral);
  min-width: 80px;
  text-align: right;
}

.cart-footer {
  padding: 24px 32px;
  border-top: 2px solid var(--ocean);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-total-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean);
}

.cart-total-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--coral);
}

.cart-checkout-btn {
  width: 100%;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ocean);
  color: var(--sand);
  border: none;
  padding: 16px;
  cursor: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cart-checkout-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--coral);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.cart-checkout-btn:hover::before { transform: translateX(0); }
.cart-checkout-btn span { position: relative; z-index: 1; }

.empty-cart {
  text-align: center;
  padding: 40px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--mist);
  font-size: 1.1rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-logo-img { height: 44px; }

  /* Hero */
  #hero { justify-content: center; align-items: center; text-align: center; }
  .hero-content { max-width: 100%; padding: 0 6vw; display: flex; flex-direction: column; align-items: center; }
  .hero-logo { height: 220px; max-width: 80vw; }
  .hero-desc { max-width: 100%; }
  .hero-cta { flex-direction: column; align-items: center; }

  /* Salt crystal: centrado, cuadrado, detrás del contenido */
  .hero-salt-crystal {
    width: 80vw;
    height: 80vw;
    right: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.35;
  }

  .origin-container { grid-template-columns: 1fr; gap: 40px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .products-track { grid-template-columns: 1fr; }
  .products-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  #order { flex-direction: column; padding: 80px 6vw; }
  #contact { padding: 60px 6vw; }
  #chat-panel { width: calc(100vw - 48px); right: 24px; }
  .cart-badge { display: none; }

  /* Ocultar cursor personalizado en touch */
  .cursor { display: none; }
}
