/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --carbon: #faf6ec;
  --carbon-2: #f2ead4;
  --navy: #f6ecd2;
  --navy-2: #efe0b4;
  --graphite: #fffdf8;
  --graphite-line: #e7d8ac;
  --cream: #2c2116;
  --cream-mute: #6b5c46;
  --cream-mute-2: #8d7d61;
  --gold: #9c6f28;
  --gold-soft: #7c551d;
  --gold-dim: rgba(156, 111, 40, 0.16);
  --line: rgba(44, 33, 22, 0.1);
  --line-strong: rgba(44, 33, 22, 0.18);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, 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);

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --nav-h: 76px;
}

@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; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--carbon);
  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.06; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--carbon); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--carbon);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 920px; margin-inline: auto; padding-inline: var(--gutter); }

.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); overflow: clip; }
.section-navy { background: var(--navy); }
.section-carbon { background: var(--carbon); }

.section-halo {
  position: absolute; pointer-events: none; z-index: 0;
  inset: -60% -10% -60% -10%;
  background: radial-gradient(45% 35% at 50% 30%, rgba(156,111,40,.14), transparent 70%);
  filter: blur(120px);
}

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--gold); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-lead { color: var(--cream-mute); font-size: clamp(1rem, 1.6vw, 1.15rem); margin-top: 1.1rem; max-width: 42rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.7rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  box-shadow: 0 4px 14px rgba(28,20,10,.12);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(28,20,10,.22), 0 10px 22px rgba(156,111,40,.22); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-primary { background: var(--gold); color: var(--carbon); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: .6rem 1.15rem; font-size: .82rem; }

.tag {
  display: inline-flex; align-items: center;
  padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); font-family: var(--mono); font-size: .78rem;
  color: var(--cream-mute); letter-spacing: .01em;
  transition: border-color .3s, color .3s, transform .3s var(--ease-soft);
}
.tag:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

.eyebrow-num { font-family: var(--mono); color: var(--gold); font-size: .78rem; letter-spacing: .1em; }

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

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

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

/* Cursor */
.cursor {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  display: none; mix-blend-mode: difference;
  opacity: 0; transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: var(--cream); border-radius: 50%; }
.cursor-ring {
  width: 30px; height: 30px; margin: -15px; border: 1px solid var(--cream); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 52px; height: 52px; margin: -26px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--carbon);
  display: grid; place-items: center;
  transition: opacity .8s, clip-path 1s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-mark { width: 64px; height: 64px; margin-inline: auto; }
.splash-line { display: block; width: 64px; height: 1px; background: var(--gold-dim); margin: 1rem auto 0; position: relative; overflow: hidden; }
.splash-line::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); animation: splashFill 1.6s var(--ease-soft) infinite; }
@keyframes splashFill { to { transform: translateX(0); } }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transform-origin: 0 0; transform: scaleX(0); }

/* Nav */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled { background: rgba(250,246,236,0.86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 34px; width: auto; display: block; }
.nav-links { display: none; align-items: center; gap: 2.1rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-size: .88rem; padding: .25rem 0; color: var(--cream-mute); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--gold);
  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; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }
.nav-burger { display: grid; place-items: center; width: 40px; height: 40px; }
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 20px; height: 1.5px; background: var(--cream); position: relative;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--carbon); display: grid; place-items: center;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile-list { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.nav-mobile-list a { font-family: var(--serif); font-size: 1.7rem; }

/* Hero */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 3rem;
}
.hero-mesh {
  position: absolute; inset: -20% -10%; z-index: -1;
  background:
    radial-gradient(50% 45% at var(--mesh-x) var(--mesh-y), rgba(156,111,40,.18), transparent 60%),
    conic-gradient(from var(--mesh-angle), rgba(246,236,210,.95), rgba(250,246,236,.4), rgba(156,111,40,.12), rgba(246,236,210,.95));
  filter: blur(90px) saturate(120%);
  animation: meshShift 26s linear infinite;
}
@keyframes meshShift {
  0% { --mesh-angle: 0deg; --mesh-x: 30%; --mesh-y: 30%; }
  50% { --mesh-angle: 180deg; --mesh-x: 68%; --mesh-y: 55%; }
  100% { --mesh-angle: 360deg; --mesh-x: 30%; --mesh-y: 30%; }
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.hero-eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.hero-title { max-width: 15ch; }
.hero-title em { font-style: italic; color: var(--gold-soft); }
.hero-role { margin-top: 1.3rem; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--cream-mute); font-family: var(--sans); font-weight: 500; }
.hero-lede { margin-top: 1.3rem; max-width: 40rem; color: var(--cream-mute); font-size: clamp(1rem, 1.3vw, 1.1rem); }
.hero-actions { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; align-items: center; }
.hero-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; }
.hero-links a { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--cream-mute); position: relative; padding-bottom: 2px; }
.hero-links a::after { content: "→"; margin-left: .35rem; transition: transform .3s var(--ease-out); display: inline-block; }
.hero-links a:hover { color: var(--gold-soft); }
.hero-links a:hover::after { transform: translateX(3px); }

.hero-portrait { position: relative; justify-self: center; text-align: center; }
.hero-portrait-img {
  display: block; width: auto; height: auto;
  max-width: min(340px, 78vw); max-height: min(56vh, 480px); margin-inline: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 90%, transparent 100%);
}
.hero-portrait-caption {
  margin-top: -.5rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-soft);
}
@media (min-width: 960px) {
  .hero-portrait-img { max-width: min(380px, 30vw); max-height: min(62vh, 560px); }
  .hero-portrait { margin-top: -1.5rem; }
}

/* Stats band */
.stats { border-block: 1px solid var(--line); background: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(5, 1fr); } }
.stat { padding: 2.4rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.stat:nth-child(2n) { border-right: none; }
@media (min-width: 720px) {
  .stat { border-bottom: none; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: none; }
}
.stat-num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.7rem); color: var(--gold); display: block; }
.stat-label { margin-top: .5rem; font-size: .84rem; color: var(--cream-mute); line-height: 1.4; max-width: 16ch; }

/* Historia */
.historia-body { max-width: 44rem; }
.historia-body p { margin-top: 1.3rem; color: var(--cream-mute); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.historia-body p:first-of-type { margin-top: 0; }
.historia-body strong { color: var(--cream); font-weight: 600; }
.dropcap::first-letter {
  float: left; font-family: var(--serif); font-size: 3.6rem; line-height: .82;
  margin: .1rem .5rem -.2rem 0; color: var(--gold); font-style: italic;
}

/* Pillars (Lo que hago hoy) */
.pillars-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
.pillar-card {
  padding: 2.2rem; border: 1px solid var(--line-strong); border-radius: 4px;
  background: linear-gradient(160deg, var(--graphite), rgba(238,222,181,.45));
  transition: border-color .4s, transform .1s;
}
.pillar-num { font-family: var(--mono); color: var(--gold); font-size: .82rem; }
.pillar-card h3 { margin-top: 1rem; }
.pillar-card p { margin-top: .8rem; color: var(--cream-mute); font-size: .96rem; }
.pillar-card:hover { border-color: var(--gold-dim); }

/* Case studies */
.cases-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
.case-card {
  position: relative; padding: 2.4rem; border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--graphite); overflow: clip; isolation: isolate;
}
.case-card::before {
  content: ""; position: absolute; inset: -60% -10% auto -10%; height: 220%; z-index: -1;
  background: radial-gradient(45% 40% at 20% 0%, rgba(156,111,40,.12), transparent 70%);
  pointer-events: none;
}
.case-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.case-card h3 { margin-top: .9rem; }
.case-meta { margin-top: .5rem; color: var(--cream-mute-2); font-size: .84rem; font-family: var(--mono); }
.case-desc { margin-top: 1rem; color: var(--cream-mute); font-size: .95rem; }
.case-list { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.case-list li {
  font-size: .76rem; font-family: var(--mono); color: var(--cream-mute);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem;
}

.ecuador-map { margin-top: clamp(2.5rem, 6vw, 4rem); border-radius: 6px; overflow: clip; border: 1px solid var(--line-strong); }
.ecuador-map img { width: 100%; height: auto; display: block; }

/* IA section */
.ia-section { position: relative; }
.ia-flow { display: grid; grid-template-columns: 1fr; gap: .9rem; margin-top: clamp(2.5rem, 6vw, 3.5rem); }
@media (min-width: 860px) { .ia-flow { grid-template-columns: repeat(9, 1fr); align-items: center; } }
.ia-flow-step {
  padding: 1.3rem 1rem; text-align: center; border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--navy-2, var(--navy)); font-family: var(--mono); font-size: .82rem; color: var(--cream);
}
@media (min-width: 860px) { .ia-flow-step { grid-column: span 1.6; } }
.ia-flow-step strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--gold-soft); font-weight: 500; margin-top: .3rem; }
.ia-flow-arrow { display: none; text-align: center; color: var(--gold); font-size: 1.2rem; }
@media (min-width: 860px) { .ia-flow-arrow { display: block; grid-column: span .3; } }

.ia-examples { margin-top: clamp(2.5rem, 6vw, 3.5rem); display: flex; flex-wrap: wrap; gap: .7rem; }

/* Principles */
.principles-list { margin-top: clamp(2rem, 5vw, 3rem); display: grid; gap: 0; border-top: 1px solid var(--line); }
.principle {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: baseline;
  padding-block: 1.5rem; border-bottom: 1px solid var(--line);
}
.principle-num { font-family: var(--mono); color: var(--gold); font-size: .95rem; }
.principle h3 { font-size: 1.15rem; }

/* Timeline */
.timeline { position: relative; margin-top: clamp(2.5rem, 6vw, 4rem); }
.timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
@media (min-width: 780px) { .timeline::before { left: 50%; transform: translateX(-.5px); } }
.timeline-item { position: relative; padding-left: 2.6rem; padding-bottom: clamp(2.2rem, 5vw, 3.4rem); }
@media (min-width: 780px) {
  .timeline-item { width: 50%; padding-left: 0; padding-right: 3.4rem; text-align: right; }
  .timeline-item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 3.4rem; text-align: left; }
}
.timeline-item::before {
  content: ""; position: absolute; left: 4px; top: .3rem; width: 13px; height: 13px; border-radius: 50%;
  background: var(--carbon); border: 2px solid var(--gold);
}
@media (min-width: 780px) {
  .timeline-item::before { left: auto; right: -7.5px; }
  .timeline-item:nth-child(even)::before { left: -7.5px; right: auto; }
}
.timeline-year { font-family: var(--mono); color: var(--gold); font-size: .82rem; letter-spacing: .06em; }
.timeline-item h3 { margin-top: .5rem; }
.timeline-item p { margin-top: .6rem; color: var(--cream-mute); font-size: .94rem; }

/* Tools */
.tools-grid { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(2rem, 5vw, 3rem); }

/* Content / personal brand */
.content-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: clamp(2rem, 5vw, 3rem); }
@media (min-width: 720px) { .content-grid { grid-template-columns: repeat(2, 1fr); } }
.content-card {
  padding: 1.6rem 1.8rem; border: 1px solid var(--line); border-radius: 4px;
  font-size: .96rem; color: var(--cream-mute); display: flex; gap: 1rem; align-items: flex-start;
}
.content-card .idx { font-family: var(--mono); color: var(--gold); font-size: .82rem; flex-shrink: 0; }
.content-socials { margin-top: clamp(2rem, 5vw, 3rem); display: flex; flex-wrap: wrap; gap: 1rem; }

/* Ebooks */
.ebooks-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ebooks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ebooks-grid { grid-template-columns: repeat(3, 1fr); } }
.ebook-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-strong); border-radius: 4px; overflow: clip;
  background: var(--graphite);
}
.ebook-cover { display: block; aspect-ratio: 3/4; overflow: clip; }
.ebook-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.ebook-card:hover .ebook-cover img { transform: scale(1.06); }
.ebook-info { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.ebook-info h3 { font-size: 1.05rem; }
.ebook-info p { margin-top: .6rem; color: var(--cream-mute); font-size: .88rem; flex: 1; }
.ebook-footer { margin-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ebook-price { font-family: var(--mono); color: var(--gold); font-size: .95rem; }
.ebooks-more { margin-top: clamp(2rem, 5vw, 3rem); text-align: center; }
.ebooks-more a {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; color: var(--cream-mute);
  position: relative; padding-bottom: 2px;
}
.ebooks-more a::after { content: "→"; margin-left: .35rem; transition: transform .3s var(--ease-out); display: inline-block; }
.ebooks-more a:hover { color: var(--gold-soft); }
.ebooks-more a:hover::after { transform: translateX(3px); }

/* Servicios */
.services-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  padding: 2rem; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--graphite);
  height: 100%;
}
.service-card h3 { font-size: 1.15rem; }
.service-card p { margin-top: .8rem; color: var(--cream-mute); font-size: .92rem; }

/* Manifiesto */
.manifesto { text-align: center; }
.manifesto-quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.35;
  max-width: 46rem; margin-inline: auto; color: var(--cream);
}
.manifesto-quote .accent { color: var(--gold-soft); }
.manifesto-sub { margin-top: 2rem; color: var(--cream-mute); font-size: 1.02rem; max-width: 34rem; margin-inline: auto; }

/* Contacto */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-intents { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .contact-intents { grid-template-columns: repeat(2, 1fr); } }
.contact-intent {
  padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 4px;
  font-size: .88rem; color: var(--cream-mute);
}
.contact-intent strong { display: block; color: var(--cream); font-family: var(--serif); font-size: 1rem; font-weight: 500; margin-bottom: .3rem; }
.contact-actions { display: flex; flex-direction: column; gap: 1rem; }
.contact-channel {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.5rem; border: 1px solid var(--line-strong); border-radius: 4px;
  transition: border-color .3s, transform .3s var(--ease-soft);
}
.contact-channel:hover { border-color: var(--gold); transform: translateX(4px); }
.contact-channel-label { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.channel-icon { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.contact-channel-value { display: block; margin-top: .3rem; font-family: var(--serif); font-size: 1.1rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 2.6rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; align-items: center; }
.footer-brand { font-family: var(--serif); font-size: 1.05rem; }
.footer-meta { color: var(--cream-mute-2); font-size: .82rem; }
.footer-socials { display: flex; gap: 1.4rem; }
.footer-socials a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .76rem; color: var(--cream-mute);
  transition: color .3s, transform .3s var(--ease-soft);
}
.footer-socials a:hover { color: var(--gold); transform: translateY(-2px); }
.social-icon { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.back-to-top { font-family: var(--mono); font-size: .76rem; color: var(--cream-mute); }
.back-to-top:hover { color: var(--gold); }

/* Chatbot widget */
.chatbot { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 300; }
.chatbot-toggle {
  display: flex; align-items: center; gap: .55rem; position: relative;
  height: 56px; padding-inline: 1.15rem; border-radius: 999px;
  background: var(--gold); color: var(--carbon);
  font-family: var(--sans); font-weight: 700; font-size: .92rem;
  box-shadow: 0 14px 34px rgba(28,20,10,.28);
  transition: transform .4s var(--ease-soft), box-shadow .4s var(--ease-soft), padding .3s var(--ease-soft), width .3s var(--ease-soft);
  animation: chatbotAttention 5s ease-in-out 1.5s 2;
}
.chatbot-toggle:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(28,20,10,.36); }
.chatbot-toggle-icon { position: relative; display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; }
.chatbot-toggle-icon svg { width: 24px; height: 24px; position: absolute; inset: 0; fill: none; }
.chatbot-toggle-icon-open { fill: currentColor; transition: opacity .25s, transform .25s; }
.chatbot-toggle-dot { fill: var(--carbon); opacity: .75; }
.chatbot-toggle-icon-close { opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s; }
.chatbot-toggle-label { white-space: nowrap; }
.chatbot-toggle-badge {
  position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%;
  background: #d64545; border: 2px solid var(--carbon);
  animation: chatbotBadgePulse 2.2s ease-in-out infinite;
}
.chatbot.is-open .chatbot-toggle-icon-open { opacity: 0; transform: scale(.6); }
.chatbot.is-open .chatbot-toggle-icon-close { opacity: 1; transform: scale(1); }
.chatbot.is-open .chatbot-toggle { width: 56px; padding-inline: 0; justify-content: center; animation: none; }
.chatbot.is-open .chatbot-toggle-label,
.chatbot.is-open .chatbot-toggle-badge { display: none; }
.chatbot.was-opened .chatbot-toggle-badge { display: none; }
@keyframes chatbotAttention {
  0%, 100% { transform: translateY(0); }
  10%, 30% { transform: translateY(-6px); }
  20% { transform: translateY(0); }
}
@keyframes chatbotBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214,69,69,.55); }
  50% { box-shadow: 0 0 0 5px rgba(214,69,69,0); }
}
@media (prefers-reduced-motion: reduce) {
  .chatbot-toggle { animation: none; }
  .chatbot-toggle-badge { animation: none; }
}

.chatbot-panel {
  position: absolute; right: 0; bottom: calc(100% + 1rem);
  width: min(360px, calc(100vw - 2rem)); height: min(520px, 70vh);
  display: flex; flex-direction: column;
  background: var(--graphite); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 30px 70px rgba(28,20,10,.3);
  transform-origin: bottom right;
  opacity: 0; transform: scale(.92) translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-soft);
}
.chatbot.is-open .chatbot-panel { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }

.chatbot-header {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--line);
}
.chatbot-header-info { display: flex; align-items: center; gap: .7rem; }
.chatbot-avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--carbon); font-family: var(--serif); font-size: .9rem; flex-shrink: 0;
}
.chatbot-name { font-family: var(--serif); font-size: .95rem; }
.chatbot-status { font-family: var(--mono); font-size: .68rem; color: var(--cream-mute-2); margin-top: .1rem; }
.chatbot-close { display: grid; place-items: center; width: 28px; height: 28px; color: var(--cream-mute); }
.chatbot-close:hover { color: var(--gold); }
.chatbot-close svg { width: 16px; height: 16px; }

.chatbot-messages {
  flex: 1; overflow-y: auto; padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: .7rem;
}
.chatbot-msg { max-width: 84%; padding: .7rem .9rem; border-radius: 10px; font-size: .88rem; line-height: 1.5; }
.chatbot-msg-bot { align-self: flex-start; background: var(--navy); color: var(--cream); border-bottom-left-radius: 2px; }
.chatbot-msg-user { align-self: flex-end; background: var(--gold); color: var(--carbon); border-bottom-right-radius: 2px; font-weight: 500; }
.chatbot-msg-link { display: inline-block; margin-top: .5rem; font-family: var(--mono); font-size: .76rem; color: var(--gold-soft); text-decoration: underline; text-underline-offset: 2px; }
.chatbot-msg-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }

.chatbot-quick-replies {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: 0 1.1rem .8rem; flex-shrink: 0;
}
.chatbot-quick-reply {
  font-family: var(--mono); font-size: .74rem; padding: .5rem .8rem;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--cream-mute);
  transition: border-color .3s, color .3s, background .3s;
}
.chatbot-quick-reply:hover { border-color: var(--gold); color: var(--gold-soft); background: var(--gold-dim); }

.chatbot-input-row {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.1rem; border-top: 1px solid var(--line); flex-shrink: 0;
}
.chatbot-input-row input {
  flex: 1; background: var(--navy); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .6rem 1rem; color: var(--cream); font-size: .86rem;
}
.chatbot-input-row input:focus-visible { outline-offset: 1px; }
.chatbot-input-row button {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: var(--carbon);
  transition: transform .25s var(--ease-soft);
}
.chatbot-input-row button:hover { transform: scale(1.08); }
.chatbot-input-row button svg { width: 16px; height: 16px; }

@media (max-width: 539px) {
  .chatbot-panel { width: calc(100vw - 2rem); height: min(480px, 72vh); }
}

/* =============================================================
   6. Effects: tilt
   ============================================================= */
.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);
}
.has-tilt:hover { transition-duration: .15s; }

/* =============================================================
   7. Responsive tweaks
   ============================================================= */
@media (max-width: 539px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

/* =============================================================
   8. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .splash-line::after { animation: none; }
}
