:root{
  --orange:#FE914E;
  --blue:#34588A;
  --ink:#18314f;
  --muted:#68778a;
  --bg:#f6f8fb;
  --line:#dfe6ef;
  --white:#fff;
  --radius:16px;
  --radius-sm:10px;
  --shadow-sm:0 2px 8px rgba(24,49,79,.06);
  --shadow-md:0 10px 30px rgba(24,49,79,.08);
  --shadow-lg:0 18px 45px rgba(24,49,79,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--blue)}
img{max-width:100%}
.container{width:min(1160px,calc(100% - 32px));margin:auto}
.topbar{background:linear-gradient(90deg,var(--blue),var(--orange));height:5px}

/* ---------- Header ---------- */
header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.nav{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.logo{height:56px;width:auto;display:block}
.nav-links{display:flex;gap:22px;align-items:center}
.nav-links a{text-decoration:none;font-weight:700;font-size:.95rem;color:var(--ink);opacity:.8;transition:opacity .15s ease,color .15s ease}
.nav-links a:hover{opacity:1;color:var(--blue)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:0;border-radius:var(--radius-sm);padding:13px 22px;
  font-weight:800;font-size:.95rem;line-height:1;
  text-decoration:none;cursor:pointer;
  white-space:nowrap;
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease,background-color .15s ease;
  box-shadow:var(--shadow-sm);
}
.btn:active{transform:translateY(1px)}
.btn:focus-visible{outline:3px solid rgba(52,88,138,.35);outline-offset:2px}

.btn-primary{background:var(--orange);color:#fff}
.btn-primary:hover{filter:brightness(1.06);box-shadow:0 8px 20px rgba(254,145,78,.35);transform:translateY(-1px)}

.btn-secondary{background:var(--blue);color:#fff}
.btn-secondary:hover{filter:brightness(1.08);box-shadow:0 8px 20px rgba(52,88,138,.3);transform:translateY(-1px)}

.btn-ghost{background:#eef2f7;color:var(--blue)}
.btn-ghost:hover{background:#e3eaf3;transform:translateY(-1px)}

/* header CTA sits centered in the nav row without manual offsets */
.nav .cta-iniciar{flex:0 0 auto}

/* ---------- Hero ---------- */
.hero{padding:clamp(40px,6vw,58px) 0 34px;background:linear-gradient(135deg,#fff 0%,#f3f7fc 100%)}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:42px;align-items:center}
.kicker{display:inline-block;background:#fff1e9;color:#b85721;border:1px solid #ffd5be;border-radius:999px;padding:6px 11px;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.08;margin:16px 0;color:var(--blue);letter-spacing:-.01em}
.lead{font-size:1.08rem;color:#53667d;max-width:680px}
.hero > .container .btn-primary{margin-top:26px}

.hero-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:var(--shadow-lg)}
.hero-card h3{margin-top:0;color:var(--blue)}
.hero-card ul{margin:14px 0;padding-left:0;list-style:none;display:grid;gap:10px}
.hero-card ul li{position:relative;padding-left:30px;color:#42566d}
.hero-card ul li:before{
  content:"✓";position:absolute;left:0;top:-1px;
  display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;
  background:#e9f1fb;color:var(--blue);font-weight:900;font-size:.75rem;
}
.checks{display:grid;gap:12px;padding:0;margin:18px 0;list-style:none}
.checks li:before{content:"✓";display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e9f1fb;color:var(--blue);font-weight:900;margin-right:8px}

/* ---------- Form shell ---------- */
main{padding:clamp(24px,4vw,34px) 0 60px}
.form-shell{background:#fff;border:1px solid var(--line);border-radius:20px;padding:clamp(20px,4vw,36px);box-shadow:var(--shadow-md)}
.form-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:26px}
.form-header h2{margin:0;color:var(--blue);font-size:1.4rem}
.step{color:var(--muted);font-size:.9rem}

.section{margin:30px 0}
.section h3{font-size:1.05rem;margin:0 0 16px;color:var(--blue);display:flex;align-items:center;gap:10px}
.section h3 span{display:grid;place-items:center;width:28px;height:28px;background:var(--blue);color:#fff;border-radius:8px;font-size:.82rem;flex:0 0 auto}

.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.field{grid-column:span 12}
.field.s8{grid-column:span 8}
.field.s6{grid-column:span 6}
.field.s4{grid-column:span 4}
.field.s3{grid-column:span 3}

label{display:block;font-size:.88rem;font-weight:800;margin-bottom:7px;color:var(--ink)}
input,select,textarea{
  width:100%;border:1px solid #ccd6e2;border-radius:var(--radius-sm);
  background:#fff;color:#18314f;padding:12px 14px;font:inherit;outline:none;
  transition:border-color .15s ease,box-shadow .15s ease;
}
input:hover,select:hover,textarea:hover{border-color:#b7c4d6}
input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(52,88,138,.12)}
textarea{min-height:115px;resize:vertical}
select{appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%2368778a' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");background-repeat:no-repeat;background-position:right 14px center;padding-right:38px}

.help{font-size:.78rem;color:var(--muted);margin-top:6px}
.required{color:#c2410c}

/* ---------- Modern file upload fields ---------- */
.field input[type="file"]{
  width:100%;
  border:1.5px dashed #b9c7d7;
  border-radius:var(--radius-sm);
  background:#f9fbfd;
  padding:16px 14px;
  cursor:pointer;
  color:var(--muted);
  font-size:.9rem;
  transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease;
}
.field input[type="file"]:hover{border-color:var(--blue);background:#f3f8fd}
.field input[type="file"]:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(52,88,138,.12);outline:none}
.field input[type="file"]::file-selector-button{
  display:inline-flex;align-items:center;gap:6px;
  margin-right:14px;
  border:0;border-radius:8px;
  background:var(--blue);color:#fff;
  font-weight:700;font-size:.85rem;
  padding:9px 16px;
  cursor:pointer;
  transition:filter .15s ease,transform .15s ease;
}
.field input[type="file"]::file-selector-button:hover{filter:brightness(1.1);transform:translateY(-1px)}
.field input[type="file"]::-webkit-file-upload-button{
  display:inline-flex;align-items:center;gap:6px;
  margin-right:14px;
  border:0;border-radius:8px;
  background:var(--blue);color:#fff;
  font-weight:700;font-size:.85rem;
  padding:9px 16px;
  cursor:pointer;
}

.file-name-preview{display:none;align-items:center;gap:8px;margin-top:8px;padding:8px 12px;background:#eef6ee;border:1px solid #cfe8cf;border-radius:8px;font-size:.82rem;color:#1f5f3a;font-weight:600}
.file-name-preview.is-visible{display:flex}
.file-name-preview .file-icon{flex:0 0 auto;width:16px;height:16px;display:inline-grid;place-items:center;border-radius:50%;background:#16834a;color:#fff;font-size:.65rem}
.file-name-preview .file-name-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.file-box{border:1px dashed #b9c7d7;border-radius:12px;padding:15px;background:#f9fbfd}
.notice{background:#f1f6fb;border-left:4px solid var(--blue);padding:14px 16px;border-radius:9px;color:#42566d;font-size:.9rem}

.consent-list{display:grid;gap:12px}
.consent{display:flex;gap:10px;align-items:flex-start;background:#fff9f5;border:1px solid #ffd9c3;padding:14px 16px;border-radius:12px;transition:border-color .15s ease,box-shadow .15s ease}
.consent:hover{border-color:#ffc59e}
.consent:focus-within{box-shadow:0 0 0 3px rgba(254,145,78,.18)}
.consent input{width:18px;height:18px;margin-top:3px;flex:0 0 auto;accent-color:var(--orange)}

.actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}

.alert{padding:13px 15px;border-radius:10px;margin:15px 0;font-weight:700}
.alert-error{background:#fff0f0;color:#9f1239;border:1px solid #fecdd3}

.notice-error{border-color:#d9534f;background:#fff5f5;color:#7b1e1e;margin-bottom:20px}
.notice-error ul{margin:8px 0 0;padding-left:20px}

/* ---------- Footer ---------- */
.footer{margin-top:64px;padding:42px 20px 26px;border-top:1px solid rgba(52,88,138,.14);background:linear-gradient(180deg,#f8fafc 0%,#eef3f8 100%)}
.footer .footer-inner{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:28px;align-items:start}
.footer .footer-brand{color:var(--blue);font-weight:800;font-size:1.05rem;margin-bottom:8px}
.footer p{margin:6px 0;color:#64748b;line-height:1.65}
.footer a{color:var(--blue);text-decoration:none;transition:color .2s ease,transform .2s ease}
.footer a:hover{color:var(--orange)}
.footer .footer-title{font-weight:750;color:#1e3a5f;margin-bottom:10px}
.footer .footer-bottom{max-width:1180px;margin:30px auto 0;padding-top:18px;border-top:1px solid rgba(52,88,138,.12);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:.86rem;color:#7b8794}

.success{max-width:760px;margin:60px auto;text-align:center;background:#fff;border:1px solid var(--line);border-radius:20px;padding:40px;box-shadow:var(--shadow-md)}
.success-icon{width:64px;height:64px;border-radius:50%;background:#e8f6ee;color:#16834a;display:grid;place-items:center;font-size:30px;margin:0 auto 16px}
.small{font-size:.82rem;color:var(--muted)}

/* ---------- Responsive ---------- */
@media(max-width:800px){
  .hero-grid{grid-template-columns:1fr}
  .nav-links{display:none}
  .field.s8,.field.s6,.field.s4,.field.s3{grid-column:span 12}
  .form-header{flex-direction:column}
  .footer .footer-inner{grid-template-columns:1fr;gap:0;text-align:center}
  .footer .footer-inner > div{padding:20px 0}
  .footer .footer-inner > div:not(:first-child){border-top:1px solid rgba(52,88,138,.12)}
  .footer .footer-brand{font-size:1.1rem}
  .footer p{max-width:420px;margin-left:auto;margin-right:auto}
  .footer .footer-bottom{justify-content:center;text-align:center;flex-direction:column;gap:6px}
}
@media(max-width:480px){
  .container{width:min(100% - 20px,1160px)}
  .nav{min-height:70px}
  .logo{height:47px}
  .hero{padding-top:35px}
  h1{font-size:2rem}
  .form-shell{padding:16px}
  input,select,textarea{font-size:16px}
  .field input[type="file"]{font-size:.82rem;padding:14px 12px}
  .field input[type="file"]::file-selector-button,
  .field input[type="file"]::-webkit-file-upload-button{display:block;width:100%;margin:0 0 10px;justify-content:center}
  .actions{flex-direction:column}
  .actions .btn{width:100%}
}
