/*
Theme Name: Francisco Javier Ramos - Derecho Administrativo
Author: Diseño personalizado
Description: Tema ligero para la web profesional de Francisco Javier Ramos Salamanca.
Version: 4.0.2
Requires at least: 6.0
Text Domain: fjr
*/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');
:root{--navy:#14283D;--navy2:#203c54;--ivory:#F5F2EC;--sand:#BCA58A;--ink:#30343A;--muted:#526273;--line:#dfd5c7}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);line-height:1.7;background:#fff}a{color:inherit;text-decoration:none}a:hover{color:#967e61}img{max-width:100%;height:auto}h1,h2,h3,.brand-name{font-family:'Cormorant Garamond',Georgia,serif;line-height:1.1;font-weight:600}h1{font-size:clamp(2.7rem,5vw,5rem);margin:16px 0 24px}h2{font-size:clamp(2.3rem,4vw,3.6rem);margin:12px 0 25px}h3{font-size:1.65rem;margin:0 0 10px}.wrap{max-width:1200px;margin:auto;padding-left:28px;padding-right:28px}.site-header{background:var(--ivory);border-bottom:1px solid var(--line)}.brand-row{text-align:center;padding:25px 16px 22px}.brand-name{display:block;font-size:clamp(1.65rem,3vw,2.25rem);color:var(--navy)}.brand-sub{font-size:12px;color:var(--muted);letter-spacing:.06em}.nav-row{border-top:1px solid var(--line);padding:12px 16px}.nav-row ul{display:flex;justify-content:center;gap:32px;flex-wrap:wrap;margin:0;padding:0;list-style:none}.nav-row a{font-size:13px;font-weight:600;color:var(--navy)}.nav-row a:hover{color:#967e61}.hero{background:var(--navy);color:#fff;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:50px;min-height:590px}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:11px;font-weight:700;color:var(--sand)}.hero p{color:#e1e8ed;font-size:16px;max-width:610px}.hero-image{align-self:stretch;display:flex;align-items:end;justify-content:center;padding-top:38px}.hero-image img{width:100%;max-height:565px;object-fit:cover;object-position:center 16%;border-radius:180px 180px 0 0;filter:saturate(.85)}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.btn{display:inline-block;padding:13px 22px;border:1px solid var(--sand);font-size:13px;font-weight:700;transition:.2s}.btn-primary{background:var(--sand);color:var(--navy)}.btn-outline{color:white}.btn:hover{transform:translateY(-2px)}section.section{padding:86px 0}.section-intro{max-width:780px;margin-bottom:38px}.section-intro p{color:var(--muted)}.cream{background:var(--ivory)}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card{border:1px solid #e3e0db;background:#fff;padding:28px 24px;min-height:190px;display:flex;flex-direction:column;justify-content:space-between}.card h3{font-size:1.52rem;color:var(--navy)}.card span{font-size:12px;color:#947d60;font-weight:600}.split{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}.split p{color:var(--muted)}.portrait-small{width:100%;max-height:480px;object-fit:cover;object-position:top}.statement{background:var(--navy);color:#fff;text-align:center;padding:80px 0}.statement h2{max-width:800px;margin:0 auto 20px}.statement p{max-width:750px;margin:0 auto 28px;color:#e1e8ed}.footer{background:#101f2e;color:#d9e0e6;padding:52px 0 24px}.footer-grid{display:grid;grid-template-columns:2fr 1fr;gap:45px}.footer h3{color:white}.footer a{color:#d9e0e6}.footer-bottom{border-top:1px solid #344557;margin-top:35px;padding-top:18px;font-size:12px;color:#a8b4bf;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.actis{width:112px;max-width:100%;background:white;padding:5px;border-radius:3px;margin-top:12px}.inner{padding:75px 0;min-height:55vh}.inner h1{color:var(--navy)}.content{max-width:820px}.content a{text-decoration:underline}.post-list article{border-bottom:1px solid var(--line);padding:22px 0}.post-list h2{font-size:2rem;margin:8px 0}.meta{font-size:12px;color:var(--muted)}.wp-block-image img{height:auto}.screen-reader-text{position:absolute;left:-9999px}@media(max-width:900px){.cards{grid-template-columns:repeat(2,1fr)}.hero-grid{gap:24px}.hero-image img{max-height:470px}.split{gap:30px}}@media(max-width:650px){.wrap{padding-left:20px;padding-right:20px}.nav-row ul{gap:12px 18px}.nav-row a{font-size:12px}.hero-grid{grid-template-columns:1fr;gap:10px}.hero-copy{padding-top:58px}.hero-image{padding-top:10px}.hero-image img{max-height:360px;object-position:center 12%;width:75%}.cards,.split,.footer-grid{grid-template-columns:1fr}.section.section{padding:60px 0}.card{min-height:140px}.inner{padding:55px 0}}

/* Versión 2 */
.skip-link{position:absolute;top:-100px;left:12px;z-index:999;background:#fff;padding:8px}.skip-link:focus{top:12px}
.site-header .brand-row{display:flex;align-items:center;justify-content:space-between;text-align:left;padding-top:18px;padding-bottom:18px;gap:22px}
.brand-identity{min-width:0}.brand-name{font-size:clamp(1.55rem,2.4vw,2.25rem)}.brand-sub{font-size:10px;letter-spacing:.15em;margin-top:3px}
.actis-header-link{display:flex;align-items:center;justify-content:flex-end;border-left:1px solid var(--line);padding-left:22px;flex-shrink:0}.actis-header-link img{width:138px;max-height:72px;object-fit:contain;mix-blend-mode:multiply}
.nav-row{padding:12px 0}.nav-row ul{gap:36px}.hero h1{font-size:clamp(2.9rem,4.4vw,4.35rem);max-width:690px}.hero-grid{grid-template-columns:1.1fr .9fr;min-height:560px}.hero-image img{max-height:535px}
.card{position:relative;min-height:195px;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(20,40,61,.08)}.card-num{order:0}.card h3{order:1}.card-arrow{order:2;align-self:flex-end;font-size:21px!important}.btn-dark{background:var(--navy);color:white;border-color:var(--navy)}.btn-dark:hover{color:white}.split-compact{align-items:start}.lead{font-size:1.18rem;color:var(--navy);line-height:1.7}.area-list{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:28px 0 55px}.area-detail{border:1px solid var(--line);padding:30px;scroll-margin-top:20px}.area-detail h2{font-size:2.2rem}.area-detail p{color:var(--muted)}.area-detail .lead{color:var(--navy)}.text-link{font-weight:700;color:var(--navy);text-decoration:underline;text-underline-offset:4px}.other-areas{background:var(--ivory);padding:35px;margin-bottom:25px}.other-areas h2{font-size:2.4rem}.about-layout{align-items:start}.about-photo{width:100%;max-height:650px;object-fit:cover;object-position:top;border-radius:180px 180px 0 0}.prose p,.about-extra p{color:var(--muted)}.about-extra{max-width:850px;padding:35px 0}.about-extra h2{font-size:2.5rem}.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:28px}.contact-panel,.contact-note{padding:36px;background:var(--ivory)}.contact-note{background:#fff;border:1px solid var(--line)}.contact-grid h2{font-size:2.4rem}.contact-grid a:not(.btn){text-decoration:underline;text-underline-offset:3px}.small-note{font-size:13px;color:var(--muted)}
@media(max-width:900px){.area-list{grid-template-columns:1fr}.actis-header-link img{width:105px}.nav-row ul{gap:18px}.hero h1{font-size:clamp(2.7rem,5vw,3.8rem)}}
@media(max-width:650px){.site-header .brand-row{padding-top:15px;padding-bottom:15px}.brand-name{font-size:1.5rem}.brand-sub{font-size:9px}.actis-header-link{padding-left:10px}.actis-header-link img{width:76px}.nav-row ul{gap:10px 16px}.hero h1{font-size:clamp(2.65rem,10vw,3.8rem)}.hero-grid{min-height:0}.area-detail{padding:22px}.contact-grid{grid-template-columns:1fr}.contact-panel,.contact-note{padding:24px}.about-photo{max-height:420px}.brand-row{gap:8px!important}}

/* v3: faithful layout of approved homepage reference */
:root{--navy:#14283D;--ivory:#f7f3ee;--sand:#b59a7d;--line:#d9d0c6}
body{color:#101c2c}.wrap{max-width:1440px;padding-left:clamp(24px,5vw,80px);padding-right:clamp(24px,5vw,80px)}
.site-header{background:#f7f3ee;border-bottom:0}.site-header .brand-row{min-height:91px;padding-top:7px;padding-bottom:7px;gap:24px}.brand-name{font-size:clamp(1.8rem,2.65vw,2.65rem);line-height:1.05;font-weight:600}.brand-sub{display:flex;align-items:center;gap:14px;font-size:12px;letter-spacing:.17em;color:#101c2c;margin-top:10px}.brand-rule{display:inline-block;background:var(--sand);width:74px;height:2px;flex:none}.actis-header-link{min-height:62px;padding-left:38px}.actis-header-link img{width:175px;max-height:77px;mix-blend-mode:multiply}
.nav-row{border-top:1px solid #ded6cc;padding:0}.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:70px}.primary-nav{min-width:0}.nav-row ul{justify-content:flex-start;gap:clamp(16px,2.9vw,44px);align-items:center;flex-wrap:wrap}.nav-row li{position:relative}.nav-row a{font-size:15px;font-weight:500;white-space:nowrap}.nav-row .current-menu-item>a,.nav-row .current_page_item>a{font-weight:700}.nav-row .current-menu-item>a:after,.nav-row .current_page_item>a:after{content:'';position:absolute;bottom:-19px;left:0;right:0;height:3px;background:var(--sand)}.nav-row .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:20;background:var(--ivory);box-shadow:0 10px 25px #0002;padding:12px;min-width:220px}.nav-row li:hover>.sub-menu,.nav-row li:focus-within>.sub-menu{display:block}.nav-row .sub-menu li{padding:5px 8px}.nav-contact{display:flex;align-items:center;gap:28px;flex-shrink:0}.header-phone{font-size:17px!important;font-weight:500!important;color:#111c2b!important}.header-phone span{color:#8f7559;margin-right:7px}.header-cta{background:#b49b7f;color:#fff!important;padding:12px 22px;font-size:15px!important;font-weight:500!important;border-radius:5px;box-shadow:0 2px 10px #0001}.header-cta span{margin-right:9px}.header-cta:hover{background:#a88c6c;color:white!important}
.hero-reference{position:relative;min-height:470px;isolation:isolate;background:#14283D}.hero-photo{position:absolute;inset:0 0 0 46%;z-index:-2;overflow:hidden}.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center 27%;display:block}.hero-angle{position:absolute;inset:0;z-index:-1;background:linear-gradient(105deg,#13283c 0%,#152b3f 75%,#14283d 100%);clip-path:polygon(0 0,55.4% 0,46.5% 100%,0 100%)}.hero-content{position:relative;min-height:470px;display:flex;align-items:center}.hero-copy{max-width:620px;width:52%;padding:32px 0 40px}.hero .eyebrow{font-size:14px;letter-spacing:.08em;color:#c7aa89}.gold-rule{width:48px;height:2px;background:var(--sand);margin:15px 0 17px}.hero h1{font-size:clamp(2.6rem,3.85vw,3.8rem);line-height:1.02;max-width:670px;font-weight:500;margin:0 0 10px;color:#fff}.hero .hero-subtitle{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(1.55rem,2.1vw,2.15rem);color:#fff;margin:10px 0 15px;line-height:1.15}.hero .hero-description{font-size:15.5px;line-height:1.58;color:#fff;margin:0;max-width:610px}.hero .actions{margin-top:25px;gap:18px}.hero .btn{min-width:205px;text-align:center;padding:12px 22px;font-size:15px;font-weight:500;border-radius:6px}.hero .btn-primary{background:#c0a88c;color:#0c1b2a;border:1px solid #e1d0bb}.hero .btn-primary span{margin-left:14px;font-size:22px;line-height:0;vertical-align:-1px}.hero .btn-outline{border:1px solid #fff;color:#fff}
.areas-section.section{padding:26px 0 42px}.areas-section{background:#f8f5f1}.areas-section .eyebrow{font-size:13px;letter-spacing:.08em;color:#a68b6d}.areas-section .gold-rule{width:38px;margin:12px 0 4px}.areas-section h2{font-size:clamp(2.1rem,3.3vw,3.15rem);margin:0 0 24px;color:#0f1b2b;font-weight:500}.cards-reference{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.cards-reference .area-card{display:flex;flex-direction:row;align-items:center;gap:16px;min-height:104px;padding:15px 17px;border:1px solid #d8d1c9;border-radius:10px;background:#faf8f5;box-shadow:none}.cards-reference .area-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px #0000000d}.area-icon{display:flex;flex:0 0 50px;color:#ad9475}.area-icon svg{width:44px;height:46px}.area-title{font-size:15px;color:#101b2c;font-weight:600;line-height:1.32;flex:1}.area-chevron{font-family:Arial,sans-serif;color:#15283c;font-size:27px;line-height:1;align-self:center}.areas-section .cards h3{display:none}
@media(max-width:1200px){.nav-inner{flex-wrap:wrap;justify-content:center;padding-top:12px;padding-bottom:12px}.nav-contact{gap:22px}.hero-copy{width:55%}.hero-angle{clip-path:polygon(0 0,59% 0,50% 100%,0 100%)}.cards-reference{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.site-header .brand-row{min-height:80px}.brand-name{font-size:1.85rem}.actis-header-link img{width:120px}.nav-row ul{justify-content:center}.nav-row .current-menu-item>a:after,.nav-row .current_page_item>a:after{bottom:-5px}.hero-photo{inset:0 0 0 40%}.hero-angle{clip-path:polygon(0 0,71% 0,60% 100%,0 100%)}.hero-copy{width:67%}.hero h1{font-size:clamp(2.5rem,5.5vw,3.4rem)}.hero .hero-description{font-size:14px}.hero .btn{min-width:unset}}
@media(max-width:650px){.wrap{padding-left:20px;padding-right:20px}.site-header .brand-row{align-items:center;gap:12px}.brand-name{font-size:1.55rem}.brand-sub{font-size:9px;letter-spacing:.06em;gap:7px}.brand-rule{width:24px}.actis-header-link{padding-left:10px}.actis-header-link img{width:80px}.nav-inner{gap:10px}.nav-row ul{gap:10px 15px}.nav-row a{font-size:12px}.nav-contact{gap:10px}.header-phone{font-size:12px!important}.header-cta{font-size:12px!important;padding:9px 12px}.hero-reference{display:flex;flex-direction:column;min-height:0}.hero-photo{position:relative;inset:auto;order:2;height:285px;width:100%;z-index:0}.hero-photo img{object-position:center 23%}.hero-angle{clip-path:none;inset:0;bottom:285px}.hero-content{order:1;min-height:0;width:100%}.hero-copy{width:100%;max-width:none;padding:38px 0 36px}.hero h1{font-size:clamp(2.65rem,10vw,3.6rem)}.hero .eyebrow{font-size:11px}.hero .hero-subtitle{font-size:1.8rem}.hero .actions{gap:10px}.hero .btn{font-size:13px;padding:12px 14px}.cards-reference{grid-template-columns:1fr}.cards-reference .area-card{min-height:86px}.areas-section h2{font-size:2.3rem}}

/* v3.1 functional additions; homepage design unchanged */
.footer-grid{grid-template-columns:1.6fr 1fr 1fr}.fjr-form{display:grid;gap:13px}.fjr-form>label:not(.fjr-privacy){display:grid;gap:5px;font-size:14px;font-weight:600}.fjr-form input:not([type=checkbox]),.fjr-form select,.fjr-form textarea{width:100%;border:1px solid #c9c2b8;background:#fff;padding:11px;font:inherit;border-radius:4px;color:#14283d}.fjr-form .fjr-privacy{display:flex;gap:10px;align-items:flex-start;font-size:13px}.fjr-form .fjr-privacy input{margin-top:5px}.fjr-form button{cursor:pointer}.fjr-form button:disabled{opacity:.6;cursor:wait}.fjr-form-result{font-weight:600;color:#14283d}.fjr-honeypot{position:absolute!important;left:-9999px!important;height:1px;overflow:hidden}.entry-content{line-height:1.8}.entry-content h2{font-size:2.2rem;margin-top:35px}@media(max-width:800px){.footer-grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){.footer-grid{grid-template-columns:1fr}}

/* 3.2: ajustes del formulario ya comprobados en desarrollo */
.fjr-privacy{display:flex;align-items:flex-start;gap:10px}
.fjr-privacy input[type="checkbox"]{flex:0 0 auto;margin-top:4px}
.fjr-privacy span{display:block;flex:1;min-width:0}
.fjr-privacy a,.fjr-privacy a:visited{color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px}
.fjr-privacy a:hover{color:inherit;text-decoration:underline}
.fjr-privacy a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
/* 3.2: páginas de especialidades */
.specialty-page .specialty-breadcrumb{font-size:13px;color:var(--muted);margin-bottom:32px}
.specialty-page .specialty-breadcrumb a{text-decoration:underline;text-underline-offset:3px}
.specialty-intro{max-width:880px;margin-bottom:38px}
.specialty-intro h1{margin:10px 0 22px}
.specialty-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:48px}
.specialty-section{padding:29px 30px;border:1px solid var(--line);background:#fff}
.specialty-section h2{font-size:clamp(1.8rem,2.6vw,2.4rem);margin:0 0 14px;color:var(--navy)}
.specialty-section p{color:var(--muted);margin:0}
.specialty-cta{background:var(--navy);color:#fff;padding:40px 45px;margin:30px 0}
.specialty-cta h2{font-size:clamp(2rem,3vw,2.7rem);margin:0 0 14px}
.specialty-cta p{color:#e1e8ed;max-width:750px}
.specialty-cta .btn-primary{background:var(--sand);color:var(--navy)}
.specialty-back{margin:30px 0 0}
/* 3.2: composición corporativa en portada, retrato reservado a Sobre mí */
.hero-photo img{object-position:center center}
@media(max-width:650px){.specialty-content{grid-template-columns:1fr}.specialty-section{padding:24px}.specialty-cta{padding:30px 24px}.hero-photo img{object-position:center center}}

/* v3.3: specialty content and corporate branding */
.actis-header-link img{width:160px;max-height:82px;object-fit:contain;mix-blend-mode:normal;border-radius:3px}
.footer .actis{width:160px;max-width:100%;background:#f7f3ee;padding:3px;border-radius:3px}
.specialty-client,.specialty-method{padding:35px 40px;margin:0 0 22px;border:1px solid var(--line);background:var(--ivory)}
.specialty-method{background:#fff}
.specialty-client h2,.specialty-method h2{font-size:clamp(2rem,3.1vw,3rem);color:var(--navy);margin:12px 0 18px}
.specialty-client p,.specialty-method p{color:var(--muted);max-width:880px}
.specialty-client ul,.specialty-method ol{padding-left:24px;max-width:920px;margin:20px 0}
.specialty-client li,.specialty-method li{margin:10px 0;line-height:1.7}
@media(max-width:650px){.specialty-client,.specialty-method{padding:24px}.actis-header-link img{width:95px;max-height:65px}}

/* 3.3.2: placa ACTIS suministrada; integración oscura en pie */
.footer .actis{background:transparent;padding:0;border-radius:0;width:160px;height:auto;display:block;mix-blend-mode:normal}
.actis-header-link img{mix-blend-mode:normal}

/* v4.0: Actualidad jurídica. Preserves v3.3.4 layout elsewhere. */
.fjr-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:28px 0 36px}.fjr-news-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;display:flex;flex-direction:column;min-width:0}.fjr-news-cover{display:block;aspect-ratio:16/10;background:var(--ivory);overflow:hidden}.fjr-news-cover img{width:100%;height:100%;object-fit:cover;display:block}.fjr-news-body{padding:22px;display:flex;flex-direction:column;gap:12px;flex:1}.fjr-news-body h2{font-size:clamp(1.45rem,2vw,1.85rem);line-height:1.15;margin:0}.fjr-news-body h2 a{color:var(--navy);text-decoration:none}.fjr-news-body p{color:var(--muted);font-size:15px;margin:0;flex:1}.fjr-news-date{font-size:13px;color:var(--muted)}.fjr-news-body .text-link{margin-top:5px}.fjr-news-pagination{display:flex;gap:12px;align-items:center;justify-content:center;margin:32px 0 48px;flex-wrap:wrap}.fjr-news-pagination .page-numbers{border:1px solid var(--line);padding:8px 12px;border-radius:5px}.fjr-news-pagination .current{background:var(--navy);color:#fff}.fjr-article .section-intro{max-width:900px}.fjr-article-cover{max-width:900px;margin:0 0 30px}.fjr-article-cover img{width:100%;height:auto;max-height:500px;object-fit:cover;border-radius:8px}.fjr-article-content{max-width:850px}.fjr-article-return{margin:35px 0 55px}@media(max-width:950px){.fjr-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.fjr-news-grid{grid-template-columns:1fr}}

/* Nota informativa del coste de la consulta */
.fjr-consultation-fee{padding:1rem 1.2rem;border-left:3px solid #aa8d5d;background:#f6f2e9;line-height:1.6;margin:0 0 1.5rem}
