/* El Berrueco Digital — derechos del vecino 1.0.0. Aislado del tema. */
.ebd-law{--ebd-ink:#153f32;--ebd-deep:#12392e;--ebd-accent:#226349;--ebd-muted:#475e53;--ebd-paper:#faf9f4;--ebd-line:#dbe6dd;max-width:1140px;margin:0 auto 5rem;padding:0 24px;color:var(--ebd-ink);font:inherit;line-height:1.65}
.ebd-law *{box-sizing:border-box}.ebd-law h2,.ebd-law h3,.ebd-law h4{color:var(--ebd-ink);line-height:1.16}.ebd-law h2{font-size:clamp(1.6rem,3vw,2.45rem);margin:0 0 14px}.ebd-law a{color:#145c43;text-underline-offset:3px}.ebd-law a:hover{text-decoration-thickness:2px}.ebd-law a:focus-visible,.ebd-law button:focus-visible,.ebd-law input:focus-visible,.ebd-law textarea:focus-visible,.ebd-law select:focus-visible,.ebd-law summary:focus-visible{outline:3px solid #bc622f;outline-offset:3px}.ebd-law__eyebrow{font-size:.76rem;letter-spacing:.12em;font-weight:750;text-transform:uppercase;color:#47715d;margin:0 0 12px}.ebd-law__hero{margin:0 0 22px;padding:clamp(24px,4vw,54px);border-radius:20px;background:linear-gradient(115deg,#e7f1e8,#fbfaf3 80%);border:1px solid #d8e6d8;position:relative;overflow:hidden}.ebd-law__hero h2{font-family:Georgia,serif;font-size:clamp(2.2rem,4vw,3.7rem);max-width:740px;margin-bottom:17px}.ebd-law__hero>p:not(.ebd-law__eyebrow){max-width:760px;color:#36554a;font-size:1.02rem}.ebd-law__stats{display:flex;gap:10px 28px;flex-wrap:wrap;margin-top:25px;padding-top:17px;border-top:1px solid #c4d7c8;font-size:.9rem}.ebd-law__stats strong{color:var(--ebd-ink);font-size:1.3em}.ebd-law__notice{padding:14px 19px;border-left:4px solid #b57d3a;background:#f5f0e2;border-radius:7px;color:#3d463e;font-size:.92rem;margin-bottom:28px}.ebd-law__toolbar{display:grid;grid-template-columns:1.8fr 1fr;gap:16px;margin-bottom:12px}.ebd-law__field{display:flex;flex-direction:column;gap:7px}.ebd-law__field label{font-weight:740;color:#163e32;font-size:.9rem}.ebd-law__field input,.ebd-law__field select,.ebd-law__field textarea{border:1px solid #bdcfbf;background:#fff;border-radius:10px;color:#16382e;padding:12px 13px;min-height:46px;width:100%;font:inherit;box-shadow:none}.ebd-law__field textarea{min-height:110px;resize:vertical;font-family:inherit}.ebd-law__count{font-size:.88rem;color:#456155;margin:0 0 14px}.ebd-law__cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:15px}.ebd-law__card{background:white;border:1px solid var(--ebd-line);border-radius:14px;padding:20px;box-shadow:0 3px 13px rgba(20,48,35,.035);min-width:0}.ebd-law__card[hidden],.ebd-law__empty[hidden]{display:none!important}.ebd-law__card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.ebd-law__chip{background:#e5f0e9;color:#21533e;border-radius:99px;padding:5px 10px;font-size:.72rem;line-height:1.2;font-weight:780}.ebd-law__number{font-family:Georgia,serif;color:#7a9384}.ebd-law__card h3{font-family:Georgia,serif;font-size:1.33rem;margin:0 0 9px}.ebd-law__card>p{font-size:.91rem;color:#445c50;margin:0 0 15px}.ebd-law__details{border-top:1px solid #e2eae1;padding-top:12px}.ebd-law__details summary{cursor:pointer;font-weight:780;color:#15573f;padding:3px 0 5px;list-style:disclosure-closed}.ebd-law__details[open] summary{list-style:disclosure-open}.ebd-law__detailbody{padding-top:7px}.ebd-law__detailbody h4{font-size:.87rem;font-weight:800;margin:16px 0 6px}.ebd-law__detailbody p,.ebd-law__references{margin:0;font-size:.9rem;color:#374e42}.ebd-law__references{padding-left:20px}.ebd-law__references li{margin-bottom:8px}.ebd-law__caution{padding:12px;background:#f8f3e6;border:1px solid #eadcba;border-radius:9px;margin-top:15px!important}.ebd-law__use,.ebd-law__buttons button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--ebd-deep);color:#fff!important;border:1px solid var(--ebd-deep);border-radius:8px;padding:10px 15px;font:inherit;font-weight:750;font-size:.86rem;cursor:pointer;min-height:42px}.ebd-law__use{margin-top:15px}.ebd-law__use:hover,.ebd-law__buttons button:not(:disabled):hover{background:#24654d}.ebd-law__buttons button:disabled{opacity:.45;cursor:default}.ebd-law__empty{padding:24px;background:#f4f5f0;border-radius:10px}.ebd-law__how{background:#f0f4ed;border:1px solid #dde7dd;border-radius:15px;padding:26px 28px;margin:45px 0}.ebd-law__how ol{margin:0;padding-left:25px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 32px}.ebd-law__how li{font-size:.92rem;padding-left:3px}.ebd-law__how strong{display:block}.ebd-law__composer{border-radius:17px;padding:clamp(20px,4vw,35px);background:#fcfbf8;border:1px solid #d8e4d9;margin:0 0 40px}.ebd-law__composer>p:not(.ebd-law__eyebrow){color:#455b50}.ebd-law__composer .ebd-law__field{margin:16px 0}.ebd-law__composer #ebd-draft{background:#fff;min-height:220px;font-size:.9rem}.ebd-law__buttons{display:flex;flex-wrap:wrap;gap:10px}.ebd-law__buttons button{flex:0 0 auto}.ebd-law__buttons button:nth-child(2){background:#fff;color:#18523e!important}.ebd-law__feedback{min-height:1.4em;font-size:.85rem}.ebd-law__disclaimer{font-size:.83rem}.ebd-law__resources{margin:25px 0 50px}.ebd-law__resources h2{font-size:1.6rem}.ebd-law__links{display:flex;flex-wrap:wrap;gap:9px}.ebd-law__links a{border:1px solid #d4e4d8;background:#f6f8f4;padding:10px 12px;border-radius:8px;text-decoration:none;font-size:.85rem;font-weight:680}.ebd-law__links a:hover{text-decoration:underline}
@media (max-width:760px){.ebd-law{padding:0 15px}.ebd-law__cards,.ebd-law__toolbar,.ebd-law__how ol{grid-template-columns:minmax(0,1fr)}.ebd-law__hero{border-radius:13px}.ebd-law__card{padding:17px}.ebd-law__how{padding:22px}.ebd-law__stats{gap:7px 15px}}
@media (prefers-reduced-motion:reduce){.ebd-law *{scroll-behavior:auto!important;transition:none!important}}
@media print{.ebd-law__toolbar,.ebd-law__composer,.ebd-law__links,.ebd-law__use{display:none!important}.ebd-law__cards{display:block}.ebd-law__card{break-inside:avoid;margin-bottom:12px;box-shadow:none}.ebd-law__details:not([open]){display:none}}

/* Página del catálogo: ampliar únicamente este contenedor, sin cambiar otras páginas. */
.page-section .wrap.prose:has(.ebd-law){max-width:1200px}
.ebd-law .ebd-law__hero p,.ebd-law .ebd-law__notice,.ebd-law .ebd-law__caution{color:#354e40}
