/* María José — chat + sección empleada digital Svital */
:root {
  --mj-navy: #163854;
  --mj-cyan: #08acf2;
  --mj-gold: #cfa531;
  --mj-bg: #0f2438;
}

#mj-chat-root {
  font-family: Inter, system-ui, sans-serif;
  z-index: 9998;
}

#mj-chat-toggle {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: auto;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mj-cyan), var(--mj-gold));
  color: var(--mj-navy);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(8, 172, 242, 0.45);
  transition: transform 0.2s ease;
}

#mj-chat-toggle:hover {
  transform: translateY(-2px);
}

#mj-chat-toggle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.mj-launcher-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.mj-launcher-title {
  font-size: 0.88rem;
  font-weight: 800;
}

.mj-launcher-sub {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.9;
}

#mj-chat-panel {
  position: fixed;
  bottom: 5.5rem;
  left: 1.5rem;
  right: auto;
  width: min(400px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 7rem));
  z-index: 9999;
  display: none;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--mj-bg);
  border: 1px solid rgba(207, 165, 49, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

#mj-chat-panel.is-open {
  display: flex;
}

.mj-chat-header {
  padding: 1rem 1.1rem;
  background: var(--mj-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mj-chat-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.mj-chat-header p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.mj-chat-howto {
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(8, 172, 242, 0.12);
  border-bottom: 1px solid rgba(207, 165, 49, 0.2);
}

.mj-chat-howto strong {
  color: var(--mj-gold);
  font-weight: 700;
}

.mj-chat-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(207, 165, 49, 0.25);
  color: var(--mj-gold);
  border: 1px solid rgba(207, 165, 49, 0.45);
}

/* ── Sección empleada digital (landing) ── */
.mj-employee {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #fff 0%, var(--svital-bg, #dce0e9) 100%);
  position: relative;
  overflow: hidden;
}

.mj-employee::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(8, 172, 242, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.mj-employee__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .mj-employee__grid {
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 3rem;
  }
}

.mj-employee__card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(145deg, var(--mj-navy), #1e4d72);
  border-radius: 20px;
  color: #fff;
  box-shadow: var(--shadow-card, 0 12px 40px rgba(22, 56, 84, 0.2));
  border: 1px solid rgba(207, 165, 49, 0.35);
}

.mj-employee__avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mj-cyan), var(--mj-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--mj-navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.mj-employee__card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
  color: #fff;
}

.mj-employee__role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mj-gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.mj-employee__card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.mj-employee__intro .eyebrow {
  color: var(--mj-navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.mj-employee__intro h2 {
  color: var(--mj-navy);
  margin-bottom: 1rem;
}

.mj-employee__intro .lead {
  color: var(--svital-text, #4c5253);
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

.mj-employee__skills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
  .mj-employee__skills {
    grid-template-columns: 1fr 1fr;
  }
}

.mj-skill {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(22, 56, 84, 0.08);
  box-shadow: 0 4px 16px rgba(22, 56, 84, 0.06);
}

.mj-skill i {
  color: var(--mj-cyan);
  font-size: 1.15rem;
  margin-top: 0.15rem;
}

.mj-skill strong {
  display: block;
  color: var(--mj-navy);
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.mj-skill span {
  font-size: 0.82rem;
  color: var(--svital-text-muted, #4b4f58);
  line-height: 1.4;
}

.mj-employee__limits {
  font-size: 0.82rem;
  color: var(--svital-text-muted);
  padding: 0.85rem 1rem;
  background: rgba(22, 56, 84, 0.05);
  border-radius: 10px;
  border-left: 3px solid var(--mj-gold);
  margin-bottom: 1.5rem;
  max-width: 60ch;
}

.mj-employee__limits strong {
  color: var(--mj-navy);
}

.mj-employee__howto {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(8, 172, 242, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--mj-cyan);
}

.mj-employee__howto strong {
  color: var(--mj-gold);
}

.mj-employee__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.mj-btn-open {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mj-cyan), var(--mj-gold));
  color: var(--mj-navy);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(8, 172, 242, 0.35);
  transition: transform 0.2s ease;
  font-family: inherit;
}

.mj-btn-open:hover {
  transform: translateY(-2px);
}

.mj-employee__note {
  font-size: 0.78rem;
  color: var(--svital-text-muted);
}

.mj-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mj-bubble {
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.mj-bubble--user {
  align-self: flex-end;
  background: var(--mj-cyan);
  color: var(--mj-navy);
  border-bottom-right-radius: 4px;
}

.mj-bubble--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: #e8eef4;
  border-bottom-left-radius: 4px;
}

.mj-bubble--typing {
  opacity: 0.7;
  font-style: italic;
}

.mj-community-cta {
  padding: 0.75rem 1rem;
  background: rgba(8, 172, 242, 0.12);
  border-top: 1px solid rgba(207, 165, 49, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mj-community-cta__text {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #e8eef4;
}

.mj-community-cta__text strong {
  color: var(--mj-gold);
  font-weight: 600;
}

.mj-community-cta__form {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mj-community-cta__input {
  flex: 1;
  min-width: 140px;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
}

.mj-community-cta__submit {
  padding: 0.5rem 0.9rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mj-cyan), var(--mj-gold));
  color: var(--mj-navy);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.mj-community-cta__dismiss {
  display: block;
  margin-top: 0.45rem;
  padding: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.mj-community-cta__dismiss:hover {
  color: rgba(255, 255, 255, 0.7);
}

.mj-chat-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a1a2a;
}

.mj-chat-toolbar {
  display: flex;
  gap: 0.4rem;
  align-items: flex-end;
}

.mj-chat-input {
  flex: 1;
  resize: none;
  min-height: 42px;
  max-height: 120px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.mj-chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.mj-icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mj-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mj-icon-btn:hover {
  background: rgba(8, 172, 242, 0.25);
}

.mj-icon-btn.is-active {
  background: var(--mj-cyan);
  color: var(--mj-navy);
}

.mj-mic-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #f0c674;
}

.mj-stop-btn {
  background: rgba(220, 80, 80, 0.25) !important;
}

.mj-stop-btn:not([hidden]) {
  animation: mj-pulse 1.2s ease-in-out infinite;
}

@keyframes mj-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

#mj-mic-btn.is-active {
  background: rgba(8, 172, 242, 0.35) !important;
  box-shadow: 0 0 0 2px rgba(8, 172, 242, 0.5);
}

.mj-chat-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.mj-chat-options label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

@media (max-width: 480px) {
  #mj-chat-panel {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    bottom: 5rem;
  }

  #mj-chat-toggle .mj-launcher-sub {
    display: none;
  }
}

/* WhatsApp a la derecha; María José a la izquierda */
