/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Palette — premium gold/bronze on warm charcoal */
  --bg:        #0b0906;
  --bg-1:      #120e09;
  --bg-2:      #1a140c;
  --card:      #1c150d;
  --card-hover:#241b10;
  --cream:     #f5efe4;
  --cream-2:   #d9cdb8;
  --cream-3:   #8f8270;
  --accent:    #d4af37;   /* metallic gold — primary */
  --accent-dim:#b8933f;
  --accent-2:  #c9722f;   /* copper/bronze — secondary */
  --accent-2-dim: #a85a22;
  --line:      rgba(245,239,228,0.12);
  --line-strong: rgba(245,239,228,0.24);

  --display: 'Playfair Display', 'Georgia', serif;
  --sans: 'Manrope', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 78px;
  --container: 1240px;
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { 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; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--display); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3.2rem;
}
.section-head h2 {
  margin-top: 0.7rem;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
.section-sub {
  margin-top: 1rem;
  color: var(--cream-2);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* =============================================================
   4. Typography
   ============================================================= */
em { font-style: italic; color: var(--accent); font-weight: 600; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn-primary {
  background: var(--accent);
  color: #1a1206;
  box-shadow: 0 10px 30px -8px rgba(212,175,55,0.55);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px -8px rgba(212,175,55,0.65);
}
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(212,175,55,0.06); }
.btn-large { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-small { padding: 0.6rem 1.15rem; font-size: 0.85rem; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* --- Reveal --- */
[data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .32s; }

/* --- Image placeholder --- */
.img-placeholder {
  border: 1.5px dashed var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.9rem;
  color: var(--cream-3);
  text-align: center;
  padding: 2rem;
}
.img-placeholder-icon { width: 40px; height: 40px; color: var(--accent-dim); }
.img-placeholder p { font-size: 0.82rem; line-height: 1.5; }
.img-placeholder p span { display: block; font-family: var(--mono); font-size: 0.68rem; color: var(--cream-3); margin-top: 0.25rem; opacity: .8; }
.img-placeholder--hero { aspect-ratio: 4/3; width: 100%; }

/* --- Hero photo (stock, dark-tinted to match brand) --- */
.hero-photo {
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -24px rgba(0,0,0,0.65);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.9) brightness(0.6) contrast(1.18);
}
.hero-photo-tint {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #c9722f 0%, #140f08 46%, #d4af37 130%);
  mix-blend-mode: color;
  opacity: 0.94;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(190deg, transparent 55%, rgba(11,9,6,0.75) 100%);
  pointer-events: none;
}
.img-placeholder--avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; padding: 0; gap: 0;
}
.img-placeholder--avatar svg { width: 24px; height: 24px; }

/* --- Cards: tilt + halo --- */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .45s var(--ease-soft), border-color .3s;
}
.has-tilt:hover { transition-duration: .15s; }

.has-halo { position: relative; isolation: isolate; }
.has-halo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(212,175,55,.22), transparent 62%);
  opacity: 0; transition: opacity .35s;
}
.has-halo:hover::before { opacity: 1; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Nav --- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11,9,6,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo-mark { color: var(--accent); flex-shrink: 0; }
.logo-word {
  font-family: var(--display); font-weight: 700; font-size: 1.28rem;
  letter-spacing: -0.01em;
}
.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-link { position: relative; font-size: 0.92rem; font-weight: 600; color: var(--cream-2); padding: 0.25rem 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-burger {
  width: 40px; height: 40px; display: grid; place-items: center; gap: 5px;
  flex-shrink: 0;
}
.nav-burger span { width: 20px; height: 1.5px; background: var(--cream); display: block; transition: transform .35s var(--ease-soft), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--bg-1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-soft);
}
.nav-mobile[data-open] { clip-path: inset(0); }
.nav-mobile-link { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-mobile { display: none; }
}

/* --- Mesh gradient background (reusable) --- */
.section-with-mesh { position: relative; overflow: hidden; isolation: isolate; }
.section-with-mesh::before {
  content: ""; position: absolute; inset: -15%; z-index: -2;
  background:
    radial-gradient(55% 45% at var(--mesh-x) var(--mesh-y), rgba(212,175,55,.30), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(201,114,47,.22), rgba(212,175,55,.10), rgba(201,114,47,.20), rgba(212,175,55,.10), rgba(201,114,47,.22));
  filter: blur(90px) saturate(120%);
  opacity: .8;
  animation: meshShift 26s linear infinite;
  mix-blend-mode: screen;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 22%; --mesh-y: 30%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 74%; --mesh-y: 55%; }
  100% { --mesh-angle: 360deg; --mesh-x: 22%; --mesh-y: 30%; }
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* --- Hero (full-bleed photo background) --- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block;
  filter: grayscale(0.3) brightness(0.68) contrast(1.12) saturate(1.15);
}
.hero-bg-tint {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--accent-2) 0%, #140f08 45%, var(--accent) 130%);
  mix-blend-mode: color;
  opacity: 0.5;
}
.hero-bg-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(11,9,6,.97) 0%, rgba(11,9,6,.9) 30%, rgba(11,9,6,.5) 56%, rgba(11,9,6,.14) 76%, rgba(11,9,6,.06) 100%),
    linear-gradient(0deg, rgba(11,9,6,.92) 0%, transparent 28%);
}

.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 640px; }
.hero-title {
  margin-top: 1.1rem;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  max-width: 17ch;
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.hero-sub {
  margin-top: 1.2rem;
  font-size: 1.08rem;
  color: var(--cream-2);
  max-width: 46ch;
}
.hero-actions { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-trust { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.6rem; }
.hero-trust li { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--cream-2); }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.hero-badge-float {
  display: none;
  position: absolute; right: 1.8rem; bottom: 4.8rem; z-index: 1;
  background: rgba(11,9,6,.68);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 1.1rem 1.35rem; text-align: right;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.7);
}
@media (min-width: 860px) { .hero-badge-float { display: block; } }
.hero-badge-label { font-family: var(--mono); font-size: .64rem; color: var(--cream-3); text-transform: uppercase; letter-spacing: .1em; }
.hero-badge-stat { margin-top: .35rem; font-family: var(--mono); font-size: 1.8rem; color: var(--accent); font-weight: 600; }
.hero-badge-bars { margin-top: .7rem; display: flex; gap: 3px; align-items: flex-end; justify-content: flex-end; height: 22px; }
.hero-badge-bars span { width: 5px; border-radius: 2px; background: var(--accent); }
.hero-badge-bars span:nth-child(1) { height: 35%; }
.hero-badge-bars span:nth-child(2) { height: 60%; }
.hero-badge-bars span:nth-child(3) { height: 45%; }
.hero-badge-bars span:nth-child(4) { height: 80%; opacity: .35; }
.hero-badge-bars span:nth-child(5) { height: 55%; opacity: .35; }
.hero-badge-bars span:nth-child(6) { height: 30%; opacity: .35; }

.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%); z-index: 1;
  display: none; align-items: center; gap: .7rem;
}
.hero-scroll-pill { display: block; width: 22px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 20px; }
.hero-scroll-pill i {
  display: block; width: 3px; height: 7px; background: var(--accent); border-radius: 3px;
  margin: 6px auto 0; animation: scrollCue 1.8s ease-in-out infinite; font-style: normal;
}
.hero-scroll-cue em { font-style: normal; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); }
@keyframes scrollCue { 0% { transform: translateY(0); opacity: 1; } 70% { opacity: 0; } 100% { transform: translateY(10px); opacity: 0; } }
@media (min-width: 720px) { .hero-scroll-cue { display: flex; } }

/* --- Statement --- */
.statement {
  padding-block: 6rem;
  background: var(--bg-1);
  border-block: 1px solid var(--line);
}
.statement-line {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.32;
  max-width: 26ch;
  margin-top: 1.1rem;
  color: var(--cream);
}

/* --- Ventajas --- */
.ventajas { padding-block: 7rem; }
.ventajas-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ventajas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ventajas-grid { grid-template-columns: repeat(3, 1fr); } }

.v-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.1rem 1.9rem;
}
.v-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55), 0 0 0 1px rgba(212,175,55,0.14);
}
.v-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(212,175,55,0.1);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 1.3rem;
}
.v-icon svg { width: 24px; height: 24px; }
.v-card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.v-card p { color: var(--cream-2); font-size: 0.95rem; }

/* --- Gallery --- */
.gallery { padding-block: 7rem; background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .gallery-grid { grid-template-columns: 1.15fr 1fr; grid-auto-rows: 220px; }
  .gallery-item--tall { grid-row: span 2; aspect-ratio: auto; height: 100%; }
}
.gallery-item {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4/3; isolation: isolate; height: 100%;
}
.gallery-item--tall { aspect-ratio: 3/4; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05) contrast(1.03);
  transition: transform .9s var(--ease-soft);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.3rem;
  background: linear-gradient(0deg, rgba(11,9,6,.88) 0%, rgba(11,9,6,.15) 75%, transparent 100%);
  color: var(--cream); font-weight: 600; font-size: .92rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
}
.gallery-tag {
  background: var(--accent); color: #1a1206;
  font-family: var(--mono); font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: .3rem .65rem; border-radius: 999px;
}

/* --- Marquee --- */
.marquee {
  overflow: hidden; position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-1);
  padding-block: 1.3rem;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-1), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-1), transparent); }
.marquee-track {
  display: flex; width: max-content;
  gap: 0.9rem;
  animation: marqueeScroll 32s linear infinite;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--cream-2);
  white-space: nowrap;
}
.marquee-track span.dot { color: var(--accent); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Testimonios --- */
.testimonios { padding-block: 7rem; }
.testi-grid {
  display: grid; gap: 1.3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

.testi-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  display: flex; flex-direction: column;
}
.testi-card:hover { border-color: var(--line-strong); }
.testi-rating { color: var(--accent); letter-spacing: 0.12em; font-size: 0.9rem; }
.testi-quote {
  margin-top: 1rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--cream);
  flex-grow: 1;
}
.testi-savings {
  margin-top: 1.3rem;
  display: inline-flex; align-self: flex-start;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  color: var(--accent);
  background: rgba(212,175,55,0.1);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.testi-author {
  margin-top: 1.5rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 0.85rem;
}
.testi-name { font-weight: 700; font-size: 0.94rem; }
.testi-loc { font-size: 0.82rem; color: var(--cream-3); margin-top: 0.15rem; }
.testi-disclaimer {
  margin-top: 2.2rem;
  font-size: 0.78rem;
  color: var(--cream-3);
  font-style: italic;
}

/* --- Contacto --- */
.contacto { padding-block: 7rem; background: var(--bg-1); border-top: 1px solid var(--line); position: relative; }
.contacto-inner {
  display: grid; gap: 3rem;
  position: relative;
}
@media (min-width: 960px) {
  .contacto-inner { grid-template-columns: 0.9fr 1.1fr; align-items: start; gap: 4.5rem; }
}
.contacto-info h2 { margin-top: 0.7rem; font-size: clamp(1.9rem, 3.6vw, 2.6rem); max-width: 16ch; }
.contacto-info .section-sub { margin-top: 1rem; }

.contacto-points { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.85rem; }
.contacto-points li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; color: var(--cream-2); }
.contacto-points svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }

.contacto-detail {
  margin-top: 2.4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.contacto-detail dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-3); }
.contacto-detail dd { margin-top: 0.35rem; font-weight: 600; }
.contacto-detail a:hover { color: var(--accent); }

/* Form */
.cta-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.4rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  position: relative;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { position: relative; }
.field input, .field select {
  width: 100%;
  padding: 1.35rem 1rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.98rem;
  transition: border-color .25s var(--ease-out);
  appearance: none;
}
.field select { color: var(--cream-3); }
.field select:valid, .field select:focus { color: var(--cream); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field label {
  position: absolute; left: 1rem; top: 1.05rem;
  pointer-events: none; transition: all .22s var(--ease-out);
  color: var(--cream-3); font-size: 0.98rem;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field-select label {
  top: 0.5rem; font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
}
.field-select label { top: 0.5rem; font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; }

.cta-submit { margin-top: 0.4rem; width: 100%; position: relative; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form-spinner, .cta-form-check {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; pointer-events: none;
}
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 2px solid rgba(5,19,13,0.3); border-top-color: #1a1206;
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form-check path {
  stroke: #1a1206; stroke-width: 2.2; fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .5s var(--ease-out);
}
.cta-form-legal { font-size: 0.76rem; color: var(--cream-3); text-align: center; }
.cta-form-legal a { color: var(--cream-2); text-decoration: underline; }

/* --- Contact success modal (native <dialog>) --- */
.cta-success-modal {
  position: fixed; margin: auto; inset: 0;
  border: 1px solid var(--line-strong); border-radius: 24px;
  padding: 3rem 2.2rem 2.4rem;
  max-width: 420px; width: calc(100% - 2.5rem); max-height: calc(100% - 2.5rem);
  background: var(--card); color: var(--cream);
  box-shadow: 0 60px 130px -30px rgba(0,0,0,.75);
}
.cta-success-modal[open] {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.9rem;
  animation: successPop .5s var(--ease-soft);
}
@keyframes successPop {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cta-success-modal::backdrop {
  background: rgba(11,9,6,.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cta-success-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cream-3);
  transition: color .2s, background-color .2s;
}
.cta-success-close:hover { color: var(--cream); background: var(--bg-2); }
.cta-success-close svg { width: 16px; height: 16px; }
.cta-success-icon { width: 48px; height: 48px; color: var(--accent); }
.cta-success-modal h3 { font-size: 1.35rem; }
.cta-success-modal p { color: var(--cream-2); max-width: 32ch; }
.cta-success-modal .btn { margin-top: .5rem; }

/* --- Footer --- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 4.5rem; }
.footer-inner {
  display: grid; gap: 2.6rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand p { margin-top: 1rem; color: var(--cream-3); font-size: 0.9rem; max-width: 32ch; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--cream-2);
  transition: border-color .25s, color .25s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 0.4rem; }
.footer-col a, .footer-col span { font-size: 0.92rem; color: var(--cream-2); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.6rem;
  font-size: 0.8rem; color: var(--cream-3);
}

/* --- Estimador --- */
.estimator-hero { padding-top: calc(var(--nav-h) + 3.6rem); padding-bottom: 2.5rem; background: var(--bg); }
.estimator-title { margin-top: .8rem; font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 18ch; }

.estimator { padding-bottom: 6rem; }
.estimator-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .estimator-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

.estimator-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 1.8rem; display: flex; flex-direction: column; gap: 1.6rem;
}
.estimator-steps { display: flex; flex-direction: column; gap: 1.6rem; counter-reset: step; }
.estimator-step { display: flex; gap: 1rem; opacity: .4; transition: opacity .3s var(--ease-out); }
.estimator-step.is-active, .estimator-step.is-done { opacity: 1; }
.estimator-step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-2); color: var(--cream-3);
  display: grid; place-items: center; font-family: var(--mono); font-size: .8rem;
  border: 1px solid var(--line-strong);
}
.estimator-step.is-active .estimator-step-num { background: var(--accent); color: #1a1206; border-color: var(--accent); }
.estimator-step.is-done .estimator-step-num { background: rgba(212,175,55,.14); color: var(--accent); border-color: var(--accent); }
.estimator-step-body { flex: 1; }
.estimator-step-body h2 { font-size: 1.05rem; margin-bottom: .7rem; }
.estimator-hint { font-size: .85rem; color: var(--cream-3); margin-top: .5rem; }

.estimator-search-field { position: relative; }
.estimator-suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + .4rem); z-index: 20;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 12px;
  max-height: 220px; overflow-y: auto; box-shadow: 0 20px 40px -10px rgba(0,0,0,.5);
}
.estimator-suggestions li { padding: .7rem .9rem; font-size: .86rem; color: var(--cream-2); cursor: pointer; border-bottom: 1px solid var(--line); }
.estimator-suggestions li:last-child { border-bottom: none; }
.estimator-suggestions li:hover { background: var(--card-hover); color: var(--cream); }

.estimator-draw-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .3rem; }
.estimator-area { font-family: var(--mono); font-size: .8rem; color: var(--accent); }

.estimator-photo-row { display: flex; align-items: center; gap: .9rem; margin-top: 1rem; flex-wrap: wrap; }
.estimator-photo-btn { position: relative; cursor: pointer; }
.estimator-photo-status { font-size: .78rem; color: var(--cream-3); }

.estimator-calc-btn { width: 100%; }
.estimator-error {
  padding: .7rem .9rem; border-radius: 10px; background: rgba(220,80,70,.12);
  color: #ff9d92; font-size: .82rem;
}

.estimator-map-wrap { position: sticky; top: calc(var(--nav-h) + 1rem); }
.estimator-map {
  width: 100%; height: 460px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--bg-2);
}
@media (min-width: 960px) { .estimator-map { height: 640px; } }
.estimator-map-caption { margin-top: .6rem; font-size: .72rem; color: var(--cream-3); text-align: right; }

.es-marker-dot {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 3px solid #1a1206;
  box-shadow: 0 0 0 5px rgba(212,175,55,.28);
}

.estimator-results { padding-bottom: 7rem; }
.estimator-results-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 3rem 2rem; max-width: 680px; margin-inline: auto; text-align: center; position: relative;
}
.estimator-gate-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 1rem; }
.estimator-gate h2 { font-size: 1.6rem; }
.estimator-gate p { margin-top: .6rem; color: var(--cream-2); }
.estimator-gate-form { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.estimator-gate-error { margin-top: 1rem; font-size: .82rem; color: #ff9d92; }

.estimator-numbers { text-align: left; }
.estimator-numbers .kicker { justify-content: center; }
.estimator-numbers h2 { text-align: center; margin-top: .6rem; font-size: 1.7rem; }
.estimator-stats-grid { margin-top: 2.2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (min-width: 640px) { .estimator-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.estimator-stat { text-align: center; }
.estimator-stat dt { font-family: var(--mono); font-size: 1.5rem; color: var(--cream); }
.estimator-stat dd { margin-top: .3rem; font-size: .74rem; color: var(--cream-3); }
.estimator-payback { margin-top: 1.8rem; text-align: center; font-size: .92rem; color: var(--cream-2); }
.estimator-payback strong { color: var(--accent); }
.estimator-assumptions { margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.estimator-assumptions summary { cursor: pointer; font-size: .86rem; color: var(--cream-2); font-weight: 600; }
.estimator-assumptions ul { margin-top: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.estimator-assumptions li { font-size: .8rem; color: var(--cream-3); padding-left: 1rem; position: relative; }
.estimator-assumptions li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.estimator-cta { margin-top: 2.2rem; text-align: center; }

/* --- Chat widget --- */
.chat-widget {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 300;
  display: flex; flex-direction: column; align-items: flex-end; gap: .8rem;
}
@media (min-width: 720px) { .chat-widget { right: 2rem; bottom: 2rem; } }

.chat-toggle {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent);
  color: #1a1206;
  display: grid; place-items: center;
  box-shadow: 0 16px 36px -10px rgba(212,175,55,.6);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
  position: relative;
}
.chat-toggle:hover { transform: translateY(-3px) scale(1.04); }
.chat-toggle-icon { width: 24px; height: 24px; position: absolute; transition: opacity .25s, transform .25s; }
.chat-toggle-icon--close { opacity: 0; transform: scale(.6) rotate(-45deg); }
.chat-widget.is-open .chat-toggle-icon--open { opacity: 0; transform: scale(.6) rotate(45deg); }
.chat-widget.is-open .chat-toggle-icon--close { opacity: 1; transform: none; }

.chat-panel {
  position: fixed; right: 1.2rem; bottom: 5.4rem; left: 1.2rem;
  max-width: 380px; margin-left: auto;
  height: min(600px, 72svh);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.7);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px) scale(.98);
  pointer-events: none;
  transition: opacity .35s var(--ease-soft), transform .35s var(--ease-soft);
  overflow: hidden;
}
@media (min-width: 720px) { .chat-panel { right: 2rem; bottom: 5.8rem; left: auto; width: 380px; } }
.chat-widget.is-open .chat-panel { opacity: 1; transform: none; pointer-events: auto; }

.chat-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-panel-title { display: flex; align-items: center; gap: .7rem; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(212,175,55,.12); color: var(--accent);
  display: grid; place-items: center;
}
.chat-avatar svg { width: 19px; height: 19px; }
.chat-panel-name { font-weight: 700; font-size: .92rem; }
.chat-panel-status { font-size: .74rem; color: var(--cream-3); margin-top: .1rem; display: flex; align-items: center; gap: .4rem; }
.chat-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(212,175,55,.18); }
.chat-panel-close { width: 30px; height: 30px; display: grid; place-items: center; color: var(--cream-3); border-radius: 50%; }
.chat-panel-close:hover { color: var(--cream); background: var(--bg-2); }
.chat-panel-close svg { width: 16px; height: 16px; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.chat-msg { max-width: 86%; }
.chat-msg p {
  font-size: .88rem; line-height: 1.55; padding: .65rem .85rem; border-radius: 14px;
}
.chat-msg--bot { align-self: flex-start; }
.chat-msg--bot p { background: var(--bg-2); color: var(--cream-2); border-bottom-left-radius: 4px; }
.chat-msg--user { align-self: flex-end; }
.chat-msg--user p { background: var(--accent); color: #1a1206; font-weight: 500; border-bottom-right-radius: 4px; }

.chat-typing {
  display: flex; gap: .3rem; padding: 0 1.2rem .6rem;
  flex-shrink: 0;
}
.chat-typing[hidden] { display: none; }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cream-3);
  animation: chatTyping 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-error {
  margin: 0 1.2rem .6rem; padding: .6rem .8rem; border-radius: 10px;
  background: rgba(220,80,70,.12); color: #ff9d92; font-size: .78rem;
  flex-shrink: 0;
}

.chat-form {
  display: flex; gap: .6rem; align-items: center;
  padding: .8rem 1rem; border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .7rem 1rem; font-family: var(--sans); font-size: .88rem; color: var(--cream);
}
.chat-input:focus { outline: none; border-color: var(--accent); }
.chat-input:disabled { opacity: .6; }
.chat-send {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #1a1206; display: grid; place-items: center;
  transition: opacity .2s, transform .2s;
}
.chat-send svg { width: 16px; height: 16px; }
.chat-send:disabled { opacity: .35; }
.chat-send:not(:disabled):hover { transform: scale(1.06); }

.chat-disclaimer {
  padding: 0 1.2rem .9rem; font-size: .68rem; color: var(--cream-3); flex-shrink: 0;
}
.chat-disclaimer a { color: var(--cream-2); text-decoration: underline; }

/* =============================================================
   7. Effects (misc keyframes already inline above)
   ============================================================= */

/* =============================================================
   8. Responsive tweaks
   ============================================================= */
@media (max-width: 539px) {
  .hero-stats { grid-template-columns: repeat(3, auto); gap: 1.2rem; }
  .hero-stat dt { font-size: 1.3rem; }
  .field-row { grid-template-columns: 1fr; }
}

/* =============================================================
   9. Reduced-motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-visual-badge-dot { animation: none; }
  .hero-scroll-cue span { animation: none; }
}
