/* MH Consultores - estilos */
:root{
  --bg:#ffffff;
  --ink:#070707;
  --muted:#333333;
  --brand:#4a5c6f;
  --brand2:#aabcce;
  --card:#ffffff;
  --line: rgba(7,7,7,.10);
  --shadow: 0 18px 50px rgba(7,7,7,.08);
  --radius: 18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family: Inter, 'Abadi MT Condensed Light','Abadi','Segoe UI',system-ui,-apple-system,Arial,sans-serif;
  line-height:1.6;
}

a{color:inherit}
img{max-width:100%; height:auto; display:block}
.container{width:min(1120px, 92vw); margin-inline:auto}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0;
}
.skip{
  position:absolute; left:-999px; top:auto;
}
.skip:focus{left:12px; top:12px; z-index:9999; background:#fff; padding:10px 12px; border-radius:12px; box-shadow:var(--shadow)}

.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:14px}

.brand{display:flex; align-items:center; gap:10px; text-decoration:none}
.brand__logo{width:40px; height:40px; border-radius:10px; object-fit:cover; box-shadow:0 10px 25px rgba(7,7,7,.08)}
.brand__name{font-weight:800; letter-spacing:.3px}
.brand__name--light{font-weight:400; color:var(--brand)}

.nav{display:flex; align-items:center}
.nav__toggle{display:none; border:1px solid var(--line); background:#fff; border-radius:14px; padding:10px 12px; cursor:pointer}
.nav__toggleLines{display:block; width:18px; height:12px; position:relative}
.nav__toggleLines::before,.nav__toggleLines::after,.nav__toggleLines{background:transparent}
.nav__toggleLines::before,.nav__toggleLines::after{
  content:""; position:absolute; left:0; right:0; height:2px; background:var(--ink); border-radius:999px;
}
.nav__toggleLines::before{top:1px}
.nav__toggleLines::after{bottom:1px}

.nav__menu{display:flex; align-items:center; gap:18px}
.nav__link{
  text-decoration:none; font-weight:600; color:rgba(7,7,7,.78);
  padding:10px 10px; border-radius:12px;
}
.nav__link:hover{background:rgba(170,188,206,.25)}
.nav__cta{background:rgba(74,92,111,.12); color:var(--ink)}
.nav__cta:hover{background:rgba(74,92,111,.18)}

.hero{
  padding:64px 0 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78)),
    radial-gradient(900px 420px at 14% 15%, rgba(170,188,206,.35), transparent 60%),
    radial-gradient(900px 420px at 78% 20%, rgba(74,92,111,.22), transparent 60%),
    url('assets/img/04-team.jpg') center/cover no-repeat;
}
.hero__inner{display:grid; grid-template-columns:1.15fr .85fr; gap:26px; align-items:stretch}
.kicker{color:var(--brand); font-weight:700; letter-spacing:.2px; margin:0 0 10px}
h1{font-size:clamp(30px, 4vw, 46px); line-height:1.1; margin:0 0 14px}
.lead{font-size:1.06rem; color:rgba(7,7,7,.74); margin:0 0 18px}
.micro{font-size:.9rem; color:rgba(7,7,7,.60); margin:12px 0 0}

.hero__actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}

.hero__panel{
  background:rgba(255,255,255,.85);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}

.stats{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.stat{
  background:rgba(170,188,206,.18);
  border:1px solid rgba(7,7,7,.08);
  border-radius:16px;
  padding:14px;
}
.stat__value{font-size:1.6rem; font-weight:800}
.stat__label{font-size:.92rem; color:rgba(7,7,7,.70)}

.section{padding:56px 0}
.section--alt{background:rgba(170,188,206,.12)}
.section__header{margin-bottom:18px}
.section__sub{color:rgba(7,7,7,.70); max-width:72ch; margin:10px 0 0}

h2{font-size:clamp(24px, 3vw, 34px); margin:0}
h3{margin:0 0 10px}
h4{margin:0 0 8px}

.grid{display:grid; gap:16px}
.grid--2{grid-template-columns:1fr 1fr}
@media (max-width: 900px){
  .hero__inner{grid-template-columns:1fr}
  .grid--2{grid-template-columns:1fr}
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.card--soft{background:rgba(255,255,255,.75)}
.card__row{display:flex; gap:16px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap}
.card__cta{min-width:240px}

.mt{margin-top:14px}
.mt-lg{margin-top:18px}

.list{margin:0; padding-left:18px; color:rgba(7,7,7,.80)}
.list li{margin:8px 0}

.chips{display:flex; flex-wrap:wrap; gap:10px; list-style:none; padding:0; margin:14px 0 0}
.chips li{
  padding:8px 12px; border-radius:999px;
  background:rgba(74,92,111,.10);
  border:1px solid rgba(7,7,7,.08);
  font-weight:600; font-size:.95rem;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(7,7,7,.14);
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:active{transform: translateY(1px)}
.btn--primary{
  background:var(--brand);
  border-color:transparent;
  color:#fff;
}
.btn--primary:hover{background:#3f5062}
.btn--ghost{
  background:#fff;
}
.btn--ghost:hover{background:rgba(170,188,206,.22)}

.switcher{display:flex; gap:10px; margin:8px 0 14px; flex-wrap:wrap}
.switcher__btn{
  background:#fff;
  border:1px solid rgba(7,7,7,.14);
  padding:12px 14px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
}
.switcher__btn.is-active{
  background:rgba(74,92,111,.12);
  border-color:rgba(74,92,111,.25);
}

.panel{display:block}
.panel[hidden]{display:none !important}

.service{
  padding:14px 0;
  border-top:1px solid var(--line);
}
.service:first-of-type{border-top:0; padding-top:6px}
.service p{margin:8px 0; color:rgba(7,7,7,.78)}

.ctaBox{
  margin-top:16px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(7,7,7,.12);
  background:rgba(170,188,206,.18);
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.soft{
  background:rgba(255,255,255,.75);
  border:1px solid rgba(7,7,7,.10);
  border-radius:16px;
  padding:14px;
}

.steps{margin:10px 0 0; padding-left:20px}
.steps li{margin:10px 0}

.contactLine{margin:10px 0}
.contactLabel{display:block; font-weight:800; color:rgba(7,7,7,.66); font-size:.92rem}

.notice{
  margin:0 0 12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(7,7,7,.10);
  background:rgba(170,188,206,.18);
  color:rgba(7,7,7,.78);
  font-size:.95rem;
}

.form label{display:block; font-weight:700; margin:10px 0}
.form input,.form textarea{
  width:100%;
  border:1px solid rgba(7,7,7,.16);
  border-radius:14px;
  padding:12px 12px;
  font:inherit;
  margin-top:6px;
  background:#fff;
}
.form__row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width: 640px){
  .form__row{grid-template-columns:1fr}
}

.backRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}

.footer{
  border-top:1px solid var(--line);
  background:#fff;
  padding:26px 0;
}
.footer__inner{display:flex; flex-direction:column; gap:14px}
.footer__cols{display:grid; grid-template-columns: 1.2fr .8fr 1fr; gap:18px; align-items:start}
@media (max-width: 900px){.footer__cols{grid-template-columns:1fr}}
.footer__brand{display:flex; gap:12px; align-items:center}
.footer__logo{width:44px; height:44px; border-radius:12px; object-fit:cover; border:1px solid rgba(7,7,7,.10)}
.footer__name{font-weight:900}
.footer__muted{color:rgba(7,7,7,.62)}
.footer__link{
  background:none; border:none; padding:0; margin:0;
  color:rgba(7,7,7,.78); font-weight:800; cursor:pointer; text-decoration:underline;
}
.footer__sg p{margin:0; color:rgba(7,7,7,.70)}
.footer__copy{margin:0; color:rgba(7,7,7,.55); font-size:.92rem}

/* Modal */
.modal{position:fixed; inset:0; display:none; place-items:center; z-index:90}
.modal.is-open{display:grid}
.modal__overlay{position:absolute; inset:0; background:rgba(7,7,7,.55)}
.modal__panel{
  position:relative;
  width:min(860px, 92vw);
  max-height:min(84vh, 720px);
  overflow:auto;
  background:#fff;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.15);
  box-shadow: 0 25px 80px rgba(7,7,7,.35);
  padding:18px 18px 14px;
}
.modal__close{
  position:absolute; right:10px; top:10px;
  width:40px; height:40px; border-radius:14px;
  border:1px solid rgba(7,7,7,.12);
  background:#fff; cursor:pointer; font-size:22px; line-height:1;
}
.modal__content{color:rgba(7,7,7,.80)}
.modal__content p{margin:10px 0}

/* Mobile nav */
@media (max-width: 820px){
  .nav__toggle{display:inline-flex; align-items:center; gap:10px}
  .nav__menu{
    position:absolute;
    right:4vw;
    top:68px;
    flex-direction:column;
    align-items:stretch;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:10px;
    box-shadow:var(--shadow);
    display:none;
    min-width:240px;
  }
  .nav__menu.is-open{display:flex}
}



/* Galería */
.photoGrid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:14px;
}
@media (max-width: 1100px){
  .photoGrid{grid-template-columns:repeat(3, 1fr)}
}
@media (max-width: 700px){
  .photoGrid{grid-template-columns:repeat(2, 1fr)}
}
.photoCard{
  margin:0;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.photoCard img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
}
@media (max-width: 700px){
  .photoCard img{height:140px}
}
.photoCard figcaption{
  padding:10px 12px;
  font-size:.92rem;
  color:rgba(7,7,7,.72);
}

/* --- Páginas legales (Políticas / Aviso) --- */
.tableWrap{width:100%; overflow:auto; border-radius:16px; border:1px solid rgba(7,7,7,.10); background:#fff;}
.table{width:100%; border-collapse:collapse; min-width:520px;}
.table th,.table td{padding:12px 14px; border-bottom:1px solid rgba(7,7,7,.08); vertical-align:top; text-align:left;}
.table thead th{font-weight:700; background:rgba(7,7,7,.03);}
.table tbody tr:last-child td{border-bottom:none;}
