/* Interview Copilot — ArandIA Solutions */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --card: #ffffff;
  --border: #e3e7ef;
  --text: #121826;
  --muted: #5b6475;
  --accent: #3b6ef5;
  --accent-hover: #2d5be0;
  --accent-soft: #eaf0ff;
  --accent-text: #ffffff;
  --ok: #1f9d55;
  --warn: #b7791f;
  --danger: #d64545;
  --shadow: 0 10px 30px rgba(18, 24, 38, 0.08);
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1017;
    --bg-soft: #131824;
    --card: #171c28;
    --border: #262d3d;
    --text: #e9ecf3;
    --muted: #98a1b3;
    --accent: #5b8cff;
    --accent-hover: #7aa2ff;
    --accent-soft: #1b2540;
    --accent-text: #ffffff;
    --ok: #3fb950;
    --warn: #e3b341;
    --danger: #f06a6a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

img,
svg {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Cabecera ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.brand small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.1;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover {
  color: var(--text);
}

.nav .btn {
  color: var(--accent-text);
}

.brand span {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .nav a:not(.btn) {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .nav .btn {
    padding: 9px 12px;
    font-size: 14px;
  }
}

/* ---- Botones y formularios ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}

.waitlist-form input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.waitlist-form input[type='email']:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  min-height: 1.5em;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.form-msg.ok {
  color: var(--ok);
}

.form-msg.error {
  color: var(--danger);
}

@media (max-width: 520px) {
  .waitlist-form {
    flex-direction: column;
  }
}

/* ---- Hero ---- */

.hero {
  padding: 72px 0 56px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

h1 .accent {
  color: var(--accent);
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 560px;
}

.hero-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 48px;
  }
}

/* Tarjeta de demostración del feedback */

.demo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  font-size: 15px;
}

.demo-q {
  font-weight: 600;
  margin: 0 0 14px;
}

.demo-q span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.demo-score {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.demo-score strong {
  font-size: 38px;
  line-height: 1;
  color: var(--accent);
}

.demo-bars {
  flex: 1;
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.demo-bar {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 8px;
}

.demo-bar i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) var(--v), var(--border) var(--v));
}

.demo-fix {
  margin: 0 0 10px;
}

.demo-fix .wrong {
  color: var(--danger);
  text-decoration: line-through;
}

.demo-fix .right {
  color: var(--ok);
  font-weight: 600;
}

.demo-fix small {
  display: block;
  color: var(--muted);
}

/* ---- Secciones ---- */

section {
  padding: 72px 0;
}

section.soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin: 0 0 36px;
}

h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 14px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--text);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 6px;
  vertical-align: middle;
}

.note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}

/* ---- Precios ---- */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 20px;
}

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

.plan {
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.price {
  font-size: 40px;
  font-weight: 700;
  margin: 6px 0 2px;
  line-height: 1.1;
}

.price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.plan .checklist {
  flex: 1;
}

/* ---- Preguntas frecuentes ---- */

.faq {
  max-width: 760px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* ---- Llamado final ---- */

.cta {
  text-align: center;
}

.cta .waitlist-form {
  margin: 0 auto;
}

.cta .section-head {
  margin: 0 auto 28px;
}

/* ---- Pie ---- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
}

/* ---- Páginas legales ---- */

.legal {
  max-width: 760px;
  padding: 48px 20px 72px;
}

.legal h1 {
  font-size: clamp(30px, 4vw, 40px);
}

.legal h2 {
  font-size: 22px;
  margin-top: 36px;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal .updated {
  color: var(--muted);
  font-size: 14px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
  display: block;
  overflow-x: auto;
}

.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--bg-soft);
}

/* ---- Descarga ---- */

.btn-lg {
  padding: 14px 24px;
  font-size: 17px;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.download-row.center {
  justify-content: center;
  margin-bottom: 28px;
}

.link-muted {
  color: var(--muted);
  font-size: 15px;
}

.cta .note {
  margin: 0 0 12px;
}

/* ---- Planes después de la beta ---- */

.after-beta {
  background: var(--bg-soft);
}

.future-plan {
  border-top: 1px solid var(--border);
  padding: 12px 0 4px;
  margin-top: 12px;
}

.future-plan div {
  color: var(--text);
}

.future-plan p {
  font-size: 15px;
  margin-top: 2px;
}
