/* Morteros Acota V81: documentación corporativa sin cajas apiladas.
   Tipografía editorial, fotografía NO simulada, títulos y textos Joomla íntegros. */
.mae-legal-v81{
 --ac81-navy:#0a3045;--ac81-ink:#1e4556;--ac81-muted:#456779;--ac81-blue:#0c76a6;
 --ac81-line:#d6e4eb;background:#fff;color:var(--ac81-ink);
 padding:clamp(26px,3.2vw,48px) 24px clamp(74px,8vw,128px);
 font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
}
.mae-legal-v81 .mae-legal-inner{display:block;width:min(1220px,100%);max-width:none;margin-inline:auto}
.mae-legal-v81 .mae-info-breadcrumb{margin:0 0 24px;color:#486d7e;font-size:13.5px}
.mae-legal-v81 .mae-info-breadcrumb a{font-size:13.5px;color:#0c729f;font-weight:700}
.mae-legal-v81 .mae-legal-head{
 display:block;position:relative;isolation:isolate;margin:0 0 clamp(40px,5vw,72px);
 border:0;border-radius:2px;padding:clamp(54px,6.5vw,92px) clamp(32px,5.3vw,72px);
 background:linear-gradient(110deg,#092a3c 0%,#0b425c 57%,#0b5878 100%);overflow:hidden;box-shadow:0 22px 46px -38px rgba(2,28,42,.44)
}
.mae-legal-v81 .mae-legal-head::before{
 content:"";position:absolute;pointer-events:none;inset:0;z-index:-1;
 background:linear-gradient(120deg,transparent 0%,transparent 63%,rgba(205,235,247,.065) 63%,rgba(205,235,247,.065) 65%,transparent 65%),
 radial-gradient(ellipse at 100% 110%,rgba(20,169,218,.2),transparent 60%);
}
.mae-legal-v81 .mae-legal-hero-inner{display:flex;gap:24px;align-items:flex-end;justify-content:space-between}
.mae-legal-v81 .mae-legal-head h1{color:#fff;font-size:clamp(45px,5.2vw,78px);line-height:1.02;font-weight:800;letter-spacing:-.055em;margin:0;text-wrap:balance}
.mae-legal-v81 .mae-legal-layout{display:grid;grid-template-columns:minmax(210px,245px) minmax(0,1fr);gap:clamp(46px,6vw,98px);align-items:start}
.mae-legal-v81 .mae-legal-toc{position:sticky;top:116px;max-height:calc(100vh - 145px);overflow-y:auto;overscroll-behavior:contain;padding:0;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.mae-legal-v81 .mae-legal-toc h2{margin:0 0 20px;padding:0;color:var(--ac81-navy);font-size:20px;line-height:1.2;font-weight:770;letter-spacing:-.025em}
.mae-legal-v81 .mae-legal-toc ul{display:block;margin:0;padding:0;list-style:none;border-top:1px solid var(--ac81-line)}
.mae-legal-v81 .mae-legal-toc li{margin:0;padding:0;list-style:none;border:0;border-bottom:1px solid #e7eef2}
.mae-legal-v81 .mae-legal-toc a{display:block;margin:0;padding:12px 13px;border:0;border-left:3px solid transparent;border-radius:0;color:#416778;font-size:14px;line-height:1.35;font-weight:570;text-decoration:none;background:none;transition:color .2s ease,border-color .2s ease,background-color .2s ease}
.mae-legal-v81 .mae-legal-toc a:hover,.mae-legal-v81 .mae-legal-toc a:focus-visible{color:#0a5e82;background:#f2f8fa;text-decoration:none}
.mae-legal-v81 .mae-legal-toc a[aria-current="location"]{color:#083e57;border-left-color:#0b7daa;background:#f0f8fb;font-weight:750}
.mae-legal-v81 .mae-legal-body{min-width:0}
.mae-legal-v81 .mae-legal-body section{
 display:block;padding:0 0 clamp(35px,4vw,50px);margin:0 0 clamp(35px,4vw,50px);
 border:0;border-bottom:1px solid var(--ac81-line);border-radius:0;box-shadow:none;background:transparent
}
.mae-legal-v81 .mae-legal-body section:first-child{background:transparent}
.mae-legal-v81 .mae-legal-body section:last-child{border-bottom:0}
.mae-legal-v81 .mae-legal-body section::before,.mae-legal-v81 .mae-legal-body section::after{display:none;content:none}
.mae-legal-v81 .mae-legal-body section h2{padding:0;margin:0 0 22px;font-size:clamp(25px,2.55vw,36px);font-weight:790;color:#0b3447;line-height:1.15;letter-spacing:-.037em;max-width:34ch}
.mae-legal-v81 .mae-legal-body section p,.mae-legal-v81 .mae-legal-body section li,.mae-legal-v81 .mae-legal-body section dt,.mae-legal-v81 .mae-legal-body section dd{padding:0;margin:0 0 18px;font-size:clamp(16.5px,1.3vw,18px);line-height:1.84;color:#325769;max-width:76ch}
.mae-legal-v81 .mae-legal-body section p:last-child{margin-bottom:0}
.mae-legal-v81 .mae-legal-body section strong{color:#103d50;font-weight:760}
.mae-legal-v81 .mae-legal-body section:has(h2:target){border-color:#a3cbdc;box-shadow:none}
.mae-legal-v81 .mae-info-related{margin-top:clamp(30px,5vw,65px);padding:28px 0 0;border-top:1px solid var(--ac81-line)}
.mae-legal-v81 .mae-info-related h2{color:var(--ac81-navy);font-size:22px;margin:0 0 20px}
.mae-legal-v81 .mae-info-related ul{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0;padding:0}
.mae-legal-v81 .mae-info-related a,.mae-legal-v81 .mae-info-related .mae-info-active{display:inline-flex;align-items:center;min-height:45px;padding:11px 18px;border:1px solid #c7dee8;border-radius:2px;background:#f7fafb;color:#14536d;font-size:14px;font-weight:700;text-decoration:none}
.mae-legal-v81 .mae-info-related a:hover{background:#eaf5f9;border-color:#9ccedf;color:#0a658e}
.mae-legal-v81 .mae-info-related .mae-info-active{background:#0c4b69;border-color:#0c4b69;color:white}
@media(max-width:980px){
 .mae-legal-v81 .mae-legal-layout{display:block}
 .mae-legal-v81 .mae-legal-toc{position:relative;top:auto;max-height:none;overflow:visible;margin:0 0 44px}
 .mae-legal-v81 .mae-legal-toc ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px}
 .mae-legal-v81 .mae-legal-hero-inner{align-items:flex-start;flex-direction:column;gap:24px}
}
@media(max-width:640px){
 .mae-legal-v81{padding:24px 15px 72px}
 .mae-legal-v81 .mae-legal-head{padding:44px 25px;min-height:225px}
 .mae-legal-v81 .mae-legal-head h1{font-size:clamp(39px,11vw,55px)}
 .mae-legal-v81 .mae-legal-toc{margin-bottom:42px}
 .mae-legal-v81 .mae-legal-toc ul{grid-template-columns:1fr;gap:0}
 .mae-legal-v81 .mae-legal-body section h2{font-size:27px}
 .mae-legal-v81 .mae-legal-body section{padding-bottom:34px;margin-bottom:34px}
}
@media(prefers-reduced-motion:reduce){.mae-legal-v81 .mae-legal-toc a{transition:none}}
@media print{
 .mae-legal-v81{background:#fff!important;padding:0!important}
 .mae-legal-v81 .mae-legal-head{background:#fff!important;box-shadow:none!important;border:0!important;padding:0 0 15px!important;margin:0 0 25px!important;min-height:0!important}
 .mae-legal-v81 .mae-legal-head::before{display:none!important}
 .mae-legal-v81 .mae-legal-head h1{color:#111!important;font-size:28pt!important}
 .mae-legal-v81 .mae-legal-hero-inner{display:block!important}
 .mae-legal-v81 .mae-legal-layout{display:block!important}
 .mae-legal-v81 .mae-legal-toc,.mae-legal-v81 .mae-info-breadcrumb,.mae-legal-v81 .mae-info-related{display:none!important}
 .mae-legal-v81 .mae-legal-body section{border:0!important;border-top:1px solid #ddd!important;padding:12px 0!important;margin:0 0 12px!important}
 .mae-legal-v81 .mae-legal-body section h2{font-size:14pt!important;color:#111!important;margin-bottom:9px!important}
 .mae-legal-v81 .mae-legal-body section p{font-size:10pt!important;line-height:1.45!important;color:#111!important}
}

/* V99 — los encabezados de los tres documentos legales no se fragmentan
   por reglas de word-wrap aportadas por el tema padre. Sin tocar contenido. */
.mae-legal-v81 :is(h1,h2,h3,h4),
.mae-legal-v81 :is(h1,h2,h3,h4) :is(span,strong,em,b,i,a){
  overflow-wrap:normal;
  word-wrap:normal;
  word-break:normal;
  hyphens:none;
}
