
/* ===== Carreras / Universidades / Becas en móvil ===== */
@media (max-width:720px){
  .band .nav .links{display:none}
  .hero{margin:8px 0 10px}
  .hero h1{font-size:24px;line-height:1.15}
  .hero .lede{display:block;font-size:13px;line-height:1.5;margin-top:6px;color:#334155}
  .eyebrow-pill{display:none}
  .searchbox{margin-top:12px;box-shadow:none;border:1px solid #e2e8f0}
  .searchbox:hover{box-shadow:none;border-color:#cbd5e1}
  .searchbox .sicon{width:36px;height:36px;background:transparent!important;color:#64748b;box-shadow:none;border-radius:0}
  .searchbox .sicon svg.i{width:20px;height:20px}
  .searchbox{padding:4px 8px 4px 6px}
  .searchbox input{font-size:16px;padding:10px 0}
  .searchbox input::placeholder{font-size:12.5px!important;color:#94a3b8}
  .searchbox:focus-within{box-shadow:none;border-color:#1a7de0}
  .parsed{color:#334155;font-size:11.5px}
  .parsed b{background:#eef6ff;border-color:#bfdbfe;color:#0b63c4}
  .parsed b svg.i{color:#0b63c4}
  .below{margin-top:12px;gap:10px}
  .seg{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:4px;gap:4px;box-shadow:0 1px 2px rgba(11,29,66,.06)}
  .seg button{color:#334155;font-size:12px;min-height:38px;border-radius:10px}
  .seg button:hover{background:#f4f7fb;color:#0f172a}
  .seg button[aria-pressed="true"]{background:#eef6ff;color:#0b63c4;box-shadow:inset 0 0 0 1px #bfdbfe}
  .sugg{color:#64748b;font-size:12px}
  .sugg > span svg.i{color:#1a7de0}
  .sugg button{border-color:#e2e8f0;background:#fff;color:#0f172a;font-size:12px;padding:7px 11px}
  .proof{display:none}
  .below{display:none}
  .band{padding-bottom:4px}
  .band .m-seg{margin:10px 0 12px}
  .hero{margin:0 0 12px}
  .page{padding-top:0}
  .m-bar{padding:8px 0 10px;margin:0 0 2px}
  .toolbar{margin:0 0 10px}
  .filters .m-sugg .sugg{flex-wrap:wrap;width:auto;margin:0;padding:0;overflow:visible;color:#64748b}
  .filters .m-sugg .sugg > span{display:none}
  .filters .m-sugg .sugg button{font-size:12px;padding:7px 11px;border:1px solid #e2e8f0;background:#f4f7fb;color:#0f172a;border-radius:999px}
  .layout{display:block}
  .summary{display:none}
  .toolbar{margin:0 0 8px;flex-wrap:nowrap;gap:8px;align-items:center}
  .toolbar > div:first-child{flex:1;min-width:0}
  .toolbar .count{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .toolbar .fbtn{display:none}
  /* barra: filtros + resumen */
  .m-bar .m-filtros svg.i{width:18px;height:18px}
  .m-bar .m-cifras{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-around;gap:6px;height:56px;padding:0 10px;border-radius:12px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 1px 2px rgba(11,29,66,.05)}
  .m-bar .m-cifras span{display:flex;flex-direction:column;align-items:center;line-height:1;min-width:0}
  .m-bar .m-cifras b{font-size:15px;font-weight:700;color:#0f172a;white-space:nowrap}
  .m-bar .m-cifras small{font-size:9.5px;color:#64748b;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}
  .m-bar .m-cifras i{width:1px;height:26px;background:#e2e8f0;flex:none}
  @media (max-width:400px){.m-bar .m-cifras span:nth-child(n+4),.m-bar .m-cifras i:nth-child(n+4){display:none}}
  .band .m-seg{margin:10px 0 0}
  .below .seg{display:none}
  .m-dd{flex:1;position:relative;display:flex}
  .m-dd .m-dd-btn{flex:1}
  .m-dd .chev{width:12px!important;height:12px!important;margin-left:-2px;opacity:.7}
  .m-dd .m-dd-menu{position:absolute;left:0;top:calc(100% + 6px);z-index:40;min-width:180px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 12px 30px -12px rgba(11,29,66,.35);padding:4px;display:flex;flex-direction:column}
  .m-dd .m-dd-menu[hidden]{display:none}
  .m-dd .m-dd-menu button{display:flex;align-items:center;gap:8px;padding:10px 12px;border:0;background:transparent;border-radius:9px;font:inherit;font-size:13px;font-weight:600;color:#334155;text-align:left}
  .m-dd .m-dd-menu button svg.i{width:15px;height:15px;color:#64748b}
  .m-dd .m-dd-menu button[aria-checked="true"]{background:#eef6ff;color:#0b63c4}
  .m-dd .m-dd-menu button[aria-checked="true"] svg.i{color:#0b63c4}
  .band .nav .m-calc{display:inline-flex;align-items:center;gap:6px;margin-left:auto;padding:8px 12px;border-radius:999px;border:1px solid #bfdbfe;background:#eef6ff;color:#0b63c4;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}
  .band .nav .m-calc svg.i{width:14px;height:14px}
  .band .nav{display:flex;align-items:center;justify-content:space-between}
  /* hoja de filtros existente, con el aspecto de la calculadora */
  .filters{background:#f4f7fb;border-radius:22px 22px 0 0;max-height:90dvh}
  .filters::before{display:none}
  .filters .fhead{position:relative;background:#fff;border-radius:22px 22px 0 0;padding:14px 16px 10px}
  .filters .fhead::before{content:"";position:absolute;top:8px;left:50%;width:38px;height:4px;border-radius:999px;background:#cbd5e1;transform:translateX(-50%)}
  .filters .fhead .phi{display:none}
  .filters .fhead h2{font-size:15px;font-weight:700;margin-top:6px}
  .filters .fbadge{margin-top:6px}
  .filters .fclose{width:34px;height:34px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;color:#64748b;margin-top:6px}
  .filters .body{padding:12px 16px 16px;gap:14px}
  .filters .fgroup{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:12px}
  .filters .ffoot{padding:10px 16px calc(12px + env(safe-area-inset-bottom))}
  .filters .ffoot .btn{min-height:46px;border-radius:12px;background:#1a7de0;color:#fff;font-weight:600;font-size:14px;border:0}
  /* tarjetas */
  .card.beca{padding:12px}
  .card.prog,.card.inst{padding:14px 12px 12px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:0}
  .card.prog > .logo,.card.inst > .logo{width:56px;height:56px;margin:0 auto 8px;border-radius:14px}
  .card.prog .cbody,.card.inst .cbody{width:100%;display:flex;flex-direction:column;align-items:center}
  .card.prog .cbody h3.t,.card.inst .cbody h3.t{text-align:center}
  .card.prog .u,.card.inst .u{justify-content:center;flex-wrap:wrap;text-align:center}
  .card.prog .tags,.card.inst .tags{justify-content:center}
  .card.prog > .metrics,.card.inst > .metrics,.card.prog .acts,.card.inst .acts{width:100%}
  .card .cbody h3.t{font-size:15px}
  .card .u{font-size:12px}
  .card .tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;overflow:visible;width:auto;margin-left:0;margin-right:0;padding:0;mask:none;-webkit-mask:none}
  .card .tag{font-size:10.5px;padding:3px 8px}
  .card > .metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px;margin-top:10px}
  .card .metric{flex-direction:column;align-items:center;text-align:center;gap:6px;padding:12px 6px 10px;border:1px solid #e2e8f0;background:#fff;border-radius:12px}
  .card .metric .mi{display:grid;width:30px;height:30px;border-radius:8px}
  .card .metric .mi svg.i{width:15px;height:15px}
  .card .metric .ml{font-size:10.5px;white-space:normal;line-height:1.15;font-weight:600;color:#64748b}
  .card .metric .mv{font-size:15px;margin-top:1px;line-height:1.1;white-space:normal}
  .card .metric .ms{font-size:9.5px}
  .card .metric > div{display:flex;flex-direction:column;align-items:center;gap:2px}
  dialog [data-cmp]{display:none}
  .card .acts{flex-direction:row;flex-wrap:wrap;margin-top:10px}
  .card .acts .btn{flex:1 1 100%;min-height:42px}
  .card .acts .btn:not(.primary){flex:1 1 calc(50% - 4px)}
}
