/* ============================================================
   ArizTru Skin — estilos
   Paleta basada en el logo: verde olivo sobre crema.
   ============================================================ */

:root {
  --olive-900: #3a4222;
  --olive-700: #556238;
  --olive-600: #66754a;   /* color del logo */
  --olive-500: #7a8a5c;
  --olive-100: #e8ebdd;
  --olive-050: #f2f4ea;
  --cream: #faf8f2;
  --white: #ffffff;
  --ink: #2e3226;
  --ink-soft: #6b705f;
  --rose: #c9a19a;
  --amber-bg: #f7ecd8;
  --amber-tx: #8a6420;
  --green-bg: #e2eeda;
  --green-tx: #3f6b2e;
  --shadow: 0 10px 30px rgba(58, 66, 34, 0.10);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 300;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: 1rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--olive-100);
}
.nav {
  max-width: 1200px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.nav-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--olive-700); letter-spacing: 0.02em;
}
.nav-title em { font-style: italic; }
.nav-title span { font-size: 0.95rem; letter-spacing: 0.35em; font-weight: 500; margin-left: 2px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 0.95rem; font-weight: 400; letter-spacing: 0.05em;
  color: var(--ink-soft); transition: color 0.2s;
}
.nav-links a:hover { color: var(--olive-700); }
.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--olive-700); color: var(--white);
  border: none; border-radius: 999px; padding: 10px 18px;
  font-size: 0.92rem; letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  position: relative;
}
.cart-btn:hover { background: var(--olive-900); transform: translateY(-1px); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--rose); color: var(--white);
  min-width: 22px; height: 22px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 600; padding: 0 5px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(122, 138, 92, 0.16), transparent),
    radial-gradient(ellipse 50% 70% at 10% 90%, rgba(201, 161, 154, 0.14), transparent),
    var(--olive-050);
  padding: 90px 20px 80px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-grid {
  max-width: 1150px;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center; text-align: left;
}
.hero-photo img {
  width: 100%; border-radius: 30px 90px 30px 90px;
  box-shadow: 0 24px 60px rgba(58, 66, 34, 0.22);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.hero-grid .hero-sub { margin-left: 0; }
.hero-grid .hero-actions, .hero-grid .hero-badges { justify-content: flex-start; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.78rem;
  color: var(--olive-600); font-weight: 500; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.12;
  color: var(--olive-900); margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--olive-600); }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px; border-radius: 999px; border: none;
  font-size: 1rem; font-weight: 400; letter-spacing: 0.05em;
  transition: all 0.2s;
}
.btn-primary { background: var(--olive-700); color: var(--white); }
.btn-primary:hover { background: var(--olive-900); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--olive-700); border: 1.5px solid var(--olive-500); }
.btn-ghost:hover { background: var(--olive-100); }
.hero-badges {
  margin-top: 44px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--olive-600); letter-spacing: 0.03em;
}

/* ---------- Secciones ---------- */
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--olive-900);
  text-align: center; margin-bottom: 40px;
}
.section-title::after {
  content: ""; display: block; width: 56px; height: 2px;
  background: var(--olive-500); margin: 14px auto 0; border-radius: 2px;
}

/* ---------- Cómo funciona ---------- */
.steps { max-width: 1100px; margin: 0 auto; padding: 80px 20px 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.step {
  background: var(--white); border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow); text-align: center;
}
.step-num {
  width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--olive-100); color: var(--olive-700);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
}
.step h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--olive-900); margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--ink-soft); }
.availability-note {
  margin-top: 34px; display: grid; gap: 12px; justify-content: center;
  font-size: 0.95rem; color: var(--ink-soft);
}
.availability-note > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em; white-space: nowrap;
}
.badge-green { background: var(--green-bg); color: var(--green-tx); }
.badge-amber { background: var(--amber-bg); color: var(--amber-tx); }

/* ---------- Catálogo ---------- */
.catalog { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.filters { display: grid; gap: 16px; margin-bottom: 10px; }
.search-wrap {
  position: relative; max-width: 480px; margin: 0 auto; width: 100%;
}
.search-wrap svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-soft);
}
.search-wrap input {
  width: 100%; padding: 13px 18px 13px 46px;
  border: 1.5px solid var(--olive-100); border-radius: 999px;
  background: var(--white); outline: none; transition: border 0.2s;
}
.search-wrap input:focus { border-color: var(--olive-500); }
.filter-row {
  display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--olive-100);
  background: var(--white); color: var(--ink-soft); font-size: 0.9rem;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--olive-500); color: var(--olive-700); }
.chip.active { background: var(--olive-700); border-color: var(--olive-700); color: var(--white); }
.filter-row select {
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--olive-100);
  background: var(--white); color: var(--ink); outline: none; font-size: 0.9rem;
}
.results-count { text-align: center; color: var(--ink-soft); font-size: 0.88rem; margin: 8px 0 24px; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px;
}
.loading, .empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--ink-soft);
  font-size: 1.05rem;
}

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 16px rgba(58, 66, 34, 0.07);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img {
  aspect-ratio: 1; background: var(--olive-050); position: relative; overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--olive-500);
}
.card-img .placeholder svg { width: 56px; height: 56px; opacity: 0.55; }
.card-badge { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-brand {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--olive-600); font-weight: 500; margin-bottom: 6px;
}
.card-name {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 600;
  color: var(--ink); line-height: 1.25; margin-bottom: 8px;
}
.card-desc {
  font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-desc.open { -webkit-line-clamp: unset; }
.card-more {
  background: none; border: none; color: var(--olive-600); font-size: 0.82rem;
  padding: 0; margin: -8px 0 14px; text-align: left; text-decoration: underline;
}
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; flex-direction: column; }
.price-now { font-size: 1.25rem; font-weight: 500; color: var(--olive-900); }
.price-was { font-size: 0.85rem; color: #b0a99a; text-decoration: line-through; }
.add-btn {
  background: var(--olive-100); color: var(--olive-900); border: none;
  border-radius: 999px; padding: 10px 18px; font-size: 0.9rem; font-weight: 500;
  display: flex; align-items: center; gap: 6px; transition: all 0.2s; white-space: nowrap;
}
.add-btn:hover { background: var(--olive-700); color: var(--white); }

/* ---------- Divisor botánico ---------- */
.leaf-divider {
  display: flex; justify-content: center; padding: 10px 0 0;
}
.leaf-divider img {
  width: 150px; height: 150px; object-fit: cover;
  mix-blend-mode: multiply; opacity: 0.9;
}

/* ---------- Info: entregas y pago ---------- */
.info {
  max-width: 1100px; margin: 0 auto; padding: 60px 20px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.info .section-title { text-align: left; }
.info .section-title::after { margin-left: 0; }
.info-lead { color: var(--ink-soft); margin-bottom: 22px; }
.pickup-list { list-style: none; display: grid; gap: 12px; }
.pickup-list li {
  background: var(--white); border-radius: 14px; padding: 16px 20px;
  box-shadow: 0 3px 12px rgba(58,66,34,0.06);
  display: flex; align-items: center; gap: 12px; font-weight: 400;
}
.pickup-list li::before { content: "📍"; }
.pay-cards { display: grid; gap: 16px; }
.pay-card {
  background: var(--white); border-radius: 14px; padding: 22px 24px;
  box-shadow: 0 3px 12px rgba(58,66,34,0.06);
}
.pay-icon { font-size: 1.6rem; }
.pay-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--olive-900); margin: 6px 0 4px; }
.pay-card p { font-size: 0.92rem; color: var(--ink-soft); }
.info-photo {
  margin-top: 18px; border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(58,66,34,0.06);
  aspect-ratio: 16 / 9; object-fit: cover; object-position: left center;
  width: 100%;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--olive-900); color: rgba(255,255,255,0.85);
  text-align: center; padding: 56px 20px 40px;
}
.footer-logo {
  width: 74px; height: 74px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px; border: 2px solid rgba(255,255,255,0.25);
}
.footer-brand { font-family: var(--font-display); font-size: 1.7rem; color: var(--white); }
.footer-brand em { font-style: italic; }
.footer-tag { font-size: 0.9rem; letter-spacing: 0.08em; margin: 4px 0 18px; opacity: 0.75; }
.footer-wa {
  display: inline-block; border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px; padding: 10px 24px; font-size: 0.95rem;
  transition: background 0.2s;
}
.footer-wa:hover { background: rgba(255,255,255,0.12); }
.footer-copy { margin-top: 26px; font-size: 0.8rem; opacity: 0.55; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Carrito (drawer) ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(46, 50, 38, 0.45);
  z-index: 70; opacity: 0; transition: opacity 0.25s;
}
.overlay.show { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(430px, 100vw);
  background: var(--cream);
  transform: translateX(100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,0.15);
}
.cart.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--olive-100);
}
.cart-head h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--olive-900); font-weight: 600; }
.cart-close {
  background: none; border: none; font-size: 1.9rem; line-height: 1;
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0; margin: -4px -8px -4px 0;
}
.cart-items { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 24px; display: grid; gap: 14px; align-content: start; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 24px 10px 40px; }
.cart-empty-img {
  width: 130px; height: 130px; object-fit: cover; margin: 0 auto 8px;
  mix-blend-mode: multiply; opacity: 0.85;
}
.cart-item {
  background: var(--white); border-radius: 14px; padding: 14px 16px;
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
  box-shadow: 0 2px 10px rgba(58,66,34,0.06);
}
.cart-item-name { font-weight: 400; font-size: 0.92rem; line-height: 1.35; }
.cart-item-brand { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--olive-600); }
.cart-item-price { font-weight: 500; color: var(--olive-900); text-align: right; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--olive-100);
  background: var(--white); color: var(--olive-700); font-size: 1rem; line-height: 1;
}
.qty-btn:hover { border-color: var(--olive-500); }
.qty-val { min-width: 24px; text-align: center; font-weight: 500; }
.remove-btn {
  margin-left: auto; background: none; border: none; color: #b3695f; font-size: 0.82rem;
  text-decoration: underline;
}
.cart-foot { padding: 18px 24px 24px; border-top: 1px solid var(--olive-100); background: var(--white); }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.05rem; margin-bottom: 14px;
}
.cart-total strong { font-size: 1.5rem; font-family: var(--font-display); color: var(--olive-900); }
.cart-label { display: block; font-size: 0.82rem; color: var(--ink-soft); margin: 10px 0 4px; letter-spacing: 0.03em; }
.cart-foot select, .cart-foot input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--olive-100);
  border-radius: 12px; background: var(--cream); outline: none;
}
.cart-foot select:focus, .cart-foot input:focus { border-color: var(--olive-500); }
.btn-whatsapp {
  width: 100%; margin-top: 16px; background: #25d366; color: var(--white);
  padding: 15px 20px; border-radius: 999px; font-size: 1rem; font-weight: 500;
}
.btn-whatsapp:hover { background: #1fb857; }
.btn-whatsapp:disabled { background: #c9cec2; cursor: not-allowed; }
.cart-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  background: var(--olive-900); color: var(--white);
  padding: 12px 26px; border-radius: 999px; font-size: 0.92rem;
  z-index: 90; box-shadow: var(--shadow);
  animation: toast-in 0.25s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .info { grid-template-columns: 1fr; gap: 46px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-grid .hero-sub { margin: 0 auto 32px; }
  .hero-grid .hero-actions, .hero-grid .hero-badges { justify-content: center; }
  .hero-photo { order: 2; max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-title span { display: none; }
  .cart-btn span:not(.cart-count) { display: none; }
  .cart-btn { padding: 10px 14px; margin-left: auto; }
  .cart {
    width: 88vw;
    height: 100vh;
    height: 100dvh;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    box-shadow: -16px 0 48px rgba(0,0,0,0.28);
  }
  .cart-foot {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .hero { padding: 60px 18px 56px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card-body { padding: 14px; }
  .card-name { font-size: 1.02rem; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .add-btn { justify-content: center; }
}
