/* =========================================================
   ZARIA · Business Development
   Estructura de 4.pdf (1440 px) como calc(N * var(--u)).
   Comunes: base.css; entrada y portada que gira: service-page.css.
   Monograma interactivo y firma: business.js.
   ========================================================= */

body.page-business { background: var(--c-espresso); }

.bd-ph-hero  { background: #8b6f5c; color: rgba(255, 255, 255, .5); }
/* Portada: color del degradado horizontal común (service-page.css) */
.page-business .sp-hero__face--front { --hero-solid: 139 111 92; }   /* #8B6F5C */
.bd-ph-value { background: linear-gradient(150deg, #a07a5e, #5e3b28); color: rgba(255, 255, 255, .55); }

/* =========================================================
   2 · MONOGRAMA INTERACTIVO
   ========================================================= */
.bd-mono {
  --mono-text: var(--c-linen);
  --mono-line: rgba(240, 228, 217, .14);
  padding: calc(64 * var(--u)) 0 calc(72 * var(--u));
  background:
    radial-gradient(ellipse 70% 75% at 42% 45%, var(--c-espresso-glow) 0%, rgba(66, 42, 30, 0) 70%),
    var(--c-espresso);
  color: var(--mono-text);
}

/* Cabecera: subtítulo con su línea a la derecha + contador */
.bd-mono__head {
  display: flex; align-items: center; justify-content: space-between;
  width: calc(var(--nav-clear) + var(--sp-box));
}
.bd-mono__head .section-label { color: var(--mono-text); }
.bd-mono__count {
  font-size: calc(12 * var(--u));
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--c-bronze);
  font-variant-numeric: tabular-nums;
}

.bd-mono__main {
  display: grid;
  grid-template-columns: calc(560 * var(--u)) minmax(0, 1fr);
  align-items: center;
  gap: calc(72 * var(--u));
  width: var(--sp-box);
  margin: calc(28 * var(--u)) 0 0 var(--nav-clear);
}

/* ---------- El símbolo ---------- */
.bd-mono__figure { display: flex; flex-direction: column; align-items: center; }
.bd-mono__stage {
  --shift: calc(14 * var(--u));      /* desplazamiento hacia fuera (≈ 14 px a 1440) */
  position: relative;
  width: calc(530 * var(--u));
  aspect-ratio: 900 / 756;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
.bd-piece {
  position: absolute; inset: 0;
  pointer-events: none;               /* la detección la hace el escenario */
  filter: brightness(1) drop-shadow(0 0 0 rgba(12, 5, 2, 0));
  transition:
    transform 300ms cubic-bezier(.3, .7, .3, 1),
    filter 300ms ease;
  will-change: transform, filter;
}
.bd-piece > img { width: 100%; height: 100%; }

/* Reposo: emblema completo. Interacción: las cuatro capas (cambio
   instantáneo al empezar; al terminar, cuando las piezas ya han
   vuelto a su sitio, 300 ms después). */
.bd-base {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transition: visibility 0s linear 300ms;
}
.bd-piece > img { visibility: hidden; transition: visibility 0s linear 300ms; }
.bd-mono__stage.is-engaged .bd-base { visibility: hidden; transition: none; }
.bd-mono__stage.is-engaged .bd-piece > img { visibility: visible; transition: none; }
/* Dirección hacia fuera del centro de cada pieza */
.bd-piece--1 { --dx: -.6;  --dy: -.8; }   /* piedra superior: arriba, izquierda */
.bd-piece--2 { --dx: .55;  --dy: -.84; }  /* barra derecha: arriba, a lo largo de la barra */
.bd-piece--3 { --dx: -.55; --dy: .84; }   /* barra izquierda: abajo, a lo largo de la barra */
.bd-piece--4 { --dx: .6;   --dy: .8; }    /* piedra inferior: abajo, derecha */

.bd-piece.is-active {
  z-index: 2;
  transform: translate(calc(var(--dx) * var(--shift)), calc(var(--dy) * var(--shift)));
  filter: brightness(1.12) drop-shadow(0 calc(12 * var(--u)) calc(20 * var(--u)) rgba(12, 5, 2, .55));
}
.bd-piece.is-dim { filter: brightness(.58) drop-shadow(0 0 0 rgba(12, 5, 2, 0)); }

/* Números de las esquinas (se mueven con su pieza) */
.bd-piece__num {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: calc(34 * var(--u)); height: calc(34 * var(--u));
  margin: calc(-17 * var(--u)) 0 0 calc(-17 * var(--u));
  border: 1px solid rgba(201, 151, 111, .55);
  border-radius: 50%;
  background: rgba(44, 24, 18, .88);
  font-size: calc(12 * var(--u));
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-linen);
  box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, .3);
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, transform 300ms ease;
}
.bd-piece--1 .bd-piece__num { left: 21.1%; top: 17.9%; }
.bd-piece--2 .bd-piece__num { left: 82.2%; top: 19.7%; }
.bd-piece--3 .bd-piece__num { left: 24.1%; top: 74.5%; }
.bd-piece--4 .bd-piece__num { left: 77.4%; top: 86%; }
.bd-piece.is-active .bd-piece__num {
  border: 2px solid var(--c-bronze);
  color: var(--c-bronze);
  transform: scale(1.15);
}

.bd-mono__caption {
  margin-top: calc(26 * var(--u));
  font-size: calc(11 * var(--u));
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(240, 228, 217, .6);
}

/* ---------- Contenido de la derecha ---------- */
.bd-mono__content { display: grid; }
.bd-panel {
  grid-area: 1 / 1;                   /* los cinco estados en la misma celda */
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(8 * var(--u)));
  transition: opacity 300ms ease, transform 300ms ease, visibility 0s linear 300ms;
}
.bd-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 300ms ease, transform 300ms ease, visibility 0s;
}
.bd-panel__kicker {
  font-size: calc(11 * var(--u));
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-bronze);
}
.bd-panel__title {
  max-width: calc(470 * var(--u));
  margin-top: calc(18 * var(--u));
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(62 * var(--u));
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--c-linen);
}
.bd-panel__num {
  display: block;
  margin-bottom: calc(10 * var(--u));
  font-family: var(--font-sans);
  font-size: calc(17 * var(--u));
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--c-bronze);
}
.bd-panel__text {
  max-width: calc(400 * var(--u));
  margin-top: calc(22 * var(--u));
  font-size: calc(17 * var(--u));
  line-height: 1.6;
  color: rgba(240, 228, 217, .86);
}

/* ---------- Controles inferiores ---------- */
.bd-mono__bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: var(--sp-box);
  margin: calc(48 * var(--u)) 0 0 var(--nav-clear);
  border-top: 1px solid var(--mono-line);
  border-bottom: 1px solid var(--mono-line);
}
.bd-part {
  position: relative;
  display: flex; align-items: center; gap: calc(14 * var(--u));
  padding: calc(22 * var(--u)) calc(24 * var(--u));
  border: 0;
  border-left: 1px solid var(--mono-line);
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--c-linen);
  cursor: pointer;
  transition: background-color 300ms ease, color 300ms ease;
}
.bd-part:first-child { border-left: 0; padding-left: 0; }
.bd-part::before {                    /* línea de bronce del apartado activo */
  content: "";
  position: absolute; left: 0; right: 0; top: -1px;
  height: 2px;
  background: var(--c-bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}
.bd-part__num {
  font-size: calc(10.5 * var(--u));
  font-weight: 500;
  letter-spacing: .08em;
  color: rgba(240, 228, 217, .55);
  transition: color 300ms ease;
}
.bd-part__name { font-size: calc(15 * var(--u)); font-weight: 600; }
.bd-part.is-active { color: var(--c-bronze); }
.bd-part.is-active::before { transform: scaleX(1); }
.bd-part.is-active .bd-part__num { color: var(--c-bronze); }
.bd-part:focus-visible { outline: 2px solid var(--c-bronze); outline-offset: -4px; }
.bd-part:first-child:focus-visible { outline-offset: 2px; }

/* =========================================================
   3 · PRESENTACIÓN DEL VALOR
   ========================================================= */
.bd-value {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(608 * var(--u));
  background: var(--c-linen);
  color: #2b1a10;
}
.bd-value__media { position: relative; overflow: hidden; }
.bd-value__media > .ph,
.bd-value__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bd-value__text {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: calc(88 * var(--u)) calc(52 * var(--u)) calc(88 * var(--u)) calc(64 * var(--u));
}
.bd-value__kicker {
  font-size: calc(11 * var(--u));
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-terracotta);
}
.bd-value__title {
  display: flex; flex-direction: column;
  margin-top: calc(22 * var(--u));
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(60 * var(--u));
  line-height: 1.04;
  letter-spacing: -.025em;
}
.bd-value__em { font-style: italic; color: var(--c-terracotta); }
.bd-value__body { max-width: calc(440 * var(--u)); margin-top: calc(26 * var(--u)); }
.bd-value__body p,
.bd-value__sides li {
  font-size: calc(16 * var(--u));
  line-height: 1.6;
  color: rgba(43, 26, 16, .88);
}
.bd-value__body p + p { margin-top: calc(14 * var(--u)); }
.bd-value__sides {
  max-width: calc(440 * var(--u));
  margin-top: calc(22 * var(--u));
  padding-top: calc(18 * var(--u));
  border-top: 1px solid rgba(43, 26, 16, .16);
}
.bd-value__sides li + li { margin-top: calc(10 * var(--u)); }
.bd-value__sides b { font-weight: 700; color: var(--c-terracotta); }

/* Botón con flecha de línea y punto (4.pdf) */
.bd-btn {
  gap: calc(14 * var(--u));
  height: calc(40 * var(--u));
  margin-top: calc(32 * var(--u));
  padding: 0 calc(20 * var(--u));
  font-size: calc(14 * var(--u));
  font-weight: 600;
}
.bd-arrow { width: calc(30 * var(--u)); height: calc(8 * var(--u)); overflow: visible; }
.bd-arrow path { fill: none; stroke: currentColor; stroke-width: 1.3; }
.bd-arrow circle { fill: currentColor; }
.bd-arrow { transition: transform .25s ease; }
.bd-btn:hover .bd-arrow { transform: translateX(calc(3 * var(--u))); }
.bd-btn--light { background: #ede1d3; color: #2b1a10; }

/* =========================================================
   4 · CITA DE LA FUNDADORA Y FIRMA
   ========================================================= */
.bd-founder {
  display: grid;
  grid-template-columns: calc(300 * var(--u)) minmax(0, 1fr);
  align-items: center;
  gap: calc(48 * var(--u));
  padding: calc(112 * var(--u)) 0 calc(104 * var(--u));
  padding-left: var(--nav-clear);
  padding-right: calc(150 * var(--u));
  background: var(--c-sand-deep);
  color: #2e1608;
}
/* La firma, girada como en el PDF, puede salir de su columna */
.bd-founder__sig { position: relative; align-self: stretch; }
.bd-sig {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(440 * var(--u));
  height: auto;
  overflow: visible;
  transform: translate(-56%, -50%) rotate(-40deg);
}
.bd-sig__ink { fill: #f2e6da; }

.bd-founder__quote blockquote { margin: 0; }
.bd-founder__quote p {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(30 * var(--u));   /* solo la cita: 40 → 30 (nombre y cargo sin cambios) */
  line-height: 1.38;
  letter-spacing: -.005em;
}
.bd-founder__quote strong { font-weight: 700; color: var(--c-terracotta); }
.bd-founder__meta {
  display: flex; flex-direction: column;
  margin-top: calc(44 * var(--u));
  font-size: calc(20 * var(--u));
  line-height: 1.4;
}
.bd-founder__name { font-weight: 800; letter-spacing: .01em; }
.bd-founder__role { font-weight: 300; }

/* =========================================================
   5 · CIERRE
   ========================================================= */
.bd-closing {
  padding: calc(92 * var(--u)) calc(167 * var(--u)) calc(112 * var(--u)) var(--nav-clear);   /* abajo: sitio para el botón flotante anclado */
  /* Revisión 10 nov. (3): crema #F2E4D8; titular, párrafo y botón en el
     tono del bloque superior (monograma: --c-espresso, #2C1812) */
  background: #f2e4d8;
  color: var(--c-espresso);
}
.bd-closing__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: calc(54 * var(--u));
  line-height: 1.1;
  letter-spacing: -.005em;
}
.bd-closing__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: calc(48 * var(--u));
  margin-top: calc(18 * var(--u));
}
.bd-closing__text {
  max-width: calc(500 * var(--u));
  font-size: calc(16 * var(--u));
  line-height: 1.55;
  color: var(--c-espresso);
}
.bd-closing .bd-btn { margin-top: 0; }
.bd-btn--light:focus-visible { outline: 2px solid var(--c-linen); outline-offset: calc(6 * var(--u)); }
/* Botón del cierre: fondo espresso, texto e icono en crema */
.bd-closing .bd-btn--light { background: var(--c-espresso); color: #f2e4d8; }
.bd-closing .bd-btn--light:hover { opacity: .88; }
.bd-closing .bd-btn--light:focus-visible { outline-color: var(--c-espresso); }

/* ---------- Movimiento reducido ---------- */
/* Versión móvil del bloque 2 (11 nov.): no existe en escritorio */
.bd-value__m { display: none; }

@media (prefers-reduced-motion: reduce) {
  .bd-piece, .bd-piece__num, .bd-panel, .bd-part, .bd-part::before, .bd-arrow { transition: none; }
}

/* =========================================================
   BASE MÓVIL PROVISIONAL (≤ 820 px)
   ========================================================= */
@media (max-width: 1023px) {
  /* Jerarquía: títulos de sección por debajo del de portada */
  .page-service { --bd-hero: min(46px, calc((100vw - 40px) / 8.3)); }

  /* ---------- 3 · Monograma compacto (móvil, 11 nov.) ----------
     Emblema a la izquierda (≈ 40 % del ancho) y los cuatro puntos en
     lista a su derecha; la descripción del punto, justo debajo, en una
     celda que reserva el alto del texto más largo (los cinco estados
     ocupan la misma celda). Se elige y se lee sin desplazarse. */
  .bd-mono {
    display: grid;
    grid-template-columns: min(40vw, 170px) minmax(0, 1fr);
    column-gap: 14px;
    padding: 40px 20px 48px;
  }
  .bd-mono__head { grid-column: 1 / -1; width: auto; padding-right: 0; }
  .bd-mono .section-label { padding-left: 0; }
  .bd-mono .section-label::after { width: 28px; }   /* deja sitio al contador */
  .bd-mono__count { font-size: 11px; }
  .bd-mono__main { display: contents; }
  .bd-mono__figure { grid-column: 1; grid-row: 2; align-self: center; margin: 18px 0 0; }
  .bd-mono__stage { --shift: 5px; width: 100%; }
  .bd-piece__num { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 9.5px; }
  .bd-mono__caption { display: none; }
  .bd-mono__bar {
    grid-column: 2; grid-row: 2; align-self: center;
    grid-template-columns: 1fr;
    width: auto; margin: 18px 0 0;
  }
  .bd-part { min-height: 48px; padding: 8px 4px 8px 10px; border-left: 0; }
  .bd-part:first-child { padding-left: 10px; }
  .bd-part + .bd-part { border-top: 1px solid var(--mono-line); }
  .bd-part__num { font-size: 10px; }
  .bd-part__name { font-size: 13.5px; line-height: 1.25; text-align: left; }
  .bd-mono__content { grid-column: 1 / -1; grid-row: 3; min-height: 0; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mono-line); }
  .bd-panel__kicker { display: none; }
  .bd-panel__title { font-size: min(23px, calc(var(--bd-hero) * .6)); line-height: 1.15; max-width: none; margin-top: 0; }
  .bd-panel__num { font-size: 13px; }
  .bd-panel__text { font-size: 15px; line-height: 1.5; max-width: none; margin-top: 8px; }

  /* ---------- 2 · Presentación (móvil, 11 nov.): sin imagen; tres
     preguntas, papel de ZARIA y la decisión final ---------- */
  .bd-value { grid-template-columns: 1fr; }
  .bd-value__media { display: none; }
  .bd-value__text { padding: 56px 20px 56px; }
  .bd-value__kicker { font-size: 11px; }
  .bd-value__title { font-size: calc(var(--bd-hero) * .8); }
  .bd-value__body, .bd-value__sides { display: none; }
  .bd-value__m { display: block; margin-top: 20px; }
  .bd-value__lead { font-size: 17px; line-height: 1.5; font-weight: 500; }
  .bd-asks { margin: 22px 0 0; padding: 0; list-style: none; }
  .bd-asks li { padding: 14px 0; border-top: 1px solid rgba(58, 30, 18, .18); }
  .bd-ask__q { display: flex; gap: 10px; align-items: baseline; font-size: 18px; line-height: 1.3; font-weight: 600; }
  .bd-ask__q span { flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #8c331f; }
  .bd-ask__a { margin-top: 6px; padding-left: 27px; font-size: 15px; line-height: 1.55; }
  .bd-value__role { margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(58, 30, 18, .18); font-size: 15px; line-height: 1.55; }
  .bd-value__outcome { margin-top: 14px; font-size: 18px; line-height: 1.35; font-weight: 600; }
  .bd-value__outcome em { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 1.08em; color: #8c331f; }
  .bd-btn { height: 44px; font-size: 14px; padding: 0 18px; }
  .bd-arrow { width: 28px; height: 8px; }

  .bd-founder { grid-template-columns: 1fr; gap: 8px; padding: 56px 20px 64px; }
  .bd-founder__sig { height: 220px; }
  .bd-sig { width: 300px; }
  .bd-founder__quote p { font-size: 24px; }
  .bd-founder__meta { margin-top: 24px; font-size: 16px; }

  .bd-closing { padding: 56px 20px; }
  .bd-closing__title { font-size: calc(var(--bd-hero) * .78); }
  .bd-closing__row { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 16px; }
  .bd-closing__text { font-size: 15px; }
}


/* =========================================================
   TABLET HORIZONTAL Y PORTÁTIL PEQUEÑO (1024–1279 px, 12 nov.)
   La composición de escritorio se escala con la ventana (--u); aquí
   solo se fijan tamaños mínimos legibles y zonas táctiles cómodas
   para textos y controles pequeños. No cambia la composición.
   ========================================================= */
@media (min-width: 1024px) and (max-width: 1279px) {
  .bd-value__kicker, .bd-panel__kicker { font-size: max(10.5px, calc(11 * var(--u))); }
  .bd-value__body p, .bd-value__sides li { font-size: max(13.5px, calc(16 * var(--u))); }
  .bd-btn { height: max(40px, calc(40 * var(--u))); font-size: max(13px, calc(14 * var(--u))); }
  .bd-closing__text { font-size: max(13.5px, calc(16 * var(--u))); }
}

/* =========================================================
   15 nov. · Fotografía de escritorio (<picture class="photo-desk">)
   Cubre su hueco sin deformar (object-fit: cover); el encuadre se fija
   con --photo-pos en cada imagen. En móvil no se muestra (ni se
   descarga: su <source> solo vale desde 1024 px).
   ========================================================= */
.photo-desk { position: absolute; inset: 0; z-index: 1; display: block; }
.photo-desk img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-pos, 50% 50%); }
@media (max-width: 1023px) { .photo-desk { display: none; } }
