/* Chile PlanFibra: mobile & tablet layout stabilization 2026-10-19.
   Scoped to this subdomain; keep original pricing, coverage and privacy features. */
@media (max-width: 760px) {
  .site-header .nav-row {
    min-width: 0;
    gap: 8px;
    justify-content: space-between;
  }
  .site-header .nav-row > a.brand {
    position: relative;
    min-width: 0;
    margin-right: 0;
    flex: 0 1 auto;
    font-size: clamp(21px, 5.7vw, 27px);
    letter-spacing: -.03em;
    line-height: 1;
  }
  .site-header .nav-row > a.brand:not(:has(img))::before {
    width: 34px;
    flex-basis: 34px;
    height: 40px;
  }
  .site-header .nav-row > a.brand small {
    position: absolute;
    top: 30px;
    left: 43px;
    display: block;
    margin: 0;
    font-size: 8px;
    letter-spacing: .11em;
    white-space: nowrap;
  }
  .site-header .nav-row > .nav-cta {
    display: none; /* Same action remains in the always-visible bottom bar. */
  }
  .site-header .menu-toggle {
    display: grid;
    place-items: center;
    min-width: 42px;
    min-height: 44px;
    flex: 0 0 42px;
    margin-left: auto;
    margin-right: 0;
    padding: 8px;
  }
  .site-header .nav-row nav {
    top: 100%;
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
  }
  .hero h1, .compact-hero h1, .article-hero h1, .coverage-copy h1, .coverage-copy h2 {
    overflow-wrap: break-word;
  }
  .mobile-contact {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }
  .mobile-contact a {
    min-width: 0;
    min-height: 46px;
    text-align: center;
  }
  .site-footer .footer-bottom, .site-footer .footer-main {min-width: 0;}
  .site-footer .footer-bottom a {overflow-wrap: anywhere;}
}
@media (max-width: 360px) {
  .site-header .nav-row > a.brand {font-size: 21px;}
  .site-header .nav-row > a.brand:not(:has(img))::before {
    width: 29px;
    flex-basis: 29px;
  }
  .site-header .nav-row > a.brand small {left: 38px;font-size: 7px;}
  .mobile-contact {gap: 7px;}
  .mobile-contact a {font-size: 11px;padding-inline: 5px;}
  .footer-bottom > div {gap: 12px;}
}
@media (min-width: 761px) and (max-width: 1000px) {
  .site-header .nav-row {gap: 15px;}
  .site-header .nav-row > a.brand {position:relative;margin-right:auto;flex:0 1 auto;}
  .site-header .nav-row > a.brand small {
    position:absolute;
    left:58px;
    top:43px;
    margin:0;
    white-space:nowrap;
  }
  .site-header .menu-toggle {
    display:grid;
    place-items:center;
    order:3;
    flex-shrink:0;
    min-width:44px;
    min-height:44px;
  }
  .site-header .nav-row nav {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#fff;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:12px 24px 20px;
    box-shadow:0 18px 25px #0b204018;
    border-top:1px solid #dce4ed;
  }
  .site-header .nav-row nav.open {display:flex;}
  .site-header .nav-row nav a,
  .site-header .nav-row nav a:nth-child(2) {display:block;font-size:15px;padding:11px;}
}
/* Existing portal purpose notice must not depend on inline styles (strict CSP). */
[data-pf-purpose-notice] {
  display:block;
  box-sizing:border-box;
  clear:both;
  padding:16px max(18px, calc((100% - 1180px)/2));
  background:#f1f6fb;
  border-block:1px solid #dae5f2;
  color:#193451;
  font-size:13px;
  line-height:1.6;
}
[data-pf-purpose-notice] p {margin:0;color:inherit;}
[data-pf-purpose-notice] a {color:#1769dd;text-decoration:underline;}
/* Defensive fallback if a cache still tries to inject the incompatible mixed-brand modal. */
#pf-seo-offer {display:none!important;}
