/* ============================================================
   TYRSA CRM — Empleo: Botón pill + Modal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Botón pill trigger ─────────────────────────────────────── */
button.tt-emp-trigger,
.tt-emp-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 24px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111827 !important;
  border: none !important;
  border-radius: 100px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
  text-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
}

button.tt-emp-trigger:hover,
.tt-emp-trigger:hover {
  background: #f9f9f9 !important;
  background-color: #f9f9f9 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
  color: #111827 !important;
}

/* Texto e ícono */
button.tt-emp-trigger .tt-emp-trigger-text,
.tt-emp-trigger .tt-emp-trigger-text {
  color: #111827 !important;
}

button.tt-emp-trigger .tt-emp-trigger-icon,
.tt-emp-trigger .tt-emp-trigger-icon {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

button.tt-emp-trigger svg,
.tt-emp-trigger svg {
  stroke: #111827 !important;
  fill: none !important;
  display: block !important;
}

/* ── Overlay ────────────────────────────────────────────────── */
.tt-emp-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.55) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tt-emp-overlay.tt-emp-overlay--show {
  opacity: 1;
}

/* ── Modal ──────────────────────────────────────────────────── */
.tt-emp-modal {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.tt-emp-overlay.tt-emp-overlay--show .tt-emp-modal {
  transform: translateY(0);
}

/* ── Header ─────────────────────────────────────────────────── */
.tt-emp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 0;
}

.tt-emp-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
}

.tt-emp-subtitle {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #6b7280 !important;
  margin: 0 !important;
  padding: 0 !important;
}

button.tt-emp-close,
.tt-emp-close {
  background: #f3f4f6 !important;
  background-color: #f3f4f6 !important;
  border: none !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  color: #6b7280 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background 0.15s !important;
  padding: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

button.tt-emp-close:hover,
.tt-emp-close:hover {
  background: #e5e7eb !important;
  background-color: #e5e7eb !important;
  color: #374151 !important;
}

/* ── Body ───────────────────────────────────────────────────── */
.tt-emp-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 28px 28px;
}

/* ── Campo ──────────────────────────────────────────────────── */
.tt-emp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tt-emp-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin: 0 !important;
  display: block !important;
}

.tt-emp-input {
  width: 100% !important;
  padding: 11px 14px !important;
  background: #ffffff !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  color: #111827 !important;
  font-family: 'Inter', sans-serif !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.tt-emp-input::placeholder { color: #9ca3af !important; }
.tt-emp-input:focus { border-color: #E85D26 !important; outline: none !important; box-shadow: none !important; }

/* ── Upload CV ──────────────────────────────────────────────── */
.tt-emp-upload {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 24px 16px !important;
  border: 2px dashed #d1d5db !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: border-color 0.2s, background 0.2s !important;
  text-align: center !important;
  background: #fafafa !important;
  margin: 0 !important;
}

.tt-emp-upload:hover,
.tt-emp-upload--selected {
  border-color: #E85D26 !important;
  background: #fff7f4 !important;
}

.tt-emp-upload svg { color: #9ca3af; stroke: #9ca3af; }
.tt-emp-upload--selected svg { color: #E85D26; stroke: #E85D26; }

.tt-emp-upload span {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  word-break: break-all !important;
}

.tt-emp-upload small {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  color: #9ca3af !important;
}

/* ── Mensaje error/éxito ─────────────────────────────────────── */
.tt-emp-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.tt-emp-msg--error   { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.tt-emp-msg--success { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }

/* ── Submit ─────────────────────────────────────────────────── */
button.tt-emp-submit,
.tt-emp-submit {
  width: 100% !important;
  padding: 13px !important;
  background: #E85D26 !important;
  background-color: #E85D26 !important;
  border: none !important;
  border-radius: 100px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  text-shadow: none !important;
  display: block !important;
}

button.tt-emp-submit:hover,
.tt-emp-submit:hover { background: #cf4f1e !important; background-color: #cf4f1e !important; color: #fff !important; }
button.tt-emp-submit:disabled,
.tt-emp-submit:disabled { opacity: 0.6 !important; cursor: not-allowed !important; }

/* ── Thank you ──────────────────────────────────────────────── */
.tt-emp-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 28px;
  gap: 12px;
}

.tt-emp-thanks-check {
  width: 72px;
  height: 72px;
  background: #E85D26;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 8px;
  animation: ttEmpScale 0.4s ease;
}

@keyframes ttEmpScale {
  0%  { transform: scale(0); }
  60% { transform: scale(1.1); }
  100%{ transform: scale(1); }
}

.tt-emp-thanks-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 !important;
}

.tt-emp-thanks-text {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: #6b7280 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

@media (max-width: 480px) {
  .tt-emp-header, .tt-emp-body { padding-left: 20px; padding-right: 20px; }
  .tt-emp-modal { border-radius: 16px; }
}
