:root {
  --navy-950: #03163f;
  --navy-900: #071f55;
  --navy-800: #0a2f78;
  --blue-600: #075ce6;
  --cyan-500: #00aee9;
  --teal-500: #05b8b3;
  --green-500: #45b82f;
  --ink: #10244f;
  --muted: #63718f;
  --line: rgba(20, 68, 132, 0.14);
  --surface: rgba(255, 255, 255, 0.93);
  --surface-soft: rgba(247, 251, 255, 0.84);
  --shadow: 0 28px 70px rgba(20, 48, 93, 0.17);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Portada */
.landing-page {
  overflow: hidden;
  background: #f8fafc;
}

.landing {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}

.landing__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

.landing__avatar-link {
  position: absolute;
  right: clamp(18px, 3.5vw, 72px);
  bottom: 0;
  z-index: 2;
  display: block;
  height: min(88vh, 980px);
  max-width: 45vw;
  color: var(--navy-900);
  text-decoration: none;
  cursor: pointer;
  animation: landing-appear 900ms ease-out both;
}

.landing__avatar {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 18px 28px rgba(13, 42, 78, 0.14));
  transition: transform 260ms ease, filter 260ms ease;
  user-select: none;
}

.landing__avatar-link:hover .landing__avatar,
.landing__avatar-link:focus-visible .landing__avatar {
  transform: translateY(-7px) scale(1.008);
  filter: drop-shadow(0 26px 36px rgba(0, 128, 198, 0.22));
}

.landing__avatar-link:focus-visible {
  outline: 3px solid rgba(0, 174, 233, 0.65);
  outline-offset: 8px;
  border-radius: 28px;
}

.landing__access {
  position: absolute;
  right: 4%;
  bottom: clamp(18px, 3.8vh, 38px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(0, 119, 197, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(18, 52, 101, 0.1);
  backdrop-filter: blur(10px);
  font-size: clamp(11px, 0.82vw, 14px);
  font-weight: 600;
  letter-spacing: 0.025em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
  white-space: nowrap;
}

.landing__avatar-link:hover .landing__access,
.landing__avatar-link:focus-visible .landing__access {
  opacity: 1;
  transform: translateY(0);
}

.landing__access-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 5px rgba(5, 184, 179, 0.13);
}

@keyframes landing-appear {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pantalla AIO */
.aio-page {
  overflow: hidden;
  background: #f4f8fd;
}

.aio-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 24% 46%, rgba(77, 206, 237, 0.12), transparent 28%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 253, 0.96));
}

.aio-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/fondo-web-1600.webp") center / cover no-repeat;
  opacity: 0.34;
  filter: saturate(0.9);
}

.aio-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(247, 251, 255, 0.18), rgba(247, 251, 255, 0.64) 48%, rgba(247, 251, 255, 0.92));
}

.aio-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 clamp(26px, 4vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(105deg, #2D3D4D 0%, #344859 48%, #405466 100%);
  box-shadow: 0 8px 24px rgba(13, 29, 45, 0.16);
}

.aio-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0.2));
  pointer-events: none;
}

.aio-header__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  color: #ffffff;
}

.aio-header__primary {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.aio-header__caption {
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

.aio-brand {
  justify-self: start;
  align-items: flex-start;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.aio-brand__primary {
  gap: 12px;
}

.aio-brand__logo {
  display: block;
  width: auto;
  height: 31px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
}

.aio-brand__name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.aio-brand:hover .aio-brand__name,
.aio-brand:focus-visible .aio-brand__name {
  color: #dff8ff;
}

.aio-brand:focus-visible {
  outline: 2px solid rgba(91, 224, 242, 0.78);
  outline-offset: 6px;
  border-radius: 6px;
}

.aio-header__center {
  justify-self: center;
  align-items: center;
  color: #ffffff;
  letter-spacing: 0.045em;
}

.aio-header__center strong {
  font-size: 17px;
  font-weight: 700;
}

.aio-evin {
  justify-self: end;
  align-items: flex-end;
}

.aio-evin__primary {
  gap: 9px;
}

.aio-evin__mark {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1;
}

.aio-evin__label {
  color: #37d7ec;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.aio-main {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(24px, 3vw, 58px);
  width: min(1480px, calc(100vw - 70px));
  height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(22px, 3vh, 34px) 0 clamp(20px, 2.8vh, 30px);
}

.aio-presence {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
}

.aio-presence::before {
  content: "";
  position: absolute;
  left: 8%;
  bottom: 5%;
  width: 68%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 174, 233, 0.2), transparent 68%);
  filter: blur(5px);
}

.aio-presence__copy {
  position: relative;
  z-index: 3;
  width: min(94%, 600px);
  padding: clamp(20px, 3.4vh, 44px) 0 0 clamp(12px, 1.6vw, 28px);
}

.aio-eyebrow {
  margin: 0 0 16px;
  color: var(--cyan-500);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.aio-presence h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(42px, 4.4vw, 70px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.aio-presence__description {
  width: min(92%, 500px);
  margin: 22px 0 0;
  color: #556581;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.58;
}

.aio-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.aio-capabilities span {
  padding: 7px 11px;
  border: 1px solid rgba(0, 126, 199, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #39607e;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.aio-presence__avatar {
  position: absolute;
  right: -1%;
  bottom: -1%;
  z-index: 2;
  height: min(72vh, 730px);
  max-width: 86%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 30px 38px rgba(11, 49, 91, 0.18));
  animation: aio-avatar-in 800ms ease-out both;
  pointer-events: none;
  user-select: none;
}

@keyframes aio-avatar-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(15, 70, 139, 0.15);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.chat__identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.chat__mini-avatar {
  position: relative;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border: 1px solid rgba(5, 117, 190, 0.18);
  border-radius: 50%;
  background: linear-gradient(145deg, #f6fdff, #dceff5);
}

.chat__mini-avatar img {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 54px;
  height: auto;
  transform: translateX(-50%);
}

.chat__name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.chat__name-row h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 17px;
  line-height: 1.1;
}

.chat__identity p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.chat__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2b795b;
  font-size: 10px;
  font-weight: 650;
}

.chat__status > span:first-child {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ec471;
  box-shadow: 0 0 0 4px rgba(46, 196, 113, 0.12);
}

.chat__reset {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(18, 77, 151, 0.14);
  border-radius: 10px;
  background: #f8fbff;
  color: #47617e;
  font-size: 11px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.chat__reset:hover,
.chat__reset:focus-visible {
  border-color: rgba(0, 142, 213, 0.34);
  background: #eef9fd;
  color: var(--navy-800);
  outline: none;
}

.chat__context {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 16px 0;
  padding: 9px 12px;
  border: 1px solid rgba(0, 149, 212, 0.12);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(234, 249, 253, 0.92), rgba(246, 252, 255, 0.78));
}

.chat__context-mark {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--navy-800);
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.chat__context p {
  margin: 0;
  color: #49647f;
  font-size: 11px;
  line-height: 1.35;
}

.chat__messages {
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(38, 94, 160, 0.24) transparent;
}

.chat__messages::-webkit-scrollbar {
  width: 6px;
}

.chat__messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(38, 94, 160, 0.24);
}

.message {
  display: flex;
  width: 100%;
  margin-bottom: 12px;
  animation: message-in 200ms ease-out both;
}

.message--assistant {
  justify-content: flex-start;
}

.message--user {
  justify-content: flex-end;
}

.message__bubble {
  max-width: min(83%, 580px);
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message--assistant .message__bubble {
  border: 1px solid rgba(18, 78, 143, 0.1);
  border-bottom-left-radius: 5px;
  background: #f6f9fd;
  color: #283d5f;
}

.message--user .message__bubble {
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, #096be9, #0aa7cf);
  color: white;
  box-shadow: 0 7px 18px rgba(4, 101, 194, 0.17);
}

.message__time {
  display: block;
  margin-top: 5px;
  color: currentColor;
  font-size: 9px;
  opacity: 0.58;
  text-align: right;
}

.message--assistant .message__time {
  text-align: left;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 50px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7991aa;
  animation: typing-dot 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.14s;
}

.typing span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat__suggestions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 7px 18px 10px;
  scrollbar-width: none;
}

.chat__suggestions::-webkit-scrollbar {
  display: none;
}

.chat__suggestions button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(0, 130, 200, 0.17);
  border-radius: 999px;
  background: rgba(247, 252, 255, 0.92);
  color: #2f6186;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.chat__suggestions button:hover,
.chat__suggestions button:focus-visible {
  border-color: rgba(0, 148, 214, 0.34);
  background: #eaf9fd;
  outline: none;
  transform: translateY(-1px);
}

.chat__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: end;
  gap: 9px;
  margin: 0 16px;
  padding: 8px 8px 8px 13px;
  border: 1px solid rgba(20, 70, 135, 0.17);
  border-radius: 17px;
  background: white;
  box-shadow: 0 8px 22px rgba(33, 65, 108, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.chat__composer:focus-within {
  border-color: rgba(0, 152, 218, 0.44);
  box-shadow: 0 0 0 4px rgba(0, 174, 233, 0.08), 0 8px 22px rgba(33, 65, 108, 0.07);
}

.chat__composer textarea {
  width: 100%;
  max-height: 88px;
  resize: none;
  overflow-y: auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: #203858;
  font-size: 13px;
  line-height: 1.45;
}

.chat__composer textarea::placeholder {
  color: #91a0b4;
}

.chat__send {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(145deg, #0868e4, #00a4d2);
  color: white;
  cursor: pointer;
  box-shadow: 0 9px 20px rgba(0, 119, 201, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.chat__send:hover,
.chat__send:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 119, 201, 0.29);
}

.chat__send:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.chat__send svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.chat__footer {
  padding: 7px 18px 10px;
  color: #8a97aa;
  font-size: 9px;
  letter-spacing: 0.015em;
  text-align: center;
}

@media (max-width: 1120px) {
  .aio-header {
    grid-template-columns: 1fr auto;
  }

  .aio-header__center {
    display: none;
  }

  .aio-main {
    grid-template-columns: minmax(300px, 0.72fr) minmax(500px, 1.28fr);
    width: calc(100vw - 40px);
    gap: 20px;
  }

  .aio-presence__description {
    max-width: 360px;
  }

  .aio-presence__avatar {
    right: -8%;
    height: 65vh;
  }
}

@media (max-width: 860px) {
  .aio-shell {
    min-height: 560px;
  }

  .aio-header {
    height: 62px;
    padding: 0 18px;
  }

  .aio-brand__logo {
    height: 27px;
  }

  .aio-brand__name,
  .aio-evin__label,
  .aio-header__caption {
    display: none;
  }

  .aio-main {
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
    height: calc(100vh - 62px);
    padding: 12px 0;
  }

  .aio-presence {
    display: none;
  }

  .chat {
    border-radius: 20px;
  }
}

@media (max-aspect-ratio: 4 / 3) {
  .landing__background {
    object-position: 44% center;
  }

  .landing__avatar-link {
    right: -3vw;
    height: 76vh;
    max-width: 58vw;
  }
}

@media (max-width: 760px) {
  .landing__background {
    object-position: 39% center;
  }

  .landing__avatar-link {
    right: -12vw;
    height: 61vh;
    max-width: 76vw;
  }

  .landing__access {
    display: none;
  }

  .chat__reset {
    padding: 7px 9px;
    font-size: 10px;
  }

  .chat__messages {
    padding-right: 12px;
    padding-left: 12px;
  }

  .chat__suggestions {
    padding-right: 12px;
    padding-left: 12px;
  }

  .chat__composer {
    margin: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* CAP VIA WEB V8 - Ajustes exclusivos de la pantalla AIO */
.aio-shell {
  background: #e9ebef url("../img/fondo-aio-1400.webp") center / cover no-repeat;
}

.aio-shell::before,
.aio-shell::after {
  display: none;
}

.aio-header {
  background: #354453 url("../img/header.png") center / cover no-repeat;
}

.aio-main {
  grid-template-columns: minmax(360px, 0.88fr) minmax(520px, 1.12fr);
}

.aio-presence {
  overflow: visible;
}

.aio-presence::before,
.aio-presence__copy {
  display: none;
}

.aio-presence > .aio-eyebrow {
  position: relative;
  z-index: 4;
  margin: 0;
  padding: clamp(20px, 3.4vh, 44px) 0 0 clamp(12px, 1.6vw, 28px);
}

.aio-presence__avatar {
  right: 9%;
  bottom: -1%;
  height: min(80vh, 820px);
  max-width: 100%;
}

.aio-stage {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: visible;
}

.aio-intro {
  position: absolute;
  top: calc(50% + 39px);
  left: clamp(22px, 3.4vw, 56px);
  z-index: 1;
  width: min(78%, 650px);
  transform: translateY(-50%);
  transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
}

.aio-intro__description {
  margin: 0;
  color: #304965;
  font-size: clamp(20px, 1.7vw, 29px);
  font-weight: 400;
  line-height: 1.48;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.aio-intro__capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.aio-intro__capabilities span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 130, 200, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #2f6186;
  box-shadow: 0 8px 22px rgba(33, 65, 108, 0.06);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 650;
}

.aio-stage.is-chat-open .aio-intro {
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(-50% + 10px));
  pointer-events: none;
}

.chat {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  height: 78px;
  border-radius: 26px;
  transition: height 390ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;
}

.chat__header {
  min-height: 76px;
  cursor: pointer;
  border-bottom: 0;
  user-select: none;
}

.chat__header:hover,
.chat__header:focus-visible {
  background: rgba(247, 252, 255, 0.66);
  outline: none;
}

.chat__reset {
  cursor: pointer;
}

.chat__body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  height: calc(100% - 76px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease 40ms, visibility 0s linear 230ms;
}

.chat.is-open {
  height: 100%;
  box-shadow: var(--shadow);
}

.chat.is-open .chat__header {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.chat.is-open .chat__body {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 220ms ease 150ms, visibility 0s linear 0s;
}

@media (max-width: 1120px) {
  .aio-presence__avatar {
    right: 1%;
    height: min(74vh, 750px);
    max-width: 108%;
  }

  .aio-intro {
    left: 24px;
    width: min(84%, 560px);
  }

  .aio-intro__description {
    font-size: clamp(18px, 2vw, 25px);
  }
}

@media (max-width: 860px) {
  .aio-shell {
    background-position: center;
  }

  .aio-main {
    grid-template-columns: 1fr;
  }

  .aio-stage {
    height: 100%;
  }

  .aio-intro {
    top: calc(50% + 39px);
    left: 22px;
    width: calc(100% - 44px);
  }

  .aio-intro__description {
    font-size: clamp(18px, 4.5vw, 25px);
  }
}

/* CAP VIA WEB V10 - Experiencia móvil tipo aplicación */
.mobile-landing,
.aio-mobile {
  display: none;
}

@media (max-width: 760px) {
  html,
  body {
    min-height: 100%;
  }

  /* Portada móvil: experiencia vertical, independiente del escritorio */
  .landing-page {
    overflow: hidden;
    background: #eef3f7;
  }

  .landing {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    background:
      linear-gradient(rgba(244, 248, 251, 0.8), rgba(235, 242, 247, 0.92)),
      url("../img/fondo-aio-1400.webp") center / cover no-repeat;
  }

  .landing__background,
  .landing__avatar-link {
    display: none;
  }

  .mobile-landing {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    padding:
      max(18px, env(safe-area-inset-top))
      20px
      max(16px, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .mobile-landing__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;
  }

  .mobile-landing__brand img {
    display: block;
    width: 88px;
    height: 34px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(21, 49, 76, 0.12);
  }

  .mobile-landing__brand span {
    color: #31465f;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.035em;
  }

  .mobile-landing__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    text-align: center;
  }

  .mobile-landing__content h1 {
    margin: 2px 0 8px;
    color: var(--navy-950);
    font-size: clamp(34px, 10vw, 46px);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .mobile-landing__avatar-link {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: min(86vw, 430px);
    height: clamp(300px, 48dvh, 470px);
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    text-decoration: none;
  }

  .mobile-landing__avatar-link img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 20px 28px rgba(14, 53, 85, 0.17));
  }

  .mobile-landing__content p {
    margin: 10px 0 17px;
    color: #3d5572;
    font-size: clamp(16px, 4.5vw, 20px);
    line-height: 1.3;
  }

  .mobile-landing__button,
  .aio-mobile__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #075ce6, #00aee9);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(5, 112, 202, 0.23);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-landing__button:active,
  .aio-mobile__button:active {
    transform: translateY(1px);
  }

  .mobile-landing__footer {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    min-height: 28px;
    color: #38516b;
  }

  .mobile-landing__footer strong {
    color: var(--navy-900);
    font-size: 15px;
    letter-spacing: 0.16em;
  }

  .mobile-landing__footer span {
    color: var(--cyan-500);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  /* Pantalla AIO móvil */
  .aio-page {
    overflow: hidden;
    background: #eef3f7;
  }

  .aio-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: #e9ebef url("../img/fondo-aio-1400.webp") center / cover no-repeat;
  }

  .aio-header {
    grid-template-columns: 1fr 1fr;
    height: 64px;
    padding: 0 18px;
  }

  .aio-header__center,
  .aio-brand__name,
  .aio-evin__label {
    display: none;
  }

  .aio-brand__logo {
    width: 112px;
    height: 42px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
  }

  .aio-evin__mark {
    font-size: 22px;
  }

  .aio-main {
    display: block;
    width: 100%;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    margin: 0;
    padding: 14px;
    overflow: hidden;
  }

  .aio-presence,
  .aio-intro {
    display: none;
  }

  .aio-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 6px 8px 12px;
    text-align: center;
    transition: opacity 180ms ease, transform 220ms ease;
  }

  .aio-mobile h1 {
    margin: 0 0 6px;
    color: var(--navy-950);
    font-size: clamp(32px, 10vw, 44px);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .aio-mobile__avatar {
    display: block;
    width: auto;
    height: clamp(300px, 50dvh, 460px);
    max-width: 92vw;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 20px 28px rgba(14, 53, 85, 0.17));
  }

  .aio-mobile p {
    margin: 10px 0 18px;
    color: #3d5572;
    font-size: clamp(16px, 4.5vw, 20px);
    line-height: 1.3;
  }

  .aio-stage {
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .aio-page.is-mobile-chat-open .aio-mobile {
    display: none;
  }

  .aio-page.is-mobile-chat-open .aio-stage {
    display: block;
  }

  .chat,
  .chat.chat--collapsed,
  .chat.is-open {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 22px;
  }

  .chat__header {
    min-height: 76px;
    padding: 14px 14px;
    gap: 10px;
  }

  .chat__mini-avatar {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .chat__mini-avatar img {
    width: 60px;
  }

  .chat__name-row {
    gap: 7px;
  }

  .chat__name-row h2 {
    font-size: 18px;
  }

  .chat__identity p {
    max-width: 172px;
    font-size: 11px;
    line-height: 1.25;
  }

  .chat__reset {
    max-width: 112px;
    padding: 8px 10px;
    font-size: 10px;
    line-height: 1.2;
  }

  .chat__body {
    height: calc(100% - 76px);
  }

  .chat__context {
    margin: 10px 10px 0;
    padding: 8px 9px;
  }

  .chat__context p {
    font-size: 10px;
  }

  .chat__messages {
    padding: 12px 10px 6px;
  }

  .message__bubble {
    max-width: 90%;
    padding: 10px 11px;
    font-size: 12px;
  }

  .chat__suggestions {
    padding: 6px 10px 8px;
  }

  .chat__suggestions button {
    padding: 7px 9px;
    font-size: 9px;
  }

  .chat__composer {
    grid-template-columns: minmax(0, 1fr) 42px;
    margin: 0 8px;
    padding: 7px 7px 7px 11px;
  }

  .chat__composer textarea {
    font-size: 12px;
  }

  .chat__footer {
    padding: 6px 8px max(8px, env(safe-area-inset-bottom));
    font-size: 8px;
  }
}

@media (max-width: 380px), (max-height: 690px) and (max-width: 760px) {
  .mobile-landing__brand {
    min-height: 40px;
  }

  .mobile-landing__content h1,
  .aio-mobile h1 {
    font-size: 31px;
  }

  .mobile-landing__avatar-link,
  .aio-mobile__avatar {
    height: clamp(245px, 42dvh, 345px);
  }

  .mobile-landing__content p,
  .aio-mobile p {
    margin-top: 6px;
    margin-bottom: 12px;
    font-size: 15px;
  }

  .mobile-landing__button,
  .aio-mobile__button {
    min-height: 44px;
    padding: 10px 22px;
    font-size: 15px;
  }
}


/* CAP VIA WEB V11 - Refinamientos móviles y ergonomía */
.chat__reset-icon {
  display: none;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 760px) {
  /* El index móvil conserva la identidad CAP VIA sin un logotipo VIA agregado. */
  .mobile-landing {
    grid-template-rows: minmax(0, 1fr) auto;
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .mobile-landing__content {
    padding-top: 4px;
  }

  /* Header AIO: VIA conserva su función, con menor protagonismo visual. */
  .aio-brand__logo {
    width: 98px;
    height: 37px;
  }

  /* Portada AIO: avatar ligeramente menor y CTA más unido al subtítulo. */
  .aio-mobile__avatar {
    height: clamp(278px, 46dvh, 425px);
    max-width: 88vw;
  }

  .aio-mobile p {
    margin-top: 8px;
    margin-bottom: 10px;
  }

  /* Altura móvil real: se actualiza también cuando aparece el teclado. */
  .aio-shell {
    height: var(--cap-app-height, 100dvh);
  }

  .aio-main {
    height: calc(var(--cap-app-height, 100dvh) - 64px);
  }

  .chat__body {
    min-height: 0;
    overscroll-behavior: contain;
  }

  .chat__messages {
    min-height: 0;
    overscroll-behavior-y: contain;
  }

  /* Opciones legibles y táctiles en dos filas, sin comprimir el texto. */
  .chat__suggestions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding: 7px 10px 9px;
  }

  .chat__suggestions button {
    width: 100%;
    min-height: 38px;
    padding: 8px 9px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  .chat__suggestions button:last-child {
    grid-column: 1 / -1;
  }

  /* El compositor permanece como fila inferior estable del chat. */
  .chat__composer {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.98);
  }

  .chat__footer {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.92);
  }
}

@media (max-width: 420px) {
  .chat__reset {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 50%;
  }

  .chat__reset-text {
    display: none;
  }

  .chat__reset-icon {
    display: block;
  }
}

@media (max-width: 360px) {
  .chat__suggestions {
    grid-template-columns: 1fr;
  }

  .chat__suggestions button:last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .mobile-landing__content h1,
  .aio-mobile h1 {
    font-size: 29px;
  }

  .mobile-landing__avatar-link,
  .aio-mobile__avatar {
    height: min(43dvh, 285px);
  }

  .mobile-landing__content p,
  .aio-mobile p {
    margin-top: 4px;
    margin-bottom: 7px;
    font-size: 14px;
  }

  .mobile-landing__button,
  .aio-mobile__button {
    min-height: 40px;
    padding: 8px 20px;
    font-size: 14px;
  }
}

/* CAP VIA WEB V12 - Conceptos fuerza y protagonismo móvil */
.aio-intro__concepts {
  display: grid;
  gap: 12px;
}

.aio-intro__concept {
  margin: 0;
  color: #304965;
  font-size: clamp(18px, 1.42vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.aio-intro__concept--lead {
  font-size: clamp(20px, 1.58vw, 27px);
}

.aio-intro__concept strong {
  color: #233f60;
  font-weight: 650;
}

@media (max-width: 1120px) {
  .aio-intro__concepts {
    gap: 10px;
  }

  .aio-intro__concept {
    font-size: clamp(17px, 1.8vw, 22px);
  }

  .aio-intro__concept--lead {
    font-size: clamp(19px, 2vw, 24px);
  }
}

@media (max-width: 760px) {
  /* CAP VIA es la protagonista de la portada AIO móvil. */
  .aio-mobile__avatar {
    height: clamp(300px, 50dvh, 460px);
    max-width: 92vw;
  }
}

@media (max-width: 380px), (max-height: 690px) and (max-width: 760px) {
  .aio-mobile__avatar {
    height: clamp(260px, 44dvh, 370px);
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .aio-mobile__avatar {
    height: min(45dvh, 300px);
  }
}


/* CAP VIA WEB V15.4 - Equipo VIA alineado, interfaz no-scroll. */
.agent-switcher {
  justify-self: center;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(8, 25, 39, 0.14);
  backdrop-filter: blur(10px);
}

.agent-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.agent-switcher a:hover,
.agent-switcher a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.agent-switcher a[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 174, 233, 0.34), rgba(5, 184, 179, 0.25));
  box-shadow: inset 0 0 0 1px rgba(100, 226, 239, 0.2);
}

/* Entrada discreta en la portada existente. */
.landing__team-dock {
  position: absolute;
  left: clamp(28px, 4.7vw, 92px);
  bottom: clamp(24px, 4.2vh, 48px);
  z-index: 4;
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  width: max-content;
  animation: landing-appear 980ms 180ms ease-out both;
}

.landing__team-label {
  grid-column: 1 / -1;
  margin: 0 0 1px 4px;
  color: #536a83;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.landing__team-dock > a {
  display: grid;
  grid-template-columns: 43px auto;
  align-items: center;
  gap: 9px;
  min-width: 154px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(24, 79, 131, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(34, 63, 93, 0.09);
  color: #24405f;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.landing__team-dock > a:hover,
.landing__team-dock > a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0, 174, 233, 0.28);
  box-shadow: 0 17px 34px rgba(18, 73, 117, 0.14);
  outline: none;
}

.landing__team-thumb {
  position: relative;
  display: block;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border: 1px solid rgba(9, 90, 141, 0.13);
  border-radius: 13px;
  background: #ffffff;
}

.landing__team-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 17%;
}

.landing__team-dock a:last-child .landing__team-thumb img {
  object-position: center 31%;
}

.landing__team-dock strong,
.landing__team-dock small {
  display: block;
}

.landing__team-dock strong {
  font-size: 12px;
  letter-spacing: 0.025em;
}

.landing__team-dock small {
  margin-top: 2px;
  color: #7a899c;
  font-size: 9px;
}

/* Páginas visuales de agentes. */
.agent-page {
  overflow: hidden;
  background: #edf3f7;
}

.agent-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 42%, rgba(29, 197, 218, 0.1), transparent 27%),
    radial-gradient(circle at 82% 78%, rgba(7, 92, 230, 0.07), transparent 28%),
    linear-gradient(126deg, #f9fbfd 0%, #eff5f8 56%, #e7eef3 100%);
}

.agent-shell::before {
  content: "";
  position: absolute;
  inset: 72px 0 0;
  z-index: -2;
  background: url("../img/fondo-web-1600.webp") center / cover no-repeat;
  opacity: 0.14;
  filter: saturate(0.75);
}

.agent-shell::after {
  content: "";
  position: absolute;
  inset: 72px 0 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(247, 251, 253, 0.38), rgba(247, 251, 253, 0.74));
}

.agent-main {
  display: grid;
  grid-template-columns: minmax(370px, 0.94fr) minmax(500px, 1.06fr);
  gap: clamp(28px, 4vw, 68px);
  width: min(1460px, calc(100vw - 72px));
  height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(18px, 2.5vh, 30px) 0;
  overflow: hidden;
}

.agent-page--llamita .agent-visual {
  order: 2;
}

.agent-page--llamita .agent-content {
  order: 1;
}

.agent-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(32, 85, 128, 0.11);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 74%, rgba(57, 211, 223, 0.16), transparent 35%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.9));
  box-shadow: 0 26px 64px rgba(27, 56, 81, 0.12);
}

.agent-page--llamita .agent-visual {
  background:
    radial-gradient(circle at 55% 68%, rgba(62, 210, 219, 0.13), transparent 34%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 248, 0.92));
}

.agent-visual__halo {
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 188, 211, 0.12);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 28px rgba(27, 172, 203, 0.025),
    0 0 0 64px rgba(27, 172, 203, 0.018);
}

.agent-visual__avatar {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: min(78vh, 780px);
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 34px rgba(21, 49, 70, 0.14));
  animation: aio-avatar-in 760ms ease-out both;
  user-select: none;
}

.agent-page--llamita .agent-visual__avatar {
  height: min(76vh, 750px);
  max-width: 96%;
}

.agent-visual__caption {
  position: absolute;
  left: 18px;
  bottom: 17px;
  z-index: 4;
  display: grid;
  gap: 3px;
  padding: 10px 13px;
  border: 1px solid rgba(27, 91, 137, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 28px rgba(28, 61, 86, 0.1);
  backdrop-filter: blur(14px);
}

.agent-visual__caption span {
  color: #718095;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.agent-visual__caption strong {
  color: #2c5069;
  font-size: 11px;
}

.agent-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(12px, 2vw, 32px) clamp(6px, 1vw, 16px);
}

.agent-eyebrow {
  margin: 0 0 13px;
  color: #079bb8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.agent-content h1 {
  margin: 0;
  color: #092a4e;
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.agent-subtitle {
  margin: 16px 0 0;
  color: #248ca4;
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 650;
  letter-spacing: 0.015em;
}

.agent-lead {
  width: min(620px, 94%);
  margin: 18px 0 0;
  color: #53677c;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.6;
  text-wrap: balance;
}

.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.agent-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(7, 124, 163, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #45677d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.agent-role-card {
  width: min(650px, 96%);
  margin-top: 22px;
  padding: 17px 19px;
  border: 1px solid rgba(35, 90, 132, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 40px rgba(37, 69, 92, 0.08);
  backdrop-filter: blur(16px);
}

.agent-role-card > span {
  color: #1589a1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.agent-role-card p {
  margin: 7px 0 5px;
  color: #294a65;
  font-size: clamp(14px, 1.02vw, 17px);
  font-weight: 650;
  line-height: 1.38;
}

.agent-role-card small {
  color: #7a8796;
  font-size: 10px;
  line-height: 1.4;
}

.agent-team-promise {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.agent-team-promise__line {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, #075ce6, #05b8b3, #7bcf40);
}

.agent-team-promise p {
  margin: 0;
  color: #5a6c80;
  font-size: 12px;
}

.agent-team-promise strong {
  color: #2c4e69;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.agent-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(23, 82, 127, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #34546d;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.agent-action--primary {
  border-color: transparent;
  background: linear-gradient(135deg, #075ce6, #00aee9);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(5, 112, 202, 0.2);
}

.agent-action:hover,
.agent-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 174, 233, 0.32);
  outline: none;
}

.mobile-landing__team {
  display: none;
}

@media (max-width: 1120px) {
  .agent-main {
    grid-template-columns: minmax(330px, 0.9fr) minmax(440px, 1.1fr);
    width: calc(100vw - 42px);
    gap: 28px;
  }

  .agent-content h1 {
    font-size: clamp(50px, 6.3vw, 76px);
  }

  .agent-visual__avatar {
    height: min(73vh, 690px);
  }

  .landing__team-dock > a {
    min-width: 142px;
  }
}

@media (max-width: 860px) {
  .agent-switcher a {
    padding: 0 9px;
    font-size: 9px;
  }

  .agent-main {
    grid-template-columns: minmax(300px, 0.84fr) minmax(390px, 1.16fr);
    width: calc(100vw - 28px);
    gap: 18px;
  }

  .agent-role-card {
    padding: 14px 16px;
  }
}

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

  .mobile-landing__team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 11px;
  }

  .mobile-landing__team a {
    display: grid;
    grid-template-columns: 31px auto;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 4px 10px 4px 4px;
    border: 1px solid rgba(31, 86, 130, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #38566f;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(30, 63, 88, 0.08);
  }

  .mobile-landing__team img {
    display: block;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 17%;
    background: #ffffff;
  }

  .mobile-landing__team a:last-child img {
    object-position: center 31%;
  }

  .agent-page {
    background: #eef4f7;
  }

  .agent-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  .agent-shell::before,
  .agent-shell::after {
    inset: 64px 0 0;
  }

  .agent-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    height: 64px;
    padding: 0 10px;
  }

  .agent-header .aio-brand__logo {
    width: 68px;
    height: 30px;
  }

  .agent-header .aio-evin__mark {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .agent-header .agent-switcher {
    display: flex;
    justify-self: stretch;
    min-width: 0;
    gap: 2px;
    padding: 3px;
  }

  .agent-header .agent-switcher a {
    flex: 1;
    min-width: 0;
    min-height: 27px;
    padding: 0 4px;
    font-size: 8px;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .agent-main {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 55%) minmax(0, 45%);
    gap: 8px;
    width: 100%;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    padding: 8px 12px 12px;
    overflow: hidden;
  }

  .agent-page--llamita .agent-visual,
  .agent-page--llamita .agent-content,
  .agent-visual,
  .agent-content {
    order: initial;
  }

  .agent-visual {
    border-radius: 24px;
  }

  .agent-visual__avatar,
  .agent-page--llamita .agent-visual__avatar {
    width: auto;
    height: 100%;
    max-width: 96%;
  }

  .agent-visual__caption {
    display: none;
  }

  .agent-content {
    align-items: center;
    justify-content: flex-start;
    padding: 6px 8px 0;
    text-align: center;
  }

  .agent-eyebrow {
    margin-bottom: 5px;
    font-size: 8px;
  }

  .agent-content h1 {
    font-size: clamp(38px, 12vw, 55px);
    line-height: 0.96;
  }

  .agent-subtitle {
    margin-top: 7px;
    font-size: 15px;
  }

  .agent-lead {
    width: min(530px, 100%);
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
  }

  .agent-tags {
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
  }

  .agent-tags span {
    padding: 5px 8px;
    font-size: 8px;
  }

  .agent-role-card {
    width: min(520px, 100%);
    margin-top: 8px;
    padding: 8px 11px;
    border-radius: 14px;
  }

  .agent-role-card > span,
  .agent-role-card small {
    display: none;
  }

  .agent-role-card p {
    margin: 0;
    font-size: 10px;
    line-height: 1.3;
  }

  .agent-team-promise {
    gap: 8px;
    margin-top: 8px;
  }

  .agent-team-promise__line {
    width: 26px;
  }

  .agent-team-promise p {
    font-size: 9px;
  }

  .agent-actions {
    justify-content: center;
    gap: 7px;
    margin-top: 9px;
  }

  .agent-action {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 9px;
  }
}

@media (max-width: 380px), (max-height: 690px) and (max-width: 760px) {
  .mobile-landing__team {
    margin-top: 7px;
  }

  .mobile-landing__team a {
    min-height: 36px;
    padding-right: 8px;
  }

  .mobile-landing__team img {
    width: 27px;
    height: 27px;
  }

  .agent-main {
    grid-template-rows: minmax(0, 58%) minmax(0, 42%);
    gap: 5px;
    padding-top: 6px;
  }

  .agent-eyebrow,
  .agent-tags,
  .agent-role-card,
  .agent-team-promise {
    display: none;
  }

  .agent-content h1 {
    font-size: 37px;
  }

  .agent-subtitle {
    margin-top: 5px;
    font-size: 13px;
  }

  .agent-lead {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.3;
  }

  .agent-actions {
    margin-top: 7px;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .agent-main {
    grid-template-columns: 42% 58%;
    grid-template-rows: 1fr;
    gap: 8px;
  }

  .agent-content {
    justify-content: center;
  }

  .agent-content h1 {
    font-size: 36px;
  }

  .agent-lead {
    max-width: 480px;
  }

  .agent-role-card,
  .agent-team-promise {
    display: none;
  }
}

/* Integración visual puntual de Oruga VIA — cuarto agente. */
.landing__team-dock {
  grid-template-columns: auto auto auto;
}

.landing__team-oruga {
  display: grid;
  grid-template-columns: 43px auto;
  align-items: center;
  gap: 9px;
  min-width: 154px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(24, 79, 131, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(34, 63, 93, 0.09);
  color: #24405f;
  backdrop-filter: blur(14px);
}

.landing__team-oruga strong,
.landing__team-oruga small {
  display: block;
}

.landing__team-oruga strong {
  font-size: 12px;
  letter-spacing: 0.025em;
}

.landing__team-oruga small {
  margin-top: 2px;
  color: #7a899c;
  font-size: 9px;
}

.landing__team-thumb--oruga img {
  object-fit: contain;
  object-position: center;
  padding: 3px;
}

.oruga-passage {
  position: absolute;
  left: -230px;
  bottom: clamp(84px, 10vh, 118px);
  z-index: 3;
  width: clamp(130px, 11vw, 190px);
  pointer-events: none;
  opacity: 0;
  animation: none;
}

.oruga-passage img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 15px rgba(43, 72, 95, 0.14));
}

@keyframes oruga-crossing {
  0%, 8% { transform: translateX(0) translateY(0) scale(.92); opacity: 0; }
  12% { opacity: .96; }
  46% { transform: translateX(56vw) translateY(-4px) scale(1); opacity: .96; }
  78% { transform: translateX(calc(100vw + 260px)) translateY(2px) scale(.96); opacity: .92; }
  82%, 100% { transform: translateX(calc(100vw + 260px)); opacity: 0; }
}

.mobile-landing__oruga {
  display: grid;
  grid-template-columns: 31px auto;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(31, 86, 130, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #38566f;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(30, 63, 88, 0.08);
}

.mobile-landing__oruga img {
  display: block;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  object-fit: contain;
  padding: 2px;
  background: #ffffff;
}

@media (max-width: 1120px) {
  .landing__team-dock { grid-template-columns: auto auto; }
  .landing__team-oruga { grid-column: 1 / -1; width: 154px; }
}

@media (max-width: 760px) {
  .oruga-passage { display: none; }
  .mobile-landing__team { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .oruga-passage { display: none; }
}

/* CAP VIA WEB V15.4 — aterrizaje único y acceso visual de Oruga VIA. */
.landing__team-dock > .landing__team-oruga {
  display: grid;
  grid-template-columns: 43px auto;
  align-items: center;
  gap: 9px;
  min-width: 154px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(24, 79, 131, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(34, 63, 93, 0.09);
  color: #24405f;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.landing__team-dock > .landing__team-oruga:hover,
.landing__team-dock > .landing__team-oruga:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0, 174, 233, 0.28);
  box-shadow: 0 17px 34px rgba(18, 73, 117, 0.14);
  outline: none;
}

.oruga-passage {
  position: absolute;
  right: clamp(350px, 34vw, 650px);
  bottom: clamp(76px, 9vh, 108px);
  left: auto;
  z-index: 3;
  width: clamp(128px, 10.5vw, 182px);
  pointer-events: auto;
  opacity: 0;
  cursor: pointer;
  text-decoration: none;
  transform-origin: center center;
  animation: oruga-arrival 5.2s 1.4s cubic-bezier(.22,.82,.28,1) forwards;
  transition: transform 220ms ease, filter 220ms ease;
}

.oruga-passage:hover,
.oruga-passage:focus-visible {
  transform: scale(1.055);
  filter: drop-shadow(0 17px 20px rgba(22, 88, 120, 0.18));
  outline: none;
}

.oruga-passage:focus-visible {
  border-radius: 34px;
  box-shadow: 0 0 0 4px rgba(0, 174, 233, 0.22);
}

@keyframes oruga-arrival {
  0% {
    opacity: 0;
    transform: translateX(-115vw) translateY(8px) scale(.9);
  }
  10% { opacity: .98; }
  68% {
    opacity: .98;
    transform: translateX(-4vw) translateY(-3px) scale(1.01);
  }
  84% {
    opacity: 1;
    transform: translateX(10px) translateY(1px) scale(.995);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

.agent-page--oruga .agent-visual__avatar {
  width: min(82%, 760px);
  height: auto;
  object-fit: contain;
}

.mobile-landing__oruga {
  text-decoration: none;
}

@media (max-width: 1120px) {
  .oruga-passage {
    right: clamp(250px, 31vw, 390px);
    width: clamp(112px, 13vw, 152px);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .oruga-passage {
    display: block;
    opacity: 1;
    animation: none;
  }
}

/* CAP VIA WEB v16.4.0 - accesibilidad, rendimiento y verdad operativa */
.demo-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy-900);
  box-shadow: 0 10px 26px rgba(8, 36, 73, 0.18);
  font-weight: 750;
  text-decoration: none;
}
.demo-skip-link:focus { transform: translateY(0); }

.demo-accessible-copy {
  position: absolute;
  top: clamp(88px, 10vh, 126px);
  left: clamp(28px, 4vw, 76px);
  z-index: 3;
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(10, 72, 136, 0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 12px 28px rgba(24, 56, 91, 0.08);
  backdrop-filter: blur(10px);
}
.demo-accessible-copy p,
.demo-accessible-copy h1,
.demo-accessible-copy span { margin: 0; }
.demo-accessible-copy p { color: #0a6a91; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.demo-accessible-copy h1 { color: var(--navy-950); font-size: 21px; line-height: 1; }
.demo-accessible-copy span { color: #50627b; font-size: 11px; }
.demo-accessible-copy a { margin-top: 4px; color: #075ce6; font-size: 11px; font-weight: 750; text-decoration: none; }

.mobile-landing__kicker,
.aio-mobile__kicker,
.aio-demo-label {
  margin: 0 0 10px !important;
  color: #087ea4 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase;
}
.mobile-landing__corporate {
  margin-top: 12px;
  color: #315270;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.aio-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 12px;
}
.aio-language select {
  min-width: 58px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.aio-language select option { color: #10244f; background: #fff; }

.chat__header {
  cursor: default;
  padding: 0;
  gap: 0;
  background: transparent;
}
.chat__header:hover,
.chat__header:focus-visible { background: transparent; }
.chat__toggle {
  flex: 1 1 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 16px 10px 16px 20px;
  border: 0;
  border-radius: 25px 0 0 25px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.chat__toggle:hover,
.chat__toggle:focus-visible { background: rgba(247,252,255,.72); }
.chat__toggle:focus-visible { outline: 3px solid rgba(0,174,233,.45); outline-offset: -4px; }
.chat__reset { margin-right: 12px; }
.chat__name-row strong { margin: 0; color: var(--navy-950); font-size: 17px; line-height: 1.1; }
.chat__role { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.chat__status[data-state="offline"] { color: #965c20; }
.chat__status[data-state="offline"] > span:first-child { background: #dd8c2d; box-shadow: 0 0 0 4px rgba(221,140,45,.13); }
.chat__status[data-state="configured"] { color: #526a84; }
.chat__status[data-state="configured"] > span:first-child { background: #7a91aa; box-shadow: 0 0 0 4px rgba(122,145,170,.13); }
.chat__status[data-state="connected"] { color: #216f53; }
.chat__status[data-state="connected"] > span:first-child { background: #2ec471; }
.chat__status[data-state="degraded"] { color: #9d5b25; }
.chat__status[data-state="degraded"] > span:first-child { background: #e48d31; box-shadow: 0 0 0 4px rgba(228,141,49,.14); }

.chat__body {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
}
.chat__privacy {
  margin: 8px 14px 0;
  padding: 8px 10px;
  border: 1px solid rgba(16, 74, 140, .10);
  border-radius: 11px;
  background: rgba(247,250,253,.9);
  color: #667790;
  font-size: 10px;
  line-height: 1.45;
}
.chat__privacy strong { color: #35526e; }
.chat__privacy a { color: #075ce6; }

.message__bubble {
  display: grid;
  gap: 6px;
  white-space: normal;
}
.message__source {
  display: block;
  color: #3c6380;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.message__text {
  display: block;
  white-space: pre-wrap;
}
.message__time { margin-left: 0; justify-self: end; }
.message--source-human .message__bubble {
  border-color: rgba(15, 133, 109, .18);
  background: #effaf6;
}
.message--source-human .message__source { color: #167460; }
.message--source-system_error .message__bubble,
.message--source-system .message__bubble {
  border-color: rgba(183, 108, 40, .20);
  background: #fff8ef;
}
.message--source-system_error .message__source,
.message--source-system .message__source { color: #965c20; }
.message--source-local_fallback .message__bubble { border-style: dashed; }

.chat__body[inert] { pointer-events: none; }
.chat.is-open .chat__header { cursor: default; }

.privacy-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 300;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  width: min(820px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid rgba(20,68,132,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 20px 55px rgba(16,43,79,.20);
  transform: translateX(-50%);
}
.privacy-banner p { margin: 0; color: #556984; font-size: 12px; line-height: 1.5; }
.privacy-banner p strong { color: var(--navy-950); }
.privacy-banner__actions { display: flex; gap: 8px; }
.privacy-banner button { min-height: 38px; padding: 8px 12px; border-radius: 999px; font-size: 11px; font-weight: 750; cursor: pointer; }
.privacy-banner__accept { border: 1px solid var(--navy-900); background: var(--navy-900); color: #fff; }
.privacy-banner__reject { border: 1px solid #cad8e6; background: #fff; color: var(--navy-900); }

@media (max-width: 760px) {
  .demo-accessible-copy { display: none; }
  .aio-header { grid-template-columns: auto 1fr auto; gap: 8px; }
  .agent-switcher { display: none; }
  .aio-tools { gap: 8px; }
  .aio-evin__mark { font-size: 17px; }
  .aio-language select { min-width: 52px; height: 31px; }
  .chat__toggle { padding: 12px 6px 12px 12px; }
  .chat__reset { margin-right: 9px; }
  .chat__name-row strong { font-size: 17px; }
  .chat__role { max-width: 168px; font-size: 10px; line-height: 1.2; }
  .chat__privacy { margin: 6px 9px 0; padding: 6px 8px; font-size: 8px; }
  .message__source { font-size: 8px; }
  .privacy-banner { grid-template-columns: 1fr; }
  .privacy-banner__actions { justify-content: flex-end; }
}

@media (max-width: 420px) {
  .chat__reset-text { display: none; }
  .chat__reset-icon { display: block; }
  .privacy-banner__actions { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .mobile-landing__title {
    margin: 2px 0 8px;
    color: var(--navy-950);
    font-size: clamp(34px, 10vw, 46px);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1;
  }
}

/* VIA WEB 16.6.2 — navegación comercial dentro del demostrador CAP VIA */
.aio-intro__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.aio-intro__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(7, 133, 230, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #164e7d;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.aio-intro__actions a:first-child {
  border-color: #0b789b;
  background: #0b789b;
  color: #fff;
}
@media (max-width: 720px) {
  .aio-intro__actions { display: grid; grid-template-columns: 1fr; width: 100%; }
}

/* ========================================================================== 
   VIA WEB 16.7.4 — Responsive híbrido para demo y perfiles de agentes
   Desktop: interfaz cerrada. Celular/tablet vertical: documento desplazable.
   ========================================================================== */
@media (max-width: 760px), (max-width: 1180px) and (orientation: portrait) {
  html,
  body.landing-page,
  body.aio-page,
  body.agent-page {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .landing,
  .aio-shell,
  .agent-shell {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  .agent-main {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    width: min(760px, calc(100vw - 28px)) !important;
    height: auto !important;
    min-height: calc(100dvh - 64px) !important;
    gap: 16px !important;
    padding: 16px 0 28px !important;
    overflow: visible !important;
  }
  .agent-visual {
    min-height: 52dvh !important;
    max-height: none !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }
  .agent-visual__avatar,
  .agent-page--llamita .agent-visual__avatar,
  .agent-page--oruga .agent-visual__avatar {
    width: auto !important;
    height: auto !important;
    max-width: min(96%, 680px) !important;
    max-height: 62dvh !important;
    margin-inline: auto;
  }
  .agent-content {
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 10px 8px 0 !important;
    text-align: center !important;
  }
  .agent-eyebrow { display: block !important; margin-bottom: 8px !important; font-size: 9px !important; }
  .agent-content h1 { font-size: clamp(44px, 10vw, 70px) !important; }
  .agent-subtitle { margin-top: 9px !important; font-size: clamp(16px, 3vw, 21px) !important; }
  .agent-lead { width: min(620px, 100%) !important; margin-top: 10px !important; font-size: 13px !important; line-height: 1.5 !important; }
  .agent-tags { display: flex !important; justify-content: center !important; gap: 6px !important; margin-top: 11px !important; }
  .agent-tags span { padding: 6px 9px !important; font-size: 8.5px !important; }
  .agent-role-card { display: block !important; width: min(620px, 100%) !important; margin-top: 11px !important; padding: 12px 14px !important; }
  .agent-role-card > span { display: inline !important; }
  .agent-role-card p { margin: 5px 0 !important; font-size: 11.5px !important; line-height: 1.42 !important; }
  .agent-role-card small { display: block !important; font-size: 9px !important; }
  .agent-team-promise { display: flex !important; justify-content: center !important; margin-top: 11px !important; }
  .agent-team-promise p { font-size: 10px !important; }
  .agent-actions { justify-content: center !important; margin-top: 12px !important; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .agent-action { min-height: 39px !important; font-size: 9.5px !important; }
}

@media (max-width: 760px) {
  .landing-page { overflow-y: auto !important; }
  .landing { min-height: 100dvh !important; }
  .mobile-landing {
    height: auto !important;
    min-height: 100dvh !important;
    grid-template-rows: auto auto auto !important;
    gap: 10px !important;
    padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)) !important;
    overflow: visible !important;
  }
  .mobile-landing__content {
    min-height: 0 !important;
    justify-content: flex-start !important;
    padding-top: 22px;
  }
  .mobile-landing__avatar-link {
    width: min(88vw, 430px) !important;
    height: auto !important;
    min-height: 330px !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .mobile-landing__avatar-link img {
    width: min(100%, 400px) !important;
    height: auto !important;
    max-height: none !important;
  }
  .mobile-landing__content p {
    margin: 12px 0 18px !important;
    font-size: 16px !important;
    line-height: 1.42 !important;
  }

  .aio-page,
  .aio-shell { overflow-y: auto !important; }
  .aio-main {
    height: auto !important;
    min-height: calc(100dvh - 64px) !important;
    padding: 16px 14px 24px !important;
    overflow: visible !important;
  }
  .aio-mobile {
    height: auto !important;
    min-height: calc(100dvh - 104px) !important;
    justify-content: flex-start !important;
    padding: 18px 8px 24px !important;
  }
  .aio-mobile__avatar {
    width: min(88vw, 430px) !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
  }
  .aio-mobile p {
    font-size: 16px !important;
    line-height: 1.42 !important;
  }
  .aio-stage,
  .aio-page.is-mobile-chat-open .aio-stage {
    width: 100% !important;
    height: calc(100dvh - 96px) !important;
    min-height: 620px !important;
    overflow: hidden !important;
  }
  .chat,
  .chat.chat--collapsed,
  .chat.is-open {
    height: 100% !important;
    min-height: 620px !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) and (orientation: portrait) {
  .landing-page { background: #eef3f7 !important; }
  .landing {
    min-height: 100dvh !important;
    background: linear-gradient(rgba(244,248,251,.82),rgba(235,242,247,.94)), url("../img/fondo-aio-1400.webp") center / cover no-repeat !important;
  }
  .landing__background,
  .landing__avatar-link { display: none !important; }
  .mobile-landing {
    position: relative;
    z-index: 2;
    display: grid !important;
    grid-template-rows: auto auto auto;
    width: min(760px, calc(100vw - 48px));
    min-height: 100dvh;
    margin: 0 auto;
    padding: 34px 28px 30px;
    overflow: visible;
  }
  .mobile-landing__brand { display:flex; align-items:center; gap:12px; }
  .mobile-landing__brand img { width:104px; height:auto; }
  .mobile-landing__content { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; padding-top:30px; text-align:center; }
  .mobile-landing__content h1 { margin:0 0 10px; color:var(--navy-950); font-size:clamp(46px,7vw,64px); line-height:1; }
  .mobile-landing__avatar-link { display:flex; justify-content:center; width:min(70vw,520px); height:auto; min-height:430px; margin:0 auto; overflow:visible; }
  .mobile-landing__avatar-link img { width:min(100%,470px); height:auto; object-fit:contain; object-position:center bottom; }
  .mobile-landing__content p { max-width:620px; margin:12px 0 20px; color:#3d5572; font-size:19px; line-height:1.45; }
  .mobile-landing__footer { display:flex; justify-content:center; gap:8px; padding-top:18px; }

  .aio-shell { background:#e9ebef url("../img/fondo-aio-1400.webp") center / cover no-repeat !important; }
  .aio-main { display:block !important; width:min(820px,calc(100vw - 40px)) !important; height:auto !important; min-height:calc(100dvh - 72px) !important; margin:0 auto !important; padding:24px 12px 32px !important; overflow:visible !important; }
  .aio-presence,
  .aio-intro { display:none !important; }
  .aio-mobile { display:flex !important; flex-direction:column; align-items:center; justify-content:flex-start; min-height:calc(100dvh - 130px); padding-top:26px; text-align:center; }
  .aio-mobile h1 { font-size:clamp(46px,7vw,64px); }
  .aio-mobile__avatar { width:min(70vw,520px) !important; height:auto !important; max-width:100% !important; max-height:none !important; }
  .aio-mobile p { max-width:650px; font-size:19px; line-height:1.45; }
  .aio-stage { display:none; }
  .aio-page.is-mobile-chat-open .aio-mobile { display:none !important; }
  .aio-page.is-mobile-chat-open .aio-stage { display:block !important; height:calc(100dvh - 120px) !important; min-height:680px !important; overflow:hidden !important; }
  .chat,.chat.chat--collapsed,.chat.is-open { position:relative !important; inset:auto !important; width:100% !important; height:100% !important; min-height:680px !important; }
}
