@font-face {
  font-family: "Anthropic Serif Display";
  src: url("fonts/AnthropicSerif-Display-Light-Static.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("fonts/AnthropicSerif-Display-LightItalic-Static.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("fonts/AnthropicSerif-Display-Regular-Static.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("fonts/AnthropicSerif-Display-RegularItalic-Static.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("fonts/AnthropicSerif-Display-Medium-Static.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("fonts/AnthropicSerif-Display-MediumItalic-Static.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("fonts/AnthropicSerif-Display-Semibold-Static.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("fonts/AnthropicSerif-Display-SemiboldItalic-Static.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("fonts/AnthropicSerif-Display-Bold-Static.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("fonts/AnthropicSerif-Display-BoldItalic-Static.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("fonts/AnthropicSerif-Display-Extrabold-Static.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Anthropic Serif Display";
  src: url("fonts/AnthropicSerif-Display-ExtraboldItalic-Static.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("fonts/AnthropicSerif-Text-Light-Static.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("fonts/AnthropicSerif-Text-LightItalic-Static.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("fonts/AnthropicSerif-Text-Regular-Static.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("fonts/AnthropicSerif-Text-RegularItalic-Static.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("fonts/AnthropicSerif-Text-Medium-Static.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("fonts/AnthropicSerif-Text-MediumItalic-Static.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("fonts/AnthropicSerif-Text-Semibold-Static.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("fonts/AnthropicSerif-Text-SemiboldItalic-Static.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("fonts/AnthropicSerif-Text-Bold-Static.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("fonts/AnthropicSerif-Text-BoldItalic-Static.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("fonts/AnthropicSerif-Text-Extrabold-Static.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Anthropic Serif Text";
  src: url("fonts/AnthropicSerif-Text-ExtraboldItalic-Static.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
}

:root {
  color-scheme: dark;
  --bg: #07060a;
  --bg-2: #0d0a0a;
  --gold: #f2c96a;
  --gold-bright: #ffe6a6;
  --gold-deep: #b8842f;
  --bronze: #8a5a2b;
  --text: #fdf8ee;
  --muted: #e0d4bd;
  /* Paneles y velos en ambar oscuro, no en gris: oscurecer con un negro
     desaturado arrastra el dorado hacia el gris y apaga toda la escena. */
  --panel: rgba(30, 19, 8, 0.5);
  --panel-strong: rgba(34, 22, 9, 0.66);
  --scrim: rgba(32, 16, 3, 0.62);
  --hairline: rgba(232, 195, 116, 0.22);
  --glow: 0 0 60px rgba(232, 195, 116, 0.16);
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

/* Cada seccion ocupa la pantalla y el scroll engancha a la siguiente.
   Solo en pantallas grandes: en movil las secciones crecen mas que el
   viewport y el enganche obligatorio dejaria contenido inalcanzable. */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  html {
    scroll-snap-type: y mandatory;
  }
}

.snap-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 0 80px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.snap-section > .shell {
  width: min(1120px, calc(100% - 32px));
}

.snap-section .hero,
.snap-section .section {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Anthropic Serif Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  /* Sombra amplia y suave en ambar oscuro: separa la letra del brillo del
     globo sin desaturar el dorado como haria una sombra negra. */
  text-shadow: 0 2px 22px rgba(24, 11, 2, 0.9), 0 1px 3px rgba(24, 11, 2, 0.6);
}

a { color: inherit; }

/* ---------- ambient background ---------- */

/* Orden de capas, de atras hacia adelante:
   .ambient (-4) -> #webgl-bg (-3) -> .scrim (-2) -> .grain (-1) -> contenido */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  background:
    radial-gradient(1200px 620px at 50% -8%, rgba(232, 195, 116, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

#webgl-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Atenua el globo en la franja central, donde vive el texto, y lo deja
   visible arriba y abajo. Sin esto el contraste depende de por donde pase
   el brillo del modelo, que cambia con el scroll. */
.scrim {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(26, 12, 2, 0) 0%,
      rgba(26, 12, 2, 0.2) 16%,
      rgba(26, 12, 2, 0.3) 40%,
      rgba(26, 12, 2, 0.3) 60%,
      rgba(26, 12, 2, 0.2) 84%,
      rgba(26, 12, 2, 0) 100%
    );
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  background: radial-gradient(circle, rgba(248, 227, 163, 0.55), rgba(169, 122, 47, 0) 70%);
  animation: drift 22s ease-in-out infinite alternate;
}

.orb--a { width: 420px; height: 420px; top: -120px; left: -80px; }
.orb--b { width: 520px; height: 520px; bottom: -180px; right: -120px; animation-duration: 28s; animation-delay: -6s; }
.orb--c { width: 300px; height: 300px; top: 40%; left: 60%; opacity: 0.28; animation-duration: 18s; animation-delay: -3s; }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, 40px, 0) scale(1.12); }
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.16, 0.8, 0.24, 1), transform 800ms cubic-bezier(0.16, 0.8, 0.24, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }
.reveal-d3 { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- layout shell ---------- */

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- liquid glass base ---------- */

.glass {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 40%),
    var(--panel);
  backdrop-filter: blur(18px) saturate(1.75);
  backdrop-filter: url("#glass-refract") blur(18px) saturate(1.75);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow:
    var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateX(var(--glass-ry, 0deg)) rotateY(var(--glass-rx, 0deg));
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(220px 220px at var(--glass-mx, 50%) var(--glass-my, 50%), rgba(248, 227, 163, 0.28), transparent 60%);
  transition: opacity 200ms ease;
}

.glass:hover::before,
.glass:focus-within::before {
  opacity: 1;
}

.glass::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(232, 195, 116, 0.15) 45%, rgba(232, 195, 116, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
  .glass { transition: transform 160ms ease-out, box-shadow 160ms ease-out; }
}

html.no-glass-refraction .glass {
  backdrop-filter: blur(22px) saturate(1.7);
}

/* ---------- topbar ---------- */

/* Contenedor fijo aparte para no pisar el transform que usa .glass
   en el efecto de inclinacion con el cursor. */
.topbar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding-top: 18px;
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  width: min(1120px, calc(100% - 32px));
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Anthropic Serif Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1a1206;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
  box-shadow: 0 0 18px rgba(232, 195, 116, 0.4);
}

/* Con el globo dentro, el recuadro pasa a fondo oscuro: el degradado dorado
   solido detras de una tierra dorada se empasta y no se distingue nada.
   La "D" queda como respaldo si el 3D no llega a cargar. */
.brand-mark.has-globe {
  background: radial-gradient(circle at 50% 42%, rgba(58, 34, 8, 0.95), rgba(14, 8, 2, 0.98));
  border: 1px solid var(--hairline);
  box-shadow: 0 0 16px rgba(232, 195, 116, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.brand-mark.has-globe .brand-letter {
  display: none;
}

.brand-mark--img {
  background: none;
  box-shadow: 0 0 16px rgba(232, 195, 116, 0.35);
  overflow: hidden;
}

.brand-mark--img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-globe {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-gold {
  background: linear-gradient(90deg, var(--gold-bright), var(--gold), var(--bronze));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease, background 150ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--bronze));
  box-shadow: 0 8px 30px rgba(232, 195, 116, 0.3);
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  color: var(--text);
  border-color: var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-long { padding-left: 56px; padding-right: 56px; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(56px, 10vw, 110px) clamp(20px, 5vw, 40px);
  margin-top: clamp(30px, 6vw, 56px);
  text-align: center;
}

.hero--page {
  padding-top: clamp(40px, 7vw, 74px);
  padding-bottom: clamp(40px, 7vw, 74px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#second-way .eyebrow {
  padding: 9px 20px;
  font-size: 1.1rem;
}

.hero h1 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  color: var(--text);
}

.hero--page h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}

/* Palabra clave en oro metalico: una sola por seccion.
   Los tonos van por el ambar (~40 grados de matiz), no por el amarillo
   (~55), y el degradado incluye un realce claro al 68% que simula el
   brillo especular del metal en vez de un relleno plano. */
.hero h1 em,
.section-head h2 em,
.cta h2 em {
  font-style: normal;
  background: linear-gradient(
    100deg,
    #ffe4a6 0%,
    #ffc247 26%,
    #f5a01d 48%,
    #ffd77e 68%,
    #e0921c 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* drop-shadow sigue la silueta real de las letras; text-shadow no sirve
     aqui porque el color es transparente. */
  text-shadow: none;
  filter:
    drop-shadow(0 0 18px rgba(255, 168, 40, 0.5))
    drop-shadow(0 1px 2px rgba(24, 11, 2, 0.75));
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 em,
  .section-head h2 em,
  .cta h2 em {
    animation: goldSheen 9s ease-in-out infinite;
  }
}

@keyframes goldSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero p {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  text-shadow: 0 1px 12px rgba(24, 11, 2, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* ---------- stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(30px, 6vw, 54px);
  padding: 0;
  overflow: hidden;
}

.stat {
  padding: 26px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
}

.stat + .stat { border-left: 1px solid var(--hairline); }

.stat strong {
  display: block;
  font-family: "Anthropic Serif Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold-bright);
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- features / grids ---------- */

.section {
  padding: clamp(50px, 8vw, 90px) 0;
}

/* Halo de lectura: un difuminado radial sin bordes duros detras del texto
   que no vive dentro de una tarjeta. Se nota como atmosfera, no como panel,
   asi no compite con las tarjetas .glass. */
.hero,
.section-head,
.section-note {
  position: relative;
  isolation: isolate;
}

.hero::before,
.section-head::before,
.section-note::before {
  content: "";
  position: absolute;
  inset: -26px -52px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    var(--scrim) 0%,
    rgba(32, 16, 3, 0.48) 38%,
    rgba(32, 16, 3, 0.2) 62%,
    rgba(32, 16, 3, 0) 78%
  );
}

.section-head {
  max-width: 560px;
  margin: 0 auto clamp(48px, 7vh, 76px);
  text-align: center;
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--text);
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(24, 11, 2, 0.85);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  padding: 30px 26px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 195, 116, 0.28), rgba(232, 195, 116, 0.05));
  border: 1px solid var(--hairline);
  font-size: 1.9rem;
}

.feature-icon--img {
  background: none;
  border: 1px solid var(--hairline);
  overflow: hidden;
  padding: 0;
}

.feature-icon--img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.grid-3--single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.grid-3--duo {
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
}

.feature--more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.more-count {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin-bottom: 22px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(232, 195, 116, 0.28), rgba(232, 195, 116, 0.05));
  border: 1px solid var(--hairline);
  font-family: "Anthropic Serif Display", Georgia, serif;
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-bright);
}

.feature--more h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.grid-3--single .feature p + p {
  margin-top: 14px;
}

.feature-icon--text {
  width: auto;
  height: auto;
  min-width: 64px;
  padding: 10px 18px;
  font-family: "Anthropic Serif Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--gold-bright);
}

.feature h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature p a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: color 150ms ease, border-color 150ms ease;
}

.feature p a:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}

/* En How it works las tarjetas ya no llevan icono: el texto se reparte por
   todo el cuadro en lugar de apilarse arriba dejando el hueco del icono. */
#how-it-works .feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#how-it-works .feature h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

#how-it-works .feature p {
  font-size: 1rem;
}

.section-note {
  max-width: 520px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}

.section-note a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.section-note a:hover { color: var(--gold-bright); }

/* ---------- cta / text panel ---------- */

.cta {
  padding: clamp(46px, 8vw, 74px) clamp(20px, 5vw, 50px);
  text-align: center;
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(232, 195, 116, 0.16), transparent 70%),
    var(--panel-strong);
}

.cta h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 14px;
}

.cta p {
  margin: 0 auto 28px;
  max-width: 460px;
  color: var(--muted);
  line-height: 1.6;
}

.cta p:last-of-type { margin-bottom: 0; }

.cta p a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: color 150ms ease, border-color 150ms ease;
}

.cta p a:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.cta .btn { margin-top: 28px; }

/* Desplegable suave: la altura se anima con grid 0fr -> 1fr (sin medir con JS)
   y los botones entran en cascada con un fundido corto. */
.contact-methods {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows 650ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 450ms ease,
    margin-top 650ms cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-methods.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
}
.contact-methods-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  /* margen interno para que no se recorte el brillo de los botones */
  padding: 4px;
  margin: -4px;
}
.contact-methods-inner > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-methods.is-open .contact-methods-inner > * {
  opacity: 1;
  transform: none;
}
.contact-methods.is-open .contact-methods-inner > :nth-child(1) { transition-delay: 150ms; }
.contact-methods.is-open .contact-methods-inner > :nth-child(2) { transition-delay: 230ms; }
.contact-methods.is-open .contact-methods-inner > :nth-child(3) { transition-delay: 310ms; }
.contact-methods.is-open .contact-methods-inner > :nth-child(4) { transition-delay: 390ms; }
@media (prefers-reduced-motion: reduce) {
  .contact-methods,
  .contact-methods-inner > * { transition: none; transform: none; }
}

.icon-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 0 8px rgba(232, 195, 116, 0.55);
  vertical-align: middle;
}

.icon-dot--lg {
  width: 26px;
  height: 26px;
  box-shadow: 0 0 14px rgba(232, 195, 116, 0.6);
}

/* ---------- contact popup ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 4, 2, 0.65);
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] { display: none; }

.modal-panel {
  width: min(360px, 100%);
  padding: 36px 28px 30px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.14); }

.modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 195, 116, 0.28), rgba(232, 195, 116, 0.05));
  border: 1px solid var(--hairline);
  font-size: 1.5rem;
}

.modal-panel h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  color: var(--text);
}

.modal-panel p {
  margin: 0;
  color: var(--gold-bright);
  font-size: 1.05rem;
  word-break: break-word;
}

/* El correo del modal es un boton: al pulsarlo se copia. */
.modal-copy {
  display: inline-block;
  font: inherit;
  color: var(--gold-bright);
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--hairline);
  padding: 2px 0;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}
.modal-copy:hover { color: var(--gold); border-color: var(--gold); }
.modal-copy:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }


/* ---------- footer ---------- */

footer {
  padding: 34px 22px 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--hairline);
  margin-top: clamp(40px, 6vw, 70px);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover { color: var(--gold); }

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 860px) {
  .nav { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--hairline); }
}

/* ---------- lente de hover (tarjetas de secciones internas) ---------- */

/* La lente vive en su propia capa recortada al radio de la tarjeta. Poner
   overflow:hidden sobre .feature no serviria: cortaria el aro de
   .glass::after, que sobresale 1px. */
.lens-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  /* Debe coincidir con SIZE en lens.js y con el feImage de #lens-refract. */
  --lens-size: 140px;
}

/* Nodo de seguimiento: lo mueve el bucle de animacion y nada mas, con un
   transform que no toca el layout. */
.lens-follow {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--lens-size);
  height: var(--lens-size);
  margin: calc(var(--lens-size) / -2) 0 0 calc(var(--lens-size) / -2);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* Nodo de cristal: solo entra y sale. Separarlo del nodo de seguimiento evita
   que la transicion de escala pelee con el transform que escribe el bucle. */
.lens-glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.62);
  /* Plan B: sin refraccion, desenfoque de fondo con el mismo aro dorado. */
  -webkit-backdrop-filter: blur(7px) saturate(1.28) brightness(1.05);
  backdrop-filter: blur(7px) saturate(1.28) brightness(1.05);
  box-shadow:
    inset 0 10px 16px -14px rgba(255, 255, 255, 0.5),
    inset 0 -12px 18px -14px rgba(255, 230, 166, 0.55),
    0 10px 26px -14px rgba(232, 195, 116, 0.45);
  transition:
    opacity 260ms cubic-bezier(0.16, 0.8, 0.24, 1),
    transform 320ms cubic-bezier(0.16, 0.8, 0.24, 1),
    visibility 0s linear 320ms;
}

.lens-glass.is-on {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s, 0s, 0s;
}

/* Relevo entre tarjetas: la anterior se apaga en seco para que nunca haya dos
   globos visibles a la vez. */
.lens-glass.is-cut { transition: none; }

/* Aro dorado, mas brillante abajo: la luz de la pagina cae desde arriba (el
   degradado de .ambient esta anclado en 50% -8%), asi que el reflejo de canto
   se acumula en el lado opuesto. Misma mascara que .glass::after. */
.lens-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1.5px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2),
    rgba(232, 195, 116, 0.22) 42%,
    rgba(255, 230, 166, 0.92));
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Refraccion real. La clase es de adhesion y no de exclusion: lens.js solo la
   pone tras comprobar que feDisplacementMap se pinta de verdad, de modo que
   cualquier duda se queda con el desenfoque de arriba. */
html.lens-refraction .lens-glass {
  -webkit-backdrop-filter: url("#lens-refract") saturate(1.22) brightness(1.04);
  backdrop-filter: url("#lens-refract") saturate(1.22) brightness(1.04);
}

/* El resplandor de .glass es una nube difusa que taparia la deformacion: en
   las tarjetas con lente se apaga. Topbar y modal lo conservan intacto.
   Cuelga de .has-lens, que pone lens.js, para no repetir aqui la lista de
   tarjetas. */
.glass.has-lens:hover::before,
.glass.has-lens:focus-within::before {
  opacity: 0;
}

/* Sin lente por movimiento reducido, el hover sigue dando respuesta: solo el
   borde y el brillo, sin nada que se mueva. */
@media (prefers-reduced-motion: reduce) {
  .feature:hover,
  .cta:hover {
    border-color: rgba(232, 195, 116, 0.45);
    box-shadow:
      var(--glow),
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  }
}
