.shell .directory-header{display:grid;height:auto;grid-template-columns:minmax(0,1fr) minmax(260px,420px);align-items:center;gap:0 24px;padding:0 clamp(16px,2.5vw,34px);background:#fff;border-top:3px solid #8022d7;color:#2e193f}
.directory-header>a{width:fit-content;padding:13px 0}.directory-header .brand{width:clamp(150px,14vw,196px);height:auto}
.directory-header svg{width:18px;height:18px;flex:none;display:block}
#directory-search{grid-column:2;grid-row:1;display:flex;align-items:stretch;min-width:0;width:100%;margin:0;overflow:hidden;border:1px solid #d9cee7;border-radius:13px;background:#faf8fc;transition:box-shadow .15s,border-color .15s}
#directory-search:focus-within{border-color:#9551c9;box-shadow:0 0 0 3px #8022d713}
#station-search{width:100%;min-width:0;border:0;outline:0;background:none;padding:11px 14px;color:#311442;font:500 14px/1.4 system-ui,sans-serif}
#directory-search button{width:46px;flex:none;display:grid;place-items:center;background:#7022b9;color:white}
#directory-search button:hover{background:#551390}
#station-nav{grid-row:2;grid-column:1/-1;display:flex;align-items:center;gap:6px;border-top:1px solid #eee7f4;padding:8px 0;width:100%;overflow:visible;order:initial}
#station-nav a,#menu-mobile{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;font:650 14px/1.25 system-ui,sans-serif;color:#46384e;border-radius:9px;text-decoration:none;white-space:nowrap}
#station-nav a:hover{background:#f5effa;color:#6822a4}#station-nav a.on{background:#f0e3ff;color:#6411a9;box-shadow:inset 0 0 0 1px #e4cef9}
#menu-mobile{display:none}
@media(max-width:760px){.shell .directory-header{grid-template-columns:1fr auto;padding:0 14px 12px;gap:0 10px}.directory-header .brand{width:148px}.directory-header>a{padding:10px 0}#menu-mobile{display:inline-flex;grid-column:2;grid-row:1;padding:9px 12px;background:#f2eafa;color:#661ba4}#directory-search{grid-row:2;grid-column:1/-1}#station-nav{display:none;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:10px;padding:8px 0 0}.directory-header.menu-open #station-nav{display:grid}#station-nav a{font-size:13px;gap:5px;padding:10px 3px}#station-nav svg{width:15px;height:15px}}
@media(max-width:360px){.directory-header.menu-open #station-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Pie del directorio */
footer{background:linear-gradient(175deg,#fcfaff 0%,#fff 62%);border-top:4px solid #6821ad;color:#382943;font:500 14px/1.5 system-ui,sans-serif}
footer .foot{max-width:1224px;margin:auto;display:grid;grid-template-columns:minmax(200px,1.2fr) minmax(110px,.65fr) minmax(230px,1.05fr) minmax(200px,1fr);align-items:start;gap:clamp(18px,3vw,48px);padding:38px 24px 30px}
footer .foot>div+div{border:0;padding:0}
footer .footbrand{display:block;width:min(210px,95%);height:auto;margin:0 0 14px;mix-blend-mode:multiply}
footer .wave{display:none}
footer .foot small{font:500 14px/1.6 system-ui,sans-serif;color:#65596e}
footer .foot h3{margin:0 0 14px;font:750 13px/1.4 system-ui,sans-serif;letter-spacing:.07em;color:#4b2368}
footer .foot h3:after{display:none}
footer #footnav{display:grid;gap:3px;justify-items:start}
footer #footnav a,footer #contact p{margin:0;color:#524759;font:500 14px/1.55 system-ui,sans-serif;padding:2px 0}
footer #footnav a:hover{color:#6e21aa;text-decoration:underline}
footer #contact{display:grid;gap:9px;overflow-wrap:anywhere}
footer #social{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
footer #social .socialbtn{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:42px;margin:0;padding:8px 9px;color:#30243b;font:650 13px/1.25 system-ui,sans-serif;background:white!important;border:1px solid #e4dce9;border-radius:10px;text-decoration:none;transition:background .15s,border-color .15s}
footer #social .socialbtn:before{content:"";display:block;flex:none;width:19px;height:19px;background:var(--social-logo) center/contain no-repeat}
footer #social .socialbtn:nth-child(1){--social-logo:url("assets/redes/facebook.svg")}
footer #social .socialbtn:nth-child(2){--social-logo:url("assets/redes/instagram.svg")}
footer #social .socialbtn:nth-child(3){--social-logo:url("assets/redes/youtube.svg")}
footer #social .socialbtn:nth-child(4){--social-logo:url("assets/redes/tiktok.svg")}
footer #social .socialbtn:nth-child(5){--social-logo:url("assets/redes/whatsapp.svg")}
footer #social .socialbtn:hover,footer #social .socialbtn:focus-visible{border-color:#a87dc5;background:#faf6ff!important}
footer .legal{box-sizing:border-box;max-width:1224px;margin:auto;border-top:1px solid #e8dfed;display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px 18px;padding:18px 24px;color:#65596e;font:500 12px/1.5 system-ui,sans-serif}
footer .legal span{width:auto;margin-right:auto}footer .legal button{padding:0}
@media(max-width:960px){footer .foot{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 36px}footer #social{max-width:320px}}
@media(max-width:560px){footer .foot{grid-template-columns:1fr;gap:20px;padding:25px 20px}footer .foot h3{margin-bottom:9px}footer #footnav{display:flex;flex-wrap:wrap;gap:6px 16px}footer #social{grid-template-columns:repeat(auto-fit,minmax(101px,1fr));max-width:100%}footer .footbrand{width:185px}footer .legal{justify-content:flex-start;padding:15px 20px}footer .legal span{width:100%;text-align:left}}

.shell .directory-header{grid-template-columns:minmax(0,1fr) minmax(240px,420px) auto;column-gap:14px}
#header-add-radio{grid-column:3;grid-row:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 16px;border:1px solid #6515a8;border-radius:12px;background:#701db6;color:#fff;font:700 14px/1.25 system-ui,sans-serif;white-space:nowrap}
#header-add-radio:hover{background:#56138e}
#header-add-radio:focus-visible{outline:3px solid #aa73d9;outline-offset:3px}
#header-add-radio svg{width:17px;height:17px}
@media(max-width:760px){
 .shell .directory-header{grid-template-columns:minmax(0,1fr) auto;column-gap:8px}
 #directory-search{grid-column:1;grid-row:2}
 #header-add-radio{grid-column:2;grid-row:2;padding-inline:11px}
 #station-search{padding-inline:9px}
}

:root { --azul-directorio: #0f3ed5; }
html, body, .shell .countries { background: var(--azul-directorio); }
.shell .directory-header, footer { border-top-color: var(--azul-directorio); }
#station-nav a.on { color:#0f3ed5; background:#eaf0ff; box-shadow:inset 0 0 0 1px #ccd9ff; }
#station-nav a:hover, #station-nav a:focus-visible, #menu-mobile:hover,
#menu-mobile:focus-visible, #menu-mobile[aria-expanded="true"] {
  color:white; background:var(--azul-directorio); box-shadow:none;
}

#directory-search, #station-search, #directory-search button, #directory-search button:hover,
#header-add-radio, #header-add-radio:hover {
  background:var(--azul-directorio); color:#fff; border-color:var(--azul-directorio);
}
#station-search {caret-color:#fff}
#station-search::placeholder {color:#fff;opacity:1}
#directory-search button {border-left:1px solid #ffffff80}
#directory-search:focus-within {border-color:var(--azul-directorio);box-shadow:0 0 0 3px #0f3ed539}
#header-add-radio:focus-visible {outline-color:var(--azul-directorio)}

.shell.header-frame {
  position:sticky;
  top:0;
  z-index:10;
  margin-bottom:0;
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
  box-shadow:0 2px 5px #10205214;
}
.shell.directory-content {
  margin-top:0;
  border-top-left-radius:0;
  border-top-right-radius:0;
}
@media (max-height:500px) {
  .header-frame .directory-header.menu-open {max-height:85vh;overflow-y:auto}
}


/* ===== MI RADIO | FOOTER PREMIUM AZUL CORPORATIVO ===== */
footer {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  border-top: 4px solid #72baff !important;
  color: #fff !important;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(95,160,255,.28), transparent 34%),
    radial-gradient(ellipse at 88% 100%, rgba(65,125,255,.24), transparent 32%),
    linear-gradient(128deg, #0f3ed5 0%, #0b32b8 55%, #082681 100%) !important;
}
footer::before,
footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
footer::before {
  width: 430px;
  height: 430px;
  right: -155px;
  top: -260px;
  box-shadow: 0 0 0 24px rgba(255,255,255,.035), 0 0 0 52px rgba(255,255,255,.025);
}
footer::after {
  width: 300px;
  height: 300px;
  left: -170px;
  bottom: -205px;
  box-shadow: 0 0 0 24px rgba(255,255,255,.03), 0 0 0 50px rgba(255,255,255,.02);
}
footer .foot {
  position: relative;
  z-index: 1;
  max-width: 1224px !important;
  grid-template-columns: minmax(220px,1.25fr) minmax(115px,.7fr) minmax(220px,1.05fr) minmax(190px,1fr) !important;
  align-items: start;
  gap: clamp(18px,2.6vw,38px) !important;
  padding: 48px 28px 38px !important;
}
footer .foot > div {
  min-width: 0;
}
footer .foot > div + div {
  border-left: 1px solid rgba(255,255,255,.20) !important;
  padding: 4px 0 0 24px !important;
}
footer .footbrand {
  display: block;
  width: min(245px,100%) !important;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
  margin: 3px 0 17px !important;
  mix-blend-mode: normal !important;
  filter: brightness(0) invert(1) drop-shadow(0 5px 13px rgba(0,0,0,.18)) !important;
  opacity: 1 !important;
}
footer .wave {
  display: block !important;
  width: 112px;
  height: 25px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 13px;
  filter: brightness(0) invert(1);
  opacity: .82;
}
footer .foot small {
  display: block;
  max-width: 290px;
  color: rgba(255,255,255,.86) !important;
  font: 500 13px/1.8 system-ui,sans-serif !important;
}
footer .foot h3 {
  margin: 4px 0 19px !important;
  color: #fff !important;
  font: 850 13px/1.4 system-ui,sans-serif !important;
  letter-spacing: 1.15px !important;
}
footer .foot h3::after {
  display: block !important;
  content: "";
  width: 42px;
  height: 3px;
  margin-top: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg,#fff,#70c8ff) !important;
}
footer #footnav {
  display: grid;
  gap: 7px !important;
  justify-items: start;
}
footer #footnav a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 !important;
  padding: 4px 0 !important;
  color: rgba(255,255,255,.88) !important;
  font: 600 12px/1.5 system-ui,sans-serif !important;
  transition: color .18s ease, transform .18s ease;
}
footer #footnav a::before {
  content: "›";
  color: #8ed5ff;
  font-size: 18px;
  line-height: 12px;
}
footer #footnav a:hover {
  color: #fff !important;
  text-decoration: none;
  transform: translateX(4px);
}
footer #social {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px !important;
  max-width: 310px;
}
footer #social .socialbtn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255,255,255,.27) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.13) !important;
  color: #fff !important;
  font: 750 11px/1.25 system-ui,sans-serif !important;
  text-align: left;
  box-shadow: 0 7px 18px rgba(0,12,70,.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
footer #social .socialbtn::before {
  content: "" !important;
  display: block;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #fff var(--social-logo) center/17px 17px no-repeat !important;
  box-shadow: 0 2px 7px rgba(0,0,0,.12);
}
footer #social .socialbtn:hover,
footer #social .socialbtn:focus-visible {
  transform: translateY(-3px);
  background: rgba(255,255,255,.23) !important;
  border-color: rgba(255,255,255,.6) !important;
  box-shadow: 0 10px 22px rgba(0,12,70,.22);
  text-decoration: none;
}
footer #contact {
  display: grid;
  gap: 9px !important;
  overflow-wrap: anywhere;
}
footer #contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.91) !important;
  font: 600 11px/1.55 system-ui,sans-serif !important;
}
footer .legal {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  padding: 18px max(24px,calc((100% - 1168px)/2)) !important;
  border-top: 1px solid rgba(255,255,255,.20) !important;
  background: rgba(2,18,78,.28) !important;
  color: rgba(255,255,255,.78) !important;
  font: 500 11px/1.5 system-ui,sans-serif !important;
}
footer .legal span {
  width: auto !important;
  margin-right: auto !important;
  color: rgba(255,255,255,.82) !important;
}
footer .legal a,
footer .legal button {
  padding: 4px 0 !important;
  color: #fff !important;
  font: 700 11px/1.4 system-ui,sans-serif !important;
  white-space: nowrap;
  transition: opacity .18s ease;
}
footer .legal a:hover,
footer .legal button:hover {
  opacity: .75;
  text-decoration: underline;
}
@media (max-width: 960px) {
  footer .foot {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 28px 24px !important;
    padding: 38px 24px 30px !important;
  }
  footer .foot > div:nth-child(3) {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
}
@media (max-width: 560px) {
  footer .foot {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 24px 15px !important;
    padding: 30px 18px 25px !important;
  }
  footer .foot > div:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(120px,165px) minmax(0,1fr);
    align-items: center;
    column-gap: 16px;
  }
  footer .footbrand {
    grid-column: 1;
    width: 100% !important;
    margin: 0 0 8px !important;
  }
  footer .wave {
    display: none !important;
  }
  footer .foot small {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    font-size: 11px !important;
  }
  footer .foot > div + div {
    padding: 0 !important;
    border-left: 0 !important;
  }
  footer .foot h3 {
    margin-bottom: 13px !important;
    font-size: 12px !important;
  }
  footer #social {
    grid-template-columns: 1fr;
    gap: 7px !important;
  }
  footer #social .socialbtn {
    min-height: 39px;
    padding: 6px 8px !important;
    font-size: 10px !important;
  }
  footer #social .socialbtn::before {
    flex-basis: 23px;
    width: 23px;
    height: 23px;
  }
  footer #contact p {
    padding: 7px 8px !important;
    font-size: 10px !important;
  }
  footer .legal {
    justify-content: center;
    gap: 9px 14px;
    padding: 15px 16px !important;
    text-align: center;
  }
  footer .legal span {
    flex: 0 0 100%;
    text-align: center;
  }
}
@media (max-width: 380px) {
  footer .foot {
    grid-template-columns: 1fr !important;
  }
  footer .foot > div:first-child {
    grid-column: 1;
    grid-template-columns: 112px minmax(0,1fr);
  }
  footer #social {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* Ajuste solicitado: retirar la onda decorativa del pie y alinear icono de ubicación */
footer .wave { display: none !important; }
footer #contact p svg { width: 16px; height: 16px; flex: 0 0 16px; display: block; }
