/* Elenco oficial. Gestos cortos; el cuerpo, los pies y la sombra quedan apoyados. */
.mascot {
  display: block;
  width: 64px;
  height: auto;
  aspect-ratio: 240 / 290;
  flex: none;
  pointer-events: none;
  user-select: none;
}
.mascot svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.mascot .mascot-shadow { opacity: .36; }
.mascot .mascot-eyes {
  transform-box: fill-box;
  transform-origin: center;
}
.mascot .mascot-arm-right {
  transform-box: view-box;
  transform-origin: 188px 168px;
}
.mascot .mascot-arm-left {
  transform-box: view-box;
  transform-origin: 52px 168px;
}
.mascot-ernesto .mascot-arm-right { transform-origin: 166px 164px; }
.mascot-ernesto .mascot-arm-left { transform-origin: 74px 164px; }
.hero-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  color: #cbd5dd;
  font-size: .86rem;
  font-weight: 500;
}
.hero-signature .mascot { width: 96px; }
.button-row .mascot-intro { width: 108px; margin-left: 12px; }
.product-marker {
  align-self: start;
  padding-top: 9px;
  color: var(--slate);
  font-size: .8rem;
  font-weight: 600;
}
.product-marker .mascot { width: 138px; margin-top: 18px; }
.product-row { grid-template-columns: 145px 1fr 1.08fr; }
.product-row:nth-child(even) .product-marker { grid-column: 1; grid-row: 1; }
.feature-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  margin-bottom: 12px;
}
.feature-heading h3 { margin: 0; }
.feature-heading .mascot { width: 78px; }

/* El reposo tiene parpadeos y miradas; cada gesto interrumpe ese reposo. */
.mascot.is-living:not(.is-acting) .mascot-eyes { animation: mascot-idle-blink 6.4s linear infinite; }
.mascot.is-living:not(.is-acting) .mascot-gaze { animation: mascot-idle-look 8s ease-in-out infinite; }
.mascot-celes.is-living:not(.is-acting) .mascot-eyes { animation-duration: 5.6s; }
.mascot-tito.is-living:not(.is-acting) .mascot-eyes { animation-duration: 7.2s; }
@keyframes mascot-idle-blink {
  0%, 27%, 31%, 76%, 80%, 100% { transform: scaleY(1); }
  29%, 78% { transform: scaleY(.12); }
}
@keyframes mascot-idle-look {
  0%, 20%, 74%, 100% { transform: translateX(0); }
  35%, 56% { transform: translateX(-3px); }
}
.mascot.is-acting .mascot-eyes { animation: mascot-blink 2.4s linear both; }
.mascot.is-acting .mascot-gaze { animation: mascot-glance 2.4s ease-in-out both; }
.mascot.is-acting .mascot-arm-right { animation: mascot-acknowledge 2.4s ease-in-out both; }
.mascot[data-mascot-gesture="welcome"].is-acting .mascot-arm-right {
  animation-name: mascot-welcome;
}
.mascot-tito.is-acting .mascot-arm-left,
.mascot-rosi.is-acting .mascot-arm-left,
.mascot-ernesto.is-acting .mascot-arm-left { animation: mascot-show 2.4s ease-in-out both; }
@keyframes mascot-blink {
  0%, 27%, 33%, 100% { transform: scaleY(1); }
  30% { transform: scaleY(.12); }
}
@keyframes mascot-glance {
  0%, 15%, 100% { transform: translateX(0); }
  34%, 68% { transform: translateX(4px); }
}
@keyframes mascot-acknowledge {
  0%, 15%, 100% { transform: rotate(0deg); }
  38%, 65% { transform: rotate(-18deg); }
}
@keyframes mascot-welcome {
  0%, 100% { transform: rotate(0deg); }
  22%, 52% { transform: rotate(-105deg); }
  37%, 67% { transform: rotate(-82deg); }
}
@keyframes mascot-show {
  0%, 12%, 100% { transform: rotate(0deg); }
  40%, 65% { transform: rotate(12deg); }
}
@media (min-width: 701px) and (max-width: 980px) {
  .product-row { grid-template-columns: 104px 1fr 1fr; }
  .product-marker .mascot { width: 96px; }
}
@media (max-width: 700px) {
  .hero-signature { margin-top: 16px; gap: 12px; }
  .hero-signature .mascot { width: 52px; }
  .product-marker {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    align-self: stretch;
    padding: 0;
  }
  .product-marker .mascot { width: 88px; margin: 0; order: -1; }
  .product-row:nth-child(even) .product-marker { grid-column: auto; grid-row: auto; }
  .feature-heading { min-height: 84px; justify-content: flex-start; }
  .feature-heading .mascot { width: 68px; order: -1; }
  .button-row .mascot-intro { width: 88px; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.mascot-motion-enabled) .mascot * { animation: none !important; }
}
@media print {
  .mascot { display: none; }
}

/* Portada: personajes sobre un mismo piso, a distintas escalas. */
.home-page .hero-grid {
  grid-template-columns: .94fr 1.06fr;
  min-height: 650px;
  gap: 32px;
}
.home-page .hero-copy { padding: 64px 0 60px; }
.home-page .display {
  font-size: clamp(4.2rem, 7vw, 6rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.02em;
  margin: 24px 0;
}
.home-page .hero .lead { max-width: 440px; font-size: 1.15rem; }
.hero-team-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: #aec7ca;
  font-size: .9rem;
  text-decoration: none;
}
.hero-team-link:hover { color: white; }
.hero-team-link span { color: var(--orange); font-size: 1.3rem; }
.hero-scene {
  position: relative;
  align-self: center;
  isolation: isolate;
  min-width: 0;
  height: 590px;
  margin: 0;
}
.hero-scene::before {
  content: '';
  position: absolute;
  inset: 38px -45px 40px -35px;
  z-index: -1;
  background: radial-gradient(ellipse at 54% 64%, #174951 0, #0c2a33 38%, transparent 70%);
}
.scene-wordmark {
  position: absolute;
  top: 4px;
  left: 6%;
  font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-size: clamp(7rem, 11.5vw, 10rem);
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1;
  color: #163139;
  user-select: none;
}
.scene-screen {
  position: absolute;
  top: 127px;
  left: 5%;
  width: 84%;
  padding: 0 5px 5px;
  background: #21434a;
  border: 1px solid #41636b;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 24px 45px #0005;
}
.scene-screen img { display: block; width: 100%; height: auto; border-radius: 2px; }
.scene-screen-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  color: #d5e5e6;
  font-size: .66rem;
  font-weight: 600;
}
.scene-screen-dots { position: absolute; left: 12px; display: flex; gap: 4px; }
.scene-screen-dots i { width: 5px; height: 5px; border-radius: 50%; background: #90afb3; }
.scene-floor {
  position: absolute;
  bottom: 56px;
  left: -2%;
  width: 104%;
  height: 93px;
  background: #102f36;
  border: 1px solid #315158;
  border-radius: 50%;
  transform: perspective(450px) rotateX(12deg);
  box-shadow: 0 20px 30px #0003;
}
.scene-cast {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  padding: 0 0 80px;
  pointer-events: none;
}
.scene-character { position: relative; flex: none; }
.scene-celes { z-index: 2; margin-right: -22px; }
.scene-tauri { z-index: 3; }
.scene-tito { z-index: 2; margin-left: -18px; }
.scene-celes .mascot { width: 132px; }
.scene-tauri .mascot { width: 245px; }
.scene-tito .mascot { width: 162px; }
.scene-cast .mascot-shadow { opacity: .6; }
.hero-scene figcaption {
  position: absolute;
  bottom: 17px;
  left: 0;
  width: 100%;
  color: #b7cfd0;
  text-align: center;
  font-size: .85rem;
}
.motion-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
}
.motion-control[hidden] { display: none; }
.motion-control:hover { border-color: currentColor; }
.motion-control svg { flex: none; }
.motion-play, .motion-control.is-paused .motion-pause { display: none; }
.motion-control.is-paused .motion-play { display: block; }
.hero-scene .motion-control.is-paused { color: #ffb36b; }
.team-intro .motion-control { margin-top: 12px; padding-left: 0; color: var(--slate); }
.product-guide .motion-control { display: flex; margin-top: 4px; padding-left: 0; font-size: .72rem; color: var(--slate); }
.product-guide .motion-control[hidden] { display: none; }
.mascot-motion-paused .team.is-interactive .team-replay { display: none; }
.solution-strip { background: white; border-bottom: 1px solid var(--line); }
.solution-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); }
.solution-shortcuts a {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 25px 32px;
  border-left: 1px solid var(--line);
  text-decoration: none;
}
.solution-shortcuts a:first-child { border-left: 0; padding-left: 0; }
.solution-shortcuts a > span:first-child { color: var(--slate); font-size: .8rem; }
.solution-shortcuts strong { font-size: 1.35rem; font-weight: 800; }
.solution-shortcuts a > span:last-child { position: absolute; top: 35px; right: 24px; color: #aa4508; font-size: 1.3rem; }
.solution-shortcuts a:hover strong { color: #aa4508; }

/* Elenco oficial: roles verificables y una presentacion a la vez con JS. */
.team-section { background: #e8eeea; border-block: 1px solid #d5dfd8; }
.team { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 34px 44px; }
.team-intro { grid-column: 1; grid-row: 1; }
.team-profiles { grid-column: 2; grid-row: 1; }
.team-intro .section-title { font-size: clamp(2.7rem, 4.5vw, 4.2rem); line-height: 1.03; }
.team-intro > p { max-width: 340px; color: var(--slate); margin-bottom: 0; }
.team-profiles { min-width: 0; }
.team-profile {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: white;
  border-radius: 12px;
  border: 1px solid #d0dbd4;
}
.team-profile + .team-profile { margin-top: 16px; }
.team-profile[hidden] { display: none; }
.team.is-interactive .team-profile { margin-top: 0; min-height: 366px; }
.team-portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 278px;
  padding: 12px 0;
  background: var(--navy);
  border-radius: 95px 95px 8px 8px;
}
.team-portrait::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid var(--character-color);
  opacity: .28;
  border-radius: inherit;
}
.team-portrait .mascot { position: relative; width: 184px; }
.team-story { min-width: 0; }
.team-role { font-size: .75rem; font-weight: 700; color: var(--slate); }
.team-story h3 { font-family: 'Big Shoulders Display', Impact, sans-serif; font-size: 3.7rem; font-weight: 800; line-height: 1; margin: 7px 0 12px; }
.team-story p { color: var(--slate); font-size: .88rem; line-height: 1.6; margin: 0 0 18px; }
.team-story .team-line { font-size: 1.07rem; line-height: 1.35; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.team-story .text-link { font-size: .83rem; padding-bottom: 3px; }
.team-controls { display: none; }
.team.is-interactive .team-controls { display: grid; grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.team-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 120px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--slate);
  font-size: .97rem;
  font-weight: 700;
  border-radius: 7px 7px 0 0;
  transition: background .18s, color .18s;
}
.team-thumbnail { display: block; flex: none; width: 65px; height: 79px; }
.team-thumbnail svg { display: block; width: 100%; height: auto; overflow: visible; }
.team-choice:hover { background: #ffffff70; color: var(--ink); }
.team-choice[aria-pressed='true'] { background: white; border-bottom-color: var(--character-color); color: var(--ink); }
.team-replay {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0;
  min-height: 44px;
  margin-top: 12px;
  background: transparent;
  border: 0;
  color: var(--slate);
  font-size: .78rem;
}
.team.is-interactive .team-replay { display: flex; }
.team-replay:hover { color: #aa4508; }
.mascot-ernesto.is-acting .lapok { animation: mascot-laptop 2.4s ease-in-out both; }
.mascot-celes.is-acting .mascot-gaze { animation-name: mascot-review; }
.mascot-vio.is-acting .mascot-arm-right { animation-name: mascot-close; }
@keyframes mascot-laptop { 0%, 20%, 100% { opacity: 0; } 40%, 80% { opacity: 1; } }
@keyframes mascot-review { 0%, 100% { transform: translateX(0); } 28%, 42% { transform: translateX(-4px); } 62%, 78% { transform: translateX(4px); } }
@keyframes mascot-close { 0%, 100% { transform: rotate(0); } 28%, 58% { transform: rotate(-25deg); } 43%, 72% { transform: rotate(-12deg); } }

/* La mascota acompana la captura, sin tapar botones ni contenido. */
.product-hero-media { min-width: 0; }
.product-guide { display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 12px 26px 0; }
.product-guide .mascot { width: 130px; }
.product-guide p { margin: 0; font-size: .87rem; }
.product-guide strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.product-guide p > span { color: var(--slate); }

@media (min-width: 981px) and (max-width: 1150px) {
  .home-page .hero-grid { gap: 10px; }
  .scene-celes .mascot { width: 108px; }
  .scene-tauri .mascot { width: 208px; }
  .scene-tito .mascot { width: 133px; }
  .team-profile { grid-template-columns: 145px 1fr; gap: 20px; padding: 22px; }
  .team-portrait .mascot { width: 145px; }
  .team-choice { gap: 6px; padding: 8px; }
  .team-thumbnail { width: 48px; height: 58px; }
}
@media (min-width: 701px) and (max-width: 980px) {
  .home-page .hero-grid { grid-template-columns: 1fr 1fr; gap: 20px; min-height: 575px; }
  .home-page .display { font-size: clamp(3rem, 6.3vw, 4.75rem); }
  .home-page .hero-copy { padding-block: 45px; }
  .home-page .hero .lead { font-size: 1rem; }
  .hero-scene { height: 485px; }
  .scene-wordmark { font-size: 6.2rem; top: 40px; left: 3%; }
  .scene-screen { top: 140px; left: 2%; width: 94%; }
  .scene-celes .mascot { width: 85px; }
  .scene-tauri .mascot { width: 162px; }
  .scene-tito .mascot { width: 110px; }
  .scene-celes { margin-right: -16px; }
  .scene-tito { margin-left: -14px; }
  .scene-cast { padding-bottom: 72px; }
  .scene-floor { bottom: 55px; height: 58px; }
  .hero-scene figcaption { font-size: .74rem; bottom: 22px; }
  .solution-shortcuts a { padding-inline: 18px; }
  .solution-shortcuts a > span:last-child { right: 10px; }
  .solution-shortcuts strong { font-size: 1.15rem; }
  .team { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .team-profiles { grid-column: 1; grid-row: 2; }
  .team.is-interactive .team-controls { grid-row: 3; }
  .team-intro { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 8px 32px; }
  .team-intro .section-title { grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .team-intro > p { margin: 0; }
  .team-intro .motion-control { grid-column: 2; justify-self: start; margin-top: 0; }
  .team-profile { grid-template-columns: 185px 1fr; }
  .team-choice { flex-direction: column; gap: 5px; padding: 8px; font-size: .9rem; }
}
@media (max-width: 700px) {
  .home-page .hero-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .home-page .hero-copy { padding: 40px 0 0; }
  .home-page .display { font-size: clamp(2.95rem, 14.6vw, 5.6rem); margin: 18px 0; }
  .home-page .hero .lead { font-size: 1rem; margin-bottom: 22px; }
  .home-page .hero .button-row { gap: 10px; }
  .home-page .hero .btn { font-size: .77rem; padding: 12px 14px; letter-spacing: 0; }
  .hero-team-link { margin-top: 20px; font-size: .84rem; }
  .hero-scene { height: 360px; max-width: 480px; width: 100%; margin-inline: auto; }
  .scene-wordmark { top: 12px; left: 5%; font-size: clamp(5.2rem, 22vw, 8rem); }
  .scene-screen { top: 86px; left: 3%; width: 88%; }
  .scene-cast { padding-bottom: 61px; }
  .scene-celes .mascot { width: 89px; }
  .scene-tauri .mascot { width: 165px; }
  .scene-tito .mascot { width: 108px; }
  .scene-celes { margin-right: -16px; }
  .scene-tito { margin-left: -12px; }
  .scene-floor { bottom: 46px; height: 68px; width: 100%; left: 0; }
  .hero-scene figcaption { bottom: 13px; font-size: .74rem; }
  .solution-shortcuts { grid-template-columns: 1fr; }
  .solution-shortcuts a, .solution-shortcuts a:first-child { grid-template-columns: 1fr 1fr; align-items: center; padding: 16px 26px 16px 0; border-left: 0; border-bottom: 1px solid var(--line); gap: 8px; }
  .solution-shortcuts a:last-child { border-bottom: 0; }
  .solution-shortcuts a > span:first-child { font-size: .75rem; }
  .solution-shortcuts strong { font-size: 1.03rem; }
  .solution-shortcuts a > span:last-child { right: 0; top: 15px; font-size: 1.1rem; }
  .team { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .team-profiles { grid-column: 1; grid-row: 2; }
  .team-intro .section-title { font-size: 3rem; }
  .team.is-interactive { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .team.is-interactive .team-intro { grid-row: 1; }
  .team.is-interactive .team-profiles { grid-row: 3; }
  .team-profile { grid-template-columns: 106px minmax(0, 1fr); padding: 18px; gap: 0 18px; align-items: center; }
  .team.is-interactive .team-profile { min-height: 460px; }
  .team-portrait { grid-column: 1; grid-row: 1 / 4; height: 185px; padding-bottom: 12px; border-radius: 64px 64px 6px 6px; }
  .team-portrait .mascot { width: 112px; }
  .team-story { display: contents; }
  .team-role { grid-column: 2; grid-row: 1; align-self: end; }
  .team-story h3 { grid-column: 2; grid-row: 2; font-size: 2.65rem; }
  .team-story .team-line { grid-column: 2; grid-row: 3; align-self: start; font-size: .95rem; margin-bottom: 0; }
  .team-story p:not(.team-line) { grid-column: 1 / -1; grid-row: 4; font-size: .88rem; margin: 20px 0 16px; }
  .team-story .text-link { grid-column: 1 / -1; grid-row: 5; justify-self: start; font-size: .83rem; }
  .team-replay { grid-column: 1 / -1; grid-row: 6; justify-self: start; }
  .team.is-interactive .team-controls { grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 0; }
  .team-choice { flex-direction: column; padding: 8px; gap: 2px; min-height: 116px; font-size: .85rem; }
  .team-thumbnail { width: 61px; height: 74px; }
  .product-guide { justify-content: flex-start; padding: 8px 0 0; gap: 18px; }
  .product-guide .mascot { width: 110px; }
}
@media (max-width: 360px) {
  .scene-celes .mascot { width: 76px; }
  .scene-tauri .mascot { width: 149px; }
  .scene-tito .mascot { width: 93px; }
  .hero-scene { height: 335px; }
  .team-profile { padding: 16px; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; }
  .team-portrait { height: 170px; }
  .team-portrait .mascot { width: 100px; }
  .team-story h3 { font-size: 2.4rem; }
  .solution-shortcuts a > span:first-child { max-width: 115px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not(.mascot-motion-enabled) .team.is-interactive .team-replay { display: none; }
  .team-choice { transition: none; }
}
@media print {
  .hero-scene, .team-controls, .team-replay, .motion-control { display: none !important; }
  .team-profile { grid-template-columns: 1fr; break-inside: avoid; }
  .team-portrait { display: none; }
}
