*{box-sizing:border-box;margin:0;padding:0}
:root{
  --blue:#0868cf;
  --blue-dark:#0755ad;
  --blue-soft:#eef6ff;
  --text:#16355d;
  --muted:#6d819b;
  --border:#d7e1ec;
  --bg:#f5f9fd;
  --green:#08a557;
}
body{font-family:"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px}
a{text-decoration:none;color:inherit}
.site-header{height:78px;background:#fff;border-bottom:1px solid #e1e8f0;position:sticky;top:0;z-index:1000}
.header-inner{height:100%;max-width:1400px;margin:auto;padding:0 28px;display:flex;align-items:center;gap:28px}
.brand img{width:138px;height:auto;display:block}
.main-nav{display:flex;align-items:stretch;height:100%;gap:22px;flex:0 1 auto;min-width:0}
.main-nav a{font-size:12px;display:flex;align-items:center;position:relative;white-space:nowrap}
.main-nav a.active{color:var(--blue);font-weight:600}
.main-nav a.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--blue)}
.advisor-btn{background:#08a557;color:#fff;padding:12px 19px;border-radius:6px;font-weight:600;font-size:12px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}
.advisor-btn i{margin-right:8px;font-size:14px}

.hero{height:205px;background-image:url("img/hero-afiliacion.jpg");background-size:cover;background-position:center;position:relative;color:#fff}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,43,89,.72),rgba(0,60,105,.25))}
.hero-inner{position:relative;max-width:1400px;margin:auto;height:100%;padding:32px 36px;display:flex;justify-content:space-between;align-items:center}
.hero-copy h1{font-size:43px;line-height:1.05;margin-bottom:12px;font-weight:750}
.hero-copy h2{font-size:20px;margin-bottom:9px}
.hero-copy p{font-size:17px}
.steps{display:flex;align-items:flex-start;width:490px;justify-content:space-between;position:relative}
.steps:before{content:"";position:absolute;top:25px;left:42px;right:42px;height:2px;background:rgba(255,255,255,.8)}
.step{position:relative;text-align:center;width:145px}
.step span{width:50px;height:50px;border-radius:50%;background:#aab8c8;display:flex;align-items:center;justify-content:center;margin:auto;color:#fff;font-size:21px;font-weight:700;position:relative}
.step.active span{background:var(--blue)}
.step strong,.step small{display:block}
.step strong{margin-top:8px;font-size:14px}
.step small{font-size:11px;margin-top:2px}

.page-shell{max-width:1400px;margin:28px auto 0;padding:0 28px 34px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px}
.content-column{min-width:0}
.card{background:#fff;border:1px solid #e0e8f1;border-radius:9px;padding:20px 24px;margin-bottom:16px;box-shadow:0 3px 13px rgba(24,63,104,.055)}
.section-heading{display:flex;align-items:flex-start;gap:13px;margin-bottom:18px}
.heading-icon{width:35px;height:35px;border-radius:6px;background:#0b69cc;color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;flex:none}
.section-heading h3{font-size:18px;color:#075fbe;margin-bottom:3px}
.section-heading p{font-size:12px;color:#7890aa}
.form-grid{display:grid;gap:16px 20px}
.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.field label{display:block;font-size:12px;font-weight:600;margin-bottom:6px;color:#24466e}
.field em,.acceptance-row em{color:#e22;font-style:normal}
input,select{width:100%;height:39px;border:1px solid #cdd9e6;border-radius:6px;background:#fff;color:#25466d;padding:0 12px;font:inherit;font-size:13px;outline:none;transition:.18s}
input::placeholder{color:#9aabc0}
input:focus,select:focus{border-color:#4d9df3;box-shadow:0 0 0 3px rgba(8,104,207,.1)}
.input-icon{position:relative}
.input-icon i{position:absolute;left:11px;top:12px;color:#8ca0b6;font-size:13px;z-index:1}
.input-icon input{padding-left:32px}
.type-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding-left:18px}
.type-option{min-height:66px;border:1px solid #d2dce8;border-radius:8px;display:flex;align-items:center;gap:13px;padding:10px 14px;cursor:pointer;position:relative}
.type-option.selected{border:2px solid #2587ed;background:#f3f8ff}
.type-option input{position:absolute;opacity:0;width:0;height:0}
.fake-radio{width:18px;height:18px;border:2px solid #a8b7c8;border-radius:50%;position:relative;flex:none}
.type-option.selected .fake-radio{border-color:#2587ed}
.type-option.selected .fake-radio:after{content:"";width:8px;height:8px;background:#2587ed;border-radius:50%;position:absolute;left:3px;top:3px}
.type-option>i{font-size:26px;color:#0c6bca}
.type-option:not(.selected)>i{color:#6c8099}
.type-option strong,.type-option small{display:block}
.type-option strong{font-size:13px}
.type-option small{font-size:11px;color:#7187a0;margin-top:3px}
.legal-representative{background:#edf6ff;border-radius:7px;padding:13px 14px;margin-top:18px}
.subheading{display:flex;align-items:center;gap:9px;margin-bottom:13px}
.subheading-icon{width:25px;color:#0868cf;font-size:18px}
.subheading h4{font-size:14px;color:#0762bf}
.subheading p{font-size:11px;color:#7188a0;margin-top:2px}
.info-strip{background:#edf6ff;color:#22609d;border-radius:5px;padding:8px 12px;display:flex;gap:8px;align-items:center;font-size:11px;margin-top:13px}
.info-strip i{color:#0870d6}
.committee-grid{grid-template-columns:1.7fr auto auto 1fr;align-items:end}
.check-option{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;white-space:nowrap}
.check-option input{position:absolute;opacity:0;width:0;height:0}
.checkbox-box{width:17px;height:17px;border:2px solid #aebdcd;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;flex:none;background:#fff}
.check-option input:checked+.checkbox-box{background:#0870d6;border-color:#0870d6}
.check-option input:checked+.checkbox-box:after{content:"✓";color:#fff;font-size:11px;font-weight:700}
.acceptance-list{display:grid;gap:12px}
.acceptance-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px}
.acceptance-row a{color:#0067d1;text-decoration:underline;font-size:11px;white-space:nowrap}
.acceptance-row a i{margin-left:4px}
.submit-area{display:grid;grid-template-columns:1.35fr .8fr;gap:20px;align-items:start}
.important-note{border:1px solid #a8d0ff;background:#edf6ff;border-radius:7px;padding:14px;display:flex;gap:12px;color:#285982}
.important-note>i{font-size:23px;color:#0871d8}
.important-note strong{font-size:13px;color:#1266b9}
.important-note p{font-size:11px;line-height:1.5;margin-top:3px}
.payment-action{text-align:center}
.payment-action button{width:100%;height:58px;border:0;border-radius:7px;background:linear-gradient(135deg,#086ed8,#075fc1);color:#fff;font-size:17px;font-weight:700;cursor:pointer;box-shadow:0 5px 14px rgba(8,104,207,.15)}
.payment-action button i{margin-left:12px}
.payment-action small{display:block;color:#7d91a8;font-size:11px;margin-top:10px}
.payment-action small i{margin-right:5px}
.sidebar{min-width:0}
.benefit-card{background:#f4f9ff;border-radius:8px;padding:23px 18px;border:1px solid #e0eaf4;position:sticky;top:18px}
.benefit-card h3{font-size:21px;color:#075bb5;line-height:1.25;margin-bottom:22px}
.benefit-list{border-top:1px solid #d9e5f0;padding-top:13px;display:grid;gap:22px}
.benefit-list>div{display:flex;align-items:center;gap:17px;font-size:14px}
.benefit-list i{font-size:23px;color:#0a68c8;width:28px;text-align:center}
.benefit-list>div:first-child i{color:#12a55d}
.sidebar-callout{margin-top:22px;background:#eaf4ff;border-radius:8px;padding:18px}
.sidebar-callout i{color:#0b70cf;font-size:25px;margin-bottom:12px}
.sidebar-callout p{font-size:14px;line-height:1.55;color:#1f568b}
.sidebar-callout span{display:block;width:34px;height:3px;background:#0868cf;margin-top:14px}
.site-footer{background:#fff;border-top:1px solid #e1e8f0;padding:30px 28px}
.footer-inner{max-width:1400px;margin:auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:45px}
.footer-brand img{width:145px;margin-bottom:9px}
.footer-brand p{max-width:330px;color:#7890a9;font-size:11px;line-height:1.45}
.site-footer h4{font-size:12px;color:#183f69;margin-bottom:9px}
.site-footer> .footer-inner>div:not(.footer-brand):not(.social) a{display:block;font-size:11px;color:#526d89;margin:5px 0}
.social>div{display:flex;gap:10px}
.social a{width:31px;height:31px;border-radius:50%;background:#0768cb;color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px}
.is-hidden{display:none!important}

@media (max-width:1100px){
  .main-nav{gap:12px}
  .main-nav a{font-size:10px}
  .page-shell{grid-template-columns:1fr}
  .sidebar{display:none}
  .hero-copy h1{font-size:36px}
}
@media (max-width:800px){
  .site-header{height:auto}
  .header-inner{padding:13px 18px;flex-wrap:wrap}
  .main-nav{order:3;width:100%;overflow:auto;height:38px}
  .main-nav a{font-size:11px}
  .advisor-btn{margin-left:auto}
  .hero{height:auto}
  .hero-inner{padding:25px 20px;display:block}
  .hero-copy h1{font-size:32px}
  .hero-copy h2{font-size:16px}
  .hero-copy p{font-size:14px}
  .steps{width:100%;margin-top:25px}
  .step{width:32%}
  .step strong{font-size:12px}
  .step small{font-size:9px}
  .page-shell{padding:0 14px 25px;margin-top:14px}
  .card{padding:17px}
  .form-grid.three,.committee-grid,.submit-area{grid-template-columns:1fr}
  .type-options{grid-template-columns:1fr;padding-left:0}
  .acceptance-row{grid-template-columns:1fr;gap:7px}
  .footer-inner{grid-template-columns:1fr 1fr}
}
@media (max-width:520px){
  .brand img{width:120px}
  .advisor-btn{font-size:10px;padding:10px 12px}
  .hero-copy h1{font-size:28px}
  .steps:before{left:28px;right:28px}
  .step span{width:42px;height:42px;font-size:17px}
  .footer-inner{grid-template-columns:1fr}
}

/* =========================================================
   RESPONSIVE HEADER / MENÚ HAMBURGUESA
   Mantiene el header del portal sin amontonar los enlaces.
   ========================================================= */
.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid #d7e1ec;
  border-radius:7px;
  background:#fff;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  flex:none;
}
.menu-toggle span{
  display:block;
  width:20px;
  height:2px;
  border-radius:2px;
  background:#075fbe;
  transition:transform .2s ease, opacity .2s ease;
}
.menu-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle.is-open span:nth-child(2){opacity:0}
.menu-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.nav-advisor{display:flex;margin-left:6px;flex:0 0 auto;width:auto;min-width:172px;height:48px;align-self:center}

@media (max-width:1180px){
  .header-inner{gap:18px;padding-left:22px;padding-right:22px}
  .brand img{width:128px}
  .main-nav{gap:14px}
  .main-nav a{font-size:11px}
  .advisor-btn{padding:11px 14px;font-size:11px}
}

@media (max-width:980px){
  .site-header{height:72px}
  .header-inner{
    position:relative;
    padding:0 18px;
    gap:0;
    justify-content:space-between;
  }
  .brand img{width:132px}
  .menu-toggle{display:flex}
  .main-nav{
    display:none;
    position:absolute;
    top:calc(100% + 1px);
    left:0;
    right:0;
    width:100%;
    height:auto;
    max-height:calc(100vh - 72px);
    overflow-y:auto;
    overflow-x:hidden;
    padding:8px 18px 16px;
    background:#fff;
    border-top:1px solid #e6edf4;
    border-bottom:1px solid #dce6f0;
    box-shadow:0 12px 24px rgba(20,57,95,.12);
    flex-direction:column;
    align-items:stretch;
    gap:0;
    z-index:1001;
  }
  .main-nav.is-open{display:flex}
  .main-nav a{
    width:100%;
    min-height:46px;
    padding:11px 4px;
    border-bottom:1px solid #edf1f5;
    display:flex;
    align-items:center;
    font-size:13px;
    white-space:normal;
  }
  .main-nav a.active:after{display:none}
  .main-nav a.active{color:var(--blue);font-weight:700}
  .main-nav .nav-advisor{
    display:flex;
    justify-content:center;
    margin-top:12px;
    min-height:44px;
    padding:10px 14px;
    border:0;
    border-radius:6px;
    color:#fff;
    background:#08a557;
  }
  .main-nav .nav-advisor:hover{color:#fff}
  body.menu-open{overflow:hidden}
}

@media (max-width:700px){
  .hero-inner{padding:24px 18px 27px}
  .hero-copy h1{font-size:30px}
  .hero-copy h2{font-size:15px;line-height:1.35}
  .hero-copy p{font-size:13px}
  .steps{margin-top:23px}
  .step strong{font-size:11px}
  .step small{font-size:9px;line-height:1.25}
  .page-shell{padding-left:12px;padding-right:12px}
}

@media (max-width:480px){
  .site-header{height:66px}
  .header-inner{padding:0 14px}
  .brand img{width:118px}
  .menu-toggle{width:42px;height:42px}
  .main-nav{
    top:calc(100% + 1px);
    max-height:calc(100vh - 66px);
    padding-left:14px;
    padding-right:14px;
  }
  .hero-copy h1{font-size:26px}
  .hero-copy h2{font-size:14px}
  .hero-copy p{font-size:12px}
  .steps:before{left:23px;right:23px}
  .step span{width:40px;height:40px;font-size:16px}
}
