@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

:root {
  --black: #17100e;
  --black-2: #241715;
  --beige: #f7eadf;
  --beige-2: #fff6ef;
  --cream: #fffaf5;
  --red: #c63849;
  --red-dark: #9f2635;
  --pink: #f3d7d5;
  --text: #17100e;
  --muted: #665c58;
  --line: #e5d0c6;

  /* Sobrescribe colores antiguos */
  --navy: #17100e;
  --navy2: #241715;
  --yellow: #c63849;
  --blue: #c63849;
  --green: #9f2635;
  --orange: #17100e;
  --purple: #9f2635;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--beige) !important;
  color: var(--text);
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
}

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--beige) !important;
}

.screen { min-height: 100vh; }

.dark-screen {
  background: linear-gradient(180deg, var(--black-2), var(--black)) !important;
  color: var(--cream);
}

.light-screen {
  background: var(--beige) !important;
}

.screen-inner {
  min-height: 100vh;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
}

.center { justify-content: center; align-items: center; text-align: center; }
.bottom { justify-content: flex-end; }
.spaced { justify-content: space-between; }
.question-layout { justify-content: flex-start; }

.logo-star {
  color: var(--red) !important;
  font-size: 42px;
  margin-bottom: 28px;
}

h1, h2, h3, .final-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -1.5px;
}

h1 {
  margin: 0;
  font-size: 58px;
  line-height: .86;
}

h1 span {
  color: var(--red) !important;
  font-style: italic;
}

h2 {
  margin: 0 0 16px;
  font-size: 50px;
  line-height: .96;
}

h3 {
  margin: 0 0 28px;
  font-size: 36px;
  line-height: 1.04;
}

.main-text {
  margin: 30px 0;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,250,245,.78);
}

.light-screen .main-text {
  color: var(--muted);
}

.input-block label,
.top span {
  color: var(--red) !important;
}

.input-block input,
textarea {
  background: var(--cream) !important;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn,
.link-btn,
.yellow,
.navy {
  background: var(--red) !important;
  color: var(--cream) !important;
  box-shadow: 0 16px 34px rgba(198,56,73,.24) !important;
}

.btn:hover,
.link-btn:hover {
  background: var(--red-dark) !important;
}

.info-card {
  background: rgba(255,250,245,.06) !important;
  border: 1px solid rgba(255,250,245,.18) !important;
}

.info-card p {
  color: rgba(255,250,245,.84) !important;
}

.icon-btn,
.link-icon {
  background: var(--cream) !important;
  color: var(--black) !important;
  border: 1px solid var(--line) !important;
}

.circle-icon {
  background: var(--pink) !important;
  color: var(--red) !important;
}

.progress {
  background: #ead8cf !important;
}

.progress div {
  background: var(--red) !important;
}

.answer-card {
  background: var(--cream) !important;
  border: 1px solid var(--line) !important;
}

.answer-card.selected,
.answer-card:has(input:checked) {
  background: #fff4f1 !important;
  border-color: var(--red) !important;
}

.answer-letter {
  background: var(--red) !important;
  color: var(--cream) !important;
}

.scale-item {
  background: var(--cream) !important;
  border: 1px solid var(--line) !important;
  color: var(--black) !important;
}

.scale-item.selected,
.scale-item:has(input:checked) {
  background: var(--red) !important;
  color: var(--cream) !important;
  border-color: var(--red) !important;
}

.final-title {
  color: var(--cream) !important;
}

.final-copy {
  color: var(--red) !important;
}

/* ADMIN */
.layout,
.admin-layout {
  background: var(--beige) !important;
}

.side,
.sidebar {
  background: var(--black) !important;
  color: var(--cream) !important;
}

.logo span {
  color: var(--red) !important;
}

.nav a.active,
.nav a:hover {
  background: rgba(198,56,73,.18) !important;
}

.card,
.userrow,
.user-row {
  background: var(--cream) !important;
  border: 1px solid var(--line) !important;
}

.badge,
.pill,
.score-pill,
.tag,
.alert {
  background: var(--pink) !important;
  color: var(--red-dark) !important;
}

.bar {
  background: #ead8cf !important;
}

.bar span {
  background: var(--red) !important;
}

.kpi {
  color: var(--red) !important;
}

@media (min-width: 900px) {
  body {
    display: block;
  }

  .app {
    width: 100vw;
    max-width: none;
    min-height: 100vh;
  }

  .dark-screen {
    display: grid;
    grid-template-columns: 50vw 50vw;
  }

  .dark-screen::before {
    content: "";
    display: block;
    width: 50vw;
    min-height: 100vh;
    background:
      linear-gradient(180deg, rgba(23,16,14,.15), rgba(23,16,14,.85)),
      url("../img/kairos-team.jpeg");
    background-size: cover;
    background-position: center;
  }

  .dark-screen .screen-inner {
    grid-column: 2;
    width: 50vw;
    max-width: 50vw;
    justify-content: center;
    padding: 72px 7vw;
  }

  .light-screen .screen-inner {
    max-width: 1080px;
    margin: 0 auto;
    justify-content: center;
    padding: 64px 6vw;
  }

  h1 { font-size: 86px; }
  h2 { font-size: 76px; }
  h3 { font-size: 48px; }

  .answers-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .answer-card {
    margin-bottom: 0;
    min-height: 132px;
  }

  .scale-grid {
    grid-template-columns: repeat(10, 1fr);
  }
}