/* Estas secciones se mantienen separadas de styles.css para respetar ajustes locales del banner. */
.hero-slider {
  position: relative;
  background: var(--blue);
}

.floating-whatsapp {
  position: fixed;
  right: clamp(18px, 2.5vw, 34px);
  bottom: clamp(18px, 2.5vw, 32px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 18px 12px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 28px;
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(7,32,61,.24);
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.floating-whatsapp svg { width: 28px; height: 28px; flex: 0 0 auto; }
.floating-whatsapp:hover { transform: translateY(-3px); background: var(--blue); }
.floating-whatsapp:focus-visible { outline-color: var(--white); box-shadow: 0 0 0 5px var(--purple),0 12px 30px rgba(7,32,61,.24); }
@media(max-width:760px){.floating-whatsapp{width:54px;height:54px;padding:12px;justify-content:center}.floating-whatsapp span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}}
@media(prefers-reduced-motion:reduce){.floating-whatsapp{transition:none}.floating-whatsapp:hover{transform:none}}
.hero-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hero-track::-webkit-scrollbar {
  display: none;
}
.hero-track:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: -3px;
}
.hero-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.slider-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  color: var(--white);
  pointer-events: none;
}
.slider-arrow {
  display: grid !important;
  place-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 1px solid rgba(7, 63, 124, 0.12);
  color: var(--blue);
  background: var(--white);
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(7, 32, 61, 0.18);
  pointer-events: auto;
}
.slider-arrow:first-child { left: clamp(14px, 2.4vw, 38px); }
.slider-arrow:last-child { right: clamp(14px, 2.4vw, 38px); }
.slider-arrow:hover {
  background: var(--purple);
  color: var(--white);
}
.slider-controls button:focus-visible {
  outline-color: var(--white);
}
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}
.slider-dot {
  width: 28px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
}
.slider-dot::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--white);
  border-radius: 50%;
  margin: auto;
}
.slider-dot.is-active::before {
  background: var(--white);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.book-slide {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  min-height: 590px;
}
/* Fondo fotográfico discreto, sin degradados ni recursos nuevos. */
.book-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/banner-transmision-1672.webp") center 62% / cover
    no-repeat;
  opacity: 0.23;
  pointer-events: none;
}
.book-slide-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 32px 70px;
}
.book-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -1.2px;
  font-weight: 600;
}
.book-copy h2 span {
  display: block;
}
.book-copy > p {
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
  max-width: 540px;
}
.book-copy .book-author {
  font-size: 16px;
  margin-top: 16px;
}
.book-copy .hero-actions {
  margin-top: 28px;
}
.book-copy .button:focus-visible,
.book-visual:focus-visible {
  outline-color: var(--white);
}
.book-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.book-visual img {
  width: 540px;
  height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(7, 63, 124, 0.55));
  transition: transform 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .book-visual:hover img {
    transform: translateY(-5px) rotate(-1deg);
  }
}
.book-visual::before,
.book-visual::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.book-visual::before {
  width: min(78%, 410px);
  background: rgba(84, 69, 149, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.book-visual::after {
  width: min(92%, 490px);
  border: 1px solid rgba(255, 255, 255, 0.13);
}
.book-slide[aria-hidden="false"] .book-visual img {
  animation: book-presentation 4.5s ease-in-out backwards;
}
.book-slide[aria-hidden="false"] .book-copy {
  animation: book-copy-arrive 0.65s ease-out both;
}
@keyframes book-presentation {
  0% {
    opacity: 0;
    transform: translateY(24px) rotate(-3deg);
  }
  20% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
  46% {
    opacity: 1;
    transform: translateY(-10px) rotate(-1deg);
  }
  74% {
    opacity: 1;
    transform: translateY(3px) rotate(0.5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}
@keyframes book-copy-arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section-container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.ecosystem {
  padding-top: 88px;
  padding-bottom: 88px;
  scroll-margin-top: 120px;
}
.section-intro h2 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}
.section-intro > p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  max-width: 690px;
}
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px;
}
.ecosystem-item {
  padding: 4px 28px 0;
  border-left: 1px solid rgba(7, 63, 124, 0.14);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ecosystem-item:first-child {
  padding-left: 0;
  border-left: 0;
}
.ecosystem-item:last-child {
  padding-right: 0;
}
.line-icon {
  width: 44px;
  height: 44px;
  color: var(--purple);
  margin-bottom: 22px;
}
.ecosystem-item h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.ecosystem-item p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 22px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--purple);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
  line-height: 1.45;
}
.text-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.ecosystem-item .text-link {
  margin-top: auto;
}
.featured-programs {
  background: var(--purple-soft);
  padding: 78px 0 88px;
  scroll-margin-top: 100px;
}
.programs-heading {
  display: flex;
  gap: 36px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 38px;
}
.all-programs {
  flex-shrink: 0;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.program-card {
  background: var(--white);
  border: 1px solid rgba(84, 69, 149, 0.13);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.program-art {
  background: var(--blue);
  color: var(--white);
  height: 152px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.program-card:nth-child(2) .program-art {
  background: var(--purple);
}
.program-art svg {
  width: 130px;
  height: 100px;
}
.program-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  flex: 1;
}
.program-card h3 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  font-weight: 600;
  margin: 0 0 18px;
}
.program-card p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 26px;
}
.program-card .text-link {
  margin-top: auto;
}
@media (min-width: 1700px) {
  .book-slide {
    min-height: 650px;
  }
  .book-slide-inner {
    padding-top: 85px;
    padding-bottom: 85px;
  }
}
@media (max-width: 1130px) {
  .book-slide {
    min-height: 560px;
  }
  .book-slide-inner {
    padding: 54px 28px 74px;
    gap: 24px;
  }
  .book-visual img {
    width: 360px;
    height: 360px;
  }
  .section-container {
    padding-left: 28px;
    padding-right: 28px;
  }
  .ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 0;
  }
  .ecosystem-item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .ecosystem-item:nth-child(2) {
    padding-right: 0;
  }
  .program-card-copy {
    padding: 22px;
  }
  .program-card h3 {
    font-size: 21px;
  }
}
@media (max-width: 760px) {
  .slider-controls {
    inset: 0;
  }
  .slider-arrow {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  .hero-copy {
    padding-bottom: 88px;
  }
  .book-slide {
    min-height: 0;
  }
  .book-slide-inner {
    grid-template-columns: 1fr;
    padding: 44px 24px 66px;
    gap: 12px;
  }
  .book-copy h2 {
    font-size: clamp(26px, 6.6vw, 40px);
    letter-spacing: -0.6px;
  }
  .book-copy > p {
    font-size: 16px;
  }
  .book-copy .book-author {
    margin-top: 12px;
  }
  .book-copy .hero-actions {
    margin-top: 22px;
  }
  .book-visual img {
    width: 260px;
    height: 260px;
  }
  .section-container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .ecosystem {
    padding-top: 58px;
    padding-bottom: 58px;
  }
  .section-intro > p {
    font-size: 16px;
  }
  .ecosystem-grid {
    margin-top: 36px;
  }
  .ecosystem-item {
    padding-left: 22px;
    padding-right: 22px;
  }
  .ecosystem-item h3 {
    font-size: 20px;
  }
  .ecosystem-item p {
    font-size: 15px;
  }
  .text-link {
    font-size: 14px;
    gap: 8px;
  }
  .featured-programs {
    padding: 56px 0 60px;
  }
  .programs-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
  }
  .program-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .program-card h3 {
    font-size: 23px;
  }
  .program-art {
    height: 130px;
  }
}
@media (max-width: 480px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ecosystem-item,
  .ecosystem-item:first-child,
  .ecosystem-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(7, 63, 124, 0.14);
    padding: 26px 0;
  }
  .ecosystem-item:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .ecosystem-item:last-child {
    padding-bottom: 0;
  }
  .line-icon {
    margin-bottom: 16px;
  }
  .ecosystem-item p {
    margin-bottom: 14px;
  }
}
@media (max-width: 390px) {
  .book-slide-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-track {
    scroll-behavior: auto;
  }
  .book-visual img {
    transition: none;
  }
  .book-slide[aria-hidden="false"] .book-visual img,
  .book-slide[aria-hidden="false"] .book-copy {
    animation: none;
  }
  .book-visual:hover img {
    transform: none;
  }
}

/* Programas: fotografía editorial y navegación compacta en móvil. */
.program-art { height: auto; aspect-ratio: 16 / 9; overflow: hidden; }
.program-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.program-card { transition: border-color .2s ease, transform .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .program-card:hover { transform: translateY(-4px); border-color: var(--purple); }
  .program-card:hover .program-art img { transform: scale(1.035); }
}
.collection-controls { display: none; }
.collection-controls button, .knowledge-controls button {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(84,69,149,.28); background: var(--white); color: var(--purple); font-size: 20px;
}
.collection-controls button:hover, .knowledge-controls button:hover { background: var(--purple); color: var(--white); }
.collection-controls button:disabled { opacity: .4; cursor: default; }
.collection-controls > div, .knowledge-controls > div { display: flex; gap: 8px; }
.solutions-section { padding-top: 88px; padding-bottom: 88px; scroll-margin-top: 100px; }
.solutions-layout { display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: start; }
.solutions-intro, .solution-examples { min-width: 0; }
.solutions-intro .section-intro p { font-size: 17px; }
.solutions-video { position: relative; aspect-ratio: 16/9; margin: 30px 0 0; overflow: hidden; border-radius: 8px; background: var(--blue); border: 1px solid rgba(7,63,124,.14); }
.solutions-video > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.solutions-video figcaption { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 3px; background: var(--blue); color: var(--white); padding: 16px 20px; }
.solutions-video figcaption strong { font-size: 17px; font-weight: 500; }
.solutions-video figcaption span { font-size: 13px; }
.solutions-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.solution-preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.solution-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(84,69,149,.18); border-radius: 8px; background: var(--white); min-width: 0; }
.solution-screen, .rac-preview { height: 170px; background: var(--purple-soft); }
.solution-screen { display: flex; align-items: center; padding: 16px 12px; }
.solution-screen img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.rac-preview { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; color: var(--purple); }
.rac-preview > span { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; border: 1px solid rgba(84,69,149,.38); border-radius: 50%; width: 52px; height: 52px; font-size: 26px; font-weight: 400; }
.rac-preview small { position: absolute; top: 62px; font-size: 10px; white-space: nowrap; color: var(--blue); }
.rac-preview > b { font-size: 16px; font-weight: 400; }
.solution-card-copy { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.solution-card h3 { font-size: 23px; letter-spacing: -.4px; margin: 0 0 12px; line-height: 1.2; font-weight: 600; }
.solution-card p { font-size: 15px; line-height: 1.65; margin: 0 0 18px; }
.solution-card .text-link { margin-top: auto; }
button.text-link { border: 0; background: transparent; text-align: left; }
.solutions-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 24px; }
.solutions-dialog { width: min(860px,calc(100% - 32px)); }
.solution-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 24px; }
.solution-catalog article { padding: 22px; background: var(--purple-soft); border-radius: 6px; }
.solution-catalog h3 { margin: 0 0 12px; font-size: 22px; }
.solution-catalog p { font-size: 15px; margin-bottom: 14px; }

/* Un único detalle acompaña a los siete pasos; no se apilan siete bloques. */
.knowledge-section { padding: 78px 0 66px; background: var(--purple-soft); scroll-margin-top: 100px; }
.knowledge-heading { max-width: 810px; }
.knowledge-steps { --cycle-progress: 0%; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); list-style: none; padding: 0; margin: 42px 0 32px; position: relative; }
.knowledge-steps::before, .knowledge-steps::after { content: ""; position: absolute; left: 7.15%; right: 7.15%; top: 32px; height: 1px; background: rgba(84,69,149,.25); }
.knowledge-steps::after { background: var(--purple); transform: scaleX(var(--cycle-scale,0)); transform-origin: left; transition: transform .5s ease; }
.knowledge-steps li { z-index: 1; min-width: 0; }
.knowledge-steps button { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; padding: 0 10px; border: 0; color: var(--blue); background: transparent; font-size: 15px; line-height: 1.3; }
.step-number { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(84,69,149,.3); background: var(--white); color: var(--purple); font-size: 22px; transition: background .2s ease, color .2s ease; }
.knowledge-steps button[aria-pressed="true"] .step-number { background: var(--purple); color: var(--white); border-color: var(--purple); box-shadow: 0 0 0 6px rgba(84,69,149,.08); }
.knowledge-steps button:hover .step-number { border-color: var(--purple); }
.knowledge-steps.is-entering li { animation: knowledge-arrive .5s ease both; animation-delay: calc(var(--step-order) * 100ms); }
@keyframes knowledge-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.knowledge-detail { display: grid; grid-template-columns: 140px 1fr auto; gap: 30px; align-items: center; background: var(--white); padding: 26px 34px; border: 1px solid rgba(84,69,149,.12); border-radius: 10px; min-height: 210px; }
.knowledge-orbit { position: relative; width: 140px; height: 140px; color: var(--purple); }
.knowledge-orbit > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; font-weight: 500; }
.knowledge-orbit svg { width: 100%; height: 100%; transform: rotate(var(--orbit-angle,0deg)); transition: transform .55s ease; }
.knowledge-copy { max-width: 720px; }
.knowledge-copy h3 { font-size: 26px; letter-spacing: -.4px; font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
.knowledge-copy p { font-size: 17px; line-height: 1.65; margin: 0; }
.knowledge-detail.is-changing .knowledge-copy { animation: knowledge-arrive .35s ease both; }
.knowledge-controls { display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--purple); font-size: 14px; white-space: nowrap; }
.knowledge-closing { margin: 24px 0 0; font-size: 15px; text-align: center; line-height: 1.6; }
@media (max-width: 1130px) {
  .solutions-layout { gap: 30px; grid-template-columns: 1fr 1.1fr; }
  .solution-preview-grid { gap: 12px; }
  .solution-card-copy { padding: 18px; }
  .solution-card h3 { font-size: 20px; }
  .solution-screen, .rac-preview { height: 145px; }
  .rac-preview { gap: 3px; padding: 8px; }
  .rac-preview > span { width: 43px; height: 43px; font-size: 23px; }
  .rac-preview small { top: 54px; font-size: 9px; }
  .rac-preview > b { font-size: 12px; }
  .knowledge-steps button { font-size: 13px; padding: 0 6px; }
  .knowledge-detail { grid-template-columns: 110px 1fr auto; gap: 22px; padding: 24px; }
  .knowledge-orbit { width: 110px; height: 110px; }
}
@media (max-width: 760px) {
  .program-grid, .solution-preview-grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%,360px); grid-template-columns: none; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 4px 0 8px; }
  .program-grid::-webkit-scrollbar, .solution-preview-grid::-webkit-scrollbar { display: none; }
  .program-card, .solution-card { scroll-snap-align: start; }
  .program-card h3 { font-size: 21px; }
  .program-card p { font-size: 15px; line-height: 1.55; margin-bottom: 18px; }
  .program-card-copy { padding: 20px; }
  .program-grid:focus-visible, .solution-preview-grid:focus-visible { outline-offset: 3px; }
  .collection-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--purple); }
  .solutions-section { padding-top: 52px; padding-bottom: 52px; }
  .solutions-layout { grid-template-columns: 1fr; gap: 26px; }
  .solutions-intro .section-intro p { font-size: 16px; }
  .solutions-video { margin-top: 22px; }
  .solutions-video figcaption { padding: 12px 16px; }
  .solutions-video figcaption strong { font-size: 15px; }
  .solutions-video figcaption span { font-size: 12px; }
  .solution-screen, .rac-preview { height: 135px; }
  .rac-preview { gap: 10px; }
  .rac-preview > span { width: 48px; height: 48px; }
  .rac-preview small { top: 58px; }
  .solution-card h3 { font-size: 22px; }
  .solution-card-copy { padding: 20px; }
  .solutions-actions { margin-top: 18px; gap: 12px; }
  .solutions-actions .button { width: 100%; }
  .solutions-actions > .text-link { margin: 0 auto; }
  .solution-examples .collection-controls { margin-top: 8px; }
  .solution-catalog { grid-template-columns: 1fr; gap: 12px; }
  .solution-catalog article { padding: 18px; }
  .knowledge-section { padding: 50px 0 44px; }
  .knowledge-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 100px; grid-template-columns: none; overflow-x: auto; scrollbar-width: thin; margin: 28px 0 24px; padding: 8px 0 12px; scroll-snap-type: x proximity; }
  .knowledge-steps li { scroll-snap-align: center; }
  .knowledge-steps::before, .knowledge-steps::after { left: 50px; right: auto; width: 600px; top: 36px; }
  .step-number { width: 56px; height: 56px; font-size: 20px; }
  .knowledge-steps button { font-size: 12px; gap: 12px; }
  .knowledge-detail { grid-template-columns: 64px 1fr; padding: 20px; gap: 14px; align-items: start; min-height: 0; }
  .knowledge-orbit { width: 64px; height: 64px; }
  .knowledge-orbit > span { font-size: 24px; }
  .knowledge-copy h3 { font-size: 21px; line-height: 1.25; margin-bottom: 10px; }
  .knowledge-copy p { font-size: 15px; line-height: 1.55; }
  .knowledge-controls { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; width: 100%; gap: 16px; margin-top: 4px; }
  .knowledge-closing { font-size: 14px; margin-top: 18px; }
  /* El ecosistema conserva sus cuatro áreas en una sola fila deslizable. */
  .ecosystem-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; gap: 20px; margin-top: 28px; padding-bottom: 12px; }
  .ecosystem-item, .ecosystem-item:first-child, .ecosystem-item:nth-child(3), .ecosystem-item:last-child { padding: 0 16px 0 0; border: 0; scroll-snap-align: start; }
  .ecosystem-item p { font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
  .ecosystem { padding-top: 48px; padding-bottom: 48px; }
}
@media (max-width: 360px) {
  .knowledge-detail { grid-template-columns: 1fr; }
  .knowledge-orbit { display: none; }
  .program-card-copy, .solution-card-copy { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .program-card, .program-art img, .knowledge-orbit svg, .knowledge-steps::after, .step-number { transition: none; }
  .knowledge-steps.is-entering li, .knowledge-detail.is-changing .knowledge-copy { animation: none; }
  .program-card:hover, .program-card:hover .program-art img { transform: none; }
}
@media (max-width: 760px) {
  .featured-programs { padding-top: 46px; padding-bottom: 44px; }
  .programs-heading { gap: 12px; margin-bottom: 20px; }
  .programs-heading .section-intro h2 { font-size: 28px; margin-bottom: 12px; }
  .programs-heading .section-intro p { font-size: 15px; line-height: 1.5; }
  .program-card h3 { font-size: 20px; margin-bottom: 12px; }
  .program-card-copy { padding: 18px; }
  .program-card p { font-size: 14px; margin-bottom: 14px; }
  .knowledge-heading h2 { font-size: 28px; line-height: 1.15; margin-bottom: 12px; }
  .knowledge-heading > p { font-size: 15px; line-height: 1.5; }
  .knowledge-section { padding-top: 44px; padding-bottom: 36px; }
  .knowledge-detail { padding: 18px; gap: 12px; grid-template-columns: 1fr; }
  .knowledge-orbit { display: none; }
  .knowledge-copy h3 { font-size: 20px; }
  .knowledge-copy p { font-size: 14px; line-height: 1.5; }
  .knowledge-steps { margin-top: 22px; margin-bottom: 20px; }
  .knowledge-closing { font-size: 13px; }
}
@media (max-width: 760px) {
  .solution-screen, .rac-preview { height: 120px; }
  .solution-card-copy { padding: 18px; }
  .solution-card p { font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
  .solution-examples .collection-controls > span { max-width: 60%; }
}

/* Presentación de Miguel Alba: composición editorial inspirada en la referencia. */
.expertise-section { position: relative; isolation: isolate; overflow: hidden; background: rgba(84,69,149,.055); scroll-margin-top: 100px; }
.expertise-words { position: absolute; inset: 30px 0; z-index: -1; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; overflow: hidden; color: rgba(84,69,149,.045); font-size: clamp(50px,6.8vw,104px); font-weight: 400; line-height: 1; letter-spacing: -3px; pointer-events: none; }
.expertise-words span { white-space: nowrap; }
.expertise-words span:nth-child(even) { transform: translateX(-80px); }
.expertise-layout { display: grid; grid-template-columns: 1.05fr .8fr 1.05fr; gap: 46px; align-items: center; padding-top: 68px; padding-bottom: 68px; }
.expertise-copy h2 { font-size: clamp(34px,3.2vw,46px); font-weight: 600; line-height: 1.1; letter-spacing: -.9px; color: var(--blue); margin: 0 0 24px; position:relative; padding-bottom:16px; }
.expertise-copy h2::after { content:""; display:block; width:58px; height:4px; margin-top:16px; border-radius:2px; background:var(--purple); }
.expertise-copy h3 { font-size: 26px; font-weight: 600; margin: 0 0 8px; }
.expertise-copy p { font-size: 16px; line-height: 1.65; margin: 0 0 16px; }
.expertise-copy .expertise-credentials { font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.expertise-portrait { position: relative; isolation: isolate; margin: 0; padding: 14px 0; justify-self: center; width: 100%; max-width: 264px; }
.expertise-portrait img { display: block; width: 100%; height: auto; border-radius: 18px 18px 76px 18px; box-shadow: 0 18px 34px rgba(0,59,115,.16); }
.expertise-portrait::before { content: ""; position: absolute; inset: 24px -18px -18px 18px; background: var(--purple-soft); border-radius: 18px 18px 76px 18px; z-index: -1; }
.expertise-options { display: grid; gap: 26px; }
.expertise-option { display: grid; grid-template-columns: 42px 1fr; gap: 18px; align-items: start; }
.expertise-option > svg { width: 42px; height: 42px; color: var(--purple); margin-top: 2px; }
.expertise-option h3 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.25px; margin: 0 0 10px; }
.expertise-option p { font-size: 15px; line-height: 1.55; margin: 0 0 10px; }
@media (max-width: 1130px) {
  .expertise-layout { grid-template-columns: 1fr .7fr 1fr; gap: 30px; padding-top: 54px; padding-bottom: 54px; }
  .expertise-copy h2 { font-size: 30px; }
  .expertise-copy p { font-size: 15px; }
  .expertise-option { grid-template-columns: 32px 1fr; gap: 12px; }
  .expertise-option > svg { width: 32px; height: 32px; }
  .expertise-option h3 { font-size: 20px; }
  .expertise-option p { font-size: 14px; }
}
@media (max-width: 900px) {
  .expertise-layout { grid-template-columns: 1fr 220px; gap: 30px 42px; }
  .expertise-options { grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
  .expertise-option { grid-template-columns: 1fr; gap: 12px; }
  .expertise-portrait { max-width: 200px; }
}
@media (max-width: 600px) {
  .expertise-layout { grid-template-columns: 1fr 100px; gap: 20px; padding-top: 44px; padding-bottom: 44px; align-items: start; }
  .expertise-copy { display: contents; }
  .expertise-copy h2 { grid-column: 1 / -1; font-size: 29px; margin: 0; }
  .expertise-copy h3 { font-size: 24px; margin: 0; align-self: end; }
  .expertise-copy .expertise-credentials { grid-column: 1; font-size: 13px; margin: -12px 0 0; }
  .expertise-copy > p:not(.expertise-credentials), .expertise-copy > a { grid-column: 1 / -1; margin: 0; }
  .expertise-copy > p:not(.expertise-credentials) { font-size: 15px; line-height: 1.55; }
  .expertise-portrait { grid-column: 2; grid-row: 2 / 4; width: 90px; padding: 6px 0; }
  .expertise-portrait::before { inset: 0 -6px; }
  .expertise-options { grid-template-columns: 1fr; gap: 0; margin-top: 4px; }
  .expertise-option { grid-template-columns: 34px 1fr; gap: 14px; border-top: 1px solid rgba(84,69,149,.14); padding: 18px 0; }
  .expertise-option:last-child { padding-bottom: 0; }
  .expertise-option h3 { font-size: 20px; margin-bottom: 7px; }
  .expertise-option p { font-size: 14px; line-height: 1.5; margin-bottom: 6px; }
  .expertise-words { font-size: 64px; gap: 38px; justify-content: flex-start; }
}

@media (max-width: 600px) {
  .expertise-layout { gap: 16px 20px; padding-top: 36px; padding-bottom: 36px; }
  .expertise-copy h2 { font-size: 29px; }
  .expertise-copy .expertise-credentials { margin-top: -8px; }
  .expertise-portrait { width: 80px; }
  .expertise-option { padding: 16px 0; }
}

/* Aprende con MALBA: portadas locales, reproductor sólo bajo demanda. */
.learn-section { position: relative; isolation: isolate; background: var(--blue); color: var(--white); padding: 62px 0; scroll-margin-top: 100px; }
.learn-background { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.learn-background img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.learn-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7,63,124,.9); pointer-events: none; }
.learn-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 46px; align-items: center; }
.learn-intro h2 { font-size: clamp(34px,3.3vw,46px); font-weight: 400; line-height: 1.08; letter-spacing: -.9px; margin: 0 0 20px; }
.learn-intro h2 span { display: block; }
.learn-intro p { margin: 0 0 24px; font-size: 16px; line-height: 1.6; }
.learn-intro .button { font-size: 14px; padding: 0 18px; }
.learn-collection { min-width: 0; }
.learn-video-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 2.65); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 0 12px; }
.learn-video-track::-webkit-scrollbar { display: none; }
.learn-video-track:focus-visible { outline-color: var(--white); outline-offset: 4px; }
.learn-video-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; scroll-snap-align: start; }
.learn-video-cover { position: relative; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; border-radius: 7px; overflow: hidden; background: var(--purple); }
.learn-video-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.learn-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 48px; height: 48px; background: var(--purple); color: var(--white); border: 1px solid rgba(255,255,255,.8); border-radius: 50%; transition: background .2s ease; }
.learn-play svg { width: 25px; height: 25px; }
.learn-video-card h3 { margin: 18px 0 16px; font-size: 17px; font-weight: 500; line-height: 1.35; flex: 1; }
.learn-video-link { color: var(--white); background: transparent; border: 0; padding: 8px 0; display: inline-flex; gap: 14px; font-size: 14px; font-weight: 500; }
.learn-video-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.learn-section button:focus-visible, .learn-section a:focus-visible { outline-color: var(--white); }
.learn-collection .collection-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; color: var(--white); font-size: 13px; }
.learn-collection .collection-controls button { background: transparent; border-color: rgba(255,255,255,.45); color: var(--white); }
.learn-collection .collection-controls button:hover:not(:disabled) { background: var(--purple); }
.youtube-dialog { width: min(1000px,calc(100% - 40px)); max-width: 1000px; max-height: calc(100dvh - 40px); padding: 24px; }
.youtube-dialog .dialog-heading { align-items: flex-start; margin-bottom: 20px; gap: 20px; }
.youtube-dialog .dialog-heading h2 { font-size: 22px; line-height: 1.3; max-width: 800px; }
.youtube-player { aspect-ratio: 16/9; width: 100%; background: var(--blue); border-radius: 5px; overflow: hidden; }
.youtube-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.youtube-dialog .youtube-fallback { margin: 12px 0 0; text-align: right; }
body:has(#video-dialog[open]) { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .learn-video-cover:hover img { transform: scale(1.03); }
  .learn-video-cover:hover .learn-play { background: var(--blue); }
}
@media (max-width: 1130px) {
  .learn-layout { grid-template-columns: 230px minmax(0,1fr); gap: 30px; }
  .learn-video-track { grid-auto-columns: calc((100% - 20px) / 1.8); }
}
@media (max-width: 760px) {
  .learn-section { padding: 44px 0 40px; }
  .learn-layout { grid-template-columns: 1fr; gap: 26px; }
  .learn-intro h2 { font-size: 32px; margin-bottom: 12px; }
  .learn-intro h2 span { display: inline; }
  .learn-intro p { font-size: 15px; line-height: 1.5; margin-bottom: 18px; max-width: 440px; }
  .learn-video-track { grid-auto-columns: min(84%,360px); gap: 16px; }
  .learn-video-card h3 { font-size: 16px; margin-top: 14px; margin-bottom: 10px; }
  .learn-play { width: 42px; height: 42px; }
  .learn-collection .collection-controls { font-size: 12px; gap: 14px; }
  .learn-collection .collection-controls > span { max-width: 60%; }
  .youtube-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 16px; }
  .youtube-dialog .dialog-heading { gap: 12px; margin-bottom: 16px; }
  .youtube-dialog .dialog-heading h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .learn-video-cover img, .learn-play { transition: none; }
  .learn-video-cover:hover img { transform: none; }
}
.learn-video-link { position: relative; }
@media (max-height: 500px) and (min-width: 600px) {
  .youtube-dialog { padding: 16px; }
  .youtube-dialog .dialog-heading { margin-bottom: 12px; }
  .youtube-dialog .dialog-heading h2 { font-size: 18px; }
  .youtube-player { height: calc(100dvh - 190px); aspect-ratio: auto; }
  .youtube-dialog .youtube-fallback { margin-top: 6px; }
}

/* Tarjetas de video con fondo blanco y jerarquía propia dentro de la franja azul. */
.learn-video-card { background: var(--white); color: var(--blue); border: 1px solid rgba(255,255,255,.35); border-radius: 8px; overflow: hidden; }
.learn-video-cover { border-radius: 0; flex-shrink: 0; }
.learn-video-card h3 { margin: 0; padding: 20px 20px 14px; font-size: 17px; line-height: 1.4; }
.learn-video-link { color: var(--purple); margin: 0 20px 14px; padding: 8px 0; }
.learn-video-card button:focus-visible { outline-color: var(--purple); outline-offset: -4px; }
.learn-video-card .learn-video-link:focus-visible { outline-offset: 3px; }
.learn-video-cover:focus-visible .learn-play { box-shadow: 0 0 0 4px var(--white); }

.site-footer { background: var(--white); color: var(--blue); border-top: 1px solid rgba(84,69,149,.14); padding-top: 56px; }
.footer-top { display: grid; grid-template-columns: 1.25fr 1fr .85fr 1.1fr; gap: 44px; padding-bottom: 44px; }
.footer-brand, .footer-navigation, .footer-contact { min-width: 0; }
.footer-brand img { width: 230px; height: auto; }
.footer-brand p { font-size: 15px; line-height: 1.6; max-width: 280px; margin: 22px 0 18px; }
.footer-socials { display: flex; gap: 12px; flex-wrap: wrap; color: var(--purple); font-size: 14px; font-weight: 600; }
.footer-socials a { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: var(--blue); transition: background .2s ease; }
.footer-socials a:hover { background: var(--purple); }
.footer-socials a:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
.footer-socials a img { width: 28px; height: auto; display: block; }
.footer-socials a img[src*="youtube"] { width: 40px; }
.site-footer h2 { font-size: 19px; font-weight: 600; letter-spacing: -.2px; margin: 0 0 20px; }
.footer-navigation ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 14px; }
.footer-navigation a { font-size: 15px; line-height: 1.4; display: inline-block; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-contact p { font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.footer-contact .button { font-size: 14px; padding: 0 18px; white-space: normal; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid rgba(7,63,124,.14); padding: 22px 0; font-size: 13px; line-height: 1.5; }
.footer-bottom p { margin: 0; }
.footer-bottom > a { color: var(--purple); white-space: nowrap; }
@media (max-width: 1130px) {
  .footer-top { gap: 28px; grid-template-columns: 1.15fr 1fr .85fr; }
  .footer-contact { grid-column: 1 / -1; display: flex; gap: 24px; align-items: center; padding-top: 24px; border-top: 1px solid rgba(84,69,149,.14); }
  .footer-contact h2 { margin: 0; }
  .footer-contact p { margin: 0; flex: 1; }
  .footer-contact .button { flex-shrink: 0; }
}
@media (max-width: 760px) {
  .learn-video-card h3 { font-size: 16px; padding: 18px 18px 10px; }
  .learn-video-link { margin: 0 18px 12px; }
  .site-footer { padding-top: 40px; }
  .footer-top { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 20px; padding-bottom: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { width: 210px; }
  .footer-brand p { max-width: 430px; margin: 18px 0 16px; font-size: 14px; }
  .site-footer h2 { font-size: 17px; margin-bottom: 16px; }
  .footer-navigation ul { gap: 6px; }
  .footer-navigation a { font-size: 14px; padding: 6px 0; }
  .footer-contact { display: grid; grid-template-columns: 1fr; gap: 10px; padding-top: 22px; }
  .footer-contact h2 { margin: 0; }
  .footer-contact p { font-size: 14px; }
  .footer-contact .button { margin-top: 6px; width: fit-content; max-width: 100%; }
  .footer-bottom { font-size: 12px; gap: 14px; flex-direction: column; align-items: flex-start; padding: 20px 0; }
}
/* Home hero: transparent 3D electrical infrastructure in MALBA colors. */
.hero-with-showcase .hero-copy { display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: 54px; }
.hero-with-showcase .hero-copy-inner { min-width: 0; position: relative; z-index: 1; }
.hero-with-showcase #hero-title { font-size: clamp(38px,4.05vw,60px); }
.hero-with-showcase .hero-actions { gap: 12px; }
.hero-with-showcase .hero-actions .button { font-size: 14px; padding: 0 19px; gap: 14px; }
.hero-showcase-3d { position: relative; width: 100%; max-width: 560px; height: 470px; justify-self: end; filter: drop-shadow(0 18px 18px rgba(0,0,0,.18)); pointer-events: none; }
.hero-showcase-3d picture { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; }
.hero-showcase-3d img { display: block; width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1130px) and (min-width: 761px) {
  .hero-with-showcase .hero-copy { gap: 32px; grid-template-columns: 1.2fr 1fr; }
  .hero-with-showcase #hero-title { font-size: clamp(32px,4.05vw,46px); }
  .hero-showcase-3d { height: 390px; }
  .hero-with-showcase .hero-actions .button { font-size: 13px; padding: 0 14px; gap: 8px; min-height: 48px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  .hero-showcase-3d { height: 340px; }
  .hero-with-showcase .hero-copy { gap: 24px; }
  .hero-with-showcase .hero-copy p { font-size: 17px; }
}
@media (max-width: 760px) {
  .hero-with-showcase .hero-copy { grid-template-columns: 1fr; gap: 20px; padding-top: 38px; padding-bottom: 76px; }
  .hero-with-showcase #hero-title { font-size: clamp(26px,7vw,48px); }
  .hero-with-showcase .hero-actions { margin-top: 24px; }
  .hero-with-showcase .hero-actions .button { font-size: 13px; padding: 0 14px; gap: 10px; min-height: 46px; }
  .hero-showcase-3d { height: 240px; max-width: 390px; justify-self: center; }
}
@media (max-width: 359px) {
  .hero-showcase-3d { height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-assembly-part { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Quiet architectural texture supports the model without duplicating its silhouette. */
.hero-with-showcase { background: var(--blue); }
.hero-with-showcase::after { background: rgba(7,63,124,.74); }
.hero-with-showcase:hover::after, .hero-with-showcase:focus-within::after { background: rgba(7,63,124,.68); }
.hero-visual-architecture img { object-position: center; }
/* Three aligned slices reuse one transparent image and assemble seamlessly. */
.hero-part-base { clip-path: inset(83% 0 0); }
.hero-part-module { clip-path: inset(49.9% 0 16.9%); }
.hero-part-tower { clip-path: inset(0 0 50%); }
.hero-assembly-part { visibility: hidden; }
.hero-assembly-pending .hero-assembly-rest, .is-assembling .hero-assembly-rest { opacity: 0; }
.is-assembling .hero-assembly-part { visibility: visible; }
.is-assembling .hero-assembly-part { animation: malba-assembly-drop .65s cubic-bezier(.2,.75,.35,1) both; }
.is-assembling .hero-part-module { animation-delay: .65s; }
.is-assembling .hero-part-tower { animation-delay: 1.3s; }
@keyframes malba-assembly-drop {
  0% { opacity: 0; transform: translateY(-480px); }
  15% { opacity: 1; }
  72% { opacity: 1; transform: translateY(0); }
  86% { opacity: 1; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-assembly-pending .hero-assembly-rest, .is-assembling .hero-assembly-rest { opacity: 1; }
  .is-assembling .hero-assembly-part { animation: none; visibility: hidden; }
}

/* Matching front/back orbital arcs wrap around the model in depth. */
.hero-orbit { position: absolute; left: -3%; width: 106%; top: 42%; height: 38%; pointer-events: none; }
.hero-orbit svg { width: 100%; height: 100%; overflow: visible; }
.hero-orbit-back { z-index: 0; clip-path: inset(-25% -10% 50%); }
.hero-orbit-front { z-index: 2; clip-path: inset(50% -10% -25%); }
.hero-orbit-track { stroke: #a79bc8; stroke-width: 2; opacity: .55; }
.hero-orbit-beam { stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 130 870; filter: drop-shadow(0 0 5px rgba(255,255,255,.7)); animation: malba-orbit 6s linear infinite; }
.hero-orbit-spark { stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1 999; filter: drop-shadow(0 0 7px rgba(255,255,255,.9)); animation: malba-orbit 6s linear infinite; }
@keyframes malba-orbit { to { stroke-dashoffset: -1000; } }
.hero-assembly-pending .hero-orbit, .is-assembling .hero-orbit { visibility: hidden; }
.hero-slide[aria-hidden="true"] .hero-orbit ellipse { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero-orbit-beam, .hero-orbit-spark { animation: none; } }

/* MALBA banner SVG and accessible assistant */
.slider-arrow svg{display:block!important;width:24px!important;height:24px!important;visibility:visible!important;opacity:1!important;color:#073F7C!important;pointer-events:none}.slider-arrow:hover svg{color:#fff!important}.slider-arrow:active{transform:translateY(-50%) scale(.95)}.slider-arrow:focus-visible{outline:3px solid #5D4594!important;outline-offset:4px}

/* MALBA PMC · Energy Assistant / visible across public pages */
.malba-assistant{
  position:fixed;z-index:45;
  right:max(14px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));
  display:flex;flex-direction:column;align-items:flex-end;gap:9px;
  max-width:calc(100vw - 28px);font-family:Outfit,Arial,sans-serif;
  color:#003B73;
}
.malba-assistant [hidden]{display:none!important}
.malba-assistant-launcher{display:flex;align-items:center;justify-content:flex-end;gap:5px}
.malba-assistant-bubble{
  position:relative;max-width:220px;border:1px solid #dfe5ef;
  padding:12px 17px;border-radius:14px 14px 5px 14px;
  background:#fff;color:#003B73;
  box-shadow:0 5px 18px rgba(0,34,75,.10);
  font-family:inherit;font-weight:600;font-size:14px;
  line-height:1.35;cursor:pointer;text-align:left;
}
.malba-assistant-bubble::after{
  content:'';position:absolute;right:-6px;top:calc(50% - 5px);
  width:9px;height:9px;border-top:1px solid #dfe5ef;border-right:1px solid #dfe5ef;
  background:#fff;transform:rotate(45deg);
}
.malba-assistant-bubble:hover{border-color:#5D4594}
.malba-assistant.is-open .malba-assistant-bubble{display:none}
.malba-assistant-trigger{
  border:0;padding:0;background:transparent;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  width:96px;height:104px;
  filter:drop-shadow(0 5px 8px rgba(0,32,76,.16));
  animation:malba-float 4s ease-in-out infinite;
}
.malba-assistant-robot{width:100%;height:100%;object-fit:contain;display:block}
.malba-assistant-panel{
  width:min(370px,calc(100vw - 28px));max-height:min(565px,calc(100dvh - 155px));
  overflow-y:auto;overscroll-behavior:contain;
  background:#fff;border:1px solid #dbe3ed;border-radius:16px;
  box-shadow:0 12px 36px rgba(0,32,76,.18);
  color:#003B73;
}
.malba-assistant-head{
  display:flex;align-items:center;gap:11px;
  background:#003B73;color:#fff;padding:16px 18px;
}
.malba-assistant-avatar{
  width:44px;height:44px;object-fit:contain;flex-shrink:0;
  background:#fff;border-radius:10px;padding:2px;
}
.malba-assistant-headline{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.malba-assistant-headline strong{font-size:17px;line-height:1.2;font-weight:700}
.malba-assistant-headline span{color:#dbe7f2;font-size:12px}
.malba-assistant-close{
  border:0;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;
  width:32px;height:32px;min-width:32px;border-radius:8px;
  font-size:24px;line-height:1;display:grid;place-items:center;
}
.malba-assistant-close:hover{background:rgba(255,255,255,.23)}
.malba-assistant-intro{
  font-size:15px;line-height:1.55;font-weight:500;
  padding:20px 20px 7px;margin:0!important;
}
.malba-assistant-label{
  padding:0 20px;margin:12px 0 10px!important;
  color:#64758b;font-size:12px!important;font-weight:600;
}
.malba-assistant-quicklinks{display:grid;gap:8px;padding:0 20px}
.malba-assistant-question{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  border:1px solid #e0e6ee;border-radius:9px;
  color:#003B73!important;background:#fff;text-decoration:none!important;
  padding:12px 13px;min-height:44px;font-size:13px;
  line-height:1.4;font-weight:500;transition:background .16s,border-color .16s;
}
.malba-assistant-question:hover{background:#f6f5fa;border-color:#b8aad4}
.malba-assistant-chevron{
  font-size:23px;line-height:12px;color:#5D4594;flex-shrink:0;font-weight:400;
}
.malba-assistant-link{
  display:flex;align-items:center;justify-content:center;gap:8px;
  margin:18px 20px 20px;padding:13px 16px;
  min-height:47px;border-radius:9px;
  background:#5D4594;color:#fff!important;
  font-size:14px;font-weight:600;text-decoration:none!important;
  text-align:center;transition:background .16s;
}
.malba-assistant-link:hover{background:#003B73}
.malba-assistant-wa-icon{font-size:17px}
.malba-assistant-bubble:focus-visible,
.malba-assistant-trigger:focus-visible,
.malba-assistant-question:focus-visible,
.malba-assistant-close:focus-visible,
.malba-assistant-link:focus-visible{
  outline:3px solid #5D4594;outline-offset:3px;
}
@keyframes malba-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(max-width:760px){
  .malba-assistant{bottom:calc(74px + env(safe-area-inset-bottom));right:max(8px,env(safe-area-inset-right))}
  .malba-assistant-trigger{width:73px;height:80px}
  .malba-assistant-bubble{padding:10px 13px;max-width:174px;font-size:12px}
  .malba-assistant-panel{max-height:calc(100dvh - 195px)}
}
@media(max-height:540px){
  .malba-assistant-panel{max-height:calc(100dvh - 115px)}
}
@media(prefers-reduced-motion:reduce){
  .malba-assistant-trigger{animation:none}
  .malba-assistant-question,.malba-assistant-link{transition:none}
}
