:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1016;
  color: #edf2f7;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(45, 212, 191, 0.18), transparent 30rem),
    radial-gradient(circle at 86% 0%, rgba(250, 204, 21, 0.14), transparent 28rem),
    linear-gradient(135deg, #101720 0%, #151923 52%, #090d13 100%);
  color: #edf2f7;
}

.app-shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px);
  display: grid;
  place-items: center;
}

.tool-panel {
  width: 100%;
  display: grid;
  gap: 18px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 2px;
}

.eyebrow,
.subtitle,
h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

.eyebrow {
  color: #6ee7d8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin-top: 6px;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.subtitle {
  max-width: 620px;
  margin-top: 12px;
  color: #aab7c8;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.55;
}

.status-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(110, 231, 216, 0.35);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.28);
  color: #d9fffa;
  font-weight: 800;
  white-space: nowrap;
}

.explanation,
.controls,
.result-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(10, 15, 22, 0.74);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.explanation {
  padding: 16px 18px;
  color: #cbd5e1;
  line-height: 1.55;
}

.explanation strong {
  display: block;
  margin-bottom: 6px;
  color: #f8fafc;
  font-size: 0.95rem;
}

.explanation p {
  max-width: 850px;
  margin: 0;
}

.explanation code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(110, 231, 216, 0.12);
  color: #9eeadf;
  font-weight: 800;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 14px;
  padding: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.result-header span {
  color: #8794a7;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font: inherit;
  font-weight: 700;
}

select option {
  color: #111827;
}

input::placeholder {
  color: #718096;
}

input:focus,
select:focus {
  border-color: rgba(110, 231, 216, 0.78);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15);
}

.result-card {
  min-height: 460px;
  overflow: hidden;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

h2 {
  color: #f8fafc;
  font-size: 1rem;
}

.result {
  height: 420px;
  padding: 14px 18px 20px;
  overflow: auto;
  color: #d9e2ef;
}

.result:empty::before {
  content: "Escribe una busqueda para ver resultados.";
  display: block;
  color: #8794a7;
  font-weight: 700;
}

.result ul {
  margin: 0;
  padding-left: 18px;
}

.result > ul {
  margin-bottom: 14px;
  padding: 14px 16px 14px 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.result li {
  margin: 6px 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.result b {
  color: #9eeadf;
}

@media (max-width: 760px) {
  .app-shell {
    padding: 16px;
    place-items: start center;
  }

  .hero {
    align-items: start;
    flex-direction: column;
  }

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

  .result-card {
    min-height: 380px;
  }

  .result {
    height: 340px;
  }
}
