:root {
  --blue: #173b6c;
  --blue-2: #245ca6;
  --orange: #ff8a2a;
  --orange-light: #fff1e5;
  --background: #f5f8fc;
  --ink: #182433;
  --line: #dce5f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--background);
  color: var(--ink);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}

.topbar {
  padding: 28px 0;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.topbar h1,
.topbar p {
  margin: 0 0 8px;
}

.home-page {
  background: linear-gradient(135deg, #eef4fb, #fff4ea);
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  padding: 35px 0;
}

.hero h1 {
  margin: 14px 0;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1;
}

.hero p {
  max-width: 650px;
  font-size: 19px;
  line-height: 1.6;
}

.orange {
  color: var(--orange);
}

.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: #a44b00;
  background: var(--orange-light);
  font-weight: bold;
}

.actions,
.tabs,
.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-link,
.secondary-link,
.primary-button,
.secondary-button,
.soft-button,
.danger-button,
.tab {
  display: inline-block;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.primary-link,
.primary-button {
  color: white;
  background: var(--orange);
}

.secondary-link,
.secondary-button {
  color: white;
  background: var(--blue);
}

.soft-button,
.tab {
  color: var(--blue);
  background: #eaf1f9;
}

.danger-button {
  color: #8c1d1d;
  background: #fee9e9;
}

.tab.active {
  color: white;
  background: var(--orange);
}

.full {
  width: 100%;
  margin-top: 14px;
}

.card {
  margin: 20px 0;
  padding: 20px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 30px rgba(23, 59, 108, 0.08);
}

.card h2 {
  margin-top: 0;
  color: var(--blue);
}

.two-columns,
.manager-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.manager-grid {
  grid-template-columns: 0.75fr 1.25fr;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.metric {
  padding: 18px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 24px rgba(23, 59, 108, 0.07);
}

.metric span,
.metric b {
  display: block;
}

.metric b {
  margin-top: 5px;
  color: var(--orange);
  font-size: 30px;
}

label {
  display: block;
  width: 100%;
  margin-top: 12px;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 5px;
  padding: 11px;
  border: 1px solid #cbd8e6;
  border-radius: 12px;
  background: white;
  font: inherit;
}

.form-row > * {
  flex: 1 1 220px;
}

.chat-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-heading h2 {
  margin: 0;
}

.mini-bot {
  position: relative;
  width: 60px;
  height: 52px;
  border: 4px solid var(--blue);
  border-radius: 18px;
  background: white;
  animation: bob 2s ease-in-out infinite;
}

.mini-bot::before,
.mini-bot::after {
  position: absolute;
  top: 16px;
  width: 8px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.mini-bot::before {
  left: 12px;
}

.mini-bot::after {
  right: 12px;
}

.progress {
  height: 10px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef7;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ffb05b);
  transition: width 0.35s ease;
}

.chat {
  height: 315px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 18px;
  background: #eef4fa;
}

.message {
  width: fit-content;
  max-width: 82%;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 16px;
}

.bot-message {
  border: 1px solid var(--line);
  background: white;
}

.user-message {
  margin-left: auto;
  color: white;
  background: var(--blue);
}

.choices {
  margin: 8px 0;
}

.choice-button {
  margin: 4px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--blue);
  background: #eaf1f9;
  font-weight: bold;
  cursor: pointer;
}

.typing {
  display: inline-flex;
  gap: 4px;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: typing-dot 1s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.notice {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #edf5fb;
}

.notice.error {
  color: #8b1d1d;
  background: #feecec;
}

.qr {
  display: block;
  width: 220px;
  max-width: 100%;
  margin: auto;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: white;
  background: var(--blue);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.robot-stage {
  position: relative;
  min-height: 390px;
}

.robot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: float 2.2s ease-in-out infinite;
}

.robot-head {
  position: relative;
  width: 180px;
  height: 135px;
  border: 8px solid var(--blue);
  border-radius: 42px;
  background: white;
  box-shadow: 0 18px 40px rgba(23, 59, 108, 0.2);
}

.eye {
  position: absolute;
  top: 43px;
  width: 22px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 4s infinite;
}

.eye-left {
  left: 42px;
}

.eye-right {
  right: 42px;
}

.mouth {
  position: absolute;
  left: 58px;
  top: 88px;
  width: 52px;
  height: 16px;
  border-bottom: 6px solid var(--blue);
  border-radius: 0 0 50px 50px;
}

.antenna {
  position: absolute;
  left: 82px;
  top: -42px;
  width: 8px;
  height: 40px;
  background: var(--blue);
}

.antenna-ball {
  position: absolute;
  left: 69px;
  top: -60px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
}

.robot-body {
  position: relative;
  width: 130px;
  height: 125px;
  margin: 10px auto;
  border-radius: 30px;
  color: white;
  background: var(--blue);
}

.robot-body span {
  position: absolute;
  left: 42px;
  top: 34px;
  font-size: 40px;
}

.leg {
  position: absolute;
  top: 255px;
  width: 28px;
  height: 82px;
  border-radius: 18px;
  background: var(--blue);
}

.leg-left {
  left: 72px;
  animation: walk-left 1s infinite;
}

.leg-right {
  right: 72px;
  animation: walk-right 1s infinite;
}

.plan-wrap {
  width: min(860px, calc(100% - 32px));
  margin: auto;
  padding: 26px 0;
}

.plan-hero {
  padding: 26px;
  border-radius: 22px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.preformatted {
  white-space: pre-wrap;
  line-height: 1.7;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -52%); }
  50% { transform: translate(-50%, -47%); }
}

@keyframes blink {
  0%, 45%, 55%, 100% { height: 30px; top: 43px; }
  50% { height: 4px; top: 56px; }
}

@keyframes walk-left {
  0%, 100% { transform: rotate(8deg); }
  50% { transform: rotate(-8deg); }
}

@keyframes walk-right {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

@keyframes bob {
  50% { transform: translateY(-5px); }
}

@keyframes typing-dot {
  50% { transform: translateY(-5px); }
}

@media (max-width: 900px) {
  .two-columns,
  .manager-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .robot-stage {
    min-height: 340px;
  }
}

@media (max-width: 560px) {
  .metrics {
    grid-template-columns: 1fr;
  }
}

@media print {
  .print-button {
    display: none;
  }

  body {
    background: white;
  }
}


.hero-lead {
  font-size: 22px;
  font-weight: bold;
}

.home-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.home-features span {
  padding: 9px 12px;
  border: 1px solid rgba(23, 59, 108, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.large-link {
  padding: 15px 18px;
  font-size: 17px;
}

.demo-note {
  margin-top: 20px;
  font-size: 14px !important;
  opacity: 0.72;
}

.speech-bubble {
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 11px 15px;
  border-radius: 16px 16px 16px 4px;
  color: var(--blue);
  background: white;
  box-shadow: 0 8px 24px rgba(23, 59, 108, 0.12);
  font-weight: bold;
  animation: bubble-pulse 2s ease-in-out infinite;
}

.robot-arm {
  position: absolute;
  top: 155px;
  width: 24px;
  height: 92px;
  border-radius: 15px;
  background: var(--blue);
}

.arm-left {
  left: 8px;
  transform-origin: top center;
  animation: wave 1.8s ease-in-out infinite;
}

.arm-right {
  right: 8px;
  transform: rotate(-8deg);
}

.calendar-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.calendar-day {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fbfe;
}

.calendar-day h3 {
  margin-top: 0;
  color: var(--blue);
}

.calendar-event {
  display: grid;
  gap: 3px;
  margin: 8px 0;
  padding: 10px;
  border-left: 5px solid var(--orange);
  border-radius: 10px;
  background: white;
}

.calendar-event small {
  color: #607086;
}

.search-section {
  margin-top: 18px;
}

@keyframes wave {
  0%, 100% { transform: rotate(18deg); }
  50% { transform: rotate(70deg); }
}

@keyframes bubble-pulse {
  50% { transform: translateX(-50%) translateY(-4px); }
}


.whatsapp-button, .whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: #198754;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-button:hover, .whatsapp-link:hover {
  filter: brightness(.94);
}

.notice small {
  display: block;
  margin-top: 8px;
}

.topbar-link {
  color: #fff;
  font-weight: 700;
}

.login-wrap {
  width: min(460px, calc(100% - 32px));
  margin: 8vh auto;
}

.login-card h1 {
  margin-top: 12px;
}

.status-pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf1fb;
  font-weight: 700;
  font-size: 0.85rem;
}
