/* ==========================================================================
   Colloidal Labs / ZIN — Design system
   ========================================================================== */

:root {
  /* Marca */
  --teal: #1CA9A0;
  --teal-dark: #0F857E;
  --cream: #F6EFDE;
  --cream-light: #FBF8F0;
  --ink: #24302E;
  --ink-soft: #55625F;
  --line: #E4DCC8;
  --white: #FFFFFF;

  /* Aromas */
  --aroma-neutro: #0EA5E0;
  --aroma-citrico: #39B44A;
  --aroma-lavanda: #C6168D;
  --aroma-madera: #8B5E3C;

  /* Estado */
  --error: #C0392B;
  --success: #1E8449;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(36, 48, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(36, 48, 46, 0.14);

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--teal-dark); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--cream { background: var(--cream-light); }
.section--tight { padding: 40px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.text-center { text-align: center; }

.lede {
  font-size: 1.15rem;
  max-width: 620px;
}
.lede.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn--primary:hover { background: var(--teal-dark); }

.btn--outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal-dark);
}
.btn--outline:hover { background: var(--teal); color: var(--white); }

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--block { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { height: 34px; width: auto; }
.brand span {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
}
.nav a:hover { color: var(--teal-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.cart-badge {
  background: var(--teal);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}
.hero-copy .eyebrow { margin-top: 8px; }
.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Grid genérico ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---------- Producto: tarjetas de aroma ---------- */
.aroma-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.aroma-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  background: var(--white);
  transition: border-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
  position: relative;
}
.aroma-card:hover { transform: translateY(-3px); }
.aroma-card.is-selected { border-color: var(--accent, var(--teal)); box-shadow: var(--shadow); }
.aroma-card img { height: 180px; object-fit: contain; margin: 0 auto 14px; }
.aroma-swatch {
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-block; margin-right: 6px; vertical-align: middle;
}
.aroma-name { font-weight: 700; margin-bottom: 2px; }
.aroma-tag { font-size: 0.8rem; color: var(--ink-soft); }
.aroma-soon {
  position: absolute; inset: 0; background: rgba(255,255,255,0.82);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink-soft); border-radius: var(--radius);
  font-size: 0.85rem;
}

.product-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 18px 0 6px;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty-control button {
  background: var(--cream);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}
.qty-control input {
  width: 46px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- Sellos / iconos de confianza ---------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  text-align: center;
}
.trust-row img { max-height: 46px; margin: 0 auto 8px; }
.trust-row span { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- Ficha técnica ---------- */
.spec-list dt {
  font-weight: 700;
  margin-top: 18px;
  color: var(--ink);
}
.spec-list dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

/* ---------- Tabla mayoristas ---------- */
.table-wrap { overflow-x: auto; }
table.pricing {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
table.pricing th, table.pricing td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.pricing th {
  background: var(--cream);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Formularios ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.form-success {
  display: none;
  background: #E9F7EF;
  border: 1px solid var(--success);
  color: var(--success);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-weight: 600;
}

/* ---------- Carrito ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item-thumb { width: 76px; }
.cart-item-thumb img { border-radius: var(--radius-sm); background: var(--cream); }
.cart-item-remove {
  background: none; border: none; color: var(--error);
  font-size: 0.85rem; cursor: pointer; font-weight: 600;
}
.cart-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--cream-light);
  position: sticky;
  top: 100px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C7D0CD;
  padding: 56px 0 28px;
  margin-top: 48px;
}
.site-footer a { color: #E7ECEA; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 0.85rem; }
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25D366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  text-decoration: none;
  font-size: 1.6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .aroma-grid { grid-template-columns: repeat(2, 1fr); }
  .product-selector { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 20px 24px;
    border-bottom: 1px solid var(--line); display: none; gap: 18px; }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .aroma-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
  .cart-summary { position: static; }
}
