/* =============================================================
   INVERSIONES VALLE ORO S.A.S.
   -------------------------------------------------------------
   Dirección de arte: la ciudad de oro en WebGL no es un fondo, es
   el medio. La página flota sobre ella y por momentos se aparta
   para dejarla ver entera.

   Escala tipográfica generosa: nada por debajo de 0,86rem.

   1 Tokens · 2 Reset · 3 Utilidades · 4 Tipografía · 5 Botones
   6 Capas · 7 Portal · 8 Menú · 9 Marca · 10 Tesis · 11 Líneas
   12 Método · 13 Territorio · 14 Preguntas · 15 Contacto
   16 Pie · 17 WhatsApp · 18 Apariciones · 19 Responsive
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  --bg:          #080706;
  --bg-2:        #0e0c09;
  --bg-3:        #15110d;
  --bg-carta:    #191410;

  --oro:         #d4af37;
  --oro-vivo:    #e8c463;
  --oro-claro:   #f6e6b4;
  --oro-medio:   #c08f2e;
  --oro-hondo:   #7d6428;

  --texto:       #f6efe0;
  --texto-sua:   rgba(246, 239, 224, 0.82);
  --texto-med:   rgba(246, 239, 224, 0.62);
  --texto-ten:   rgba(246, 239, 224, 0.44);
  --linea:       rgba(212, 175, 55, 0.22);
  --linea-sua:   rgba(246, 239, 224, 0.12);

  --ancho:       1320px;
  --ancho-medio: 1040px;
  --ancho-texto: 760px;
  --gutter:      clamp(1.4rem, 5vw, 4.5rem);
  --nav-h:       84px;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-suave: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. RESET
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  font-size: 17px;               /* base subida: todo el sitio respira más */
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  background: var(--bg);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.72;
  overflow-x: clip;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { 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.03; letter-spacing: -0.018em; font-weight: 400; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--oro); color: #14100a; }
[hidden] { display: none !important; }

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

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #050403; }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.55); }

/* =============================================================
   3. UTILIDADES
   ============================================================= */
.salta {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.8rem 1.3rem; background: var(--oro); color: #14100a;
  border-radius: 8px; font-weight: 600;
}
.salta:focus { top: 1rem; }

.contenedor {
  width: 100%; max-width: var(--ancho);
  margin-inline: auto; padding-inline: var(--gutter);
  position: relative; z-index: 3;
}
.contenedor-medio { max-width: var(--ancho-medio); }

/* =============================================================
   4. TIPOGRAFÍA
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.82rem;             /* antes 0,7rem — se leía con lupa */
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--oro-vivo);
  margin-bottom: 1.8rem;
}
.kicker::before {
  content: ""; width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro));
}

.titulo-seccion {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6.2vw, 5.6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.024em;
  max-width: 17ch;
}
.titulo-seccion em {
  font-style: italic;
  background: linear-gradient(102deg, var(--oro-claro), var(--oro) 48%, var(--oro-medio));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.parrafo-guia {
  font-size: clamp(1.16rem, 1.7vw, 1.42rem);
  line-height: 1.7;
  color: var(--texto-sua);
  max-width: 56ch;
  font-weight: 300;
}
.parrafo {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--texto-sua);
  max-width: 58ch;
}

/* =============================================================
   5. BOTONES
   ============================================================= */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  white-space: nowrap;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease),
              border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.btn-oro {
  background: linear-gradient(135deg, var(--oro-claro) 0%, var(--oro) 44%, var(--oro-medio) 100%);
  color: #14100a;
  box-shadow: 0 12px 34px -14px rgba(212, 175, 55, 0.7);
}
.btn-oro::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, 0.6) 50%, transparent 68%);
  background-size: 240% 100%; background-position: 150% 0;
  opacity: 0;
}
.btn-oro:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -16px rgba(212, 175, 55, 0.75); }
.btn-oro:hover::after { opacity: 1; animation: destello 0.95s var(--ease); }
@keyframes destello { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.btn-linea {
  border: 1px solid var(--linea);
  color: var(--texto);
  background: rgba(246, 239, 224, 0.035);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-linea:hover {
  border-color: rgba(212, 175, 55, 0.65);
  color: var(--oro-claro);
  transform: translateY(-3px);
}

/* =============================================================
   6. CAPAS SOBRE LA ESCENA
   Mucho más ligeras que antes: la ciudad debe verse.
   ============================================================= */
.escena { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; }

.capa-vineta {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 85% at 50% 45%, transparent 42%, rgba(8, 7, 6, 0.55) 82%, rgba(8, 7, 6, 0.9) 100%);
}
.capa-grano {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
}

/* Sin WebGL: un degradado digno en vez de un vacío negro */
.sin-webgl body {
  background:
    radial-gradient(ellipse 90% 60% at 50% 108%, rgba(212, 175, 55, 0.2), transparent 70%),
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(125, 100, 40, 0.16), transparent 70%),
    var(--bg);
}

/* =============================================================
   7. PORTAL — la marca como protagonista
   ============================================================= */
.portal {
  position: relative; z-index: 3;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center;
  padding-top: calc(var(--nav-h) + 1.2rem);
  padding-bottom: 6rem;
}
.portal-inner {
  width: 100%; max-width: var(--ancho);
  margin-inline: auto; padding-inline: var(--gutter);
}

/* --- Sello de marca: isotipo grande + palabra --- */
.sello {
  display: grid; justify-items: start; gap: 1rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.sello-marca {
  width: clamp(72px, 8vw, 108px);
  height: auto;
  filter: drop-shadow(0 10px 40px rgba(212, 175, 55, 0.42));
  animation: selloEntra 1.5s var(--ease) both;
}
@keyframes selloEntra {
  from { opacity: 0; transform: translateY(26px) scale(0.9); }
  to   { opacity: 1; transform: none; }
}

.sello-palabra {
  display: grid; gap: 0.5rem;
  animation: selloEntra 1.5s var(--ease) 0.16s both;
}
.sello-sup {
  font-family: var(--mono);
  font-size: clamp(0.78rem, 1.1vw, 0.94rem);
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--oro-vivo);
}
.sello-nombre {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--oro-claro) 0%, var(--oro) 42%, var(--oro-medio) 78%, var(--oro-claro) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: vetaOro 9s var(--ease-suave) infinite;
}
@keyframes vetaOro {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}
.sello-regla {
  width: min(420px, 70%); height: 1px;
  background: linear-gradient(90deg, var(--oro), transparent);
  animation: reglaCrece 1.6s var(--ease) 0.5s both;
  transform-origin: left;
}
@keyframes reglaCrece { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.portal-titular {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6.4vw, 5.4rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.028em;
  max-width: 16ch;
  margin-bottom: clamp(1.4rem, 2.6vw, 2rem);
}
.portal-titular .fila { display: block; overflow: hidden; }
.portal-titular .fila > span {
  display: block; transform: translateY(104%);
  animation: subeFila 1.25s var(--ease) both;
}
.portal-titular .fila:nth-child(1) > span { animation-delay: 0.42s; }
.portal-titular .fila:nth-child(2) > span { animation-delay: 0.54s; }
.portal-titular .fila:nth-child(3) > span { animation-delay: 0.66s; }
@keyframes subeFila { to { transform: translateY(0); } }

.portal-titular em {
  font-style: italic;
  background: linear-gradient(102deg, var(--oro-claro), var(--oro) 46%, var(--oro-medio));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.portal-sub {
  font-size: clamp(1.14rem, 1.7vw, 1.4rem);
  line-height: 1.68;
  color: var(--texto-sua);
  max-width: 50ch;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  animation: selloEntra 1.4s var(--ease) 0.8s both;
}
.portal-acciones {
  display: flex; flex-wrap: wrap; gap: 1rem;
  animation: selloEntra 1.4s var(--ease) 0.94s both;
}
.portal-nota {
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  color: var(--texto-ten);
  animation: selloEntra 1.4s var(--ease) 1.05s both;
}

/* Sombra bajo el texto: legibilidad sobre la ciudad */
.portal-inner::before {
  content: ""; position: absolute;
  inset: -6% auto -10% -12%;
  width: min(1020px, 108%);
  background: radial-gradient(ellipse 62% 54% at 26% 50%,
    rgba(8, 7, 6, 0.94) 0%, rgba(8, 7, 6, 0.7) 46%, transparent 76%);
  filter: blur(26px);
  pointer-events: none; z-index: -1;
}

/* Indicador de scroll */
.portal-scroll {
  position: absolute; left: var(--gutter); bottom: 2.4rem;
  display: flex; align-items: center; gap: 0.9rem; z-index: 4;
  animation: selloEntra 1.4s var(--ease) 1.3s both;
}
.portal-scroll span {
  font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--texto-ten);
}
.portal-scroll i {
  display: block; width: 62px; height: 1px;
  background: linear-gradient(90deg, var(--oro), transparent);
  transform-origin: left;
  animation: correLinea 2.8s var(--ease-suave) infinite;
}
@keyframes correLinea {
  0%   { transform: scaleX(0); opacity: 0; }
  35%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1) translateX(62px); opacity: 0; }
}

/* =============================================================
   8. BARRA Y MENÚ
   ============================================================= */
.barra {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding-inline: var(--gutter);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease),
              border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.barra.compacta {
  background: rgba(8, 7, 6, 0.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--linea);
}

.barra-marca { display: flex; align-items: center; gap: 0.85rem; margin-right: auto; min-width: 0; }
.barra-marca img {
  width: 46px; height: 46px; object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(212, 175, 55, 0.35));
  transition: transform 0.6s var(--ease);
}
.barra-marca:hover img { transform: rotate(-5deg) scale(1.07); }
.barra-marca-txt { display: grid; line-height: 1.08; }
.barra-marca-txt em {
  font-family: var(--mono); font-style: normal;
  font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--oro-vivo);
}
.barra-marca-txt strong {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.05rem, 3.4vw, 1.28rem);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--texto); white-space: nowrap;
}

.barra-der { display: flex; align-items: center; gap: 1rem; }

/* --- Disparador del menú: un rombo de oro --- */
.tirador {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.5rem 0.4rem 0.5rem 0.9rem;
}
.tirador-txt {
  font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--texto-sua);
  transition: color 0.35s var(--ease);
}

.tirador-caja {
  position: relative; width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--linea);
  border-radius: 3px;
  transition: transform 0.65s var(--ease), border-color 0.4s var(--ease),
              background 0.4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .tirador:hover .tirador-caja {
    transform: rotate(45deg);
    border-color: rgba(212, 175, 55, 0.7);
    background: rgba(212, 175, 55, 0.1);
  }
  .tirador:hover .tirador-caja i:nth-child(2) { width: 17px; }
  }
.tirador-caja i {
  display: block; position: absolute;
  width: 17px; height: 1.5px; background: var(--oro-vivo);
  transition: transform 0.55s var(--ease), opacity 0.35s var(--ease), width 0.45s var(--ease);
}
.tirador-caja i:nth-child(1) { transform: translateY(-4.5px); }
.tirador-caja i:nth-child(2) { transform: translateY(4.5px); width: 11px; }

body.menu-abierto .tirador-caja { transform: rotate(45deg); border-color: rgba(212, 175, 55, 0.7); }
body.menu-abierto .tirador-caja i:nth-child(1) { transform: rotate(45deg); }
body.menu-abierto .tirador-caja i:nth-child(2) { transform: rotate(-45deg); width: 17px; }

/* --- Menú a pantalla completa --- */
.menu {
  position: fixed; inset: 0; z-index: 690;
  display: grid; align-content: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  background:
    radial-gradient(ellipse 88% 68% at 18% 45%, rgba(10, 8, 5, 0.9), transparent 74%),
    rgba(8, 7, 6, 0.56);
  backdrop-filter: blur(5px) saturate(125%);
  -webkit-backdrop-filter: blur(5px) saturate(125%);
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s 0.6s;
  overflow-y: auto;
}
body.menu-abierto .menu {
  opacity: 1; visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0s 0s;
}

.menu-rejilla {
  width: 100%; max-width: var(--ancho);
  margin-inline: auto;
  display: grid; gap: 3rem;
}

.menu-lista { display: grid; }
.menu-item {
  position: relative;
  display: flex; align-items: baseline; gap: clamp(1rem, 3vw, 2.4rem);
  padding-block: clamp(0.5rem, 1.4vw, 0.95rem);
  border-bottom: 1px solid rgba(246, 239, 224, 0.08);
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease),
              padding-left 0.55s var(--ease), border-color 0.4s var(--ease);
}
body.menu-abierto .menu-item { opacity: 1; transform: none; }
body.menu-abierto .menu-item:nth-child(1) { transition-delay: 0.12s; }
body.menu-abierto .menu-item:nth-child(2) { transition-delay: 0.19s; }
body.menu-abierto .menu-item:nth-child(3) { transition-delay: 0.26s; }
body.menu-abierto .menu-item:nth-child(4) { transition-delay: 0.33s; }
body.menu-abierto .menu-item:nth-child(5) { transition-delay: 0.40s; }
body.menu-abierto .menu-item:nth-child(6) { transition-delay: 0.47s; }
body.menu-abierto .menu-item:nth-child(7) { transition-delay: 0.54s; }

.menu-item:hover { padding-left: clamp(0.8rem, 2.4vw, 2rem); border-color: rgba(212, 175, 55, 0.4); }

.menu-num {
  font-family: var(--mono);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  letter-spacing: 0.18em;
  color: var(--oro-hondo);
  flex: 0 0 auto;
  transition: color 0.4s var(--ease);
}
.menu-item:hover .menu-num { color: var(--oro-vivo); }

.menu-txt {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 7vw, 3.7rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--texto-med);
  transition: color 0.4s var(--ease);
}
.menu-item:hover .menu-txt { color: var(--oro-claro); }

.menu-eco {
  margin-left: auto; flex: 0 0 auto;
  font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--oro-hondo);
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.menu-item:hover .menu-eco { opacity: 1; transform: none; }

.menu-pie {
  display: grid; gap: 1.6rem;
  padding-top: 1rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s var(--ease) 0.6s, transform 0.7s var(--ease) 0.6s;
}
body.menu-abierto .menu-pie { opacity: 1; transform: none; }
.menu-pie-tit {
  font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--oro-vivo);
}
.menu-datos { display: grid; gap: 0.55rem; }
.menu-datos a, .menu-datos span {
  font-size: 1.02rem; color: var(--texto-sua);
  transition: color 0.35s var(--ease);
  width: fit-content;
}
.menu-datos a:hover { color: var(--oro-claro); }
.menu-aviso {
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.06em; color: var(--texto-ten);
  line-height: 1.6;
}

/* En pantallas táctiles no hay cursor que pasear */
@media (hover: none), (pointer: coarse) {
  .menu-aviso { display: none; }
}
@media (max-width: 560px) {
  .tirador-txt { display: none; }
  .tirador { padding-right: 0; }
}

/* =============================================================
   9. SECCIONES — base
   ============================================================= */
.seccion {
  position: relative; z-index: 3;
  padding-block: clamp(5.5rem, 11vw, 10rem);
}
/* Velo semiopaco: deja intuir la ciudad sin sacrificar la lectura */
.seccion::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(8, 7, 6, 0.55) 0%,
    rgba(8, 7, 6, 0.93) 15%,
    rgba(8, 7, 6, 0.95) 85%,
    rgba(8, 7, 6, 0.55) 100%);
}
.seccion::after {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(var(--ancho), calc(100% - var(--gutter) * 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--linea) 20%, var(--linea) 80%, transparent);
}

/* =============================================================
   10. TESIS — declaración tipográfica, no columnas de cartón
   ============================================================= */
.tesis { text-align: left; }
.tesis-texto {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 3.7rem);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -0.016em;
  max-width: 22ch;
  color: var(--texto-med);
}
/* El apagado es opt-in: sólo con JavaScript activo. Sin él, la frase
   se lee completa desde el primer pintado. */
.tesis-texto .pal { display: inline-block; }
.js-activo .tesis-texto .pal {
  opacity: 0.16;
  transition: opacity 0.5s var(--ease), color 0.5s var(--ease);
}
.js-activo .tesis-texto .pal.encendida { opacity: 1; color: var(--texto); }
.js-activo .tesis-texto .pal.oro.encendida {
  background: linear-gradient(100deg, var(--oro-claro), var(--oro) 50%, var(--oro-medio));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-style: italic;
}
.tesis-cierre {
  margin-top: 3.4rem;
  display: grid; gap: 1.5rem;
  max-width: 62ch;
}
.tesis-cierre p { font-size: 1.12rem; line-height: 1.78; color: var(--texto-med); }
.tesis-firma {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono); font-size: 0.84rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--oro-vivo);
}
.tesis-firma::before {
  content: ""; width: 44px; height: 1px; background: var(--oro);
}

/* =============================================================
   11. LÍNEAS DE INVERSIÓN — paneles a pantalla completa
   ============================================================= */
.lineas { padding-block: 0; }
.lineas-intro { padding-block: clamp(5rem, 10vw, 8rem) clamp(2rem, 4vw, 3.5rem); }

.linea {
  position: relative;
  min-height: 92vh;
  display: grid; align-content: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--linea);
}
.linea-rejilla { display: grid; gap: 2rem; }

.linea-cifra {
  font-family: var(--serif);
  font-size: clamp(5.5rem, 17vw, 14rem);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: -0.05em;
  background: linear-gradient(170deg, var(--oro-claro) 0%, var(--oro) 38%, rgba(125, 100, 40, 0.42) 88%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  user-select: none;
}

.linea-cuerpo { display: grid; gap: 1.5rem; align-content: start; }

.linea-icono {
  width: 66px; height: 66px;
  display: grid; place-items: center;
  border: 1px solid var(--linea); border-radius: 50%;
  color: var(--oro-vivo);
  background: rgba(212, 175, 55, 0.06);
  transition: transform 0.7s var(--ease), border-color 0.5s var(--ease),
              background 0.5s var(--ease);
}
.linea-icono svg { width: 31px; height: 31px; }
.linea:hover .linea-icono {
  transform: rotate(-8deg) scale(1.08);
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(212, 175, 55, 0.13);
}

.linea-titulo {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.022em;
}
.linea-resumen {
  font-size: clamp(1.14rem, 1.6vw, 1.36rem);
  line-height: 1.66;
  color: var(--texto-sua);
  max-width: 46ch;
}
.linea-detalle {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--texto-med);
  max-width: 54ch;
}

.linea-puntos {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-top: 0.6rem;
}
.linea-puntos li {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.5rem 1.1rem 0.5rem 0.9rem;
  border: 1px solid var(--linea); border-radius: 999px;
  background: rgba(212, 175, 55, 0.05);
  font-family: var(--mono);
  font-size: 0.86rem;              /* antes 0,7rem */
  letter-spacing: 0.04em;
  color: var(--texto-sua);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease),
              transform 0.4s var(--ease);
}
.linea-puntos li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--oro); flex: 0 0 auto;
}
.linea-puntos li:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

/* =============================================================
   12. MÉTODO — hilo de oro
   ============================================================= */
.metodo-hilo { position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); }
.metodo-hilo::before {
  content: ""; position: absolute;
  left: 21px; top: 8px; bottom: 8px; width: 1px;
  background: rgba(212, 175, 55, 0.16);
}
.metodo-hilo::after {
  content: ""; position: absolute;
  left: 21px; top: 8px; width: 1px;
  height: var(--avance, 0%);
  background: linear-gradient(180deg, var(--oro-claro), var(--oro));
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
  transition: height 0.25s linear;
}

.paso {
  position: relative;
  display: grid; gap: 0.9rem;
  padding: 0 0 clamp(2.6rem, 5vw, 4rem) clamp(3.6rem, 6vw, 5.2rem);
}
.paso:last-child { padding-bottom: 0; }
.paso-marca {
  position: absolute; left: 0; top: 2px;
  width: 43px; height: 43px;
  display: grid; place-items: center;
  border: 1px solid var(--linea); border-radius: 50%;
  background: var(--bg-2);
  font-family: var(--mono); font-size: 0.84rem;
  color: var(--oro-hondo);
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease),
              background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.paso.activo .paso-marca {
  color: #14100a;
  border-color: var(--oro);
  background: linear-gradient(140deg, var(--oro-claro), var(--oro));
  box-shadow: 0 0 26px rgba(212, 175, 55, 0.5);
}
.paso h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 400;
}
.paso p {
  font-size: 1.08rem; line-height: 1.76;
  color: var(--texto-med); max-width: 58ch;
}

/* =============================================================
   13. TERRITORIO — la ciudad se ve entera
   ============================================================= */
.territorio {
  position: relative; z-index: 3;
  min-height: 105vh;
  display: grid; align-content: center;
  padding-block: clamp(5rem, 10vw, 9rem);
}
/* Velo mínimo: aquí la escena es el protagonista */
.territorio::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(8, 7, 6, 0.92) 0%,
    rgba(8, 7, 6, 0.34) 26%,
    rgba(8, 7, 6, 0.30) 74%,
    rgba(8, 7, 6, 0.92) 100%);
}
.territorio-marco {
  max-width: min(580px, 100%);
  padding: clamp(1.8rem, 3.4vw, 3rem);
  border: 1px solid var(--linea);
  border-radius: 4px;
  background: rgba(8, 7, 6, 0.66);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}
.territorio-marco .titulo-seccion {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  max-width: none;
}
.territorio-marco .parrafo-guia { margin-top: 1.5rem; max-width: none; }

.territorio-datos {
  display: grid; gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--linea);
  border: 1px solid var(--linea);
  border-radius: 4px;
  overflow: hidden;
}
.dato {
  padding: 1.7rem 1.6rem;
  background: rgba(8, 7, 6, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.5s var(--ease);
}
.dato:hover { background: rgba(24, 18, 10, 0.9); }
.dato h3 {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 500;
  color: var(--oro-claro); margin-bottom: 0.55rem;
}
.dato p { font-size: 1.02rem; line-height: 1.68; color: var(--texto-med); }

/* =============================================================
   14. PREGUNTAS
   ============================================================= */
.faq-lista { margin-top: clamp(2.5rem, 5vw, 4rem); }
.faq-item { border-top: 1px solid var(--linea); }
.faq-item:last-child { border-bottom: 1px solid var(--linea); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-block: clamp(1.4rem, 2.6vw, 2rem);
  cursor: pointer; list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.7vw, 2.1rem);   /* antes ~1,25rem */
  font-weight: 400; line-height: 1.2;
  color: var(--texto);
  transition: color 0.4s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--oro-claro); }

.faq-mas { position: relative; flex: 0 0 auto; width: 22px; height: 22px; }
.faq-mas::before, .faq-mas::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 100%; height: 1.5px; background: var(--oro);
  transition: transform 0.5s var(--ease);
}
.faq-mas::after { transform: rotate(90deg); }
.faq-item[open] .faq-mas::after { transform: rotate(0deg); }

.faq-resp { padding-bottom: 1.9rem; }
.faq-resp p {
  font-size: 1.12rem; line-height: 1.82;
  color: var(--texto-med); max-width: 68ch;
}
.faq-item[open] .faq-resp { animation: abreResp 0.55s var(--ease); }
@keyframes abreResp {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* =============================================================
   15. CONTACTO
   ============================================================= */
.contacto-caja {
  display: grid; gap: 3.5rem;
  padding: clamp(2rem, 4.5vw, 4rem);
  border: 1px solid var(--linea);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(25, 20, 16, 0.9), rgba(11, 9, 7, 0.95));
  position: relative; overflow: hidden;
}
.contacto-caja::before {
  content: ""; position: absolute;
  top: -50%; right: -22%; width: 62%; height: 130%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12), transparent 66%);
  filter: blur(56px); pointer-events: none;
}

.contacto-datos { margin-top: 2.6rem; display: grid; gap: 1.3rem; }
.contacto-datos li {
  display: grid; gap: 0.28rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--linea-sua);
}
.contacto-datos li:last-child { border-bottom: 0; padding-bottom: 0; }
.contacto-datos span {
  font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--oro-vivo);
}
.contacto-datos a, .contacto-datos em {
  font-style: normal; font-size: 1.1rem; color: var(--texto-sua);
  transition: color 0.35s var(--ease); width: fit-content;
}
.contacto-datos a:hover { color: var(--oro-claro); }

.form { display: grid; gap: 1.4rem; }
.campo-fila { display: grid; gap: 1.4rem; }
.campo { position: relative; }
.campo input, .campo textarea, .campo select {
  width: 100%;
  padding: 1.55rem 1.15rem 0.75rem;
  background: rgba(246, 239, 224, 0.04);
  border: 1px solid var(--linea-sua);
  border-radius: 4px;
  color: var(--texto);
  font-family: var(--sans); font-size: 1.05rem; font-weight: 300;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.campo textarea { resize: vertical; min-height: 130px; padding-top: 1.75rem; }
.campo select { appearance: none; cursor: pointer; padding-top: 1.6rem; }
.campo select option { background: var(--bg-3); color: var(--texto); }
.campo input:focus, .campo textarea:focus, .campo select:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(212, 175, 55, 0.055);
}
.campo label {
  position: absolute; left: 1.15rem; top: 1.15rem;
  font-size: 1.02rem; color: var(--texto-ten);
  pointer-events: none; transform-origin: left top;
  transition: transform 0.34s var(--ease), color 0.34s var(--ease);
}
.campo input:focus + label,
.campo input:not(:placeholder-shown) + label,
.campo textarea:focus + label,
.campo textarea:not(:placeholder-shown) + label,
.campo label.fija {
  transform: translateY(-0.72rem) scale(0.74);
  color: var(--oro-vivo);
}
.campo select ~ label.fija { top: 0.95rem; }

.campo-trampa { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.campo-check {
  display: flex; align-items: flex-start; gap: 0.85rem;
  font-size: 0.92rem;              /* antes 0,78rem */
  line-height: 1.6; color: var(--texto-med); cursor: pointer;
}
.campo-check input {
  flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px;
  accent-color: var(--oro);
}

.form-alt { text-align: center; font-size: 0.95rem; color: var(--texto-med); }
.form-alt a { color: var(--oro-vivo); border-bottom: 1px solid rgba(212, 175, 55, 0.4); }
.form-alt a:hover { color: var(--oro-claro); }

.form-error {
  padding: 1rem 1.2rem; border-radius: 5px;
  border: 1px solid rgba(220, 90, 70, 0.45);
  background: rgba(220, 90, 70, 0.1);
  font-size: 0.98rem; margin-bottom: 1.2rem;
}

.form-exito {
  display: grid; justify-items: center; gap: 1.6rem;
  padding: 3.5rem 1.5rem; text-align: center;
}
.form-exito p { font-size: 1.16rem; line-height: 1.72; color: var(--texto-sua); max-width: 40ch; }
.form-check { width: 82px; height: 82px; }
.form-check circle, .form-check path {
  fill: none; stroke: var(--oro); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.form-check circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: trazaCirculo 0.95s var(--ease) forwards; }
.form-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: trazaCheck 0.5s var(--ease) 0.75s forwards; }
@keyframes trazaCirculo { to { stroke-dashoffset: 0; } }
@keyframes trazaCheck  { to { stroke-dashoffset: 0; } }

.mapa {
  margin-top: 2.8rem;
  border: 1px solid var(--linea); border-radius: 5px; overflow: hidden;
  filter: grayscale(0.4) contrast(1.05) brightness(0.82);
}
.mapa iframe { width: 100% !important; height: 400px !important; border: 0; display: block; }

/* =============================================================
   16. PIE — cierre de marca
   ============================================================= */
.pie {
  position: relative; z-index: 3;
  padding-block: clamp(4.5rem, 9vw, 7rem) 2.8rem;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.94), #050403);
  border-top: 1px solid var(--linea);
}

/* Firma monumental */
.pie-firma {
  display: grid; justify-items: center; gap: 1.4rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.pie-firma img {
  width: clamp(80px, 9vw, 118px); height: auto;
  filter: drop-shadow(0 8px 30px rgba(212, 175, 55, 0.35));
}
.pie-palabra {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 6.4vw, 5rem);
  font-weight: 500;
  letter-spacing: clamp(0.08em, 0.6vw, 0.2em);
  line-height: 1; text-transform: uppercase;
  background: linear-gradient(100deg, var(--oro-medio), var(--oro-claro) 50%, var(--oro-medio));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pie-claim {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--texto-med);
}

.pie-rejilla {
  display: grid; gap: 2.6rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--linea-sua);
}
.pie-col { display: grid; align-content: start; gap: 0.75rem; }
.pie-col h4 {
  font-family: var(--mono); font-size: 0.76rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--oro-vivo); margin-bottom: 0.45rem;
}
.pie-col a, .pie-col p {
  font-size: 1rem; color: var(--texto-med);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
  width: fit-content;
}
.pie-col a:hover { color: var(--texto); transform: translateX(4px); }

.pie-aviso {
  padding-block: 1.9rem;
  border-top: 1px solid var(--linea-sua);
  font-size: 0.88rem;              /* antes 0,72rem — ilegible */
  line-height: 1.7;
  color: var(--texto-ten);
  max-width: 96ch;
}
.pie-bajo {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  border-top: 1px solid var(--linea-sua);
  font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.05em; color: var(--texto-ten);
}

/* =============================================================
   17. WHATSAPP
   ============================================================= */
.wa {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 660;
  display: inline-flex; align-items: center;
  height: 60px; padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(140deg, #2bc063, #199e4c);
  color: #fff;
  box-shadow: 0 16px 38px -14px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.wa svg { width: 28px; height: 28px; flex: 0 0 auto; }
.wa-txt {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: 0.95rem; font-weight: 500;
  transition: max-width 0.55s var(--ease), margin-left 0.55s var(--ease);
}
.wa:hover { transform: translateY(-3px) scale(1.02); }
.wa:hover .wa-txt { max-width: 150px; margin-left: 11px; }
.wa-pulso {
  position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: rgba(43, 192, 99, 0.5);
  animation: waPulso 3s var(--ease-suave) infinite;
}
@keyframes waPulso {
  0%   { transform: scale(1); opacity: 0.5; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* =============================================================
   18. APARICIONES
   Opt-in: sólo se ocultan si hay JavaScript.
   ============================================================= */
.js-activo .aparece {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js-activo .aparece.visible { opacity: 1; transform: none; }

/* =============================================================
   19. RESPONSIVE
   ============================================================= */
@media (min-width: 600px) {
  .campo-fila { grid-template-columns: 1fr 1fr; }
  .territorio-datos { grid-template-columns: repeat(2, 1fr); }
  .wa { right: 2rem; bottom: 2rem; }
}

@media (min-width: 900px) {
  .menu-rejilla { grid-template-columns: 1.75fr 1fr; gap: 4rem; align-items: center; }
  .menu-txt { text-wrap: nowrap; }
  .menu-pie { padding-top: 0; }
  .pie-rejilla { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .linea-rejilla {
    grid-template-columns: minmax(180px, 0.5fr) 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
  .linea-cifra { position: sticky; top: calc(var(--nav-h) + 3rem); }
  .territorio-datos { grid-template-columns: repeat(4, 1fr); }
  .contacto-caja { grid-template-columns: 0.88fr 1.12fr; gap: 4.5rem; }
  .tesis-cierre { grid-template-columns: 1fr auto; align-items: end; gap: 2.5rem; }
}

@media (min-width: 1200px) {
  :root { --nav-h: 92px; }
  .portal-titular { max-width: 14ch; }
  .territorio-marco { max-width: min(640px, 100%); }
}

/* =============================================================
   20. MOVIMIENTO REDUCIDO
   Sólo se apaga lo intrusivo. Las microinteracciones se mantienen:
   Windows activa esta preferencia por defecto en muchos equipos y
   el sitio quedaría plano sin motivo.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portal-scroll i, .wa-pulso, .sello-nombre { animation: none; }
  .sello-nombre { background-position: 0 0; }
  .portal-titular .fila > span { animation-duration: 0.01s; transform: none; }
}

/* =============================================================
   21. IMPRESIÓN
   ============================================================= */
@media print {
  .escena, .capa-vineta, .capa-grano, .wa, .barra, .menu { display: none !important; }
  body { background: #fff; color: #111; }
  .seccion::before, .seccion::after { display: none; }
  .aparece { opacity: 1 !important; transform: none !important; }
  .tesis-texto .pal { opacity: 1 !important; color: #111 !important; }
}
