/* Tahulla Ventures — v5
   Inter sola · Cream cálida + Azul medianoche + Dorado apagado
*/

:root {
  /* base */
  --c-bg: #F7F4EB;
  --c-paper: #FFFFFF;
  --c-ink: #0F2B4A;             /* azul medianoche para texto principal */
  --c-soft: #4A5568;             /* gris azulado para body / lead */
  --c-mute: #7C8595;             /* gris para texto muy secundario */
  --c-accent: #0F2B4A;           /* azul medianoche como acento "fuerte" */
  --c-accent-deep: #0A1F36;      /* azul aún más oscuro para hovers */
  --c-warm: #B8924D;             /* dorado apagado — acento tipográfico */
  --c-warm-deep: #9C7A3D;        /* dorado oscuro — hover de dorado */
  --c-warm-soft: #EFE4CB;        /* dorado pálido — fondos de tarjeta sutil */
  --c-rule: #E3DECF;             /* línea sobre cream */
  --c-rule-soft: #EFEBDC;        /* línea muy sutil */

  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --pad-x: clamp(20px, 5vw, 64px);
  --pad-y: clamp(64px, 11vw, 160px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

em {
  /* Override de em a través del sitio: italic + dorado, sin serif */
  font-style: italic;
  color: var(--c-warm);
  font-weight: 500;
}

/* ─── Shell ─── */
.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
main { flex: 1; display: flex; flex-direction: column; }

/* ─── Navbar (cream, sticky con backdrop sutil, sin separador) ─── */
header.nav {
  padding: 28px 0;
  background: rgba(247, 244, 235, 0.92);
  border-bottom: none;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}
header.nav .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img.logo-horizontal {
  height: 52px;
  width: auto;
  display: block;
}
@media (max-width: 560px) {
  .brand img.logo-horizontal { height: 40px; }
}

/* Versión solo mark, para footers o badges si se quiere usar después */
.brand img.mark-only {
  height: 28px;
  width: 28px;
  display: block;
}
nav.menu {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
}
nav.menu a {
  color: var(--c-soft);
  text-decoration: none;
  transition: color 0.18s ease;
}
nav.menu a:hover { color: var(--c-warm); }
nav.menu a.active { color: var(--c-warm); }
@media (max-width: 560px) {
  nav.menu { gap: 20px; font-size: 13px; }
  .brand { font-size: 15px; }
  .brand .mark { width: 16px; height: 16px; }
}

/* ═════════════════ HERO ═════════════════ */
section.hero {
  padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 10vw, 120px);
  border-bottom: 1px solid var(--c-rule-soft);
}

section.hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
/* Variante con imagen: dos columnas (texto + figura) */
section.hero.hero--with-image .hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
}
section.hero .hero-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
section.hero .hero-figure img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--c-rule-soft);
}
@media (max-width: 900px) {
  section.hero.hero--with-image .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  section.hero .hero-figure img {
    aspect-ratio: 16 / 9;
    max-height: none;
  }
}
section.hero .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-warm);
  margin-bottom: 32px;
}
section.hero h1 {
  font-family: var(--sans);
  font-size: clamp(48px, 7.5vw, 92px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin-bottom: 40px;
  max-width: 1000px;
  color: var(--c-ink);
}
section.hero .hero-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  margin-top: 24px;
}
section.hero p.lead {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
  color: var(--c-soft);
  max-width: 580px;
  font-weight: 400;
  margin-bottom: 32px;
}
section.hero .cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 840px) {
  section.hero .hero-row { grid-template-columns: 1fr; gap: 36px; align-items: start; }
}

/* ─── Botones ─── */
.btn {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 13px 22px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
  cursor: pointer;
  border: 1px solid var(--c-ink);
  line-height: 1;
}
.btn.primary {
  background: var(--c-ink);
  color: var(--c-bg);
}
.btn.primary:hover {
  background: var(--c-accent-deep);
  border-color: var(--c-accent-deep);
}
.btn.ghost {
  background: transparent;
  color: var(--c-ink);
}
.btn.ghost:hover {
  background: var(--c-ink);
  color: var(--c-bg);
}
.btn .arrow {
  font-size: 14px;
  transition: transform 0.18s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ═════════════════ PAGE SECTIONS ═════════════════ */
section.section {
  padding: var(--pad-y) 0;
  border-bottom: 1px solid var(--c-rule-soft);
}
section.section:last-of-type { border-bottom: none; }

section.section .section-head {
  display: block;
  margin: 0 auto 56px;
  max-width: 900px;
}
section.section .section-head .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-warm);
  margin-bottom: 18px;
}
section.section .section-head h2 {
  font-family: var(--sans);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--c-ink);
}

section.section .section-body {
  display: block;
}
section.section .section-body .body-col {
  max-width: 760px;
  margin: 0 auto;
}
section.section .section-body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-soft);
  margin-bottom: 24px;
}
section.section .section-body p strong {
  color: var(--c-ink);
  font-weight: 500;
}
section.section .section-body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  section.section .section-body .body-col { max-width: 100%; }
}

/* ─── Principios (3 columnas) ─── */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 72px);
  margin-top: 8px;
}
.principle {
  padding-top: 28px;
  border-top: 1px solid var(--c-ink);
}
.principle .num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  color: var(--c-warm);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: block;
}
.principle h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 14px;
  letter-spacing: -0.012em;
  line-height: 1.22;
}
.principle p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-soft);
}
@media (max-width: 800px) {
  .principles { grid-template-columns: 1fr; gap: 40px; }
}

/* ═════════════════ CONTACT ═════════════════ */
.contact-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-top: 24px;
  align-items: start;
}
.contact-block .label-col {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-warm);
  padding-top: 14px;
}
.contact-block .value-col {
  max-width: 720px;
}
.contact-block .email-line {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 500;
  letter-spacing: -0.018em;
  margin-bottom: 36px;
  line-height: 1.1;
}
.contact-block .email-line a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-rule);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.contact-block .email-line a:hover {
  text-decoration-color: var(--c-warm);
  color: var(--c-warm);
}
.contact-block .address {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-soft);
  border-top: 1px solid var(--c-rule);
  padding-top: 24px;
}
.contact-block .address .company {
  color: var(--c-ink);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
@media (max-width: 760px) {
  .contact-block { grid-template-columns: 1fr; gap: 16px; }
  .contact-block .label-col { padding-top: 0; }
}

/* ═════════════════ FOOTER ═════════════════ */
footer.foot {
  padding: 80px 0 36px;
  font-size: 13px;
  color: rgba(247, 244, 235, 0.72);
  background: var(--c-ink);
}
footer.foot .brand img.logo-horizontal {
  height: 56px;   /* logo más grande en el footer */
}
@media (max-width: 560px) {
  footer.foot .brand img.logo-horizontal { height: 44px; }
}
footer.foot .foot-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: 36px;
  align-items: start;
}
footer.foot .foot-brand .brand {
  margin-bottom: 14px;
}
footer.foot .foot-brand p {
  font-size: 13px;
  color: rgba(247, 244, 235, 0.62);
  line-height: 1.55;
  max-width: 280px;
  margin-top: 18px;
}
footer.foot .foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
footer.foot .foot-cols .col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-warm);
  margin-bottom: 16px;
}
footer.foot .foot-cols ul { list-style: none; }
footer.foot .foot-cols li { margin-bottom: 10px; }
footer.foot .foot-cols a {
  color: rgba(247, 244, 235, 0.78);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.18s;
}
footer.foot .foot-cols a:hover { color: var(--c-warm); }
footer.foot .foot-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--c-accent-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(247, 244, 235, 0.55);
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 760px) {
  footer.foot .foot-grid { grid-template-columns: 1fr; }
  footer.foot .foot-cols { grid-template-columns: 1fr 1fr; }
  footer.foot .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ═════════════════ DECORACIÓN ═════════════════ */

/* Sección con fondo blanco (alterna con cream para dar respiración visual) */
section.section.inverse {
  background: var(--c-paper);
  border-top: 1px solid var(--c-rule-soft);
  border-bottom: 1px solid var(--c-rule-soft);
}

/* Divisor ornamental — § dorado entre dos reglas finas */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 72px 0;
}
.divider-ornament::before,
.divider-ornament::after {
  content: "";
  height: 1px;
  width: 100px;
  background: var(--c-rule);
}
.divider-ornament .dingbat {
  font-size: 22px;
  font-weight: 400;
  color: var(--c-warm);
  line-height: 1;
  letter-spacing: 0;
  display: inline-block;
  transform: translateY(-1px);
}
/* Legacy: oculta envoltorios antiguos si quedan */
.divider-ornament .glyph,
.divider-ornament .dot { display: none; }

/* Drop cap inicial — gran letra al comienzo de un párrafo importante */
.drop-cap::first-letter {
  font-size: 4.4em;
  font-weight: 500;
  float: left;
  line-height: 0.88;
  margin: 6px 12px -2px 0;
  color: var(--c-warm);
  letter-spacing: -0.04em;
  font-feature-settings: "lnum", "ss01";
}

/* Pull quote — cita destacada lateral */
.pull-quote {
  position: relative;
  padding: 32px 0 32px 32px;
  border-left: 2px solid var(--c-warm);
  margin: 48px 0;
  max-width: 720px;
}
.pull-quote::before {
  content: "“";
  position: absolute;
  top: -8px; left: 18px;
  font-size: 72px;
  line-height: 1;
  color: var(--c-warm);
  font-weight: 500;
  font-family: Georgia, 'Times New Roman', serif;
}
.pull-quote p {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--c-ink);
  font-weight: 400;
  letter-spacing: -0.012em;
  margin-bottom: 16px;
}
.pull-quote cite {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--c-mute);
  font-weight: 500;
}

/* Numeración romana decorativa */
.roman-num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--c-warm);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

/* Stat / dato destacado */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
  border-top: 1px solid var(--c-rule);
  padding-top: 56px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-item .stat-value {
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-item .stat-value em {
  color: var(--c-warm);
}
.stat-item .stat-label {
  font-size: 13px;
  color: var(--c-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
  max-width: 240px;
}
@media (max-width: 760px) {
  .stat-row { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
}

/* Tarjeta de bloque (para listas tipo "what we look for") */
.card-block {
  background: var(--c-paper);
  border: 1px solid var(--c-rule);
  border-radius: 4px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-block .card-num {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-warm);
  font-weight: 600;
  text-transform: uppercase;
}
.card-block h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--c-ink);
  line-height: 1.25;
}
.card-block p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-soft);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* Lista numerada editorial */
ol.editorial {
  list-style: none;
  counter-reset: ed-counter;
  padding: 0;
  margin: 24px 0;
}
ol.editorial li {
  counter-increment: ed-counter;
  position: relative;
  padding-left: 56px;
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-soft);
}
ol.editorial li::before {
  content: counter(ed-counter, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-warm);
}
ol.editorial li strong {
  color: var(--c-ink);
  font-weight: 500;
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

/* Hero ornament — etiqueta tipográfica + glifo geométrico dorado */
.hero-ornament {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--c-warm);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-ornament .dingbat {
  font-size: 14px;
  color: var(--c-warm);
  letter-spacing: 0;
  line-height: 1;
  display: inline-block;
}
/* Legacy hidden */
.hero-ornament .squares { display: none; }
.hero-ornament .glyph { display: none; }

/* Sección con sidebar — para about con anchor links opcional */
.toc-side {
  position: sticky;
  top: 100px;
  font-size: 13px;
  line-height: 1.9;
}
.toc-side a {
  display: block;
  color: var(--c-soft);
  text-decoration: none;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: all 0.15s;
}
.toc-side a:hover { color: var(--c-ink); border-left-color: var(--c-warm); }
.toc-side a.active { color: var(--c-ink); border-left-color: var(--c-warm); }
.toc-side .toc-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-warm);
  margin-bottom: 14px;
}

/* ═════════════════ LEGAL PAGES ═════════════════ */
article.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}
article.legal .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-warm);
  margin-bottom: 20px;
  display: inline-block;
}
article.legal h1 {
  font-family: var(--sans);
  font-size: clamp(40px, 5.5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--c-ink);
}
article.legal .updated {
  font-size: 13px;
  color: var(--c-mute);
  letter-spacing: 0.04em;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-rule-soft);
}
article.legal h2 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
  margin: 48px 0 16px;
  color: var(--c-ink);
}
article.legal p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-soft);
  margin-bottom: 16px;
}
article.legal p strong { color: var(--c-ink); font-weight: 500; }
article.legal a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--c-rule);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
article.legal a:hover {
  text-decoration-color: var(--c-warm);
  color: var(--c-warm);
}
article.legal ul {
  margin: 0 0 22px 22px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-soft);
}
article.legal li { margin-bottom: 6px; }
article.legal .back-row {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--c-rule-soft);
}
article.legal .back {
  font-size: 14px;
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.18s;
}
article.legal .back:hover { color: var(--c-warm); }
