/* ════════════════════════════════
   BrotaInnova – Postulación CSS v1
   Fonts: Baloo 2 + Nunito
   Brand: #1c3d24 · #417f49 · #86b154
════════════════════════════════ */
:root {
  --deep:  #111f14;
  --dark:  #1c3d24;
  --mid:   #2d5c34;
  --green: #417f49;
  --lime:  #86b154;
  --lime-l:#a8d270;
  --pale:  #f2f8f3;
  --soft:  #e8f4eb;
  --white: #ffffff;
  --tx:    #111f14;
  --tx2:   #3a5c3e;
  --tx3:   #668569;
  --bd:    #c5dbc9;
  --err:   #c0392b;
  --err-bg:#fdf0ef;
  --warn:  #e67e22;
  --warn-bg:#fef4e9;
  --r:     14px;
  --r-lg:  22px;
  --sh:    0 8px 32px rgba(17,31,20,.09);
  --sh-lg: 0 20px 60px rgba(17,31,20,.14);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.bpost-body {
  font-family: 'Nunito', sans-serif;
  background: var(--pale);
  color: var(--tx);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.bp-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.bp-container { width: min(720px, calc(100% - 40px)); margin: 0 auto; }
.bp-nowrap { white-space: nowrap; }

/* ── HEADER ── */
.bp-header {
  background: var(--deep);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0;
}
.bp-header-in {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.bp-header-logo { height: 32px; width: auto; filter: brightness(0) invert(1); }
.bp-header-tag {
  font-family: 'Baloo 2', sans-serif; font-size: 12px; font-weight: 800;
  color: var(--lime); text-transform: uppercase; letter-spacing: .07em;
}

/* ── MAIN ── */
.bp-main { flex: 1; padding: 48px 0 64px; }

/* ── INTRO ── */
.bp-intro { text-align: center; margin-bottom: 36px; }
.bp-intro-badge {
  display: inline-flex; align-items: center;
  background: var(--soft); color: var(--green);
  border-radius: 999px; padding: 6px 18px;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 16px;
}
.bp-intro h1 {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(26px, 5vw, 40px); font-weight: 900;
  color: var(--dark); letter-spacing: -.025em; margin-bottom: 10px;
}
.bp-intro p { font-size: 15px; color: var(--tx2); line-height: 1.7; }

/* ── ERRORS ── */
.bp-errors {
  background: var(--err-bg); border: 1.5px solid #e8b4b0;
  border-radius: var(--r); padding: 16px 20px; margin-bottom: 24px;
  color: var(--err);
}
.bp-errors strong { display: block; font-size: 14px; margin-bottom: 8px; }
.bp-errors ul { padding-left: 18px; }
.bp-errors li { font-size: 13.5px; margin-bottom: 4px; }

/* ── FORM CARD ── */
.bp-form {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 36px 40px;
  border: 1.5px solid var(--bd);
}

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

.bp-field { display: flex; flex-direction: column; gap: 6px; }
.bp-field-full { grid-column: 1 / -1; }

.bp-field label,
.bp-label-block {
  font-size: 13.5px; font-weight: 800; color: var(--dark);
}
.bp-req { color: var(--green); }
.bp-hint { font-size: 12px; color: var(--tx3); margin-top: -3px; }

.bp-field input,
.bp-field select,
.bp-field textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 600; color: var(--tx);
  background: var(--pale); border: 1.5px solid var(--bd);
  border-radius: var(--r); padding: 12px 15px;
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
}
.bp-field input::placeholder,
.bp-field textarea::placeholder { color: #9ab69e; font-weight: 600; }
.bp-field input:focus,
.bp-field select:focus,
.bp-field textarea:focus {
  border-color: var(--green); background: var(--white);
  box-shadow: 0 0 0 3px rgba(65,127,73,.12);
}
.bp-field select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23417f49' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.bp-field textarea { resize: vertical; min-height: 130px; line-height: 1.65; }

/* Radio cards – 4to año */
.bp-radio-group { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.bp-radio-card {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 12px;
  background: var(--pale); border: 2px solid var(--bd);
  border-radius: var(--r); padding: 16px 18px; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.bp-radio-card:hover { border-color: var(--green); background: var(--soft); }
.bp-radio-card.bp-radio-checked { border-color: var(--green); background: var(--soft); box-shadow: 0 0 0 3px rgba(65,127,73,.1); }
.bp-radio-card.bp-radio-no.bp-radio-checked { border-color: var(--err); background: var(--err-bg); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.bp-radio-card input[type=radio] { position: absolute; opacity: 0; width: 0; }
.bp-radio-ico { font-size: 22px; flex-shrink: 0; }
.bp-radio-lbl { font-size: 14px; font-weight: 800; color: var(--dark); }

.bp-cuarto-warning {
  margin-top: 12px; padding: 14px 18px;
  background: var(--warn-bg); border: 1.5px solid #f0c087;
  border-radius: var(--r); font-size: 13.5px; color: #7a4510; line-height: 1.6;
}

/* Char counter */
.bp-char-counter {
  text-align: right; font-size: 12px; color: var(--tx3); margin-top: 4px;
}
.bp-char-counter.bp-char-warn { color: var(--warn); font-weight: 700; }
.bp-char-counter.bp-char-over { color: var(--err); font-weight: 700; }
#bp-char-count { font-weight: 800; }

/* Form footer */
.bp-form-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 28px; padding-top: 24px;
  border-top: 1.5px solid var(--soft); flex-wrap: wrap;
}
.bp-disclaimer { font-size: 12px; color: var(--tx3); line-height: 1.6; max-width: 380px; }
.bp-btn-submit {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--green), var(--lime));
  color: #fff; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 16px;
  padding: 14px 32px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 8px 28px rgba(134,177,84,.38);
  transition: all .25s cubic-bezier(.22,1,.36,1);
  white-space: nowrap;
}
.bp-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(134,177,84,.48); }
.bp-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── SUCCESS ── */
.bp-success {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 56px 48px;
  text-align: center; border: 1.5px solid var(--bd);
}
.bp-success-ico { font-size: 64px; margin-bottom: 20px; }
.bp-success h1 { font-family: 'Baloo 2', sans-serif; font-size: 30px; font-weight: 900; color: var(--dark); margin-bottom: 14px; }
.bp-success p { font-size: 15px; color: var(--tx2); line-height: 1.7; margin-bottom: 10px; }
.bp-success-sub { font-size: 13.5px; color: var(--tx3); }
.bp-btn-back {
  display: inline-flex; align-items: center; margin-top: 28px;
  background: var(--dark); color: #fff;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 15px;
  padding: 12px 28px; border-radius: 999px; border: none; cursor: pointer;
  transition: background .2s;
}
.bp-btn-back:hover { background: var(--mid); }

/* ── BLOCK ALERT ── */
.bp-block-alert {
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 56px 48px;
  text-align: center; border: 2px solid #e8b4b0;
}
.bp-block-ico { font-size: 56px; margin-bottom: 16px; }
.bp-block-alert h2 { font-family: 'Baloo 2', sans-serif; font-size: 26px; font-weight: 900; color: var(--err); margin-bottom: 14px; }
.bp-block-alert p { font-size: 15px; color: var(--tx2); line-height: 1.7; margin-bottom: 10px; }

/* ── FOOTER LOGOS ── */
.bp-footer {
  background: var(--deep);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 0 0;
}
.bp-footer-logos {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.bp-fl-sep { width: 1px; height: 52px; background: rgba(255,255,255,.1); margin: 0 44px; flex-shrink: 0; }
.bp-fl-block { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.bp-fl-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.3); }

/* Corporación — protagonista */
.bp-fl-corp img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: .88; transition: opacity .2s; }
.bp-fl-corp:hover img { opacity: 1; }

/* Fomento — protagonista */
.bp-fl-fomento img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: .88; transition: opacity .2s; }
.bp-fl-fomento:hover img { opacity: 1; }

/* ELEVA — secundario */
.bp-fl-eleva img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .42; transition: opacity .2s; }
.bp-fl-eleva:hover img { opacity: .65; }

.bp-footer-bottom {
  padding: 14px 0; text-align: center;
}
.bp-footer-bottom small { font-size: 12px; color: rgba(255,255,255,.25); }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .bp-form { padding: 28px 22px; }
  .bp-form-grid { grid-template-columns: 1fr; }
  .bp-form-footer { flex-direction: column; align-items: stretch; }
  .bp-btn-submit { justify-content: center; }
  .bp-success, .bp-block-alert { padding: 40px 24px; }
  .bp-footer-logos { flex-direction: column; gap: 24px; }
  .bp-fl-sep { width: 48px; height: 1px; margin: 0; }
}

/* Docente radio card */
.bp-radio-docente.bp-radio-checked { border-color: #1a5276; background: #e3f0ff; box-shadow: 0 0 0 3px rgba(26,82,118,.1); }
