/* ============================================================
   SCHERPA — sistema visual compartido
   Tipografía: Geist (placeholder por Alliance No. 1).
   ============================================================ */

:root {
  /* paleta */
  --red:        #e84c2a;
  --red-deep:   #c93e1f;
  --maroon:     #4a1410;
  --gray:       #ddd8d2;
  --gray-2:     #cfc9c1;
  --ink:        #1a1a1a;
  --ink-soft:   #2a2a2a;
  --paper:      #f4f1ec;

  /* tipografía */
  --font: 'Geist', system-ui, -apple-system, sans-serif;

  /* layout */
  --pad-x: clamp(24px, 5vw, 80px);
  --col-narrow: 560px;
  --col-mid: 720px;
  --col-wide: 1100px;

  /* spacing */
  --gap-section: clamp(96px, 14vh, 180px);
  --gap-block: clamp(40px, 6vh, 80px);
  --gap-text: 1.2em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== TIPOGRAFÍA ===== */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

/* Tamaños unificados para todas las páginas */
h1 { font-size: clamp(48px, 8vw, 112px); }
h2 { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.025em; }
h3 { font-size: clamp(24px, 2.8vw, 38px); letter-spacing: -0.02em; }
h4 { font-size: clamp(18px, 1.9vw, 26px); line-height: 1.2; }

/* Hero home: 20% más grande que el h1 estándar */
.hero h1 { font-size: clamp(58px, 9.6vw, 134px); }

p {
  margin: 0 0 1.1em;
  max-width: 38em;
}

p.lead {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 1.4em;
}

a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

.reg {
  font-size: 0.55em;
  vertical-align: super;
  font-weight: 700;
  letter-spacing: 0;
}

/* ===== TOP BAR ===== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(244, 241, 236, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: clamp(104px, 9vw, 132px);
  max-width: 132px;
  height: auto;
}

.nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.nav a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
}
.nav a:hover { color: var(--red); }
.nav a.active {
  color: var(--red);
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-pill:hover { background: var(--red); transform: translateY(-1px); }
.cta-pill .arrow { transition: transform 0.25s ease; }
.cta-pill:hover .arrow { transform: translate(3px, -3px); }

@media (max-width: 760px) {
  .nav { display: none; }
}

/* ===== SECCIONES BASE ===== */

section {
  padding: var(--gap-section) var(--pad-x);
  position: relative;
}

.section-inner {
  max-width: var(--col-wide);
  margin: 0 auto;
}

.narrow { max-width: var(--col-narrow); }
.mid    { max-width: var(--col-mid); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.6em;
}

/* ===== HERO HOME ===== */

.hero {
  min-height: 88vh;
  background: var(--paper);
  display: flex;
  align-items: center;
  padding-top: clamp(60px, 10vh, 120px);
  padding-bottom: clamp(60px, 10vh, 120px);
}

.hero-inner {
  max-width: var(--col-wide);
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  margin: 0;
  color: var(--red);
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.24s; }

@keyframes rise {
  to { transform: translateY(0); }
}

.hero-sub {
  margin-top: clamp(28px, 4vh, 48px);
  color: var(--ink);
  max-width: 18em;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.4;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  animation: fade 0.9s ease 0.6s forwards;
}

.hero-meta {
  margin-top: clamp(60px, 10vh, 120px);
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fade 0.9s ease 0.9s forwards;
}

@keyframes fade {
  to { opacity: 0.7; transform: translateY(0); }
}

/* ===== HERO INTERIORES ===== */

.page-hero {
  background: var(--paper);
  padding-top: clamp(80px, 14vh, 160px);
  padding-bottom: clamp(60px, 10vh, 120px);
}
.page-hero h1 {
  font-size: clamp(48px, 8vw, 112px); /* ya unificado con h1 base */
  color: var(--red);
}
.page-hero .lead {
  margin-top: clamp(20px, 3vh, 32px);
  color: var(--ink);
  max-width: 28em;
}
.crumb {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: 2em;
  opacity: 0.7;
}
.crumb a:hover { color: var(--red); }

/* ===== SECCIONES POR COLOR ===== */

.red-section {
  background: var(--red);
  color: var(--paper);
}
.red-section h2 { color: var(--paper); }
.red-section .lead { color: var(--paper); }
.red-section p { color: rgba(244, 241, 236, 0.92); }
.red-section .eyebrow { color: var(--paper); opacity: 0.7; }

.gray-section {
  background: var(--gray);
  color: var(--ink);
}
.gray-section h2 { color: var(--red); }

.maroon-section {
  background: var(--maroon);
  color: var(--paper);
}
.maroon-section h2 { color: var(--red); }
.maroon-section p { color: rgba(244, 241, 236, 0.85); }
.maroon-section .eyebrow { color: var(--red); }

.paper-section {
  background: var(--paper);
}
.paper-section h2 { color: var(--red); }

/* ===== TWO COL ===== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  margin-top: var(--gap-block);
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 56px; }
}

.col h4 {
  margin-bottom: 0.8em;
  color: var(--red);
}

.col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.col ul li {
  padding: 14px 0;
  border-top: 1px solid rgba(26, 26, 26, 0.15);
  line-height: 1.4;
}
.col ul li:last-child {
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
}

/* ===== TRES FRENTES ===== */

.frentes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
  margin-top: var(--gap-block);
}
@media (max-width: 900px) {
  .frentes { grid-template-columns: 1fr; }
}

.frente {
  border-top: 2px solid var(--red);
  padding-top: 24px;
}
.frente .num {
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  display: block;
}
.frente h4 {
  color: var(--ink);
  margin-bottom: 0.6em;
}
.frente p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}
.red-section .frente { border-color: var(--paper); }
.red-section .frente .num { color: var(--paper); opacity: 0.7; }
.red-section .frente h4 { color: var(--paper); }
.red-section .frente p { color: rgba(244, 241, 236, 0.92); }

/* ===== MODALIDADES ===== */

.modalidades {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: var(--gap-block);
}
@media (max-width: 760px) {
  .modalidades { grid-template-columns: 1fr; }
}

.modalidad {
  background: var(--paper);
  padding: clamp(36px, 5vw, 56px);
}
.modalidad h4 {
  color: var(--red);
  font-size: clamp(24px, 2.6vw, 36px);
  margin-bottom: 0.5em;
}
.modalidad p {
  margin: 0;
  color: var(--ink);
}

/* ===== SERVICIOS LIST ===== */

.servicio {
  border-top: 1px solid rgba(26, 26, 26, 0.15);
  padding: clamp(48px, 7vh, 80px) 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.servicio:last-of-type {
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
}
@media (max-width: 760px) {
  .servicio { grid-template-columns: 1fr; gap: 16px; }
}

.servicio-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.05em;
  padding-top: 8px;
}

.servicio h3 {
  margin-bottom: 0.2em;
  color: var(--ink);
}
.servicio .duracion {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 1.4em;
  padding: 4px 10px;
  border: 1px solid var(--red);
  border-radius: 999px;
}
.servicio p {
  max-width: 36em;
}
.servicio .modalidad-note {
  margin-top: 1.6em;
  padding-top: 1em;
  border-top: 1px dashed rgba(26, 26, 26, 0.2);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36em;
}
.servicio .modalidad-note strong {
  color: var(--red);
}

/* ===== CLIENTES ===== */

.clientes {
  margin-top: var(--gap-block);
  padding-top: 32px;
  border-top: 1px solid rgba(26, 26, 26, 0.2);
}
.clientes-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 1em;
}
.clientes p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  max-width: none;
  columns: 2;
  column-gap: 48px;
}
@media (max-width: 760px) {
  .clientes p { columns: 1; }
}

/* ===== MANIFIESTO ===== */

.manifiesto-section p {
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 22em;
}
.manifiesto-section p + p {
  margin-top: 1em;
  margin-left: clamp(24px, 4vw, 80px);
  max-width: 20em;
}
.manifiesto-section p + p + p {
  margin-left: clamp(48px, 8vw, 160px);
  max-width: 18em;
}

/* ===== MAILTO ===== */

.mailto-big {
  display: inline-block;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.025em;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.mailto-big:hover {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ===== FOOTER ===== */

footer {
  background: var(--maroon);
  color: rgba(244, 241, 236, 0.6);
  padding: 32px var(--pad-x);
  border-top: 1px solid rgba(244, 241, 236, 0.1);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer a:hover { color: var(--red); }

/* ===== REVEAL ON SCROLL ===== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line span { transform: none; }
  .hero-sub, .hero-meta { opacity: 1 !important; transform: none !important; }
}

/* ===== FAQ ===== */

.faq-toc {
  border-top: 1px solid rgba(26, 26, 26, 0.2);
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  padding: 28px 0;
  margin: var(--gap-block) 0;
}
.faq-toc-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 1.2em;
  display: block;
}
.faq-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 760px) {
  .faq-toc ul { grid-template-columns: 1fr; }
}
.faq-toc li {
  font-weight: 500;
}
.faq-toc li a {
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq-toc li a:hover { color: var(--red); }
.faq-toc li .num {
  color: var(--red);
  margin-right: 8px;
  font-size: 13px;
}

.faq-category {
  border-top: 1px solid rgba(26, 26, 26, 0.2);
  padding-top: clamp(40px, 6vh, 80px);
  margin-top: clamp(40px, 6vh, 80px);
}
.faq-category-header {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: baseline;
  margin-bottom: clamp(32px, 4vh, 56px);
}
@media (max-width: 760px) {
  .faq-category-header { grid-template-columns: 1fr; gap: 8px; }
}
.faq-category-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.faq-category-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.faq-category-count {
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0.7;
}

.faq details {
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
  padding: 0;
}
.faq details summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 32px 24px 0;
  font-weight: 500;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink);
  position: relative;
  transition: color 0.2s ease;
  line-height: 1.4;
}
.faq details summary:hover { color: var(--red); }
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.3s ease;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq details[open] summary {
  color: var(--red);
}
.faq details > div {
  padding: 0 32px 32px 0;
  max-width: 38em;
}
.faq details > div p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}
.faq details > div p:last-child { margin-bottom: 0; }

/* ===== TRABAJO ===== */

.condicion {
  border-top: 2px solid var(--red);
  padding-top: 24px;
}
.condicion .num {
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  display: block;
}
.condicion h4 {
  color: var(--ink);
  margin-bottom: 0.6em;
}

.placeholder-card {
  background: var(--paper);
  padding: clamp(32px, 4vw, 48px);
  border-top: 2px solid var(--red);
}
.placeholder-card .estado {
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 1em;
  display: block;
}
.placeholder-card h4 {
  color: var(--ink);
  margin-bottom: 0.8em;
}
.placeholder-card p {
  margin-bottom: 1em;
}
.placeholder-card .foot {
  margin-top: 1.4em;
  padding-top: 1em;
  border-top: 1px solid rgba(26, 26, 26, 0.15);
  font-size: 13px;
  color: var(--ink-soft);
}

.placeholders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: var(--gap-block);
}
@media (max-width: 760px) {
  .placeholders { grid-template-columns: 1fr; }
}

.alt-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: var(--gap-block);
}
@media (max-width: 760px) {
  .alt-cards { grid-template-columns: 1fr; }
}

.alt-card {
  background: var(--maroon);
  border: 1px solid rgba(244, 241, 236, 0.15);
  padding: clamp(28px, 3.5vw, 40px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.alt-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.alt-card .arrow-prefix {
  color: var(--red);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 1em;
  display: block;
}
.alt-card h4 {
  color: var(--paper);
  font-size: clamp(20px, 2vw, 26px);
  margin-bottom: 0.6em;
}
.alt-card p {
  color: rgba(244, 241, 236, 0.7);
  font-size: 15px;
  margin: 0;
}

/* ===== NOTAS ===== */

.notas-filters {
  display: flex;
  gap: 24px;
  margin: var(--gap-block) 0;
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
}
.notas-filters a {
  color: var(--ink-soft);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.notas-filters a.active,
.notas-filters a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nota {
  border-top: 1px solid rgba(26, 26, 26, 0.15);
  padding: clamp(32px, 5vh, 56px) 0;
  display: grid;
  grid-template-columns: 60px 1fr 100px;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.nota:last-of-type {
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
}
@media (max-width: 760px) {
  .nota { grid-template-columns: 1fr; gap: 8px; }
}
.nota-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
}
.nota-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 1em;
}
.nota h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 0.6em;
  color: var(--ink);
}
.nota p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 36em;
}
.nota-status {
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
  font-style: italic;
}

.suscripcion {
  border-top: 1px solid rgba(26, 26, 26, 0.2);
  padding-top: clamp(40px, 6vh, 80px);
  margin-top: clamp(60px, 8vh, 120px);
}

/* ===== STATEMENT GRANDE (cierres) ===== */

.statement-big {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 1em;
  max-width: 18em;
}

/* ===== PROCESO PASOS ===== */

.pasos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
  margin-top: var(--gap-block);
}
@media (max-width: 760px) {
  .pasos { grid-template-columns: 1fr; }
}
.paso {
  border-top: 2px solid var(--red);
  padding-top: 24px;
}
.paso .step-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
.paso h4 {
  color: var(--ink);
  margin-bottom: 0.6em;
}
.paso p {
  font-size: 15px;
  margin: 0;
}

/* ===== DATOS PRÁCTICOS ===== */

.datos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: var(--gap-block);
}
@media (max-width: 900px) {
  .datos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .datos-grid { grid-template-columns: 1fr; }
}

.dato {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
}
.dato h4 {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--red);
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}
.dato p {
  font-size: 14px;
  margin: 0;
  color: var(--ink-soft);
}

/* ===== ICONOS SOCIALES ===== */

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  padding: 4px 0;
}
.social-icons a:hover {
  color: var(--red);
}
.social-icons a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--red);
}
.social-icons a.disabled-link {
  cursor: default;
  pointer-events: none;
  opacity: 0.55;
}
.social-icons a.disabled-link:hover {
  color: var(--ink-soft);
}

/* ===== DIAGRAMA MARCA / NEGOCIO ===== */

.brand-business-diagram {
  margin: var(--gap-block) auto 0;
  max-width: 640px;
  padding: clamp(24px, 3vw, 40px) 0;
}
.brand-business-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
.brand-business-diagram .caption {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 1.4em;
  letter-spacing: 0.02em;
}
.red-section .brand-business-diagram .caption {
  color: rgba(244, 241, 236, 0.7);
}

/* ===== FRENTES — DIAGRAMA HORIZONTAL ITERATIVO ===== */

.frentes-diagram {
  margin: var(--gap-block) auto 0;
  max-width: 920px;
}
.frentes-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== TIMELINE DE SERVICIO ===== */

.service-timeline {
  margin: 1.5em 0 2em;
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
  border-left: 3px solid var(--red);
}
.gray-section .service-timeline {
  background: rgba(244, 241, 236, 0.6);
}
.service-timeline svg {
  width: 100%;
  height: auto;
  display: block;
}
.service-timeline .timeline-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1em;
}

/* ===== MATRIZ DE POSICIONAMIENTO ===== */

.positioning-matrix {
  margin: var(--gap-block) auto 0;
  max-width: 860px;
}
.positioning-matrix svg {
  width: 100%;
  height: auto;
  display: block;
}
.positioning-matrix .legend {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 1.6em;
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.positioning-matrix .legend .item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.positioning-matrix .legend .swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* ===== EVIDENCIA / HALLAZGOS ===== */

.evidencia-list {
  margin-top: var(--gap-block);
  display: flex;
  flex-direction: column;
}

.evidencia-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 4vh, 48px) 0;
  border-top: 1px solid rgba(26, 26, 26, 0.15);
  align-items: start;
}
.evidencia-item:last-child {
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
}
@media (max-width: 760px) {
  .evidencia-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.evidencia-num {
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.evidencia-claim {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.8em;
  max-width: 32em;
}

.evidencia-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1em;
  max-width: 36em;
}

.evidencia-source {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
  opacity: 0.75;
  margin: 0;
  letter-spacing: 0.01em;
}
.evidencia-source em {
  font-style: italic;
}



/* ===== AJUSTES DE CONSISTENCIA ===== */
p.lede {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: clamp(20px, 3vh, 32px);
  margin-bottom: 1.4em;
  max-width: 28em;
}

/* Párrafo intro destacado — bajada periodística */
p.intro {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-soft);
  border-left: 3px solid var(--red);
  padding-left: 1.2em;
  margin: 0 0 var(--gap-block);
  max-width: 38em;
}
.red-section p.intro {
  color: rgba(244, 241, 236, 0.85);
  border-left-color: rgba(244, 241, 236, 0.5);
}
.gray-section p.intro { color: var(--ink-soft); }
.maroon-section p.intro {
  color: rgba(244, 241, 236, 0.8);
  border-left-color: var(--red);
}

/* ===== EXPERIENCIA — clientes ===== */
.experiencia-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  margin-top: var(--gap-block);
  margin-bottom: var(--gap-block);
}
@media (max-width: 760px) {
  .experiencia-intro { grid-template-columns: 1fr; }
}

.anios-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 1.2em;
}
.anios-num {
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.04em;
}
.anios-label {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.3;
  max-width: 7em;
}

.perfiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: var(--gap-block);
}
@media (max-width: 760px) {
  .perfiles-grid { grid-template-columns: 1fr; }
}
.perfil-card {
  background: var(--gray);
  padding: clamp(28px, 3.5vw, 44px);
}
.perfil-card .perfil-rol {
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1em;
  display: block;
}
.perfil-card h4 {
  color: var(--ink);
  margin-bottom: 0.7em;
  font-size: clamp(16px, 1.6vw, 20px);
}
.perfil-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.clientes-flow {
  margin-top: var(--gap-block);
  column-count: 3;
  column-gap: 40px;
}
@media (max-width: 900px) {
  .clientes-flow { column-count: 2; }
}
@media (max-width: 600px) {
  .clientes-flow { column-count: 1; }
}
.clientes-flow span {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26,26,26,0.1);
  font-size: 15px;
  color: var(--ink);
  break-inside: avoid;
}
.clientes-flow span:last-child { border-bottom: none; }

/* Quote destacado */
.quote-destacado {
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  padding: clamp(24px, 3vh, 40px) 0;
  margin: var(--gap-block) 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 34em;
  color: var(--ink);
}
.red-section .quote-destacado {
  border-color: rgba(244, 241, 236, 0.4);
  color: var(--paper);
}
.gray-section .quote-destacado { color: var(--ink); }

.cta-pill.active { background: var(--red); }
.hero h1 .line { padding-bottom: 0.06em; }
@media (max-width: 760px) {
  .page-hero h1 { font-size: clamp(38px, 10vw, 68px); }
}


/* ===== NOTAS — artículos completos ===== */
.nota-articulo {
  scroll-margin-top: 88px;
}
.nota-articulo .eyebrow {
  margin-bottom: 1.8em;
}
.nota-body {
  margin-top: var(--gap-block);
}
.nota-body p {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.58;
  max-width: 38em;
}
.nota-body p + p {
  margin-top: 1.1em;
}
.nota-dato {
  border-left: 3px solid var(--red);
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.35vw, 18px) !important;
  line-height: 1.55 !important;
  margin: 1.8em 0;
}
.gray-section .nota-dato {
  background: rgba(244, 241, 236, 0.45);
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1em;
}
.notas-filters a {
  scroll-margin-top: 88px;
}

/* ===== MENÚ MOBILE ===== */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.menu-toggle:hover { background: var(--red); transform: translateY(-1px); }
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.topbar.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.topbar.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Contactanos vive dentro del menú, también en desktop. */
.nav-contact { display: inline-flex; }

@media (max-width: 760px) {
  body.menu-open { overflow: hidden; }

  .topbar {
    padding: 14px var(--pad-x);
    gap: 14px;
  }

  .brand-logo {
    width: 104px;
    max-width: 104px;
  }

  .topbar-cta { display: none; }
  .menu-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    left: var(--pad-x);
    right: var(--pad-x);
    top: 72px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 18px 0;
    background: rgba(244, 241, 236, 0.98);
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(26, 26, 26, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .topbar.menu-open .nav {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 22px;
    font-size: 18px;
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  }

  .nav a:last-child { border-bottom: 0; }
  .nav a.active::after { display: none; }

  .nav-contact {
    display: flex;
    color: var(--red) !important;
    font-weight: 700;
  }
}


/* ===== CONTACTO INLINE ===== */
.contact-separator {
  display: inline-block;
  margin: 0 0.45em;
  color: inherit;
  opacity: 0.55;
}
.phone-inline {
  color: var(--red);
  font-weight: 500;
}
.mailto-big + .contact-separator,
.mailto-big + .contact-separator + .phone-inline {
  font-size: clamp(18px, 2vw, 28px);
  vertical-align: baseline;
}
@media (max-width: 760px) {
  .mailto-big + .contact-separator,
  .mailto-big + .contact-separator + .phone-inline {
    display: inline-block;
    margin-top: 0.75em;
  }
}


/* ===== MENÚ HAMBURGUESA — CONTROL FINAL =====
   Desktop: navegación horizontal visible, hamburguesa oculta.
   Mobile: navegación oculta hasta abrir menú, hamburguesa visible.
*/
@media (min-width: 761px) {
  .menu-toggle { display: none !important; }
  .nav {
    position: static !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  body.menu-open { overflow: auto !important; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex !important; }
  .nav {
    position: fixed;
    left: var(--pad-x);
    right: var(--pad-x);
    top: 72px;
    z-index: 60;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding: 18px 0;
    background: rgba(244, 241, 236, 0.98);
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(26, 26, 26, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .topbar.menu-open .nav {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
}
