:root {
  --ink: #1f1714;
  --ink-soft: #6b5d57;
  --paper: #f8f5f2;
  --card: #ffffff;
  --brand: #c24b47;        /* rojo teja Campus Spain (del logo) */
  --brand-deep: #a23a37;
  --brand-soft: #f3e3e1;
  --gold: #d8a23a;
  --line: #e8e2dd;
  --ok: #1f8a4c;
  --err: #c24b47;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(31, 23, 20, 0.07);
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(120% 80% at 50% -10%, #fff 0%, var(--paper) 55%) fixed;
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  padding: 32px 20px 64px;
}

.shell { max-width: 620px; margin: 0 auto; }

/* Cabecera de marca */
.masthead { text-align: center; margin-bottom: 36px; }
.logo {
  height: auto;
  max-width: 220px;
  width: 100%;
  display: block;
  margin: 0 auto;
}
.kicker {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Intro */
.intro { text-align: center; margin-bottom: 28px; }
.intro h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}
.intro p { color: var(--ink-soft); font-size: 1.02rem; max-width: 52ch; margin: 0 auto; }

/* Tarjeta del formulario */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
label { font-weight: 600; font-size: 0.92rem; }

input[type="text"] {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fcfcfb;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(194, 75, 71, 0.14);
}

/* Zona de subida */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: 11px;
  background: #fcfcfb;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone:focus { border-color: var(--gold); background: #fffdf7; outline: none; }
.dropzone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone-inner {
  padding: 30px 20px;
  text-align: center;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dropzone-inner svg { color: var(--brand); }
.dz-title { font-weight: 600; color: var(--ink); }
.dz-meta { font-size: 0.82rem; }

.selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f3f7f4;
  border: 1px solid #d6e6dc;
  border-radius: 9px;
}
.file-name { font-size: 0.9rem; word-break: break-all; }
.remove {
  font: inherit;
  font-size: 0.82rem;
  color: var(--brand);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
.remove:hover { text-decoration: underline; }

/* Pistas / errores */
.hint { font-size: 0.82rem; min-height: 1em; }
.hint.error { color: var(--err); }

/* Barra de progreso */
.progress { display: flex; flex-direction: column; gap: 6px; }
.bar {
  height: 8px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  border-radius: 99px;
  transition: width 0.2s;
}
.progress-label { font-size: 0.82rem; color: var(--ink-soft); }

/* Botón */
.submit {
  font: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.submit:hover { background: var(--brand-deep); }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: 0.55; cursor: not-allowed; }

.privacy { font-size: 0.8rem; color: var(--ink-soft); text-align: center; }

/* Resultado */
.result {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  text-align: center;
}
.result-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: #fff;
}
.result.ok .result-icon { background: var(--ok); }
.result.err .result-icon { background: var(--err); }
.result h2 { font-family: var(--font-display); margin-bottom: 10px; }
.result p { color: var(--ink-soft); }
.ref {
  margin-top: 16px;
  font-size: 0.85rem;
  font-family: ui-monospace, monospace;
  color: var(--ink);
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}

@media (max-width: 520px) {
  .intro h1 { font-size: 1.7rem; }
  .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
