/* Neutralizar el banner y el offset que Google agrega al body */
body {
  top: 0 !important;
}
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}
.skiptranslate iframe {
  display: none !important;
}
body > .skiptranslate {
  display: none !important;
}

/* ---- Widget ---- */
.ccb-translate-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ccb-translate-toggle {
  height: 50px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, background 0.25s ease;
}

.ccb-translate-toggle:hover {
  transform: translateY(-2px);
  background: rgba(35, 35, 38, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 3px 8px rgba(0, 0, 0, 0.14);
}

.ccb-translate-widget.is-open .ccb-translate-toggle {
  background: rgba(20, 20, 22, 0.95);
}

.ccb-translate-widget.is-loading .ccb-translate-toggle {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.ccb-translate-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ccb-translate-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}

.ccb-translate-widget.is-open .ccb-translate-icon svg {
  transform: rotate(180deg);
}

.ccb-translate-label {
  white-space: nowrap;
}

/* ---- Menú ---- */
.ccb-translate-menu {
  position: absolute;
  bottom: 62px;
  right: 0;
  min-width: 190px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 8px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(.2,.8,.2,1);
}

.ccb-translate-widget.is-open .ccb-translate-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ccb-translate-menu-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9a9a9a;
  padding: 6px 10px 8px;
}

.ccb-translate-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ccb-translate-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #1a1a1a;
  transition: background 0.15s ease;
  position: relative;
}

.ccb-translate-menu li:hover {
  background: rgba(0, 0, 0, 0.05);
}

.ccb-translate-menu li.is-active {
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

.ccb-translate-menu li.is-active::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a1a1a;
  margin-left: auto;
}

.ccb-flag {
  font-size: 16px;
  line-height: 1;
}

/* En pantallas chicas, mostrar solo el ícono */
@media (max-width: 480px) {
  .ccb-translate-widget {
    bottom: 20px;
    right: 20px;
  }
  .ccb-translate-toggle {
    width: 50px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .ccb-translate-label {
    display: none;
  }
}