/*
Theme Name: RF Derecho Digital
Description: Tema de WordPress para RF Derecho Digital.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: rf-derecho-digital
*/
:root{--navy:#123048;--teal:#007574;--lime:#83bb26;--ink:#161f25;--muted:#4c5961;--line:#e0e6e7;--soft:#f6f8f8;--serif:Georgia,'Times New Roman',serif}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--ink);font:1rem/1.65 system-ui,-apple-system,sans-serif}
a{color:inherit;text-decoration:none}button,summary{font:inherit;cursor:pointer}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--teal);outline-offset:5px}
p{margin:0 0 1rem;color:var(--muted)}h1,h2,h3{margin:0 0 1rem;line-height:1.07;color:var(--ink)}
h1,h2{font-family:var(--serif);font-weight:400;letter-spacing:-.04em}
h1{font-size:clamp(3rem,6vw,6.3rem)}h2{font-size:clamp(2rem,3.4vw,3.3rem)}h3{font-size:1.24rem;line-height:1.25}
.wrap{width:min(1296px,calc(100% - 112px));margin-inline:auto}
header{border-bottom:1px solid var(--line);background:white;position:relative;z-index:2}
.header,.foot{display:flex;align-items:center;justify-content:space-between;gap:2rem}
.header{min-height:91px}
.brand{display:inline-flex;align-items:center}.brand img{object-fit:contain;display:block;mix-blend-mode:multiply}
nav{display:flex;gap:clamp(1rem,3vw,2.65rem);align-items:center;font-size:.93rem}
nav a:hover,summary:hover,[aria-current=page]{color:var(--teal)}
.nav-contact{border:1px solid var(--navy);padding:.56rem 1.2rem}
.dropdown{position:relative}.dropdown summary{list-style:none}.dropdown summary::-webkit-details-marker{display:none}
.dropdown summary::after{content:'';display:inline-block;width:.4em;height:.4em;border-right:1px solid;border-bottom:1px solid;transform:translateY(-.2em) rotate(45deg);margin-left:.65em}
.submenu{position:absolute;top:calc(100% + 19px);left:-18px;min-width:285px;background:#fff;border:1px solid var(--line);box-shadow:0 14px 30px #12304816;padding:.45rem;z-index:3}
.submenu a{display:block;padding:.52rem .7rem}.submenu a:hover,.submenu a:focus-visible{background:var(--soft)}
.hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(2rem,5vw,5rem);padding-block:56px 66px}
.hero h1{max-width:700px}.hero h1 em{font-weight:400;color:var(--navy)}
.hero-visual{min-height:445px;aspect-ratio:1.22;background:var(--soft) url('assets/arquitectura.webp') 47% center / cover;position:relative}
.hero-visual:after{content:'';position:absolute;bottom:0;left:0;width:62px;height:4px;background:var(--lime)}
.kicker{color:var(--teal);font-size:.8125rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;margin-bottom:1.1rem}
.lead{font-size:clamp(1.08rem,1.5vw,1.28rem);line-height:1.58;max-width:42rem}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.6rem;margin-top:1.7rem}
.button{display:inline-block;background:var(--navy);color:white;padding:.72rem 1.15rem;font-weight:650;font-size:.94rem}.button:hover{background:var(--teal)}
.textlink,.more,.role{color:var(--teal);font-weight:650}.textlink{border-bottom:1px solid currentColor}
.band{padding-block:42px 48px;border-top:1px solid var(--line)}
.section-heading{display:flex;justify-content:space-between;gap:1.1rem;align-items:end;margin-bottom:1rem}.section-heading h2{margin-bottom:0}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:14px}
.card{border:1px solid var(--line);padding:1.35rem;display:flex;flex-direction:column;align-items:start;min-height:187px;transition:border-color .15s,background .15s}
.card:hover{border-color:var(--teal);background:var(--soft)}.card h2{font-size:1.85rem}.more{font-size:.9rem;margin-top:auto}.mark{width:22px;height:3px;background:var(--teal);margin-bottom:1.2rem}.card:nth-child(even) .mark{background:var(--lime)}
.complement{display:flex;flex-wrap:wrap;gap:.6rem 1.6rem;margin-top:1.5rem}.complement a{color:var(--teal);text-decoration:underline;text-underline-offset:4px}
.approach,.split{display:grid;grid-template-columns:1fr 1fr;gap:2.3rem;padding-block:56px;border-top:1px solid var(--line)}
.approach{grid-template-columns:1fr 2fr}.approach p{max-width:54ch}
.callout,.panel{background:var(--soft);padding:clamp(1.5rem,4vw,3rem)}.callout{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-left:3px solid var(--lime);margin-bottom:52px}.callout h2{margin:0}
.intro{padding-block:clamp(3rem,8vw,7rem) clamp(2rem,5vw,4.5rem)}.intro h1{max-width:1000px}
.panel h2{font-size:1.9rem}.panel ul{padding-left:1.3rem;margin-bottom:0}.panel li+li{margin-top:.5rem}
.article{border-top:1px solid var(--line);padding-block:2rem 4rem}.article p{max-width:67ch}
.spaced{margin-top:2.5rem}
footer{background:var(--soft);border-top:1px solid var(--line);padding:2rem 0 1.2rem}footer p{margin:.4rem 0}footer small{display:block;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line);color:var(--muted)}
.skip{position:absolute;left:1rem;top:-6rem;background:white;padding:.5rem;z-index:4}.skip:focus{top:.5rem}
.toggle{color:var(--navy);background:white;border:1px solid var(--line);padding:.45rem .75rem}
@media(max-width:1000px){.wrap{width:calc(100% - 64px)}.hero-visual{min-height:360px}}
@media(max-width:760px){.wrap{width:calc(100% - 36px)}.header{min-height:77px;flex-wrap:wrap;gap:0}.brand img{max-width:108px;height:auto}.header nav{width:100%;flex-wrap:wrap;gap:.8rem 1rem;padding-bottom:1rem}.header nav[hidden]{display:none}.nav-contact{padding:.2rem .55rem}.submenu{left:-50px;top:calc(100% + 9px);max-width:calc(100vw - 36px);min-width:240px}.hero,.split,.approach{grid-template-columns:1fr;gap:1.25rem}.hero{padding-block:2.65rem}.hero-visual{min-height:0;aspect-ratio:1.55}.foot,.callout{align-items:flex-start;flex-direction:column}.foot nav{flex-wrap:wrap;gap:.55rem 1.2rem}.section-heading{align-items:start;flex-direction:column}}
