/* ============ INICIO DE SESIÓN ============ */
.kd-nav-end { display: flex; align-items: center; gap: 10px; }
.kd-login-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 100px;
  border: 1px solid var(--line); background: transparent; color: inherit;
  font-size: 0.85rem; font-weight: 500;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.kd-login-btn:hover { border-color: var(--accent); }
.kd-login-btn__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.kd-login-btn.is-logged .kd-login-btn__dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.bt .kd-login-btn { border-color: rgba(255, 255, 255, .25); }
.bt .kd-login-btn:hover { border-color: #d4a017; }
@media (pointer: coarse) { .kd-login-btn, .kd-modal button { cursor: pointer; } }
@media (max-width: 760px) { .kd-login-btn { padding: 8px 12px; font-size: 0.8rem; } }

.kd-modal {
  position: fixed; inset: 0; z-index: 9500;
  display: grid; place-items: center; padding: 16px;
  background: rgba(10, 10, 10, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: kdFade .3s var(--ease-out);
}
.kd-hidden { display: none; }
.kd-modal__card {
  position: relative; width: min(400px, 100%);
  padding: 40px 32px 32px; border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; gap: 16px;
  animation: kdIn .5s var(--ease-out);
}
.kd-modal__label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.kd-modal__title { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 4px; }
.kd-modal__title em { font-family: var(--font-serif); font-weight: 400; color: var(--accent); }
.kd-modal label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); }
.kd-modal input {
  font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg);
}
.kd-modal input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.kd-modal__error { min-height: 1.2em; font-size: .85rem; color: #dc2626; }
.kd-modal__submit { justify-content: center; }
.kd-modal__submit:disabled { opacity: .6; }
.kd-modal__close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1;
}
.kd-modal__close:hover { background: var(--line); }
@keyframes kdFade { from { opacity: 0; } }
@keyframes kdIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* ============ VENTANA EMERGENTE DE SESIÓN (negra con azul) ============ */
.kd-pop-open, .kd-pop-open body { overflow: hidden; }
.kd-pop {
  position: fixed; inset: 0; z-index: 9600;
  display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: kdFade .3s var(--ease-out);
}
.kd-pop--hidden { display: none; }
.kd-pop__card {
  position: relative; width: min(400px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 40px 30px 30px; border-radius: var(--radius);
  background: radial-gradient(circle at 0% 0%, rgba(78, 163, 255, .16), transparent 55%), #0b0d12;
  border: 1px solid rgba(78, 163, 255, .28);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 60px rgba(78, 163, 255, .12);
  color: #f5f5f7;
  animation: kdIn .45s var(--ease-out);
}
.kd-pop__view { display: flex; flex-direction: column; gap: 14px; }
.kd-pop__title { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 6px; }
.kd-pop__title em { font-family: var(--font-serif); font-weight: 400; color: #4ea3ff; }
.kd-pop label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: #8b93a7; }
.kd-pop label[hidden], .kd-pop [hidden] { display: none; }
.kd-pop input {
  font: inherit; font-size: 1rem; color: #f5f5f7;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(78, 163, 255, .22); background: #05070b;
}
.kd-pop input:focus { outline: 2px solid #4ea3ff; outline-offset: 1px; border-color: transparent; }
.kd-pop__hint { font-size: .8rem; color: #8b93a7; line-height: 1.5; }
.kd-pop__forgot { text-align: right; margin-top: -6px; font-size: .82rem; }
.kd-pop__err { font-size: .85rem; color: #f87171; }
.kd-pop__ok { font-size: .85rem; color: #4ade80; line-height: 1.5; }
.kd-pop__err:empty, .kd-pop__ok:empty { display: none; }
.kd-pop__btn {
  display: flex; justify-content: center; align-items: center;
  padding: 14px; border-radius: 100px; border: 0;
  background: #4ea3ff; color: #00060f; font: 600 .95rem var(--font-sans);
  transition: background .25s, color .25s;
}
.kd-pop__btn:hover { background: #fff; }
.kd-pop__btn:disabled { opacity: .5; }
.kd-pop__btn--ghost { background: transparent; color: #f5f5f7; border: 1px solid rgba(78, 163, 255, .35); }
.kd-pop__btn--ghost:hover { background: rgba(248, 113, 113, .12); color: #f87171; border-color: #f87171; }
.kd-pop__switch { text-align: center; font-size: .85rem; color: #8b93a7; }
.kd-pop__link { border: 0; background: none; padding: 0; color: #4ea3ff; font: inherit; font-weight: 600; }
.kd-pop__link:hover { text-decoration: underline; }
.kd-pop__x {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: transparent; color: #8b93a7; font-size: 1.6rem; line-height: 1;
}
.kd-pop__x:hover { background: rgba(78, 163, 255, .14); color: #fff; }
@media (pointer: coarse) { .kd-pop button, .kd-pop a { cursor: pointer; } }

/* ============ SELECTOR DE IDIOMA + Google Translate ============ */
.kd-lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 100px; border: 1px solid var(--line); }
.kd-lang button { border: 0; background: transparent; color: var(--muted); font: 600 .7rem var(--font-mono); letter-spacing: .04em; padding: 5px 7px; border-radius: 100px; }
.kd-lang button:hover { color: var(--text); }
.kd-lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.bt .kd-lang { border-color: rgba(255, 255, 255, .2); }
.bt .kd-lang button[aria-pressed="true"] { background: #d4a017; color: #000; }
@media (pointer: coarse) { .kd-lang button { cursor: pointer; } }
@media (max-width: 760px) { .kd-lang button { padding: 4px 5px; font-size: .64rem; } }
/* ocultar la barra y los globos del widget de Google */
#google_translate_element { display: none; }
.skiptranslate iframe, iframe.goog-te-banner-frame, .goog-te-banner-frame, .goog-te-balloon-frame, #goog-gt-tt, .goog-te-spinner-pos, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
