/* ==========================================================================
   Verde Menta — Light editorial, menta + oro
   ========================================================================== */
:root {
  --cream: #F3EFE6;
  --paper: #FBF9F4;
  --ink: #1C2A24;
  --forest: #23463A;
  --forest-2: #2E5A4B;
  --mint: #C4E6D4;
  --mint-2: #9FD3BA;
  --gold: #B08A4F;
  --muted: #5F6B65;
  --line: rgba(28, 42, 36, .14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 22px;
  --pad: clamp(1rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; overflow-x: clip;
  background: var(--cream); color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.02em; line-height: 1.02; margin: 0; }
em { font-style: italic; color: var(--forest-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.kicker { font: 600 .74rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: .95rem 1.5rem; font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: transform .35s var(--ease-out), background .3s, color .3s, box-shadow .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--forest); color: var(--paper); box-shadow: 0 10px 30px -12px rgba(35,70,58,.6); }
.btn-dark:hover { background: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); }
.btn-light { background: var(--paper); color: var(--forest); }
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }
.link-btn { background: none; border: 0; padding: 0; font-weight: 600; font-size: .9rem; color: var(--forest); border-bottom: 1px solid currentColor; }
.link-btn:hover { color: var(--gold); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #3FB27F; display: inline-block; box-shadow: 0 0 0 0 rgba(63,178,127,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63,178,127,0); } 100% { box-shadow: 0 0 0 0 rgba(63,178,127,0); } }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--mint); color: var(--forest);
  font: italic 400 1rem/1 var(--serif); letter-spacing: -.04em;
  border: 1px solid rgba(35,70,58,.2);
}
.brand-mark.sm { width: 34px; height: 34px; font-size: .88rem; }
.brand-name { font: 400 1.25rem/1 var(--serif); letter-spacing: -.01em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--pad);
  background: rgba(243,239,230,.82);
  transition: box-shadow .3s, background .3s;
}
@supports (backdrop-filter: blur(10px)) { .nav { backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); } }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-links { display: flex; gap: 2rem; font-size: .92rem; font-weight: 500; }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(2rem, 6vw, 5rem) var(--pad) clamp(3rem, 7vw, 6rem);
  min-height: calc(100svh - 70px);
}
.hero-title { font-size: clamp(3rem, 7.4vw, 7.2rem); max-width: 11ch; text-wrap: balance; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 44ch; margin: 1.6rem 0 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-facts { list-style: none; padding: 0; margin: 2.6rem 0 0; display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem; font-size: .88rem; color: var(--muted); }
.hero-facts strong { display: block; font: 400 1.5rem/1.1 var(--serif); color: var(--ink); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 480px); }
.arch {
  margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden;
  background: var(--mint); box-shadow: 0 40px 80px -40px rgba(35,70,58,.55);
}
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: heroZoom 2.4s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1.02); } }
.hero-thumb {
  position: absolute; left: -14%; bottom: 8%; width: 36%; margin: 0;
  aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; border: 6px solid var(--cream);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.4);
  animation: floatY 7s ease-in-out infinite;
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
@keyframes floatY { 50% { transform: translateY(-12px); } }
.seal { position: absolute; right: -6%; top: 6%; width: 124px; height: 124px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 16px 40px -18px rgba(0,0,0,.35); }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { font: 600 9.4px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; fill: var(--forest); }
.seal span { font: italic 400 1.7rem/1 var(--serif); color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--forest); color: var(--mint); padding: 1.1rem 0; }
.marquee-track { display: flex; width: max-content; gap: 2.2rem; align-items: center; animation: marquee 38s linear infinite; }
.marquee span { font: italic 300 clamp(1.4rem, 2.6vw, 2.2rem)/1 var(--serif); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2, .ai h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); text-wrap: balance; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin: 1.2rem 0 0; }
.fineprint { font-size: .8rem; color: var(--muted); max-width: 80ch; margin: 2rem 0 0; }

/* ---------- Grid de colecciones ---------- */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.9rem, 1.6vw, 1.4rem); }
.card {
  grid-column: span 4; position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -35px rgba(35,70,58,.5); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card:hover img { transform: scale(1.05); }
.card-tall { grid-row: span 2; }
.card-tall img { aspect-ratio: auto; flex: 1; min-height: 320px; }
.card-wide { grid-column: span 8; }
.card-wide img { aspect-ratio: 16 / 8; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-body h3 { font-size: 1.9rem; margin-bottom: .4rem; }
.card-body p { margin: 0 0 .8rem; color: var(--muted); font-size: .95rem; }
.price { color: var(--ink) !important; font-weight: 600; }
.price sup { color: var(--gold); }
.card-mint { background: var(--mint); justify-content: flex-end; min-height: 280px; }
.card-mint .card-body p { color: var(--forest); }
.card-mint h3 { font-size: 2.4rem; }

/* ---------- Materiales (oscuro) ---------- */
.section-dark { background: var(--forest); color: var(--paper); border-radius: clamp(24px, 4vw, 48px); margin: 0 clamp(.5rem, 1.5vw, 1.2rem); }
.section-dark em { color: var(--mint-2); }
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.material { border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 2rem; }
.material h3 { font-size: 2rem; margin: 1.2rem 0 .7rem; }
.material p, .material li { color: rgba(251,249,244,.78); }
.material ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.material-care { background: rgba(196,230,212,.08); }
.material-care h3 { margin-top: 0; }
.swatch { display: block; width: 64px; height: 64px; border-radius: 50%; }
.swatch-silver { background: radial-gradient(circle at 30% 30%, #fff, #cfd6d9 40%, #8e999e 100%); }
.swatch-gold { background: radial-gradient(circle at 30% 30%, #fff4d6, #d9b471 40%, #9a7236 100%); }

/* ---------- Asesora IA ---------- */
.ai { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.steps { list-style: none; padding: 0; margin: 2.2rem 0; display: grid; gap: 1.2rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps li > span { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--forest); font: italic 400 1.1rem/1 var(--serif); color: var(--forest); }
.steps p { margin: .15rem 0 0; color: var(--muted); font-size: .95rem; }
.ai-demo { background: var(--paper); border-radius: 28px; box-shadow: 0 40px 90px -45px rgba(35,70,58,.55); overflow: hidden; transform: rotate(1.5deg); }
.demo-head { display: flex; gap: .7rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.demo-head small { display: block; color: var(--muted); font-size: .78rem; }
.demo-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; }

/* ---------- Bubbles (demo + chat) ---------- */
.bubble { margin: 0; padding: .8rem 1rem; border-radius: 18px; max-width: 86%; font-size: .93rem; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--forest); color: var(--paper); border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: var(--cream); border-bottom-left-radius: 6px; }
.bubble.chip { align-self: flex-start; background: var(--mint); color: var(--forest); font-weight: 600; border-radius: 999px; }

/* ---------- Detal / Mayor ---------- */
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.buy-card { background: var(--paper); border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 3rem); display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.buy-card h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .4rem; }
.buy-card p { color: var(--muted); margin: 0 0 1.4rem; max-width: 46ch; }
.buy-card-mint { background: var(--mint); }
.buy-card-mint p { color: var(--forest); }
.perks { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.perks li { padding: 1.4rem 1rem 0 0; display: grid; gap: .2rem; }
.perks strong { font: 400 1.4rem/1.1 var(--serif); }
.perks span { color: var(--muted); font-size: .92rem; }

/* ---------- Final + footer ---------- */
.final { text-align: center; padding: clamp(4rem, 9vw, 7rem) var(--pad); background: var(--forest); color: var(--paper); display: grid; justify-items: center; gap: 2rem; }
.final h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 16ch; text-wrap: balance; }
.final em { color: var(--mint-2); }
.footer { padding: 3rem var(--pad) 7rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.footer-top nav { display: flex; gap: 1.5rem; font-weight: 600; }
.footer .fineprint { margin-top: 1rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Chat ---------- */
.chat-fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  display: flex; align-items: center; gap: .6rem; padding: .45rem 1.1rem .45rem .45rem;
  border: 0; border-radius: 999px; background: var(--forest); color: var(--paper);
  box-shadow: 0 18px 40px -16px rgba(35,70,58,.8);
  transition: transform .35s var(--ease-out), opacity .3s;
}
.chat-fab:hover { transform: translateY(-3px); }
.chat-fab-text { font-weight: 600; font-size: .9rem; }
.chat-open .chat-fab { opacity: 0; pointer-events: none; }

.chat {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70;
  width: min(400px, calc(100vw - 2rem)); height: min(640px, calc(100svh - 2.4rem));
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(20,40,32,.55), 0 0 0 1px var(--line);
  transform-origin: bottom right; animation: chatIn .45s var(--ease-out);
}
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: var(--forest); color: var(--paper); }
.chat-head small { display: flex; align-items: center; gap: .4rem; font-size: .76rem; opacity: .85; }
.chat-close { margin-left: auto; background: rgba(255,255,255,.1); border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1; color: var(--paper); }
.chat-disclaimer, .chat-demo { margin: 0; padding: .55rem 1rem; font-size: .74rem; line-height: 1.4; background: var(--mint); color: var(--forest); }
.chat-demo { background: #F6E7C8; color: #6B4E1E; }
.chat-demo code { font-size: .72rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; overscroll-behavior: contain; }
.chat-log .bubble strong { font-weight: 700; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.chat-chips { display: flex; gap: .4rem; padding: 0 1rem .6rem; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
.chat-chips[hidden], .chat-demo[hidden], .lead [hidden] { display: none; }
.chat-chips button { flex: none; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .4rem .8rem; font-size: .8rem; }
.chat-chips button:hover { background: var(--cream); }
.chat-input { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: .75rem 1rem; font: inherit; font-size: 16px; background: var(--cream); color: var(--ink); }
.chat-input button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--forest); color: var(--paper); font-size: 1.1rem; }
.lead-cta { align-self: flex-start; border: 0; background: var(--mint); color: var(--forest); font-weight: 600; border-radius: 999px; padding: .6rem 1rem; font-size: .88rem; }

.lead { align-self: stretch; background: var(--cream); border-radius: 18px; padding: 1rem; display: grid; gap: .55rem; font-size: .88rem; border: 1px solid var(--line); }
.lead h4 { margin: 0; font: 400 1.25rem/1.1 var(--serif); }
.lead p { margin: 0; color: var(--muted); font-size: .8rem; }
.lead label { display: grid; gap: .2rem; font-weight: 600; font-size: .78rem; }
.lead input, .lead select, .lead textarea { font: inherit; font-size: 16px; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; background: var(--paper); color: var(--ink); width: 100%; }
.lead textarea { resize: vertical; min-height: 60px; }
.lead .row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.lead .check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; font-size: .74rem; color: var(--muted); }
.lead .check input { width: auto; margin-top: .2rem; }
.lead .hp { position: absolute; left: -9999px; }
.lead .btn { justify-content: center; padding: .75rem 1rem; }
.lead-error { color: #A33 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { width: min(100%, 420px); margin-top: 1rem; }
  .ai { grid-template-columns: 1fr; }
  .materials { grid-template-columns: 1fr 1fr; }
  .material-care { grid-column: span 2; }
  .card, .card-wide { grid-column: span 6; }
  .card-tall { grid-row: span 1; }
  .card-tall img { aspect-ratio: 4 / 3; flex: none; min-height: 0; }
  .card-wide img { aspect-ratio: 4 / 3; }
}
@media (max-width: 680px) {
  :root { --pad: 1rem; }
  .nav .btn { display: none; }
  .hero-thumb { left: -4%; width: 34%; }
  .seal { right: -2%; width: 96px; height: 96px; }
  .seal text { font-size: 11.5px; }
  .grid { grid-template-columns: 1fr; }
  .card, .card-wide { grid-column: auto; }
  .materials, .buy, .perks { grid-template-columns: 1fr; }
  .material-care { grid-column: auto; }
  .chat { right: 0; bottom: 0; width: 100vw; height: 100svh; border-radius: 0; }
  .chat-fab-text { display: none; }
  .chat-fab { padding: .45rem; }
  .ai-demo { transform: none; }
}

/* Solo efectos realmente intrusivos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .seal svg, .hero-thumb { animation-duration: 120s; }
}
