/* Hispanaweb · Menú móvil en ventana lateral (24/11/2026) */
.hw-mm, .hw-mm-ov { display: none; }
@media (max-width: 1080px) {
  /* El menú antiguo: nunca asoman los desplegables cerrados */
  .hw-nav-item:not(.is-open) > .hw-mega-drop { visibility: hidden !important; padding: 0 !important; max-height: 0 !important; overflow: hidden !important; }

  .hw-mm-ov {
    display: block; position: fixed; inset: 0; z-index: 2147483000; background: rgba(11,36,80,.5);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .hw-mm-ov.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
  .hw-mm, .hw-mm * { box-sizing: border-box; }
  .hw-mm {
    display: flex; flex-direction: column; position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh;
    width: min(90vw, 430px); z-index: 2147483001; background: #fff; color: #0B2450; overflow: hidden;
    border-radius: 24px 0 0 24px; box-shadow: -24px 0 70px rgba(11,36,80,.28);
    font-family: Manrope, sans-serif; transform: translateX(105%); visibility: hidden;
    transition: transform .38s cubic-bezier(.22,.8,.24,1), visibility 0s .38s;
    -webkit-tap-highlight-color: transparent;
  }
  .hw-mm.is-open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.22,.8,.24,1); }
  .hw-mm [hidden] { display: none !important; }
  .hw-mm ul { list-style: none; margin: 0; padding: 0; }
  .hw-mm li { margin: 0; padding: 0; }
  .hw-mm a { text-decoration: none; color: inherit; }
  .hw-mm small { display: block; font-size: 13px; line-height: 1.4; color: #5A6478; font-weight: 500; }
  .hw-mm b { display: block; font-weight: 700; }
  .hw-mm :focus { outline: none; }
  .hw-mm :focus-visible { outline: 2px solid #1E4FA0 !important; outline-offset: 2px; }

  .hw-mm-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid #E9EDF4; flex: none; }
  .hw-mm.is-sub .hw-mm-top { padding-left: 14px; }
  .hw-mm-logo { display: block; }
  .hw-mm-logo img { display: block; width: 142px; height: auto; }
  .hw-mm-ttl { font: 700 17px/1.2 Sora, sans-serif; letter-spacing: -.01em; }
  .hw-mm .hw-mm-rnd {
    width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; background: #F1F4F9; color: #0B2450;
    display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .15s;
  }
  .hw-mm .hw-mm-rnd:hover, .hw-mm .hw-mm-rnd:focus { background: #E4EAF4; color: #0B2450; }
  .hw-mm .hw-mm-rnd:active { transform: scale(.93); }
  .hw-mm-rnd svg { width: 20px; height: 20px; }
  .hw-mm .hw-mm-close { margin-left: auto; }

  .hw-mm-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .hw-mm-view {
    position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    transform: translateX(100%); opacity: 0; visibility: hidden;
    transition: transform .34s cubic-bezier(.22,.8,.24,1), opacity .24s, visibility 0s .34s;
  }
  .hw-mm-root { transform: translateX(-22%); }
  .hw-mm-view.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .34s cubic-bezier(.22,.8,.24,1), opacity .24s; }

  /* Primer nivel */
  .hw-mm-cats { min-height: 100%; display: flex; flex-direction: column; padding: 8px 12px !important; }
  .hw-mm-cats li { flex: 1 1 0; min-height: 66px; max-height: 92px; display: flex; }
  .hw-mm .hw-mm-cat {
    width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px 10px; border: 0; border-radius: 18px;
    background: transparent; color: #0B2450; text-align: left; cursor: pointer; font-family: inherit; white-space: normal;
    text-transform: none; letter-spacing: 0; box-shadow: none; transition: background .2s;
  }
  .hw-mm .hw-mm-cat:hover, .hw-mm .hw-mm-cat:focus { background: transparent; color: #0B2450; }
  .hw-mm .hw-mm-cat:active, .hw-mm .hw-mm-cat.is-here { background: color-mix(in srgb, var(--c) 9%, #fff); }
  .hw-mm-tile {
    width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(145deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 84%, #0B2450));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 28%, transparent);
  }
  .hw-mm-tile svg { width: 23px; height: 23px; }
  .hw-mm-cx { flex: 1 1 auto; min-width: 0; }
  .hw-mm-cx b { font: 700 17px/1.25 Sora, sans-serif; letter-spacing: -.015em; }
  .hw-mm-cx small { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hw-mm-chv { flex: none; color: #A3ADBF; display: grid; }
  .hw-mm-chv svg { width: 18px; height: 18px; }
  .hw-mm.is-open .hw-mm-cats li { animation: hwMmIn .45s cubic-bezier(.22,.8,.24,1) both; animation-delay: calc(80ms + var(--i) * 35ms); }
  @keyframes hwMmIn { from { opacity: 0; transform: translateX(26px); } }

  /* Segundo nivel */
  .hw-mm-body { padding: 16px 16px 24px; }
  .hw-mm-hero, .hw-mm-post {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 150px;
    padding: 16px 18px; border-radius: 20px; overflow: hidden; isolation: isolate; background: #0B2450;
  }
  .hw-mm a.hw-mm-hero, .hw-mm a.hw-mm-post { color: #fff; }
  .hw-mm-hero img, .hw-mm-post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; z-index: -2; }
  .hw-mm-hero::after, .hw-mm-post::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,36,80,.05), rgba(11,36,80,.55) 48%, rgba(11,36,80,.94)); }
  .hw-mm-hero strong, .hw-mm-post strong { font: 700 19px/1.25 Sora, sans-serif; letter-spacing: -.015em; }
  .hw-mm-post strong { font-size: 17px; }
  .hw-mm-hero span { font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,.9); }
  .hw-mm-post { min-height: 210px; }
  .hw-mm .hw-mm-post small { color: rgba(255,255,255,.85); }
  .hw-mm-badge { align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: #fff; color: #1E4FA0; font-weight: 800; font-size: 12px; margin-bottom: 4px; }

  .hw-mm-svcs { padding-top: 10px !important; }
  .hw-mm-svcs a { display: flex; align-items: center; gap: 14px; padding: 11px 6px; border-radius: 16px; transition: background .2s; }
  .hw-mm-svcs a:active, .hw-mm-svcs a[aria-current] { background: color-mix(in srgb, var(--c) 8%, #fff); }
  .hw-mm-svcs li + li a { box-shadow: none; }
  .hw-mm-svcs b { font-size: 16px; line-height: 1.3; }
  .hw-mm-ic {
    width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--c) 11%, #fff); color: color-mix(in srgb, var(--c) 82%, #0B2450);
  }
  .hw-mm-ic svg { width: 20px; height: 20px; }

  .hw-mm .hw-mm-h { margin: 22px 4px 10px; font: 700 15px/1.3 Sora, sans-serif; color: #0B2450; letter-spacing: -.01em; text-transform: none; }
  .hw-mm .hw-mm-h:first-child { margin-top: 4px; }
  .hw-mm-secs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hw-mm-secs a {
    height: 100%; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px;
    border-radius: 16px; background: #F6F8FB; font-weight: 700; font-size: 14px; line-height: 1.3; transition: background .2s;
  }
  .hw-mm-secs a:active, .hw-mm-secs a[aria-current] { background: color-mix(in srgb, var(--c) 14%, #fff); }
  .hw-mm-secs .hw-mm-ic { width: 34px; height: 34px; border-radius: 11px; background: #fff; }
  .hw-mm-secs .hw-mm-ic svg { width: 18px; height: 18px; }

  .hw-mm-posts a { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
  .hw-mm-posts img { width: 64px; height: 64px; flex: none; object-fit: cover; border-radius: 14px; background: #F1F4F9; }
  .hw-mm-posts b { font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hw-mm-posts small { margin-top: 3px; }

  .hw-mm a.hw-mm-all {
    display: block; margin-top: 16px; padding: 14px; border-radius: 16px; text-align: center; font-weight: 800; font-size: 15px;
    background: color-mix(in srgb, var(--c) 10%, #fff); color: color-mix(in srgb, var(--c) 62%, #0B2450);
  }

  /* Pie */
  .hw-mm-foot { flex: none; display: flex; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #E9EDF4; background: #fff; }
  .hw-mm a.hw-mm-tel { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #EDF4FD; color: #1E4FA0; }
  .hw-mm-tel svg { width: 22px; height: 22px; }
  .hw-mm a.hw-mm-cta {
    flex: 1; height: 54px; border-radius: 99px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px;
    background: linear-gradient(135deg, #1E4FA0, #2478C4);
  }
  .hw-mm a.hw-mm-cta:active, .hw-mm a.hw-mm-tel:active { transform: scale(.98); }
}
@media (max-width: 1080px) and (max-height: 620px) { .hw-mm-cats li { min-height: 62px; } .hw-mm-tile { width: 42px; height: 42px; } }
@media (max-width: 345px) { .hw-mm-cx small { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .hw-mm, .hw-mm *, .hw-mm-ov { transition: none !important; animation: none !important; } }

/* Afinado premium: tipografía más fina y filas compactas (25/11/2026) */
@media (max-width: 1080px) {
  .hw-mm-logo img { width: 128px; }
  .hw-mm .hw-mm-rnd { width: 40px; height: 40px; }
  .hw-mm-rnd svg { width: 18px; height: 18px; }
  .hw-mm-ttl { font: 600 15px/1.2 Sora, sans-serif; }

  .hw-mm-cats { padding: 10px 14px !important; }
  .hw-mm-cats li { flex: 0 0 auto; min-height: 0; max-height: none; position: relative; }
  .hw-mm-cats li + li::before { content: ""; position: absolute; top: 0; left: 62px; right: 8px; height: 1px; background: #EEF1F6; }
  .hw-mm .hw-mm-cat { gap: 14px; padding: 13px 8px; border-radius: 14px; }
  .hw-mm-tile { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 3px 8px color-mix(in srgb, var(--c) 18%, transparent); }
  .hw-mm-tile svg { width: 18px; height: 18px; }
  .hw-mm-cx b { font: 600 15.5px/1.3 Sora, sans-serif; letter-spacing: -.01em; }
  .hw-mm small { font-size: 12.5px; color: #6B7487; }
  .hw-mm-cx small { margin-top: 1px; }
  .hw-mm-chv svg { width: 16px; height: 16px; }

  .hw-mm-hero strong { font: 600 17px/1.25 Sora, sans-serif; }
  .hw-mm-post strong { font-size: 15.5px; font-weight: 600; }
  .hw-mm-hero span { font-size: 13px; }
  .hw-mm-hero { min-height: 136px; }
  .hw-mm-svcs a { gap: 12px; padding: 9px 6px; }
  .hw-mm-svcs b { font-size: 14.5px; font-weight: 600; }
  .hw-mm-ic { width: 36px; height: 36px; border-radius: 11px; }
  .hw-mm-ic svg { width: 17px; height: 17px; }
  .hw-mm .hw-mm-h { margin: 22px 6px 8px; font: 600 11.5px/1.3 Manrope, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8A93A6; }
  .hw-mm-secs a { min-height: 84px; font-weight: 600; font-size: 13px; }
  .hw-mm-secs .hw-mm-ic { width: 30px; height: 30px; border-radius: 9px; }
  .hw-mm-posts b { font-size: 13.5px; font-weight: 600; }
  .hw-mm-posts img { width: 56px; height: 56px; border-radius: 12px; }
  .hw-mm a.hw-mm-all { font-weight: 700; font-size: 14px; padding: 12px; }

  .hw-mm a.hw-mm-tel { width: 48px; height: 48px; }
  .hw-mm-tel svg { width: 20px; height: 20px; }
  .hw-mm a.hw-mm-cta { height: 48px; font-weight: 700; font-size: 15px; letter-spacing: .01em; background: linear-gradient(135deg, #0B2450, #1E4FA0 60%, #2478C4); }
}
/* Fondo discreto con halos de marca (25/11/2026) */
@media (max-width: 1080px) {
  .hw-mm {
    background:
      radial-gradient(120% 60% at 110% -5%, rgba(56,179,231,.13), transparent 60%),
      radial-gradient(90% 55% at -15% 105%, rgba(124,92,252,.10), transparent 62%),
      linear-gradient(180deg, #FFFFFF 0%, #F7F9FD 100%);
  }
  .hw-mm-top { background: rgba(255,255,255,.55); }
  .hw-mm-foot { background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .hw-mm .hw-mm-rnd { background: rgba(241,244,249,.85); }
}
/* Fondo premium: base azulada, halos de marca visibles y franja superior (25/11/2026) */
@media (max-width: 1080px) {
  .hw-mm {
    background:
      radial-gradient(85% 45% at 105% 0%, rgba(56,179,231,.30), transparent 70%),
      radial-gradient(70% 40% at -10% 55%, rgba(30,79,160,.12), transparent 70%),
      radial-gradient(90% 50% at 20% 108%, rgba(124,92,252,.24), transparent 70%),
      linear-gradient(170deg, #F7F9FE 0%, #EEF3FB 55%, #F1EEFC 100%);
  }
  .hw-mm::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3; pointer-events: none;
    background: linear-gradient(90deg, #0B2450 0%, #1E4FA0 35%, #38B3E7 65%, #7C5CFC 100%);
  }
  .hw-mm-top { background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: rgba(11,36,80,.07); }
  .hw-mm-foot { background: rgba(255,255,255,.66); border-top-color: rgba(11,36,80,.07); }
  .hw-mm-cats li + li::before { background: rgba(11,36,80,.07); }
  .hw-mm .hw-mm-rnd { background: rgba(255,255,255,.8); box-shadow: 0 1px 3px rgba(11,36,80,.08); }
  .hw-mm .hw-mm-cat:active, .hw-mm .hw-mm-cat.is-here { background: rgba(255,255,255,.7); }
  .hw-mm-secs a { background: rgba(255,255,255,.72); }
}
