/* Cooperadora IEF · IUCOLL — página pública de aportes
   Colores: mismas variables que el resto de las secciones IUCOLL.
   Para cambiar la paleta alcanza con tocar este bloque. */
:root {
  --ink: #1e2b22;
  --ink-soft: #4c5952;
  --paper: #f4f4ef;
  --surface: #ffffff;
  --line: #dedcd0;
  --moss: #4b6b4f;
  --moss-bg: #eaefe6;
  --clay: #c85a2b;
  --clay-deep: #a8471f;
  --mp: #009ee3;        /* azul Mercado Pago: el aspirante lo reconoce al instante */
  --mp-deep: #007bb3;
  --error: #b3261e;
  --error-bg: #fbe9e7;

  --f-titulo: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-texto: "Work Sans", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--moss); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .subida:focus-within {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

/* ---------- Encabezado ---------- */
.cabecera {
  background: var(--surface);
  border-bottom: 6px solid var(--ink);
}
.cabecera__in {
  max-width: 800px;
  margin: 0 auto;
  padding: 22px 20px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cabecera__logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex-shrink: 0;
}
.cabecera__titulo {
  margin: 0;
  font-family: var(--f-titulo);
  font-weight: 900;
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: .9;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.cabecera__sub {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.35;
  max-width: 34ch;
}

/* ---------- Pasos ---------- */
.contenido {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.paso {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 26px 0;
}
.paso + .paso { border-top: 1px solid var(--line); }
.paso__num {
  font-family: var(--f-titulo);
  font-weight: 900;
  font-size: 3.4rem;
  line-height: .8;
  color: var(--clay);
}
.paso__titulo {
  margin: 0 0 18px;
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.05;
}

/* ---------- Bono de pago (talón + cuerpo, con línea de corte) ---------- */
.bono {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.bono__talon {
  position: relative;
  padding: 20px 22px 22px;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* línea perforada y muescas del talón */
.bono__talon::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  border-bottom: 2px dashed var(--line);
}
.bono__rotulo {
  font-size: .85rem;
  opacity: .75;
}
.bono__monto {
  font-family: var(--f-titulo);
  font-weight: 900;
  font-size: clamp(3.4rem, 17vw, 5rem);
  line-height: .95;
  letter-spacing: .01em;
}
.bono__cuerpo { padding: 22px; }
.bono__texto { margin: 0 0 18px; font-size: 1.02rem; }
.bono__nota {
  margin: 14px 0 0;
  font-size: .88rem;
  color: var(--ink-soft);
}

.btn-mp {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 22px;
  background: var(--mp);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background .15s;
}
.btn-mp:hover { background: var(--mp-deep); }

/* ---------- Formulario ---------- */
.formulario { display: grid; gap: 22px; }
.grupo {
  margin: 0;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.grupo legend {
  padding: 0 6px;
  font-weight: 700;
  font-size: .95rem;
}
.grilla { display: grid; grid-template-columns: 1fr; gap: 14px; }
.campo { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.campo label, .etiqueta { font-weight: 600; font-size: .92rem; }
.ayuda { color: var(--ink-soft); font-size: .82rem; }

input[type=text], input[type=tel], input[type=email], input[type=date], select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #c9c7ba;
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input:focus, select:focus { background: #fff; border-color: var(--ink); outline: none; }
.campo--error input, .campo--error select, .campo--error .subida { border-color: var(--error); background: var(--error-bg); }

/* Subida de la captura */
.subida {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 14px;
  border: 2px dashed #c9c7ba;
  border-radius: 4px;
  background: var(--paper);
  cursor: pointer;
}
.campo .subida { font-weight: 400; }
.subida:hover { border-color: var(--moss); }
.subida input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.subida__vista {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.subida__texto { font-size: .9rem; color: var(--ink-soft); }
.subida__texto strong { display: block; color: var(--ink); font-size: 1rem; }

.confirmar {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .92rem;
  cursor: pointer;
}
.confirmar input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--moss); flex-shrink: 0; }

.form-estado:empty { display: none; }
.form-estado {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--error);
  background: var(--error-bg);
  color: var(--error);
  font-weight: 600;
  font-size: .95rem;
}

.btn-enviar {
  justify-self: stretch;
  min-height: 56px;
  padding: 12px 32px;
  border: 0;
  border-radius: 4px;
  background: var(--clay);
  color: #fff;
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}
.btn-enviar:hover { background: var(--clay-deep); }
.btn-enviar[disabled] { opacity: .65; cursor: progress; }

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

/* ---------- Mensaje de éxito ---------- */
.exito {
  padding: 26px 22px;
  background: var(--moss-bg);
  border: 1px solid #c9d6c4;
  border-radius: 4px;
  outline: none;
}
.exito__icono { width: 52px; height: 52px; fill: var(--moss); }
.exito__icono path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.exito__titulo {
  margin: 10px 0 8px;
  font-family: var(--f-titulo);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.05;
}
.exito p { margin: 0 0 10px; }
.exito__recibo { font-size: 1.05rem; }
.exito__recibo strong { font-family: var(--f-titulo); font-size: 1.5rem; letter-spacing: .03em; }
.exito__ayuda { font-size: .9rem; color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .exito:not([hidden]) { animation: aparecer .35s ease-out; }
  @keyframes aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Avisos (respaldo sin JavaScript) */
.aviso { padding: 20px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); }
.aviso--ok { background: var(--moss-bg); }
.aviso--error { background: var(--error-bg); color: var(--error); }

/* ---------- Pie ---------- */
.pie {
  padding: 26px 20px 34px;
  text-align: center;
  background: var(--ink);
  color: #e9ece6;
  font-size: .95rem;
}
.pie p { margin: 0; }
.pie a { color: #fff; font-weight: 700; white-space: nowrap; }

/* ---------- Pantallas medianas y grandes ---------- */
@media (min-width: 640px) {
  .cabecera__in { padding: 28px 24px 24px; gap: 22px; }
  .cabecera__logo { width: 112px; height: 112px; }
  .cabecera__sub { font-size: 1.05rem; }

  .paso { grid-template-columns: 64px 1fr; gap: 12px; padding: 34px 0; }
  .paso__num { font-size: 4.2rem; }

  .bono { grid-template-columns: minmax(200px, auto) 1fr; }
  .bono__talon { padding: 22px 28px; }
  .bono__monto { font-size: 4.4rem; }
  .bono__talon::after {
    left: auto; right: -1px; top: 14px; bottom: 14px;
    border-bottom: 0;
    border-right: 2px dashed var(--line);
  }

  .grilla { grid-template-columns: 1fr 1fr; }
  .campo--ancho { grid-column: 1 / -1; }
  .grupo { padding: 20px 22px 22px; }
  .btn-enviar { justify-self: start; }
}
