/* Componente visual del traductor */

.translate-shell {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(22, 63, 112, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(9, 30, 66, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.translate-shell__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.translate-shell__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f4c81 0%, #2b8d5a 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.translate-shell__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.translate-shell__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.translate-shell__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #607086;
}

.translate-shell__text strong {
  font-size: 14px;
  font-weight: 700;
  color: #10233d;
}

#google_translate_element {
  margin: 0;
  padding: 0;
  font-size: 13px;
}

#google_translate_element > div {
  display: block;
}

.goog-te-gadget {
  font-family: inherit;
  color: #10233d !important;
  font-size: 0 !important;
  line-height: 1;
}

.goog-te-gadget .goog-te-combo {
  margin: 0 !important;
}

.goog-te-gadget-simple {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 0 14px !important;
  border: 1px solid #d5dfeb !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.goog-te-gadget-simple span {
  display: none !important;
}

.goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed {
  display: none !important;
}

.goog-te-gadget-simple select,
select.goog-te-combo {
  min-width: 150px;
  padding: 10px 36px 10px 12px;
  border: 0;
  outline: 0;
  background-color: transparent;
  color: #10233d;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #30597f 50%), linear-gradient(135deg, #30597f 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.goog-te-gadget-simple:hover {
  border-color: #aac2d7 !important;
  box-shadow: 0 8px 18px rgba(34, 70, 118, 0.12);
}

.goog-te-gadget-simple select:hover,
select.goog-te-combo:hover {
  color: #0f4c81;
}

.goog-logo-link,
.goog-te-gadget span,
.goog-te-banner-frame,
.skiptranslate iframe {
  display: none !important;
}

body {
  top: 0 !important;
}

@media (max-width: 768px) {
  .translate-shell {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
  }

  .translate-shell__text strong {
    font-size: 13px;
  }

  .goog-te-gadget-simple,
  .goog-te-gadget-simple select,
  select.goog-te-combo {
    width: 100%;
    min-width: 0;
  }
}
