/* =========================
RESET
========================= */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

/* =========================
VARIÁVEIS
========================= */
:root{
  --bg:#13233a;
  --card:#1c2f4d;
  --card-hover:#254066;
  --text:#f8fafc;
  --muted:#b8c3d6;
  --gold:#c7a24a;
  --gold-soft:#d4b56b;
  --max:560px;
}

/* =========================
BASE
========================= */
html,body{
  min-height:100%;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  min-height:100dvh;
}

.page{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  padding:28px 16px 28px;
}

.container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  text-align:center;
}

.fade-in{
  animation:fadein .6s ease;
}

@keyframes fadein{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}

/* =========================
TOPO / MARCA
========================= */
.avatar,
.brand-shield{
  display:block;
  margin:0 auto 12px;
}

.avatar{
  width:92px;
  height:92px;
  border-radius:50%;
  object-fit:cover;
}

.brand-shield{
  width:92px;
  height:92px;
  border-radius:18px;
  object-fit:contain;
}

h1,
.brand-title{
  font-size:1.2rem;
  line-height:1.2;
  font-weight:700;
  margin-bottom:6px;
  color:var(--text);
}

.subtitle,
.brand-subtitle{
  font-size:.88rem;
  line-height:1.45;
  color:var(--muted);
  margin-bottom:4px;
}

.subtitle-last,
.brand-subtitle{
  margin-bottom:18px;
}

/* =========================
REDES SOCIAIS
========================= */
.social-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  margin:14px auto 14px;
  flex-wrap:wrap;
}

.social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  color:var(--gold);
  text-decoration:none;
  background:transparent;
  border:none;
  border-radius:50%;
  padding:0;
  cursor:pointer;
  transition:transform .18s ease, opacity .18s ease, color .18s ease;
  opacity:.96;
  appearance:none;
  -webkit-appearance:none;
  box-shadow:none;
  outline:none;
}

.social-link:hover{
  transform:translateY(-1px) scale(1.08);
  opacity:1;
  color:var(--gold-soft);
}

.social-link:focus,
.social-link:active,
.social-link:visited{
  color:var(--gold);
  text-decoration:none;
  outline:none;
}

.social-link i{
  font-size:1.5rem;
  line-height:1;
  color:currentColor;
  display:block;
}

/* =========================
IDIOMAS (PT · EN · ES)
========================= */
.language-switcher{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:2px auto 18px;
}

.lang-text{
  color:var(--muted);
  text-decoration:none;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.12em;
  line-height:1;
  opacity:.9;
  transition:color .18s ease, opacity .18s ease;
}

.lang-text:hover{
  color:var(--gold);
  text-decoration:none;
  opacity:1;
}

.lang-text:visited{
  color:var(--muted);
  text-decoration:none;
}

.lang-text.active,
.lang-text.active:visited{
  color:var(--gold);
  opacity:1;
}

.lang-sep{
  color:rgba(255,255,255,.30);
  font-size:.8rem;
  line-height:1;
  user-select:none;
}

/* =========================
BOTÕES
========================= */
.links{
  width:100%;
}

.link{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  margin:8px auto;
  padding:11px 16px;
  background:var(--card);
  color:var(--text);
  border-radius:12px;
  text-decoration:none;
  font-size:.96rem;
  line-height:1.3;
  transition:background .2s ease, transform .12s ease, border-color .2s ease;
  border:1px solid transparent;
}

.link:hover{
  background:var(--card-hover);
  border-color:rgba(199,162,74,.28);
  transform:scale(1.015);
}

.link i{
  font-size:1.05rem;
  line-height:1;
  color:var(--gold);
  flex-shrink:0;
}

.link span{
  display:inline-block;
}

/* =========================
VARIANTES INSTITUCIONAIS
========================= */
.institutional{
  max-width:600px;
}

.institutional .brand-subtitle{
  font-size:.78rem;
  margin-bottom:22px;
}

.institutional-links{
  max-width:490px;
  margin:0 auto;
}

.institutional-link{
  min-height:42px;
  font-size:.95rem;
}

/* =========================
FOOTER
========================= */
.footer{
  width:100%;
  text-align:center;
  margin-top:28px;
}

.footer-logo{
  display:block;
  margin:0 auto;
  width:auto;
  object-fit:contain;
}

.footer-logo--personal{
  max-height:62px;
}

.footer-logo--institutional{
  max-width:180px;
  max-height:64px;
}

/* =========================
RESPONSIVO
========================= */
@media (max-width:480px){
  .page{
    padding:24px 14px 24px;
  }

  .avatar,
  .brand-shield{
    width:84px;
    height:84px;
  }

  h1,
  .brand-title{
    font-size:1.08rem;
  }

  .subtitle,
  .brand-subtitle{
    font-size:.82rem;
  }

  .social-row{
    gap:16px;
    margin-bottom:8px;
  }

  .social-link{
    width:36px;
    height:36px;
  }

  .social-link i{
    font-size:1.3rem;
  }

  .language-switcher{
    gap:10px;
    margin-bottom:16px;
  }

  .lang-btn{
    width:24px;
    height:24px;
  }

  .lang-btn img{
    width:22px;
    height:22px;
  }

  .link{
    font-size:.92rem;
    padding:10px 14px;
  }

  .footer-logo--personal{
    max-height:56px;
  }

  .footer-logo--institutional{
    max-width:160px;
    max-height:56px;
  }
}

/* =========================
AJUSTES PÁGINA PESSOAL
========================= */
.personal-page .page{
  padding:18px 16px 14px;
}

.personal-page .avatar{
  margin-bottom:8px;
}

.personal-page h1{
  margin-bottom:4px;
}

.personal-page .subtitle{
  margin-bottom:2px;
}

.personal-page .subtitle-last{
  margin-bottom:10px;
}

.personal-page .social-row{
  gap:18px;
  margin-bottom:8px;
}

.personal-page .links{
  max-width:520px;
}

.personal-page .link{
  margin:6px auto;
  padding:10px 16px;
  min-height:0;
}

.personal-page .footer{
  margin-top:12px;
}

.personal-page .footer-logo--personal{
  max-height:62px;
}

@media (max-width:480px){
  .personal-page .page{
    padding:16px 14px 12px;
  }

  .personal-page .subtitle-last{
    margin-bottom:8px;
  }

  .personal-page .social-row{
    gap:14px;
    margin-bottom:8px;
  }

  .personal-page .link{
    margin:5px auto;
    padding:9px 14px;
    font-size:.91rem;
  }

  .personal-page .footer{
    margin-top:10px;
  }
}