/* Talentosa 3D — uso global no site */

.talentosa {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.talentosa--sm { width: min(12rem, 34vw); }
.talentosa--md { width: min(18rem, 42vw); }
.talentosa--lg { width: min(24rem, 48vw); }
.talentosa--xl { width: min(30rem, 56vw); }

.talentosa-section {
  position: relative;
  overflow: hidden;
}

.talentosa-section__mascot {
  position: absolute;
  bottom: 0;
  z-index: 1;
  opacity: 0.96;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.18));
}

.talentosa-section__mascot.talentosa--right {
  right: 1.5%;
}

.talentosa-section__mascot.talentosa--left {
  left: 1.5%;
}

.talentosa-section > .container,
.talentosa-section > .custo-zero__card,
.talentosa-section .hero-auth-panel {
  position: relative;
  z-index: 2;
}

/* Flutuante global (todas as áreas) */
.talentosa-float {
  position: fixed;
  right: 0.4rem;
  bottom: 0;
  z-index: 940;
  width: min(20rem, 42vw);
  pointer-events: none;
}

.talentosa-float img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.22));
}

/* Esconde o float quando o chat da Talentosa está aberto */
body:has(.talentosa-chat) .talentosa-float {
  display: none;
}

@media (max-width: 767.98px) {
  .talentosa--lg { width: min(16rem, 46vw); }
  .talentosa--xl { width: min(18rem, 52vw); }
  .talentosa-section__mascot {
    opacity: 0.85;
    width: min(14rem, 42vw) !important;
  }
  .talentosa-float {
    width: min(11rem, 40vw);
  }
}

@media (max-width: 575.98px) {
  .talentosa-section__mascot.talentosa--left {
    left: -1rem;
  }
  .talentosa-section__mascot.talentosa--right {
    right: -1rem;
  }
}

/* Chat widget — Talentosa 3D + balão (todas as áreas) */
.talentosa-chat {
  position: fixed;
  right: 0.75rem;
  bottom: 0;
  z-index: 999;
  width: min(400px, calc(100vw - 1.5rem));
  opacity: 0.98;
}

.talentosa-chat__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  border-radius: 50%;
  background: #b42318;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.talentosa-chat__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.talentosa-chat__bubble {
  position: relative;
  margin: 0 0.65rem 0.45rem 0;
  padding: 1.25rem 1.2rem 1.1rem;
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.talentosa-chat__bubble::after {
  content: "";
  position: absolute;
  right: 4.2rem;
  bottom: -0.65rem;
  border-width: 0.7rem 0.65rem 0 0.65rem;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.08));
}

.talentosa-chat__title {
  margin: 0 0 0.5rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #14366f;
}

.talentosa-chat__subtitle {
  margin: 0 0 0.9rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #74cc28;
}

.talentosa-chat__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.55rem 1.1rem;
  border-radius: 0.45rem;
  background: #1a4f9c;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(26, 79, 156, 0.35);
}

.talentosa-chat__mascot {
  display: block;
  width: 16rem;
  height: auto;
  margin-left: auto;
  margin-right: 0.35rem;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

@media (max-width: 575.98px) {
  .talentosa-chat {
    right: 0.4rem;
    width: min(320px, calc(100vw - 0.8rem));
  }

  .talentosa-chat__title {
    font-size: 0.98rem;
  }

  .talentosa-chat__subtitle {
    font-size: 0.82rem;
  }

  .talentosa-chat__mascot {
    width: 12rem;
  }
}

/* Hydro / legado */
.imagemMascote {
  width: min(22rem, 46vw) !important;
  max-width: 22rem;
  height: auto !important;
  object-fit: contain;
  z-index: 2;
}

/* Áreas internas (candidato / empresa) */
.talentosa-area-hero {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 auto 1rem;
}

.talentosa-area-hero .talentosa {
  width: min(22rem, 70%);
  filter: drop-shadow(0 10px 24px rgba(20, 54, 111, 0.16));
}

.area-candidato-shell,
#area-empresa .row {
  position: relative;
}

.talentosa-area-corner {
  position: absolute;
  right: 0.5rem;
  bottom: 0;
  z-index: 2;
  width: min(18rem, 28vw);
  pointer-events: none;
}

.talentosa-area-corner img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14));
}

@media (max-width: 991.98px) {
  .talentosa-area-corner {
    display: none;
  }
}
