
:root{
  --blue:#062d67;
  --blue-2:#0a4f9b;
  --line:#dce4ef;
  --white:#fff;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#fff;color:var(--blue)}
button{font:inherit}
body{overflow-x:hidden}
.app{
  min-height:100svh;
  background:#fff;
  display:flex;
  flex-direction:column;
}
.header{
  width:min(1180px,calc(100% - 48px));
  margin:0 auto;
  min-height:178px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:20px;
  padding:18px 0 12px;
}
.menu-btn{
  justify-self:start;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  padding:8px;
  cursor:pointer;
}
.menu-btn span{
  display:block;
  height:3px;
  margin:6px 0;
  border-radius:3px;
  background:var(--blue);
}
.brand{
  display:block;
  text-align:center;
}
.brand img{
  display:block;
  width:390px;
  max-width:45vw;
  height:auto;
}
.profile-link{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  background:transparent;
  color:var(--blue);
  font-weight:700;
  cursor:pointer;
  padding:10px 0;
}
.profile-icon{
  width:22px;
  height:22px;
  border:2px solid var(--blue);
  border-radius:50%;
  position:relative;
  display:inline-block;
}
.profile-icon::after{
  content:"";
  position:absolute;
  width:28px;
  height:14px;
  border:2px solid var(--blue);
  border-top-left-radius:18px;
  border-top-right-radius:18px;
  border-bottom:0;
  left:50%;
  transform:translateX(-50%);
  top:18px;
}
.drawer{
  position:fixed;
  left:22px;
  top:82px;
  z-index:50;
  width:250px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:18px;
  background:white;
  box-shadow:0 18px 50px rgba(5,38,80,.18);
}
.drawer button{
  width:100%;
  text-align:left;
  border:0;
  background:transparent;
  color:var(--blue);
  font-weight:800;
  padding:14px;
  border-radius:12px;
}
.drawer button:hover{background:#eef4fb}
.content{
  flex:1;
  width:min(1180px,calc(100% - 48px));
  margin:0 auto;
  padding-bottom:28px;
}
.grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.card{
  position:relative;
  min-height:405px;
  overflow:hidden;
  border:0;
  border-radius:12px;
  padding:0;
  text-align:left;
  cursor:pointer;
  background:#061f45;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);
}
.card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(3,17,37,.02) 20%,rgba(3,24,57,.38) 55%,rgba(1,25,63,.96) 100%);
}
.card strong{
  position:absolute;
  left:34px;
  bottom:34px;
  z-index:3;
  color:#fff;
  font-size:clamp(28px,3vw,42px);
  line-height:1.05;
  letter-spacing:-.035em;
  font-weight:800;
}
.card-icon{
  position:absolute;
  z-index:3;
  left:34px;
  bottom:150px;
  color:#fff;
  font-size:54px;
  line-height:1;
  font-weight:400;
  filter:grayscale(1) brightness(8);
}
.card-notarios .card-icon{bottom:170px}
.card-estudiantes .card-icon{bottom:185px}
.card:hover img{transform:scale(1.02)}
.card img{transition:transform .3s ease}
.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(2,18,41,.72);
  backdrop-filter:blur(8px);
}
.modal{
  position:relative;
  width:min(520px,100%);
  background:#fff;
  border-radius:24px;
  padding:28px;
  text-align:center;
  box-shadow:0 28px 90px rgba(0,0,0,.30);
}
.modal-logo{width:280px;max-width:82%;margin:0 auto 20px}
.modal h2{margin:0 0 10px;font-size:30px;line-height:1.1;color:var(--blue)}
.modal p{color:#65738a;line-height:1.6}
.modal-close{
  position:absolute;
  right:14px;
  top:14px;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#eef3f8;
  color:var(--blue);
  font-size:24px;
}
.modal-primary{
  width:100%;
  border:0;
  border-radius:14px;
  background:var(--blue);
  color:#fff;
  padding:14px;
  font-weight:900;
}
[hidden]{display:none!important}

@media(max-width:820px){
  html,body{height:100%;overflow:hidden}
  .app{height:100svh;min-height:100svh}
  .header{
    width:100%;
    min-height:112px;
    padding:10px 14px 4px;
    grid-template-columns:44px 1fr 44px;
    gap:8px;
  }
  .brand img{
    width:215px;
    max-width:64vw;
    margin:0 auto;
  }
  .profile-link{
    width:42px;
    height:42px;
    overflow:hidden;
    padding:0;
    justify-content:center;
  }
  .profile-link span:last-child{display:none}
  .profile-icon{transform:scale(.85)}
  .content{
    width:100%;
    min-height:0;
    padding:0 10px 12px;
    overflow:hidden;
  }
  .grid{
    height:100%;
    min-height:0;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .card{
    min-height:0;
    height:100%;
    border-radius:11px;
  }
  .card strong{
    left:14px;
    bottom:18px;
    font-size:clamp(17px,4.4vw,24px);
    line-height:1.08;
    max-width:88%;
  }
  .card-icon{
    left:14px;
    bottom:112px;
    font-size:38px;
  }
  .card-notarios .card-icon{bottom:122px}
  .card-estudiantes .card-icon{bottom:135px}
}
@media(max-width:390px){
  .header{min-height:100px;padding-top:6px}
  .brand img{width:195px}
  .content{padding:0 8px 10px}
  .grid{gap:8px}
  .card strong{
    left:12px;
    bottom:14px;
    font-size:clamp(15px,4.1vw,19px);
  }
  .card-icon{
    left:12px;
    bottom:92px;
    font-size:32px;
  }
  .card-notarios .card-icon{bottom:104px}
  .card-estudiantes .card-icon{bottom:116px}
}
@media(max-height:700px) and (max-width:820px){
  .header{min-height:88px}
  .brand img{width:178px}
  .card strong{font-size:15px}
  .card-icon{font-size:28px;bottom:80px}
  .card-notarios .card-icon{bottom:90px}
  .card-estudiantes .card-icon{bottom:100px}
}
