/* Menú drawer acordeón + refuerzo responsive */
body { overflow-x: hidden; }
img { max-width: 100%; }
section[id] { scroll-margin-top: 100px; }

.hd-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #d8e5e9;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.hd-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #064b66;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.hd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hd-scrim {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 28, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
  z-index: 99990;
}
.hd-scrim.is-open { opacity: 1; visibility: visible; }

.hd-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 330px;
  max-width: 88vw;
  background: linear-gradient(165deg, #064b66, #06384d);
  color: #fff;
  z-index: 99999;
  transform: translateX(-106%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 18px 16px 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hd-menu.is-open { transform: none; }

.hd-menu-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hd-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.hd-logo img { width: 38px; height: auto; }
.hd-tit { font-weight: 800; font-size: 16px; line-height: 1.15; }
.hd-sub { font-size: 11.5px; opacity: 0.85; }
.hd-menu-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.hd-promo {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 6px 0 10px;
  font-size: 13px;
}
.hd-promo b {
  display: block;
  color: #ffb46f;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hd-group {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 16px 10px 6px;
}
.hd-acc { margin-top: 6px; }
.hd-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.hd-acc-btn:hover { background: rgba(255, 255, 255, 0.14); }
.hd-plus { font-size: 18px; line-height: 1; transition: transform 0.25s; }
.hd-acc.open .hd-plus { transform: rotate(45deg); }
.hd-submenu { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.hd-acc.open .hd-submenu { max-height: 320px; }
.hd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 11px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}
.hd-item:hover { background: rgba(255, 255, 255, 0.12); }
.hd-cta {
  margin-top: 16px;
  background: #f58220;
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px #0003;
}
body.hd-lock { overflow: hidden; }

@media (max-width: 900px) {
  .links { display: none !important; }
  .nav-cta { display: none !important; }
  .hd-burger { display: flex; }
}

/* Refuerzo responsive 100% */
@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .proof h2 { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .proof-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 58px 0; }
  .hero p { font-size: 16.5px; }
  .metric strong { font-size: 24px; }
  .services { grid-template-columns: 1fr; }
  .step { padding: 20px 16px; }
}
@media (max-width: 520px) {
  .wrap { width: 94%; }
  header { padding: 10px 0; }
  .logo { width: 150px; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero p { font-size: 15.5px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .section { padding: 46px 0; }
  .service img { height: 200px; }
  .service-body { padding: 22px; }
  .service h3 { font-size: 21px; }
  .pair img { height: 210px; }
  .steps { grid-template-columns: 1fr; }
  .metric-grid { padding: 18px 0; }
  .contact h2 { font-size: 30px; }
  .foot img { width: 160px; }
}
