/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --white: #ffffff;
  --gray: #f5f5f7;
  --sand: #e6e3dc;          /* tono del logo */
  --line: #e2e2e6;
  --ink: #0b0b0c;
  --ink-2: #1d1d1f;
  --muted: #6e6e73;
  --muted-dark: #a1a1a6;
  --accent: #8a6a45;        /* bronce discreto */
  --sealed: #1f6f4a;
  --sealed-bg: #e3f2ea;
  --used: #8a5a12;
  --used-bg: #f6ecdc;
  --wa: #25d366;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.14);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.05), 0 24px 48px -16px rgba(0,0,0,.22);
  --gutter: 16px;
  --nav-h: 78px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.025em; color: var(--ink); font-weight: 700; }
::selection { background: var(--ink); color: var(--sand); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--white); border-radius: 10px;
}
.skip-link:focus { top: 1rem; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin-bottom: 12px; }
.soft, .hero-title-soft { color: var(--muted); }
.section-dark .soft { color: var(--muted-dark); }

/* =============================================================
   4. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .4s var(--ease-out), background-color .3s, box-shadow .4s var(--ease-out), color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-dark { background: var(--ink); color: var(--white); box-shadow: 0 8px 24px -10px rgba(0,0,0,.45); }
.btn-dark:hover { background: #2a2a2d; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.18); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 17px; }
.ico { width: 20px; height: 20px; flex: none; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-sealed { color: var(--sealed); background: var(--sealed-bg); }
.tag-used { color: var(--used); background: var(--used-bg); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
.link-arrow::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform .4s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ----- Nav ----- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(245,245,247,.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: rgba(0,0,0,.08); background: rgba(255,255,255,.8); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-inner { padding-top: 6px; }
.nav-brand img { height: 44px; width: auto; }
.nav-links { display: none; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* =============================================================
   5. Sections
   ============================================================= */
.section { padding-block: 88px; }
.section-light { background: var(--white); }
.section-gray { background: var(--gray); }
.section-dark { background: var(--ink); color: #d2d2d7; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--sand); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2, .pay h2 { font-size: clamp(34px, 7.5vw, 60px); }
.section-lead { margin-top: 18px; font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); }

/* ----- Hero ----- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--gray) 0%, var(--sand) 100%);
  padding: 56px 0 0;
  display: grid; gap: 32px;
}
.hero-inner { text-align: center; position: relative; z-index: 2; }
.hero-title { font-size: clamp(44px, 11vw, 92px); font-weight: 800; letter-spacing: -0.04em; }
.hero-sub { max-width: 560px; margin: 22px auto 0; font-size: clamp(18px, 2.4vw, 22px); color: #424245; }
.hero-ctas { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 32px; }
.hero-ctas .btn { width: 100%; max-width: 340px; }
.hero-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero-badges strong { color: var(--ink); font-weight: 700; }

.hero-visual { position: relative; display: grid; place-items: center; height: 340px; }
.phone {
  position: relative; z-index: 2; width: 220px; height: 450px; margin-top: 40px;
  border-radius: 46px; background: #1b1b1d; padding: 10px;
  box-shadow: inset 0 0 0 2px #3a3a3d, 0 40px 80px -30px rgba(0,0,0,.5);
  transform: translateY(var(--lift, 0px));
  transition: transform .2s linear;
}
.phone-island { position: absolute; top: 20px; left: 50%; width: 76px; height: 22px; border-radius: 12px; background: #000; transform: translateX(-50%); z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 37px; display: grid; place-items: center;
  background: radial-gradient(120% 80% at 50% 0%, #3b3b40 0%, #0b0b0c 60%);
}
.phone-screen img { width: 70%; opacity: .95; }
.hero-glow { position: absolute; bottom: -60px; width: 520px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(138,106,69,.28), transparent); filter: blur(10px); }

/* ----- Productos ----- */
.legend { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; margin-top: 26px; font-size: 15px; color: var(--muted); }
.legend .tag { justify-self: start; }

.products { display: grid; gap: 20px; }
.product {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--gray); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #fbfbfd, #ececf0);
}
.product-media { overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.product:hover .product-media img { transform: scale(1.04); }
.product-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 28px; flex: 1; }
.product-body h3 { font-size: 28px; }
.product-body p { color: var(--muted); font-size: 16px; }
.product-body .link-arrow { margin-top: auto; }

/* ----- Valores ----- */
.values { display: grid; gap: 16px; }
.value {
  padding: 32px 28px; border-radius: var(--radius-lg);
  background: #161618; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .6s var(--ease-out), background-color .4s;
}
.value:hover { transform: translateY(-4px); background: #1c1c1f; }
.value-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--sand); color: var(--ink); margin-bottom: 22px; }
.value-ico svg { width: 24px; height: 24px; }
.value h3 { font-size: 24px; margin-bottom: 10px; }
.value p { color: var(--muted-dark); font-size: 16px; }

/* ----- Pagos ----- */
.pay {
  display: grid; gap: 36px; padding: 40px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--gray) 0%, var(--sand) 100%);
  box-shadow: var(--shadow);
}
.pay .btn { margin-top: 28px; }
.pay-num { display: inline-block; min-width: 1.15em; color: var(--accent); font-variant-numeric: tabular-nums; }
.pay-list { display: grid; gap: 10px; align-content: center; }
.pay-list li {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: rgba(255,255,255,.75); border-radius: 16px; font-weight: 500; color: var(--ink);
}
.pay-list li:first-child { background: var(--ink); color: var(--white); }
.pay-list li:first-child .pay-dot { background: var(--sand); }
.pay-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ----- Ubicación ----- */
.location { display: grid; gap: 16px; }
.map { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--line); min-height: 300px; }
.map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }
.location-card { padding: 32px 26px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.location-card h3 { font-size: 28px; }
.location-addr { font-size: 18px; color: var(--ink); }
.location-hours { color: var(--muted); }
.location-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* ----- Footer ----- */
.footer { background: var(--ink); color: var(--muted-dark); padding: 64px 0 110px; font-size: 15px; }
.footer-logo { width: 150px; margin-bottom: 36px; }
.footer-cols { display: grid; gap: 28px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: var(--white); font-size: 15px; letter-spacing: 0; margin-bottom: 8px; }
.footer a { color: #d2d2d7; transition: color .2s; }
.footer a:hover { color: var(--white); }
.footer-legal { padding-top: 24px; font-size: 12px; color: #6e6e73; }

/* ----- WhatsApp flotante ----- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: var(--white);
  box-shadow: 0 10px 28px -8px rgba(37,211,102,.7), 0 2px 6px rgba(0,0,0,.15);
  transition: transform .4s var(--ease-out);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: wa-pulse 2.6s infinite;
}

/* =============================================================
   6. Effects
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70%, 100% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }

/* =============================================================
   7. Responsive
   ============================================================= */
@media (min-width: 540px) {
  :root { --gutter: 24px; }
  .hero-ctas { flex-direction: row; justify-content: center; }
  .hero-ctas .btn { width: auto; }
  .location-ctas { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 720px) {
  .section { padding-block: 112px; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .product-feature { grid-column: 1 / -1; flex-direction: row; }
  .product-feature .product-media { flex: 1.1; aspect-ratio: auto; min-height: 360px; }
  .product-feature .product-body { flex: 1; justify-content: center; padding: 40px; }
  .product-feature h3 { font-size: 40px; }
  .product-feature .link-arrow { margin-top: 8px; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .hero-visual { height: 380px; }
}
@media (min-width: 960px) {
  :root { --nav-h: 84px; }
  .nav-links { display: flex; }
  .hero { padding-top: 80px; }
  .pay { grid-template-columns: 1.2fr 1fr; padding: 64px; align-items: center; }
  .location { grid-template-columns: 1.5fr 1fr; }
  .map, .map iframe { min-height: 420px; }
}
@media (min-width: 1280px) {
  .products { gap: 24px; }
  .product-feature .product-media { min-height: 420px; }
}

/* =============================================================
   8. Reduced motion (solo lo intrusivo)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
  .phone { transform: none; }
  html { scroll-behavior: auto; }
}
