/* Mobile refinements, loaded after page-specific styles. */
@media (max-width:800px) {
  .br-nav .br-brand{min-width:0;flex:0 1 200px}
  .br-nav .br-menu{flex:none;min-width:44px;min-height:44px}
  .entry-form>*{min-width:0}
  .entry-form select,body[data-page="contacto"] #contact-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
  body[data-page="contacto"] #contact-form :is(input,select,textarea){max-width:100%;box-sizing:border-box}
  body[data-page="contacto"] .form-stage,body[data-page="contacto"] .form-row,body[data-page="contacto"] #contact-form label{min-width:0}
  .contact-index a{min-height:44px}
  .contact-questions summary{min-height:44px;display:flex;align-items:center}
  .legal-acceptances .consent-label{gap:10px;min-height:44px;overflow-wrap:anywhere}
  body[data-page="contacto"] #contact-form input[type=checkbox]{width:20px;height:20px;min-height:20px;padding:0;flex:0 0 20px;margin:3px 0 0}
  .intake-selection{padding:12px}
  .partner-name,.contact-channel-description,footer a{overflow-wrap:anywhere}
}
@media (max-width:400px) {
  .br-nav{gap:10px;padding-inline:12px}
  .br-nav .br-brand{flex-basis:150px;width:150px;max-width:150px}
  body[data-page="contacto"] .consultation{padding:20px 12px}
  body[data-page="contacto"] .consultation-steps{gap:6px}
  body[data-page="contacto"] .consultation-steps li{flex-direction:column;align-items:flex-start}
  body[data-page="contacto"] .legal-acceptances{padding:12px}
  .form-actions .button{width:100%;justify-content:center;min-height:48px}
  .territory-card{grid-template-columns:minmax(0,1fr);padding:20px}
  .territory-art{grid-column:1;grid-row:auto;height:90px;margin:0 0 14px}
  .territory-card h3,.territory-card p{grid-column:1}
  .entry-form{padding:20px 16px}
  .contact-index{gap:10px}
}

/* Compact navigation and full-width reading on touch-sized screens. */
@media (max-width:1024px), (hover:none) and (pointer:coarse) {
  .side-navigation{display:none!important}
}
@media (max-width:1024px) {
  html{scroll-padding-top:108px}
  .br-nav-shell{position:sticky;top:0;padding:8px 0;z-index:70}
  .br-nav-shell .br-nav{width:calc(100% - 24px);min-height:68px;padding:8px 14px;gap:12px;flex-wrap:wrap}
  .br-nav .br-brand{width:180px;max-width:calc(100% - 90px);height:50px;flex:0 1 180px}
  .br-nav .br-menu{display:block;min-width:56px;min-height:44px}
  .br-nav .br-links{display:none;width:100%;flex-direction:column;align-items:stretch;gap:0;padding:8px 0;max-height:calc(100svh - 108px);overflow-y:auto;overscroll-behavior:contain}
  .br-nav .br-links.is-open{display:flex}
  .br-nav .br-links a{padding:12px;min-height:48px;white-space:normal}
  .has-side-navigation main .wrap{width:calc(100% - 40px);margin-inline:auto}
  main :is(section[id],h3[tabindex],.advisor-result){scroll-margin-top:108px}
  .floating-contact .floating-whatsapp,
  .floating-contact .floating-whatsapp:hover,
  .floating-contact .floating-whatsapp:focus-visible{width:48px;min-height:48px;padding:0 12px}
  .floating-contact .whatsapp-label{display:none}
  .scroll-stack{padding-bottom:0}
  .scroll-stack>.scroll-art{position:relative;top:auto;min-height:0;margin-bottom:24px!important}
  .scroll-stack>.scroll-art:last-child{margin-bottom:0!important}
  .scroll-stack>.guide-card .guide-cover{margin:0 0 24px}
  .journey-card,.journey-card:nth-child(2),.journey-card:nth-child(3){position:relative;top:auto;min-height:0;margin-bottom:24px}
  .journey-title{position:static}
  .graphic-criteria{display:grid;aspect-ratio:2.8/1;max-height:160px;margin-top:24px}
  .wrap :is(article,figure,.partner-copy,.contact-channel,.detail-block>div){min-width:0}
  .partner-portrait{min-height:200px;aspect-ratio:16/10}
}
@media (max-width:650px) {
  body[data-page="inicio"] .hero{min-height:0}
  body[data-page="inicio"] .hero-content{padding:56px 0 105px}
  body[data-page="inicio"] .hero h1{font-size:clamp(31px,8.5vw,44px)}
  body[data-page="inicio"] .hero .motion{bottom:50px;right:20px}
  .section{padding-block:48px}
  .mast h1,.contact-opening h1{overflow-wrap:break-word}
  .journey-card,.journey-card:nth-child(2),.journey-card:nth-child(3){padding:26px;margin-bottom:20px}
  .journey-card h3{font-size:30px}
  .graphic-criteria .graphic-emblem{width:62px;height:62px}
  .form-stage .form-actions>span{margin-left:0;flex-basis:100%}
  .consultation-steps li{min-width:0}
  .footer-bottom a{display:inline-flex;align-items:center;min-height:44px}
}
@media (prefers-reduced-motion:reduce) {
  html{scroll-behavior:auto!important}
}

