:root {
  --ink: #172322;
  --muted: #647270;
  --paper: #fbfaf6;
  --white: #ffffff;
  --line: #dce3df;
  --teal: #176b62;
  --teal-dark: #0f514b;
  --teal-pale: #dff3ed;
  --mint: #a7dfcf;
  --yellow: #f3c969;
  --yellow-pale: #fff4d7;
  --coral: #de745e;
  --coral-pale: #fce9e4;
  --shadow: 0 16px 45px rgba(25, 55, 50, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(167, 223, 207, 0.25), transparent 26rem),
    var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 107, 98, 0.22);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 227, 223, 0.82);
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 7px 16px rgba(23, 107, 98, 0.2);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 64px;
  align-items: center;
  padding: 86px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  content: "";
  background: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -3px;
}

.hero-accent {
  position: relative;
  color: var(--teal);
  white-space: nowrap;
}

.hero-accent::after {
  position: absolute;
  right: 1%;
  bottom: -4px;
  left: 0;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.62;
  transform: rotate(-1deg);
}

.hero-copy {
  max-width: 630px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(23, 107, 98, 0.18);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.button svg,
.section-icon svg,
.feature-icon svg,
.result-icon svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.hero-proof {
  display: flex;
  margin-top: 30px;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.preview-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(220, 227, 223, 0.9);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.preview-card::before {
  position: absolute;
  z-index: -1;
  right: -20px;
  bottom: -20px;
  width: 75%;
  height: 75%;
  content: "";
  border-radius: var(--radius-lg);
  background: var(--mint);
  opacity: 0.34;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.preview-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-score {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 78%, var(--teal-pale) 78% 100%);
}

.preview-score-inner {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.preview-list {
  display: grid;
  gap: 12px;
}

.preview-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 12px;
  background: #f7f8f5;
}

.preview-row strong {
  display: block;
  font-size: 14px;
}

.preview-row small {
  color: var(--muted);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-dot.done {
  background: var(--teal);
}

.status-dot.partial {
  background: var(--yellow);
}

.status-dot.pending {
  background: var(--coral);
}

.mini-badge {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--teal-pale);
  font-size: 11px;
  font-weight: 700;
}

.main-area {
  padding-bottom: 80px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.step {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.step + .step {
  border-left: 1px solid var(--line);
}

.step-number {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: #edf0ed;
  font-size: 12px;
}

.step.active {
  color: var(--teal-dark);
  background: var(--teal-pale);
}

.step.active .step-number,
.step.complete .step-number {
  color: var(--white);
  background: var(--teal);
}

.workspace-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading-main {
  display: flex;
  gap: 15px;
}

.section-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--teal);
  background: var(--teal-pale);
}

.section-heading h2 {
  margin-bottom: 5px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -1px;
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field-full {
  grid-column: 1 / -1;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fdfdfb;
  transition: border 160ms ease, box-shadow 160ms ease;
}

textarea {
  min-height: 190px;
  padding: 15px 16px;
  resize: vertical;
}

select {
  min-height: 48px;
  padding: 0 14px;
}

textarea:hover,
select:hover,
textarea:focus,
select:focus {
  border-color: #95b9b2;
}

textarea::placeholder {
  color: #99a4a1;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
}

.attachment-area {
  display: grid;
  margin-top: 4px;
  gap: 10px;
}

.dropzone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1.5px dashed #a9beb8;
  border-radius: 13px;
  color: var(--ink);
  background: #f6faf8;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dropzone:hover,
.dropzone.dragging {
  border-color: var(--teal);
  background: var(--teal-pale);
  transform: translateY(-1px);
}

.dropzone.disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.dropzone-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  color: var(--teal);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(23, 107, 98, 0.08);
}

.dropzone-icon svg {
  width: 19px;
  height: 19px;
}

.dropzone strong,
.dropzone small {
  display: block;
}

.dropzone strong {
  font-size: 14px;
}

.dropzone small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.file-formats {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.file-item.done {
  border-color: #b9d9d1;
}

.file-item.error {
  border-color: #ecc4ba;
  background: #fffafa;
}

.file-kind {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--teal);
  background: var(--teal-pale);
}

.file-item.error .file-kind {
  color: var(--coral);
  background: var(--coral-pale);
}

.file-kind svg,
.file-dismiss svg {
  width: 17px;
  height: 17px;
}

.file-info {
  min-width: 0;
}

.file-name-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.file-name-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name-row span {
  flex: 0 0 auto;
  color: var(--muted);
}

.file-status {
  display: grid;
  margin-top: 4px;
  color: var(--muted);
  gap: 5px;
  font-size: 11px;
}

.file-item.error .file-status {
  color: #934633;
}

.file-progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eeeb;
}

.file-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 160ms ease;
}

.file-dismiss {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.file-dismiss:hover {
  color: var(--ink);
  background: #eef1ee;
}

.character-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.local-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.local-note svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.error-message {
  margin: 16px 0 0;
  padding: 11px 14px;
  border-radius: 10px;
  color: #923f31;
  background: var(--coral-pale);
  font-size: 14px;
  font-weight: 600;
}

.results-section {
  margin-top: 28px;
  animation: rise 420ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.result-card.featured {
  grid-column: 1 / -1;
  border-color: #add3c9;
  background: linear-gradient(135deg, #f3fbf8, #ffffff);
}

.result-card-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.result-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--teal);
  background: var(--teal-pale);
}

.result-card h3 {
  margin: 0;
  font-size: 17px;
}

.result-card p {
  color: #465653;
}

.clean-list,
.check-list,
.structure-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 11px;
  list-style: none;
}

.clean-list li,
.check-list li {
  position: relative;
  padding-left: 25px;
  color: #465653;
}

.clean-list li::before {
  position: absolute;
  top: 0.62em;
  left: 3px;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--teal);
}

.check-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 16px;
  height: 16px;
  content: "";
  border: 1.5px solid #8fb2aa;
  border-radius: 5px;
  background: var(--white);
}

.structure-list {
  counter-reset: structure;
}

.structure-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  color: #465653;
  counter-increment: structure;
}

.structure-list li::before {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--teal-pale);
  content: counter(structure);
  font-size: 12px;
  font-weight: 800;
}

.draft-block {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f6f7f3;
}

.draft-block textarea {
  min-height: 270px;
  background: var(--white);
}

.review-summary {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 18px;
  margin-bottom: 18px;
}

.score-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--teal-dark);
  text-align: center;
}

.score-value {
  font-family: "Manrope", sans-serif;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
}

.score-card strong {
  margin-top: 12px;
}

.score-card small {
  max-width: 230px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.summary-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.summary-lists h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.summary-lists ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.summary-lists li + li {
  margin-top: 7px;
}

.review-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.review-table {
  width: 100%;
  border-collapse: collapse;
}

.review-table th {
  padding: 14px 17px;
  color: var(--muted);
  background: #f5f7f4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.review-table td {
  padding: 18px 17px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.criterion-title {
  font-weight: 700;
}

.criterion-evidence {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.status-badge::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.status-badge.cumplido {
  color: var(--teal-dark);
  background: var(--teal-pale);
}

.status-badge.parcial {
  color: #8a650d;
  background: var(--yellow-pale);
}

.status-badge.pendiente {
  color: #994735;
  background: var(--coral-pale);
}

.meter {
  min-width: 110px;
}

.meter-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}

.meter-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ece8;
}

.meter-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.recommendation {
  max-width: 290px;
  color: #53625f;
  font-size: 14px;
}

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #ead79e;
  border-radius: 14px;
  color: #695419;
  background: var(--yellow-pale);
  font-size: 14px;
}

.disclaimer svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.how-it-works {
  padding: 88px 0;
}

.center-heading {
  max-width: 650px;
  margin: 0 auto 38px;
  text-align: center;
}

.center-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1.5px;
}

.center-heading p {
  color: var(--muted);
}

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

.feature-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.feature-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 11px;
  color: var(--teal-dark);
  background: var(--teal-pale);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-note svg {
  width: 15px;
  height: 15px;
}

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

  .preview-card {
    max-width: 600px;
    margin: 0 auto;
  }

  .form-grid,
  .result-grid,
  .review-summary {
    grid-template-columns: 1fr;
  }

  .result-card.featured,
  .field-full {
    grid-column: auto;
  }

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

  .review-table th:nth-child(3),
  .review-table td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .nav {
    min-height: 62px;
  }

  .nav-meta {
    display: none;
  }

  .hero {
    padding: 44px 0 54px;
  }

  h1 {
    font-size: 42px;
    letter-spacing: -2px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    flex-direction: column;
    gap: 8px;
  }

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

  .step + .step {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading,
  .form-footer,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading .button,
  .form-footer .button {
    width: 100%;
  }

  .summary-lists {
    grid-template-columns: 1fr;
  }

  .dropzone {
    grid-template-columns: auto 1fr;
  }

  .file-formats {
    grid-column: 2;
  }

  .review-table,
  .review-table tbody,
  .review-table tr,
  .review-table td {
    display: block;
  }

  .review-table thead {
    display: none;
  }

  .review-table tr {
    padding: 18px;
    border-top: 1px solid var(--line);
  }

  .review-table tr:first-child {
    border-top: 0;
  }

  .review-table td {
    padding: 5px 0;
    border: 0;
  }

  .review-table td:nth-child(3) {
    display: block;
  }

  .recommendation {
    max-width: none;
  }
}
