/* ============================================================
   Partner oficial de AdvisorERP + tarjetas 3D (19-nov-2026)
   Tarjetas 3D como las de la landing de advisorerp.cl, con los COLORES de Advisor & Consultant:
   azul marino y ámbar. Tarjetas en abanico con el contenido en capas.
   Todo va bajo .pa-* para no chocar con landing.css.
   ============================================================ */

.pa-section {
  --pa-lime: #f0b429;
  --pa-green: #d4940a;
  --pa-ink: #0a1a30;
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(240, 180, 41, 0.13), transparent 70%),
    linear-gradient(180deg, #0f2440 0%, var(--pa-ink) 100%);
  color: #fff;
}

.pa-section--plain {
  background:
    radial-gradient(60% 45% at 85% 0%, rgba(240, 180, 41, 0.09), transparent 70%),
    linear-gradient(180deg, var(--pa-ink) 0%, #0f2440 100%);
}

/* ---------- Encabezado del partner ---------- */

.pa-head {
  display: grid;
  gap: 28px;
  align-items: center;
}

.pa-logo {
  display: block;
  width: min(340px, 78%);
  height: auto;
  margin-left: -14px; /* el PNG trae margen negro propio */
  mix-blend-mode: lighten;
}

.pa-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  border: 1px solid rgba(240, 180, 41, 0.45);
  background: rgba(240, 180, 41, 0.1);
  padding: 8px 16px 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #ffe0a1;
}

.pa-badge i { color: var(--pa-lime); }

.pa-title {
  margin: 18px 0 0;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}

.pa-title-mark {
  background-image: linear-gradient(180deg, #ffd980 0%, var(--pa-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pa-lead {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: 1.06rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.82);
}

.pa-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.pa-btn:hover { color: #fff; border-color: rgba(240, 180, 41, 0.6); transform: translateY(-2px); }
.pa-btn:focus-visible { outline: 3px solid var(--pa-lime); outline-offset: 3px; }

.pa-btn--primary {
  border-color: transparent;
  background: linear-gradient(180deg, #f6c453 0%, var(--pa-green) 100%);
  color: #1a1204;
  box-shadow: 0 18px 34px -16px rgba(240, 180, 41, 0.75);
}

.pa-btn--primary:hover { color: #1a1204; }

/* ---------- Encabezado de la sección de soluciones ---------- */

.pa-section-head { max-width: 46rem; }

.pa-section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.pa-section-head p {
  margin: 14px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.78);
}

/* ---------- Tarjetas 3D ---------- */

.pa-cards {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid;
  gap: 18px;
}

.pa-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(240, 180, 41, 0.1), transparent 55%),
    linear-gradient(180deg, #17335a 0%, #0c1f3a 100%);
  padding: 28px 26px 26px;
  box-shadow:
    0 30px 60px -28px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d;
  transition:
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 300ms ease,
    box-shadow 600ms ease;
}

/* Resplandor detrás de la tarjeta: la despega del fondo. */
.pa-card::before {
  content: '';
  position: absolute;
  inset: 10% 8% -4%;
  border-radius: 28px;
  background: radial-gradient(closest-side, rgba(240, 180, 41, 0.28), transparent 100%);
  filter: blur(26px);
  opacity: 0.5;
  transform: translateZ(-60px);
  transition: opacity 500ms ease;
  pointer-events: none;
}

.pa-card-step {
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 180, 41, 0.3);
  transform: translateZ(14px);
}

.pa-card-icon {
  display: inline-flex;
  height: 54px;
  width: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(212, 148, 10, 0.4);
  background: rgba(212, 148, 10, 0.1);
  color: var(--pa-lime);
  font-size: 22px;
  box-shadow: 0 14px 26px -12px rgba(240, 180, 41, 0.55);
  transform: translateZ(56px);
}

.pa-card-title {
  margin: 22px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  transform: translateZ(38px);
}

.pa-card-text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.82);
  transform: translateZ(24px);
}

.pa-card-seals {
  margin: 20px 0 0;
  display: grid;
  gap: 8px;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  transform: translateZ(14px);
}

.pa-card-seals li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.9);
}

.pa-card-seals i { width: 16px; color: var(--pa-green); font-size: 13px; text-align: center; }

@media (min-width: 640px) and (max-width: 1023px) {
  .pa-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Abanico en perspectiva: solo en escritorio. Las laterales miran al centro, la central avanza. */
@media (min-width: 1024px) {
  .pa-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
  .pa-head-side { justify-self: end; text-align: right; }
  .pa-head-side .pa-logo { margin-left: auto; margin-right: -14px; width: min(420px, 100%); }

  .pa-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    perspective: 1500px;
    perspective-origin: 50% 40%;
  }

  .pa-cards > * { transform-style: preserve-3d; }

  .pa-cards > :nth-child(3n + 1) .pa-card {
    transform: rotateY(20deg) translateZ(-10px);
    transform-origin: right center;
  }

  .pa-cards > :nth-child(3n + 2) .pa-card { transform: translateZ(46px); }

  .pa-cards > :nth-child(3n) .pa-card {
    transform: rotateY(-20deg) translateZ(-10px);
    transform-origin: left center;
  }

  .pa-cards > * .pa-card:hover {
    transform: rotateY(0deg) translateZ(90px) translateY(-8px);
    border-color: rgba(212, 148, 10, 0.55);
    box-shadow:
      0 44px 80px -30px rgba(0, 0, 0, 0.95),
      0 0 0 1px rgba(240, 180, 41, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .pa-card:hover::before { opacity: 1; }

  /* Dos filas de tres: la de atrás no debe tapar a la que se adelanta. */
  .pa-cards--rows { row-gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .pa-card, .pa-card::before, .pa-btn { transition: none; }
}

/* ============================================================
   Un solo color de fondo para toda la página de inicio (19-nov-2026).
   Esta hoja solo se carga en index.html, así que no afecta a otras páginas.
   Azul marino de Advisor & Consultant; las secciones que eran claras pasan a texto claro.
   ============================================================ */

body { background: #0f2440; }

.erp-hero,
.demo-stage,
.pa-section,
.pa-section.pa-section--plain,
.integration-section,
.proof-section,
.tech-section,
.clients-section,
.landing-blog,
.final-cta {
  background: #0f2440;
  background-image: none;
}

/* Fotos y velos de fondo: fuera, para que el fondo sea uno solo. */
.erp-hero__media,
.erp-hero__overlay,
.erp-hero::after,
.proof-section::before,
.proof-section::after,
.final-cta::before,
.final-cta::after { display: none; }

/* Una línea tenue separa las secciones ahora que comparten fondo. */
.demo-stage,
.pa-section,
.integration-section,
.proof-section,
.tech-section,
.clients-section,
.landing-blog,
.final-cta { border-top: 1px solid rgba(255, 255, 255, 0.07); }

/* Títulos y textos de las secciones que eran claras. */
.demo-stage h2,
.integration-section h2,
.tech-section h2,
.landing-blog h2,
.final-cta h2,
.clients-section h2 { color: #fff; }

.demo-stage .section-head p,
.integration-copy > p,
.tech-section .section-head p,
.landing-blog .section-head p,
.landing-blog > .container > p { color: rgba(226, 232, 240, 0.78); }

/* Tarjetas de demo. */
.demo-stage .demo-card {
  background: linear-gradient(180deg, #17335a 0%, #0c1f3a 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7);
}
.demo-stage .demo-card__content h3 { color: #fff; }
.demo-stage .demo-card__content p,
.demo-stage .demo-card__content li { color: rgba(226, 232, 240, 0.82); }
.demo-stage .demo-card__content i { color: #f0b429; }

/* Lista de integración. */
.integration-section .integration-list div {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.integration-section .integration-list span { color: rgba(226, 232, 240, 0.9); }
.integration-section .integration-list i { color: #f0b429; background: rgba(240, 180, 41, 0.12); }

/* Carrusel de tecnologías: los logos necesitan su base clara; los bordes se funden con el fondo. */
.tech-section .tech-marquee::before { background: linear-gradient(90deg, #0f2440, transparent); }
.tech-section .tech-marquee::after { background: linear-gradient(90deg, transparent, #0f2440); }
.tech-section .tech-logo { background: #fff; border-color: rgba(255, 255, 255, 0.2); }

/* Artículos del blog. */
.landing-blog .card {
  background: linear-gradient(180deg, #17335a 0%, #0c1f3a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.landing-blog .card-title { color: #fff; }
.landing-blog .card-text,
.landing-blog .card .text-muted { color: rgba(226, 232, 240, 0.78) !important; }
.landing-blog .card-footer { border-top-color: rgba(255, 255, 255, 0.1); }
.landing-blog .card-footer a,
.landing-blog a.btn-link { color: #f0b429; }
.landing-blog .btn-outline-primary { color: #f0b429; border-color: rgba(240, 180, 41, 0.55); background: transparent; }
.landing-blog .btn-outline-primary:hover { color: #1a1204; background: #f0b429; border-color: #f0b429; }

/* ============================================================
   Portada: titular más contenido y panel con gráfico (19-nov-2026).
   El panel conserva la clase .erp-command para que siga el giro con el cursor.
   ============================================================ */

.erp-hero .erp-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.erp-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.3rem, 4.1vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

.erp-hero .erp-hero__lead { max-width: 54ch; font-size: 1.05rem; line-height: 1.65; }

.erp-command.hv {
  position: relative;
  overflow: visible;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(52, 210, 255, 0.12), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(240, 180, 41, 0.12), transparent 60%),
    linear-gradient(180deg, #17335a 0%, #0b1c35 100%);
  padding: 22px 22px 20px;
  box-shadow:
    0 50px 90px -40px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(52, 210, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
}

/* Halo detrás del panel. */
.erp-command.hv::before {
  content: '';
  position: absolute;
  inset: 12% 6% -6%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(52, 210, 255, 0.28), transparent 100%);
  filter: blur(40px);
  pointer-events: none;
}

.hv-top { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(226, 232, 240, 0.8); }
.hv-top strong { font-weight: 600; color: #fff; }
.hv-tag { margin-left: auto; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); padding: 3px 10px; font-size: 11px; color: rgba(226, 232, 240, 0.7); }

.hv-live { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: rgba(31, 185, 133, 0.14); padding: 4px 10px 4px 8px; font-size: 12px; font-weight: 600; color: #6ee7b7; }
.hv-live i { height: 7px; width: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: hvLive 2s ease-out infinite; }

.hv-figure { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.hv-figure span { display: block; font-size: 13px; color: rgba(226, 232, 240, 0.7); }
.hv-figure strong { display: block; margin-top: 2px; font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.hv-figure em { font-style: normal; border-radius: 999px; background: rgba(31, 185, 133, 0.14); padding: 6px 12px; font-size: 13px; font-weight: 600; color: #6ee7b7; }

.hv-chart { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.hv-grid line { stroke: rgba(255, 255, 255, 0.07); stroke-dasharray: 2 5; }
.hv-grid text, .hv-xl text { fill: rgba(203, 213, 225, 0.55); font-size: 10px; font-family: inherit; }
.hv-bars rect { fill: rgba(52, 210, 255, 0.13); }
.hv-prev { fill: none; stroke: #34d2ff; stroke-width: 1.6; stroke-dasharray: 4 6; opacity: 0.75; }
.hv-glow { fill: none; stroke: #f0b429; stroke-width: 7; opacity: 0.55; }
.hv-line { fill: none; stroke: url(#hvLine); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hvDraw 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
.hv-area { opacity: 0; animation: hvFade 1s ease 1.1s forwards; }
.hv-dots circle { fill: #0f2440; stroke: #f0b429; stroke-width: 1.6; opacity: 0; animation: hvFade 0.6s ease 1.5s forwards; }
.hv-scan { stroke: rgba(240, 180, 41, 0.45); stroke-dasharray: 3 4; }
.hv-end { fill: #ffe29a; stroke: #0f2440; stroke-width: 2; }
.hv-pulse { fill: rgba(240, 180, 41, 0.35); transform-origin: center; transform-box: fill-box; animation: hvPulse 2.2s ease-out infinite; }

.hv-legend { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: rgba(226, 232, 240, 0.7); }
.hv-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hv-legend span::before { content: ''; height: 3px; width: 18px; border-radius: 2px; background: #f0b429; }
.hv-legend .hv-legend-prev::before { background: repeating-linear-gradient(90deg, #34d2ff 0 4px, transparent 4px 8px); }
.hv-legend .hv-legend-vol::before { height: 10px; width: 8px; background: rgba(52, 210, 255, 0.35); }

.hv-tiles { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hv-tile { border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.045); padding: 12px 14px; }
.hv-tile span { display: block; font-size: 12px; color: rgba(226, 232, 240, 0.7); }
.hv-tile strong { display: block; margin-top: 2px; font-size: 1.45rem; font-weight: 700; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.hv-tile em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: #6ee7b7; }
.hv-tile--ring { display: flex; align-items: center; gap: 12px; }
.hv-tile--ring svg { height: 52px; width: 52px; flex: none; transform: rotate(-90deg); }
.hv-ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 6; }
.hv-ring { fill: none; stroke: #34d2ff; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(52, 210, 255, 0.7)); }
.hv-tile--flow div { margin-top: 10px; display: flex; gap: 8px; }
.hv-tile--flow i { display: inline-flex; height: 30px; width: 30px; align-items: center; justify-content: center; border-radius: 9px; background: rgba(240, 180, 41, 0.12); color: #f0b429; font-size: 13px; }

@keyframes hvDraw { to { stroke-dashoffset: 0; } }
@keyframes hvFade { to { opacity: 1; } }
@keyframes hvPulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes hvLive { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); } 100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }

@media (max-width: 1060px) {
  .erp-hero .erp-hero__grid { grid-template-columns: 1fr; }
  .erp-hero h1 { max-width: 20ch; }
}

@media (max-width: 560px) {
  .hv-tiles { grid-template-columns: 1fr 1fr; }
  .hv-tile--flow { grid-column: 1 / -1; }
  .hv-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-line { animation: none; stroke-dashoffset: 0; }
  .hv-area, .hv-dots circle { animation: none; opacity: 1; }
  .hv-pulse, .hv-live i { animation: none; }
}

/* ---------- Portada: profundidad 3D del panel (solo escritorio) ---------- */
.hv-stage { position: relative; }
.hv-float { display: none; }

@media (min-width: 1061px) {
  .erp-command.hv {
    transform: perspective(1500px) rotateX(calc(8deg + var(--tilt-x))) rotateY(calc(-16deg + var(--tilt-y)));
    transform-style: preserve-3d;
    transition: transform 260ms ease-out;
  }

  /* Placa trasera: un segundo plano detrás del panel que marca el espesor. */
  .erp-command.hv::after {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: -1;
    border-radius: 22px;
    border: 1px solid rgba(52, 210, 255, 0.22);
    background: linear-gradient(180deg, rgba(23, 51, 90, 0.55), rgba(11, 28, 53, 0.35));
    transform: translateZ(-70px);
    pointer-events: none;
  }

  .erp-command.hv::before { transform: translateZ(-120px); }

  /* Cada bloque flota a una altura distinta sobre el panel. */
  .erp-command.hv > * { transform-style: preserve-3d; }
  .hv-top { transform: translateZ(26px); }
  .hv-figure { transform: translateZ(64px); }
  .hv-stage { transform: translateZ(42px); transform-style: preserve-3d; }
  .hv-legend { transform: translateZ(26px); }
  .hv-tiles { transform: translateZ(34px); transform-style: preserve-3d; }
  .hv-tiles .hv-tile { box-shadow: 0 22px 30px -18px rgba(0, 0, 0, 0.75); background: rgba(23, 51, 90, 0.9); }
  .hv-tiles .hv-tile:nth-child(1) { transform: translateZ(30px); }
  .hv-tiles .hv-tile:nth-child(2) { transform: translateZ(58px); }
  .hv-tiles .hv-tile:nth-child(3) { transform: translateZ(30px); }

  .hv-chart { filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.45)); }

  /* Etiqueta del último mes: el plano más cercano al espectador. */
  .hv-float {
    position: absolute;
    top: 2%;
    right: 3%;
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    border-radius: 12px;
    border: 1px solid rgba(240, 180, 41, 0.5);
    background: rgba(12, 31, 58, 0.92);
    padding: 8px 12px;
    box-shadow: 0 24px 34px -14px rgba(0, 0, 0, 0.8), 0 0 22px -6px rgba(240, 180, 41, 0.55);
    transform: translateZ(110px);
    white-space: nowrap;
  }
  .hv-float span { font-size: 11px; color: rgba(226, 232, 240, 0.72); }
  .hv-float strong { font-size: 15px; font-weight: 700; color: #ffe29a; font-variant-numeric: tabular-nums; }
}

/* ============================================================
   Portada: gráfico de barras 3D real (19-nov-2026, versión renovada).
   Cada barra es un prisma hecho con tres caras CSS sobre un piso en perspectiva.
   Fila ámbar = este período; fila celeste = período anterior.
   ============================================================ */

.hv3-stage {
  height: 300px;
  margin-top: 6px;
  perspective: 1300px;
  perspective-origin: 50% 20%;
}

.hv3-scene {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 440px;
  height: 210px;
  margin: -105px 0 0 -220px;
  transform-style: preserve-3d;
  transform: rotateX(calc(61deg + var(--tilt-x, 0deg))) rotateZ(calc(-33deg + var(--tilt-y, 0deg) * 1.6));
  transition: transform 300ms ease-out;
}

.hv3-floor {
  position: absolute;
  inset: -14px -18px;
  border-radius: 14px;
  border: 1px solid rgba(52, 210, 255, 0.35);
  background:
    repeating-linear-gradient(0deg, rgba(52, 210, 255, 0.14) 0 1px, transparent 1px 33px),
    repeating-linear-gradient(90deg, rgba(52, 210, 255, 0.14) 0 1px, transparent 1px 33px),
    radial-gradient(70% 90% at 80% 40%, rgba(240, 180, 41, 0.22), transparent 70%),
    rgba(9, 24, 46, 0.85);
  box-shadow: 0 0 60px -10px rgba(52, 210, 255, 0.45), inset 0 0 40px rgba(52, 210, 255, 0.08);
}

.hv3-bar {
  position: absolute;
  width: 20px;
  height: 20px;
  transform-style: preserve-3d;
  transform-origin: 50% 50% 0;
  animation: hv3Grow 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 55ms + 150ms);
}

.hv3-bar--now { bottom: 44px; }
.hv3-bar--prev { bottom: 124px; }

.hv3-bar b { position: absolute; left: 0; bottom: 0; display: block; }
.hv3-bar .f { width: 100%; height: var(--h); transform-origin: 50% 100%; transform: rotateX(-90deg); }
.hv3-bar .s { width: 20px; height: var(--h); transform-origin: 0 100%; transform: rotateZ(-90deg) rotateX(-90deg); }
.hv3-bar .t { width: 100%; height: 100%; transform: translateZ(var(--h)); }

.hv3-bar--now .f { background: linear-gradient(180deg, #ffd980 0%, #e7a51a 45%, rgba(212, 148, 10, 0.4) 100%); }
.hv3-bar--now .s { background: linear-gradient(180deg, #c98a08 0%, #9a6a06 55%, rgba(120, 82, 5, 0.4) 100%); }
.hv3-bar--now .t { background: #fff0c2; box-shadow: 0 0 18px 4px rgba(240, 180, 41, 0.75); }

.hv3-bar--prev .f { background: linear-gradient(180deg, rgba(120, 228, 255, 0.75) 0%, rgba(52, 210, 255, 0.28) 100%); }
.hv3-bar--prev .s { background: linear-gradient(180deg, rgba(31, 150, 190, 0.7) 0%, rgba(31, 150, 190, 0.2) 100%); }
.hv3-bar--prev .t { background: rgba(190, 242, 255, 0.9); box-shadow: 0 0 14px 2px rgba(52, 210, 255, 0.6); }

/* El mes actual: más luz y un haz que sube. */
.hv3-bar--last .t { background: #fff; box-shadow: 0 0 26px 8px rgba(255, 217, 128, 0.95); }
.hv3-bar--last .f { background: linear-gradient(180deg, #fff3cf 0%, #f0b429 40%, rgba(212, 148, 10, 0.5) 100%); }

.hv3-label {
  position: absolute;
  left: 50%;
  bottom: 50%;
  display: inline-flex;
  width: max-content;
  flex-direction: column;
  gap: 1px;
  border-radius: 12px;
  border: 1px solid rgba(240, 180, 41, 0.55);
  background: rgba(12, 31, 58, 0.94);
  padding: 7px 12px;
  box-shadow: 0 0 24px -4px rgba(240, 180, 41, 0.6);
  transform-origin: 0 100%;
  /* Deshace el giro de la escena para que la etiqueta mire de frente. */
  transform: translateZ(calc(var(--h) + 22px)) rotateZ(33deg) rotateX(-61deg) translateX(-50%);
  animation: hvFade 500ms ease 1.2s both;
}
.hv3-label span { font-size: 11px; color: rgba(226, 232, 240, 0.72); }
.hv3-label strong { font-size: 15px; font-weight: 700; color: #ffe29a; font-variant-numeric: tabular-nums; }

.hv3-month {
  position: absolute;
  bottom: 12px;
  width: 28px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.75);
}

.hv-legend .hv-legend-now::before { height: 10px; width: 10px; border-radius: 3px; background: #f0b429; }
.hv-legend .hv-legend-prev::before { height: 10px; width: 10px; border-radius: 3px; background: #34d2ff; }

@keyframes hv3Grow { from { transform: scale3d(1, 1, 0.001); } to { transform: scale3d(1, 1, 1); } }

@media (min-width: 1061px) {
  /* El panel se endereza un poco: ahora la profundidad la pone el gráfico. */
  .erp-command.hv { transform: perspective(1500px) rotateX(calc(3deg + var(--tilt-x) * 0.4)) rotateY(calc(-7deg + var(--tilt-y) * 0.4)); }
  .hv3-stage { transform: translateZ(40px); }
}

@media (max-width: 560px) {
  .hv3-stage { height: 240px; }
  .hv3-scene { transform: scale(0.72) rotateX(61deg) rotateZ(-33deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hv3-bar, .hv3-label { animation: none; }
  .hv3-scene { transition: none; }
}

/* Ajustes del gráfico 3D: barras algo más bajas, filas más separadas y la cifra sin chocar con el gráfico. */
.hv3-bar { --hh: calc(var(--h) * 0.76); }
.hv3-bar .f, .hv3-bar .s { height: var(--hh); }
.hv3-bar .t { transform: translateZ(var(--hh)); }
.hv3-label { transform: translateZ(calc(var(--hh) + 22px)) rotateZ(33deg) rotateX(-61deg) translateX(-50%); }
.hv3-stage { height: 310px; }
.hv3-scene { top: 60%; height: 250px; margin-top: -125px; }
.hv3-bar--prev { bottom: 158px; }
.hv-figure { flex-direction: column; align-items: flex-start; gap: 8px; }
.hv-figure, .hv-top { position: relative; z-index: 2; }
/* La etiqueta del mes y la variación ya no se pisan con las barras ni con «Datos de demostración». */
.hv-tag { display: none; }
.hv3-scene { top: 64%; }
/* El escenario se aplana dentro del panel: así el piso y la fila de atrás no se cortan contra el fondo del panel. */
.erp-command.hv > .hv3-stage { transform-style: flat; height: 330px; }
.hv3-scene { top: 55%; height: 230px; margin-top: -115px; }
.hv3-bar--prev { bottom: 140px; }
.hv-legend { position: relative; z-index: 2; margin-top: 12px; }
/* Más aire entre el borde del panel y los textos de arriba (la perspectiva los acercaba al margen). */
.erp-command.hv { padding: 30px 30px 24px; }
@media (min-width: 1061px) {
  .erp-command.hv { padding: 34px 34px 26px; }
  .hv-top, .hv-figure { padding-left: 16px; padding-right: 10px; }
  .hv-top { padding-top: 4px; }
}

/* ============================================================
   Portada, columna de texto: tipografía de titulares y tarjetas al estilo AdvisorERP.
   Plus Jakarta Sans (la de la landing de AdvisorERP) para titulares; DM Sans sigue en el texto.
   ============================================================ */

.erp-hero h1,
.pa-title,
.pa-section-head h2,
.pa-card-title,
.demo-stage h2,
.integration-section h2,
.proof-section h2,
.tech-section h2,
.clients-section h2,
.landing-blog h2,
.final-cta h2,
.hv-figure strong {
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
}

.erp-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 4.3vw, 3.85rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.erp-hero .pa-badge { margin-bottom: 22px; }

.erp-hero .erp-hero__lead {
  max-width: 52ch;
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.86);
}

.erp-hero .pa-actions { margin-top: 30px; }
.erp-hero .pa-btn { padding: 15px 28px; font-size: 16px; }

/* Tres tarjetas chicas con el mismo lenguaje de las tarjetas 3D. */
.hero-cards {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(240, 180, 41, 0.12), transparent 55%),
    linear-gradient(180deg, #17335a 0%, #0c1f3a 100%);
  padding: 18px 18px 16px;
  box-shadow:
    0 26px 44px -26px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
}

.hero-card:hover { transform: translateY(-6px); border-color: rgba(240, 180, 41, 0.5); }

.hero-card i {
  display: inline-flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(212, 148, 10, 0.45);
  background: rgba(212, 148, 10, 0.12);
  color: #f0b429;
  font-size: 16px;
  box-shadow: 0 12px 22px -12px rgba(240, 180, 41, 0.6);
}

.hero-card strong {
  display: block;
  margin-top: 14px;
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.hero-card span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.78);
}

@media (max-width: 640px) {
  .hero-cards { grid-template-columns: 1fr; }
  .hero-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .hero-card i { grid-row: span 2; }
  .hero-card strong { margin-top: 0; }
  .erp-hero .pa-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { .hero-card { transition: none; } }
/* Los colores de marca también fuera de .pa-section (los usa la portada). */
:root { --pa-lime: #f0b429; --pa-green: #d4940a; --pa-ink: #0a1a30; }

/* ============================================================
   Todas las tarjetas de la página con el mismo estilo de las tarjetas 3D
   (19-nov-2026): superficie azul con brillo ámbar, borde tenue, radio 22px,
   y en escritorio el abanico en perspectiva que se endereza al pasar el cursor.
   ============================================================ */

.hero-card,
.demo-stage .demo-card,
.integration-section .integration-list div,
.proof-section .proof-metrics div,
.landing-blog .card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(240, 180, 41, 0.1), transparent 55%),
    linear-gradient(180deg, #17335a 0%, #0c1f3a 100%);
  box-shadow:
    0 30px 60px -28px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
}

/* Cajas de ícono iguales a las de las tarjetas 3D. */
.integration-section .integration-list i {
  height: 46px;
  width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(212, 148, 10, 0.4);
  background: rgba(212, 148, 10, 0.1);
  color: #f0b429;
  box-shadow: 0 14px 26px -12px rgba(240, 180, 41, 0.55);
}
.integration-section .integration-list div { grid-template-columns: 46px 1fr; padding: 16px 18px; gap: 16px; }
.integration-section .integration-list span { font-size: 15px; font-weight: 600; color: #fff; }

.proof-section .proof-metrics div { padding: 22px 24px; }
.proof-section .proof-metrics strong {
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background-image: linear-gradient(180deg, #ffd980 0%, #d4940a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof-section .proof-metrics span { font-size: 15px; color: rgba(226, 232, 240, 0.82); }

.demo-stage .demo-card__content { padding: 26px; }
.demo-stage .demo-card__content h3 { font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif; font-size: 22px; font-weight: 800; }
.demo-stage .demo-card .btn { border-radius: 999px; }

.landing-blog .card { overflow: hidden; }
.landing-blog .card-body { padding: 22px 22px 12px; }
.landing-blog .card-footer { padding: 14px 22px 20px; }
.landing-blog .card-title { font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif; font-size: 18px; font-weight: 800; line-height: 1.25; }
.landing-blog .btn-outline-primary { border-radius: 999px; }

.hero-card, .demo-stage .demo-card, .landing-blog .card,
.integration-section .integration-list div, .proof-section .proof-metrics div {
  transition:
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 300ms ease,
    box-shadow 600ms ease,
    opacity 0.65s ease;
}

.integration-section .integration-list div:hover,
.proof-section .proof-metrics div:hover { border-color: rgba(212, 148, 10, 0.55); transform: translateY(-4px); }

@media (min-width: 1024px) {
  /* Tríos en abanico: portada y blog. */
  .hero-cards,
  .landing-blog .row { perspective: 1500px; perspective-origin: 50% 40%; }

  .hero-cards > :nth-child(1) { transform: rotateY(18deg) translateZ(-8px); transform-origin: right center; }
  .hero-cards > :nth-child(2) { transform: translateZ(30px); }
  .hero-cards > :nth-child(3) { transform: rotateY(-18deg) translateZ(-8px); transform-origin: left center; }
  .hero-cards > .hero-card:hover { transform: rotateY(0deg) translateZ(60px) translateY(-6px); border-color: rgba(212, 148, 10, 0.55); }

  .landing-blog .row > * { transform-style: preserve-3d; }
  .landing-blog .row > :nth-child(3n + 1) .card { transform: rotateY(20deg) translateZ(-10px); transform-origin: right center; }
  .landing-blog .row > :nth-child(3n + 2) .card { transform: translateZ(46px); }
  .landing-blog .row > :nth-child(3n) .card { transform: rotateY(-20deg) translateZ(-10px); transform-origin: left center; }
  .landing-blog .row > * .card:hover {
    transform: rotateY(0deg) translateZ(90px) translateY(-8px);
    border-color: rgba(212, 148, 10, 0.55);
    box-shadow: 0 44px 80px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(240, 180, 41, 0.14);
  }

  /* Par de demos: cada una mira a la otra. */
  .demo-stage .demo-grid { perspective: 1700px; perspective-origin: 50% 40%; }
  .demo-stage .demo-grid > .demo-card:nth-child(1) { transform: rotateY(11deg); transform-origin: right center; }
  .demo-stage .demo-grid > .demo-card:nth-child(2) { transform: rotateY(-11deg); transform-origin: left center; }
  .demo-stage .demo-grid > .demo-card:hover {
    transform: rotateY(0deg) translateZ(50px) translateY(-8px);
    border-color: rgba(212, 148, 10, 0.55);
    box-shadow: 0 44px 80px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(240, 180, 41, 0.14);
  }

  /* Pilas verticales: un giro leve hacia el texto que acompañan. */
  .integration-section .integration-list,
  .proof-section .proof-metrics { perspective: 1400px; }
  .integration-section .integration-list div { transform: rotateY(-9deg); transform-origin: left center; }
  .proof-section .proof-metrics div.is-visible,
  .proof-section .proof-metrics div { transform: rotateY(-9deg); transform-origin: left center; }
  .integration-section .integration-list div:hover,
  .proof-section .proof-metrics div:hover { transform: rotateY(0deg) translateZ(30px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card, .demo-stage .demo-card, .landing-blog .card,
  .integration-section .integration-list div, .proof-section .proof-metrics div { transition: none; }
}

/* Demos: la ilustración se ve completa (antes se recortaba a 260px) y el velo inferior es más suave. */
.demo-stage .demo-card { grid-template-rows: auto 1fr; }
.demo-stage .demo-card__image img { display: block; width: 100%; height: auto; }
.demo-stage .demo-card__image::after { background: linear-gradient(180deg, transparent 72%, rgba(12, 31, 58, 0.92) 100%); }
.demo-stage .demo-card__badge { left: 22px; bottom: 16px; border-color: rgba(240, 180, 41, 0.45); background: rgba(12, 31, 58, 0.9); color: #ffe0a1; }
.demo-stage .demo-grid > .demo-card { grid-template-rows: auto 1fr; }
.demo-stage .demo-card .demo-card__image { height: auto; min-height: 0; max-height: none; aspect-ratio: 1200 / 540; }
.demo-stage .demo-card .demo-card__image img { height: 100%; object-fit: cover; object-position: top center; }
