:root {
  --bg: #0a0d10;
  --bg-2: #121820;
  --ink: #f3efe6;
  --muted: #9aa7b3;
  --gold: #c4a46a;
  --gold-2: #e4c98a;
  --line: #2a3540;
  --amber: #d4a017;
  --cyan: #38bdf8;
  --green: #2ecc71;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  -webkit-user-select: text;
  user-select: text;
}
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.01em;
}
::selection {
  background: rgba(196, 164, 106, 0.45);
  color: #fff8e8;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.kpc-serif { font-family: Georgia, "Times New Roman", serif; }
.kpc-kicker { color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; }

.kpc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #141b22, #0a0d10);
  overflow: visible;
}
.kpc-brand-name { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.kpc-brand-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.kpc-top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.kpc-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kpc-nav-group + .kpc-nav-group {
  padding-left: 10px;
  border-left: 1px solid rgba(196, 164, 106, 0.28);
}

body.is-cliente-view .kpc-nav-group-kendall {
  display: none;
}

.kpc-lang {
  border: 1px solid rgba(196, 164, 106, 0.45);
  background: linear-gradient(180deg, #1a222a, #12181f);
  color: #d7dde3;
  height: 38px;
  min-width: 42px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(243, 230, 200, 0.06);
}
.kpc-lang:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}
.kpc-lang[aria-pressed="true"] {
  border: 0;
  background: linear-gradient(180deg, #e4c98a, #8a7040);
  color: #1a1408;
  box-shadow: 0 6px 16px rgba(138, 112, 64, 0.28);
}

.kpc-page { max-width: 1180px; margin: 0 auto; padding: 36px 28px 80px; }

.kpc-foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.kpc-legal {
  flex: 1 0 100%;
  margin: 6px 0 0;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  color: #c4b89a;
}

.kpc-ghost {
  border: 1px solid rgba(196, 164, 106, 0.45);
  background: linear-gradient(180deg, #1a222a, #12181f);
  color: #f3e6c8;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(243, 230, 200, 0.06);
}
.kpc-ghost:hover {
  border-color: var(--gold);
  color: #fff4d8;
  filter: brightness(1.05);
}

.kpc-nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #e4c98a, #8a7040);
  color: #1a1408;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(138, 112, 64, 0.28);
  cursor: pointer;
  white-space: nowrap;
}
.kpc-nav-pill:hover {
  filter: brightness(1.06);
  color: #1a1408;
}

.kpc-nav-pill:disabled,
.kpc-nav-pill[aria-disabled="true"] {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
  filter: none;
}

.kpc-top-actions .kpc-ana-gear {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #e4c98a, #8a7040);
  color: #1a1408;
  box-shadow: 0 6px 16px rgba(138, 112, 64, 0.28);
}
.kpc-top-actions .kpc-ana-gear:hover {
  filter: brightness(1.06);
  color: #1a1408;
  border-color: transparent;
}

.kpc-solid {
  border: 0;
  background: var(--gold);
  color: #1a1408;
  height: 52px;
  padding: 0 28px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}
.kpc-solid:hover { background: var(--gold-2); }

.kpc-cta-row.is-home {
  justify-content: center;
  margin-top: 36px;
}
.kpc-home-blink {
  min-width: 260px;
  animation: kpc-home-pulse 1.7s ease-in-out infinite;
}
@keyframes kpc-home-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(228, 201, 138, 0.12);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 28px 6px rgba(228, 201, 138, 0.55);
    filter: brightness(1.14);
  }
}

[data-lang="en"] [data-es] { display: none !important; }
[data-lang="es"] [data-en] { display: none !important; }

/* Modo cliente publicado: sin edición / sin engranaje / sin imprimir foto. */
body.is-cliente-view .kpc-kendall-only,
body.is-cliente-view .kpc-ana-gear,
body.is-cliente-view #kpc-ana-gear,
body.is-cliente-view #kpc-est-gear,
body.is-cliente-view #kpc-est-live-gear,
body.is-cliente-view .kpc-est-live-gear,
body.is-cliente-view #kpc-ana-print,
body.is-cliente-view .kpc-ana-print-bar,
body.is-cliente-view #kpc-ana-settings,
body.is-cliente-view #kpc-est-settings {
  display: none !important;
}

body.is-cliente-view .kpc-ana-tag,
body.is-cliente-view .kpc-ana-tag.is-draggable {
  pointer-events: none !important;
  cursor: default !important;
}

/* Tooltips */
.kpc-has-tip {
  position: relative;
}

.kpc-has-tip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  z-index: 90;
  width: max-content;
  max-width: min(240px, 70vw);
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(12, 16, 20, 0.96);
  color: #f3e6c8;
  border: 1px solid rgba(196, 164, 106, 0.45);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.kpc-has-tip[data-tip]:hover::after,
.kpc-has-tip[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.kpc-layout-phone { display: none; }
