/* ==========================================================
   Devani & Carrizo · Contadores Asociados
   Paleta y tipografías tomadas del portal de informes.
   Recursos propios: el libro diario, el plan de cuentas
   y las diagonales a 45° del isotipo.
   ========================================================== */

:root {
  --olive: #B4B000;
  --olive-dark: #867f00;
  --olive-light: #d9d340;
  --navy: #1a2438;
  --navy-2: #222e46;
  --navy-3: #2c3a57;
  --navy-text: #e7ebf3;
  --navy-muted: #a9b2c4;
  --bg: #faf9f3;
  --surface: #ffffff;
  --surface-2: #f2f0e6;
  --text: #1c1c18;
  --text-muted: #6c6a5a;
  --border: #e7e4d5;
  --rule: #d9d5c2;
  --verde: #28935f;
  --naranja: #c9770f;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-wide: "Montserrat", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(26, 36, 56, .05), 0 8px 24px rgba(26, 36, 56, .06);
  --topbar-h: 68px;
  /* Diagonales del isotipo, a 45° */
  --stripes: repeating-linear-gradient(-45deg, var(--olive) 0 10px, transparent 10px 22px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font: 400 clamp(30px, 4vw, 46px)/1.1 var(--font-serif); color: var(--navy); letter-spacing: -.015em; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-family: var(--font-mono); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--olive-dark); margin-bottom: 14px;
}
/* Numeración de secciones, como un índice */
.idx {
  display: flex; align-items: center; gap: 14px;
  font: 500 13px var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--olive-dark); margin-bottom: 16px;
}
.idx::after { content: ""; height: 1px; width: 56px; background: currentColor; opacity: .6; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 15px var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--olive); color: var(--navy); }
.btn-primary:hover { background: var(--olive-light); }
.btn-ghost { border-color: rgba(231, 235, 243, .35); color: var(--navy-text); }
.btn-ghost:hover { border-color: var(--olive); color: #fff; }
.btn-outline { border-color: var(--olive); color: var(--olive-light); padding: 8px 16px; font-size: 14px; }
.btn-outline:hover { background: var(--olive); color: var(--navy); }

/* ---------- Encabezado ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--navy-text);
  border-bottom: 3px solid var(--olive);
}
.topbar-in {
  max-width: 1160px; margin: 0 auto; padding: 0 16px;
  height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 720px) { .topbar-in { padding: 0 32px; } }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-logo { width: 31px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 400 20px var(--font-serif); letter-spacing: .2px; }
.brand-sub { font: 300 8px var(--font-wide); letter-spacing: 2.24px; text-transform: uppercase; margin-top: 6px; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { text-decoration: none; font-size: 14.5px; color: var(--navy-text); opacity: .85; }
.nav a:not(.btn):hover { opacity: 1; color: var(--olive-light); }
.nav i { font: normal 500 11px var(--font-mono); color: var(--olive); margin-right: 6px; }

.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: calc(var(--topbar-h) + 3px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 20px; border-bottom: 3px solid var(--olive);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid rgba(231, 235, 243, .1); font-size: 16px; }
  .nav-cta { margin-top: 14px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--navy-text);
  padding: 80px 0 56px;
}
/* Franjas diagonales del isotipo, saliendo desde la esquina */
.hero-stripes {
  position: absolute; right: -8%; top: -30%; width: 46%; height: 160%;
  background: var(--stripes); opacity: .06; transform: skewX(-8deg); pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }

.hero .kicker { color: var(--olive-light); }
.hero h1 {
  font: 400 clamp(42px, 6vw, 76px)/1.02 var(--font-serif);
  color: #fff; letter-spacing: -.02em; margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--olive-light); }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 560px; color: #c9cfdb; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-points {
  list-style: none; padding: 28px 0 0; margin: 56px 0 0;
  border-top: 1px solid rgba(231, 235, 243, .12);
  display: flex; flex-wrap: wrap; gap: 14px 40px; font-size: 15px; color: var(--navy-muted);
}
.hero-points li { display: flex; align-items: center; gap: 14px; padding-left: 16px; border-left: 3px solid var(--olive); line-height: 1.35; }
.hero-points b { color: #fff; font-weight: 600; }
.hp-num { font: 400 40px/1 var(--font-serif) !important; color: var(--olive-light) !important; }
.hero-points span { font-size: 14px; }

/* ---------- Tablero: mirada de contador / mirada de empresario ---------- */
.board {
  position: relative; margin: 0;
  background: var(--bg); color: var(--text);
  border-radius: 18px; padding: 14px 14px 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  min-height: 380px; display: flex; flex-direction: column;
}
.board-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface-2); border-radius: 12px; padding: 4px;
}
.board-switch button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: 10px 8px; border-radius: 9px;
  font: 600 14px var(--font-sans); color: var(--text-muted); transition: color .3s;
}
.board-switch button[aria-selected="true"] { color: #fff; }
.switch-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--navy); border-radius: 9px;
  transition: transform .45s cubic-bezier(.65, 0, .35, 1);
}
.board[data-active="empresario"] .switch-pill { transform: translateX(100%); background: var(--olive-dark); }

.board-view { padding: 20px 8px 4px; flex: 1; }
.board-view:not([hidden]) { animation: vista .45s ease both; }
@keyframes vista { from { opacity: 0; transform: translateY(8px); } }
.mono { font-family: var(--font-mono); }

.bv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.bv-head > span { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.bv-head b { color: var(--navy); font-size: 15px; }
.bv-progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 14px; }
.bv-progress span { display: block; height: 100%; width: var(--w); background: var(--verde); border-radius: 99px; animation: crecer 1s ease .2s both; }
@keyframes crecer { from { width: 0; } }

.bv-list { list-style: none; margin: 0; padding: 0; }
.bv-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 2px; font-size: 15px; border-bottom: 1px solid var(--border);
}
.bv-list li:last-child { border-bottom: 0; }

.bv-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bv-kpis > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.bv-kpis p { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.bv-kpis b { display: block; font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.bv-kpis small { font-size: 12px; color: var(--verde); }
.bv-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 96px; margin: 16px 2px 6px;
  border-bottom: 1px solid var(--rule);
}
.bv-chart span {
  flex: 1; height: var(--h); border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--olive-dark), var(--olive));
  transform-origin: bottom; animation: barra .6s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes barra { from { transform: scaleY(0); } }

.board figcaption {
  margin-top: 10px; padding: 12px 8px 0; border-top: 1px dashed var(--rule);
  font: italic 400 15px var(--font-serif); color: var(--navy);
}
.board figcaption span { display: block; font: 400 11.5px var(--font-sans); color: var(--text-muted); margin-top: 2px; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 100px 0; }
.section-alt { background: var(--surface-2); }
.section h2 { margin-bottom: 16px; max-width: 760px; }
.section-lead { color: var(--text-muted); max-width: 620px; font-size: 17px; margin-bottom: 0; }

.split { display: grid; gap: 48px; align-items: center; }
.split-top { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 72px; } }

/* ---------- 01 Plan de cuentas ---------- */
.split-index { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .split-index { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
  .index-head { position: sticky; top: calc(var(--topbar-h) + 40px); }
}
.accounts { border-top: 2px solid var(--navy); }
.account { border-bottom: 1px solid var(--rule); }
.account summary {
  display: grid; grid-template-columns: 1fr 28px; grid-template-areas: "name tog" "desc tog";
  column-gap: 14px; align-items: center;
  padding: 22px 4px; cursor: pointer; list-style: none;
  transition: background .2s;
}
.account summary::-webkit-details-marker { display: none; }
.account summary:hover { background: rgba(180, 176, 0, .06); }
.acc-name { grid-area: name; font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--font-serif); color: var(--navy); }
.acc-desc { grid-area: desc; font-size: 14.5px; color: var(--text-muted); }
.acc-toggle { grid-area: tog; position: relative; width: 22px; height: 22px; justify-self: end; }
.acc-toggle::before, .acc-toggle::after {
  content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: var(--navy);
  transition: transform .25s;
}
.acc-toggle::after { transform: rotate(90deg); }
.account[open] .acc-toggle::after { transform: rotate(0deg); }
.account ul {
  list-style: none; margin: 0; padding: 0 4px 26px 4px;
  display: grid; gap: 8px 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.account li { position: relative; padding-left: 18px; font-size: 15.5px; color: #3b3a33; }
.account li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px;
  background: var(--olive); transform: rotate(45deg);
}
@media (max-width: 520px) {
  .account ul { grid-template-columns: 1fr; }
}

/* ---------- 02 Para vos (selector de perfil) ---------- */
.section-dark { background: var(--navy); color: var(--navy-text); overflow: hidden; }
.section-dark h2 { color: #fff; }
.section-dark .idx { color: var(--olive-light); }
.stripe-band {
  position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: var(--stripes); opacity: .9;
}
.profiles { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 28px; }
.profiles button {
  font: 500 15px var(--font-sans); color: var(--navy-text);
  background: transparent; border: 1.5px solid rgba(231, 235, 243, .25);
  padding: 10px 18px; border-radius: 99px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.profiles button:hover { border-color: var(--olive); }
.profiles button[aria-selected="true"] { background: var(--olive); border-color: var(--olive); color: var(--navy); font-weight: 600; }

.profile-panel {
  display: grid; gap: 28px;
  background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: 18px;
  padding: 32px;
}
@media (min-width: 860px) { .profile-panel { grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 40px 44px; } }
.pp-label { font: 500 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--olive-light); margin-bottom: 16px; }
.pp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: pp; }
.pp-list li {
  counter-increment: pp; display: grid; grid-template-columns: 34px 1fr; gap: 8px;
  font-size: 16.5px; color: #fff; padding-bottom: 12px; border-bottom: 1px solid var(--navy-3);
  animation: aparecer .35s ease both;
}
@keyframes aparecer { from { opacity: 0; transform: translateX(-8px); } }
.pp-list li::before { content: counter(pp, decimal-leading-zero); font: 500 13px var(--font-mono); color: var(--navy-muted); padding-top: 3px; }
.pp-side { display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 860px) { .pp-side { border-left: 1px dashed var(--navy-3); padding-left: 44px; } }
.pp-you { font: italic 400 clamp(22px, 2.4vw, 28px)/1.3 var(--font-serif); color: #fff; margin-bottom: 28px; }

/* ---------- 03 Experiencia: del otro lado del mostrador ---------- */
.counter-grid { display: grid; gap: 36px; align-items: end; }
@media (min-width: 900px) { .counter-grid { grid-template-columns: 1.3fr 1fr; gap: 72px; } }
.counter-points { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.counter-points li { padding: 14px 0 14px 26px; position: relative; border-bottom: 1px solid var(--rule); font-size: 15.5px; color: #3b3a33; }
.counter-points li::before {
  content: ""; position: absolute; left: 2px; top: 1.3em; width: 9px; height: 9px;
  background: var(--olive); transform: rotate(45deg);
}
.counter-points b { color: var(--navy); }

.ventures { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 56px; }
.venture {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--navy-text); border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.venture:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26, 36, 56, .25); }
/* Franja blanca para que cada logo se vea con sus colores originales */
.v-logo {
  height: 120px; background: #fff; display: grid; place-items: center; padding: 22px 28px;
  border-bottom: 3px solid var(--olive);
}
.v-logo img { max-height: 70px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.v-logo img.v-logo-round { max-height: 84px; border-radius: 50%; }
.v-logo-dark { background: #0b0b0b; }
.v-logo-dark img { max-height: 46px; }
.v-body { position: relative; padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.v-body::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px;
  background: var(--stripes); opacity: .1; transition: opacity .3s, transform .5s; pointer-events: none;
}
.venture:hover .v-body::after { opacity: .25; transform: translate(-10px, -10px); }
.v-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.v-tag {
  font: 600 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); background: var(--olive); padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}
.v-tag-own { background: transparent; color: var(--olive-light); border: 1px solid rgba(217, 211, 64, .5); }
.v-years { font: 400 13px var(--font-mono); color: var(--navy-muted); white-space: nowrap; }
.v-years b { font-size: 22px; font-weight: 600; color: #fff; }
.venture h3 { font: 400 22px/1.2 var(--font-serif); color: #fff; margin: 14px 0 8px; }
.venture p { position: relative; z-index: 1; margin: 0; font-size: 14.5px; color: var(--navy-muted); }

/* ---------- 04 Cómo trabajamos ---------- */
.steps { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: paso; }
.steps li { position: relative; padding: 0 0 26px 58px; counter-increment: paso; }
.steps li::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font: 600 15px var(--font-mono); color: var(--navy);
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--olive); display: grid; place-items: center;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 20px; top: 42px; bottom: 2px; width: 2px; background: var(--border);
}
.steps h3 { color: var(--navy); margin-bottom: 4px; padding-top: 8px; }
.steps p { color: var(--text-muted); margin: 0; font-size: 15.5px; }

/* Demostración del portal de clientes */
.portal {
  margin: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(26, 36, 56, .18); overflow: hidden;
  width: 100%; max-width: 520px; justify-self: center;
}
.pt-top {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--navy); color: #fff; border-bottom: 3px solid var(--olive);
}
.pt-top img { width: 16px; height: 21px; }
.pt-brand { font: 400 15px var(--font-serif); }
.pt-client { margin-left: auto; font-size: 12px; color: var(--navy-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.pt-tabs button {
  position: relative; border: 0; background: none; cursor: pointer;
  padding: 12px 6px; font: 600 12.5px var(--font-sans); color: var(--text-muted); line-height: 1.25;
}
.pt-tabs button[aria-selected="true"] { color: var(--navy); background: var(--bg); }
/* Barra de progreso: muestra cuánto falta para pasar a la siguiente pantalla */
.pt-tabs i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--olive); }
.portal.playing .pt-tabs button[aria-selected="true"] i { animation: avance var(--dur, 6s) linear forwards; }
.portal:not(.playing) .pt-tabs button[aria-selected="true"] i { width: 100%; }
@keyframes avance { to { width: 100%; } }

.pt-screen { padding: 16px; min-height: 330px; }
.pt-view:not([hidden]) { animation: vista .45s ease both; }
.pt-banner {
  position: relative; overflow: hidden; padding: 18px 20px; border-radius: 12px;
  background: var(--navy); color: var(--navy-text); border-left: 5px solid var(--olive);
}
.pt-banner::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 160px;
  background: var(--stripes); opacity: .08;
}
.pt-banner-alert { background: linear-gradient(135deg, #6e1a28, #8c2434); border-left-color: #e8a0a8; }
.pt-kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-light); margin: 0 0 4px; }
.pt-banner-alert .pt-kicker { color: #f3c6cb; }
.pt-kicker-dark { color: var(--olive-dark); }
.pt-title { font-size: 19px; font-weight: 700; color: #fff; margin: 0 0 14px; }
.pt-sub { font-size: 13px; color: var(--navy-muted); margin: -8px 0 0; }
.pt-badge {
  position: absolute; right: 16px; top: 16px; font: 700 10.5px var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
  color: #f0b46a; border: 1px solid #f0b46a; border-radius: 99px; padding: 3px 10px;
}
.pt-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 8px; }
.pt-row b { font-size: 22px; color: #fff; }
.pt-bar { height: 8px; border-radius: 99px; background: rgba(231, 235, 243, .15); overflow: hidden; }
.pt-bar span { display: block; height: 100%; width: var(--w); background: var(--olive); border-radius: 99px; animation: crecer 1s ease .15s both; }
.pt-big { font: 700 32px var(--font-sans); color: #fff; margin: 2px 0 12px; letter-spacing: -.01em; }
.pt-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 1; }
.pt-chips span { background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 7px 10px; font-weight: 700; font-size: 14px; color: #fff; }
.pt-chips small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #f3c6cb; }

.pt-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.pt-kpis > div { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: 10px; padding: 10px 12px; }
.pt-kpis p { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.pt-kpis b { font-size: 19px; color: var(--navy); }

.pt-list { list-style: none; margin: 12px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.pt-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; font-size: 14px; }
.pt-list li + li { border-top: 1px solid var(--border); }
.pt-list em { font-style: normal; font-weight: 600; white-space: nowrap; }
.pt-list .st { font-weight: 700; }
.pt-letter {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 6px;
  background: var(--navy); color: #fff; font-size: 11px;
}
.pos { color: var(--verde) !important; }
.neg { color: #b4232f !important; }

.pt-story {
  font: 400 17px/1.55 var(--font-serif); color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--navy);
  border-radius: 10px; padding: 14px 16px; margin: 6px 0 14px;
}
.pt-story b { font-weight: 600; color: var(--navy); }
.be-track { position: relative; height: 12px; border-radius: 99px; background: var(--surface-2); }
.be-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--olive-dark), var(--olive)); animation: crecer 1.2s ease .2s both; }
.be-mark { position: absolute; left: var(--x); top: -5px; bottom: -5px; width: 3px; background: var(--navy); border-radius: 2px; }
.be-labels { position: relative; height: 18px; }
.be-label { position: absolute; left: var(--x); transform: translateX(-50%); font-size: 11.5px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.be-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

.portal figcaption {
  padding: 12px 16px 14px; border-top: 1px dashed var(--rule);
  font: italic 400 15px var(--font-serif); color: var(--navy);
}
.portal figcaption span { display: block; font: 400 11.5px var(--font-sans); color: var(--text-muted); margin-top: 2px; }

@media (max-width: 520px) {
  .pt-client { display: none; }
  .pt-tabs button { font-size: 11px; padding: 10px 3px; }
  .pt-screen { padding: 12px; }
  .pt-big { font-size: 26px; }
  .pt-chips span { font-size: 12.5px; padding: 6px 7px; }
}
.st { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--text-muted); white-space: nowrap; }
.st-ok { background: #e3f3ea; color: var(--verde); }
.st-run { background: #fbefdc; color: var(--naranja); }

/* ---------- Nosotros ---------- */
.statement {
  margin: 0 0 56px; max-width: 980px;
  font: 400 clamp(28px, 3.8vw, 48px)/1.18 var(--font-serif); color: var(--navy); letter-spacing: -.015em;
  padding-left: 28px; border-left: 4px solid var(--olive);
}
.statement em { color: var(--olive-dark); }
.about-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.about-text p { font-size: 17px; color: #3b3a33; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 1px solid var(--rule); }
.values li { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); }
.values code { font-size: 12px; color: var(--olive-dark); }
.values h3 { font: 600 20px var(--font-serif); color: var(--navy); margin: 4px 0 6px; }
.values p { font-size: 15px; color: var(--text-muted); margin: 0; }

/* ---------- 04 Equipo ---------- */
.team { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 40px; }
.member {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.avatar {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--navy); display: grid; place-items: center;
}
/* Diagonales que aparecen al pasar el mouse */
.avatar::before {
  content: ""; position: absolute; inset: -20%; background: var(--stripes);
  opacity: .12; transform: translateX(-30%); transition: transform .6s ease, opacity .3s;
}
.member:hover .avatar::before { transform: translateX(0); opacity: .22; }
.avatar span { position: relative; font: 400 46px var(--font-serif); color: var(--olive-light); letter-spacing: .02em; }
.avatar-alt { background: var(--navy-3); }
.member-body { padding: 18px 18px 20px; flex: 1; }
.member h3 { font: 600 19px/1.25 var(--font-serif); color: var(--navy); }
.role { color: var(--olive-dark); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 10px; }
.cred { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--rule); display: grid; gap: 4px; }
.cred li { color: var(--text-muted); font-size: 13.5px; line-height: 1.45; }
.cred code { font-size: 12.5px; color: var(--navy); }

/* ---------- 05 Contacto ---------- */
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 2px; }
.contact-list a, .contact-list span { font-size: 17px; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--olive-dark); }
.ci { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; }
.ci svg { width: 24px; height: 24px; fill: none; stroke: var(--olive-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.contact-form h3 { font: 600 22px var(--font-serif); color: var(--navy); }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 16px var(--font-sans); color: var(--text);
  padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg);
  width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--olive); background: #fff;
}
.contact-form .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--text-muted); margin: -4px 0 0; text-align: center; }
.form-note.ok { color: var(--verde); font-weight: 600; }
.botcheck { display: none; }

.map iframe { display: block; width: 100%; height: 340px; border: 0; filter: grayscale(.35); }

/* ---------- Pie ---------- */
.footer { background: var(--navy); color: #c9cfdb; padding: 48px 0 32px; border-top: 3px solid var(--olive); font-size: 14.5px; }
.footer-in { display: grid; gap: 20px; }
.footer a { color: var(--navy-text); text-decoration: none; }
.footer a:hover { color: var(--olive-light); }
.footer .copy { font-size: 13px; opacity: .7; margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Aparición suave al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .hero { padding: 56px 0 48px; }
  .board { padding: 10px 10px 14px; min-height: 0; }
  .board-switch button { font-size: 13px; padding: 9px 4px; }
  .bv-list li { font-size: 14px; }
  .bv-kpis b { font-size: 22px; }
  .section { padding: 72px 0; }
  .hero-actions .btn { width: 100%; }
  .profile-panel { padding: 24px 20px; }
  .contact-form { padding: 22px 18px; }
  .statement { padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .pp-list li, .board-view, .bv-chart span, .bv-progress span {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
}
