/* ─── Reset mínimo ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --color-brand:       #1a5cab;   /* azul FC — reemplazar con paleta oficial */
  --color-brand-dark:  #134a8e;
  --color-accent:      #f5a623;
  --color-text:        #1a1a1a;
  --color-muted:       #555;
  --color-border:      #ccc;
  --color-bg:          #f7f8fc;
  --color-white:       #fff;
  --color-error:       #c0392b;
  --color-success:     #1e8a4c;
  --radius:            6px;
  --shadow:            0 2px 8px rgba(0,0,0,.1);
  --font:              system-ui, -apple-system, Arial, sans-serif;
}

/* ─── Base ──────────────────────────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ─── Layout ────────────────────────────────────────────────────────────── */
.page-header {
  background: var(--color-brand);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.page-header img { height: 40px; width: auto; object-fit: contain; }
.page-header h1 { font-size: 1.1rem; font-weight: 600; }

main {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-brand);
}

/* ─── Formulario ────────────────────────────────────────────────────────── */
.field { margin-bottom: 1.1rem; }

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
label .required { color: var(--color-error); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--color-white);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(26,92,171,.15);
}
textarea { resize: vertical; min-height: 100px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }

/* ─── Adjuntos ──────────────────────────────────────────────────────────── */
.field-hint { font-size: 0.8rem; color: var(--color-muted); margin-top: 0.25rem; }
.file-hint  { font-size: 0.8rem; color: var(--color-muted); margin-top: 0.25rem; }
.intro-text { margin-bottom: 1.5rem; color: #444; font-size: .95rem; }
.req-star   { color: var(--color-error); }

/* ─── Botón ─────────────────────────────────────────────────────────────── */
.btn-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--color-brand);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--color-brand-dark); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ─── Estados ───────────────────────────────────────────────────────────── */
.field-error {
  font-size: 0.82rem;
  color: var(--color-error);
  margin-top: 0.25rem;
  display: none;
}
.field-error.visible { display: block; }

.form-msg {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: none;
}
.form-msg.error  { background: #fdecea; border-left: 4px solid var(--color-error); color: var(--color-error); }
.form-msg.success { background: #e6f4ec; border-left: 4px solid var(--color-success); color: var(--color-success); }
.form-msg.visible { display: block; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.page-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-muted);
  padding: 1.5rem 1rem;
  border-top: 1px solid #e0e0e0;
}
