/* ===== Base y fondo (independiente) ===== */
html, body { height:100% }
body{
  position:relative;
  min-height:100vh;
  display:flex; flex-direction:column;
  color:#fff;
  text-shadow:0 .05rem .1rem rgba(0,0,0,.8);
  overflow-x:hidden;
}
body::before{
  content:""; position:fixed; inset:0;
  background:url("../assets/img/background.png") center/cover no-repeat;
  filter:blur(8px) brightness(.5);
  z-index:-2;
}
body::after{
  content:""; position:fixed; inset:0;
  background:rgba(0,0,0,.30);
  z-index:-1;
}

.page-container{ flex:1; display:flex; flex-direction:column }

/* ===== Header ===== */
.site-header{ padding:1rem 1.25rem }
.header-inner{
  max-width:1200px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
}
.brand-logo{ width:160px; height:160px; object-fit:contain }
.nav-masthead .nav-link{
  color:rgba(255,255,255,.75);
  border-bottom:.25rem solid transparent;
  transition:all .25s ease;
}
.nav-masthead .nav-link + .nav-link{ margin-left:1rem }
.nav-masthead .nav-link:hover{ color:#fff; border-bottom-color:rgba(255,255,255,.5) }
.nav-masthead .active{ color:#fff; border-bottom-color:#fff }

/* ===== Hero ===== */
.hero{
  text-align:center;
  padding:1rem 1.25rem 0;
}
.hero .lead{ color:rgba(255,255,255,.85) }
.accent{ color:#01f8d1 }

/* ===== Grid de especialistas ===== */
.experts-grid{
  max-width:1200px;
  padding:1.5rem 1.25rem 2.5rem;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1.25rem;
}
@media (max-width:992px){
  .experts-grid{ grid-template-columns:repeat(2, 1fr) }
}
@media (max-width:600px){
  .experts-grid{ grid-template-columns:1fr }
}

/* ===== Tarjeta ===== */
.expert-card{
  position:relative;
  border-radius:20px;
  padding:1.1rem 1.1rem 1rem;
  background:rgba(0,0,0,.40);
  border:2px solid rgba(255,255,255,.22);
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow:hidden;
}
.expert-card::after{
  /* sutil viñeta interna */
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.12));
  pointer-events:none;
}
.expert-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 40px rgba(0,0,0,.55);
  border-color:rgba(255,255,255,.35);
}

/* Foto circular */
.photo{
  width:76px; height:76px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  border:2px solid rgba(255,255,255,.35);
  box-shadow:0 6px 18px rgba(0,0,0,.5);
  margin-bottom:.75rem;
}

/* Contenido */
.name{ font-size:1.15rem; font-weight:800; margin:0 0 .25rem }
.role{ color:rgba(255,255,255,.8); margin:0 0 .8rem }

/* Iconos sociales */
.links{ display:flex; gap:.5rem }
.btn-social{
  width:38px; height:38px; border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.28);
  color:#fff; text-decoration:none;
  transition:transform .2s ease, background .2s ease, border .2s ease;
}
.btn-social:hover, .btn-social:focus{
  transform:translateY(-2px);
  background:#01f8d1; border-color:#01f8d1; color:#001814;
}
.btn-social .bi{ font-size:1.15rem }

/* ===== Footer ===== */
.site-footer{
  text-align:center; padding:1.25rem 1rem; color:rgba(255,255,255,.7);
}

/* Ajustes responsivos menores */
@media (max-width:480px){
  .brand-logo{ width:110px; height:110px }
}
