.page-hero{
    background:var(--green-dark);
    color:var(--cream);
    padding:42px 0 72px
}
.page-hero h1{
    font-family:"Cormorant Garamond",serif;
    font-size:clamp(38px,5vw,64px);
    line-height:1.08;
    max-width:940px;
    font-weight:600;
    margin:18px 0 24px
}
.page-hero p{
    max-width:790px;
    color:#dddcd3;
    font-size:17px;
    line-height:1.8
}
.breadcrumbs{
    font-size:12px;
    color:#c7c9bf;
    margin-bottom:42px
}
.breadcrumbs a{
    text-decoration:underline
}
.page-actions{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    margin:30px 0 18px
}
.page-hero .fee-note{
    font-size:13px;
    color:#d4bf97
}
.page-section{
    padding:80px 0
}
.detail-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
    margin-top:32px
}
.detail-card{
    padding:30px;
    background:white;
    border:1px solid var(--border);
    border-top:3px solid var(--gold)
}
.detail-number{
    font-family:"Cormorant Garamond",serif;
    font-size:32px;
    color:var(--gold);
    display:block;
    margin-bottom:15px
}
.case-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:26px;
    margin-top:35px
}
.case-card{
    border-bottom:1px solid var(--border);
    padding:10px 0 26px
}
.case-card h3{
    font-family:"Cormorant Garamond",serif;
    font-size:27px;
    line-height:1.2;
    color:var(--green);
    margin-bottom:14px
}
.case-card p{
    color:var(--muted)
}
.biography{
    display:grid;
    grid-template-columns:300px minmax(0,1fr);
    gap:70px
}
.biography img{
    width:100%;
    margin-bottom:24px
}
.biography h2{
    font-family:"Cormorant Garamond",serif;
    font-size:34px;
    color:var(--green);
    line-height:1.15;
    margin:38px 0 18px
}
.biography h2:first-child{
    margin-top:0
}
.biography p{
    margin-bottom:18px;
    color:var(--muted)
}
[aria-current="page"]{
    color:var(--gold)!important
}
a:focus-visible,button:focus-visible{
    outline:3px solid var(--gold);
    outline-offset:5px
}
#consulta,#contacto{
    scroll-margin-top:100px
}
.profile-photo img{
    object-fit:contain!important;
    background:var(--green-dark)
}
@media(max-width:760px){
    .detail-grid,.case-grid,.biography{
        grid-template-columns:1fr
    }
    .page-section{
        padding:50px 0
    }
    .page-hero{
        padding:28px 0 48px
    }
    .biography{
        gap:30px
    }
    .biography aside{
        max-width:300px
    }
    .page-actions .btn{
        width:100%;
        text-align:center
    }
    .breadcrumbs{
        margin-bottom:28px
    }
}

.biography .activity-photo { max-width: 720px; height: auto; border-radius: 4px; }

/* Perfil profesional */
.profile-intro { background: var(--cream); }
.profile-intro-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 80px); }
.profile-portrait { margin: 0; overflow: hidden; border-radius: 12px; background: white; box-shadow: 0 16px 45px rgba(7,38,32,.12); }
.profile-portrait img { display: block; width: 100%; height: auto; }
.profile-portrait figcaption { padding: 22px 26px; border-top: 3px solid var(--gold); }
.profile-portrait strong { display: block; color: var(--green); font-family: "Cormorant Garamond", serif; font-size: 29px; }
.profile-portrait span { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.profile-intro-copy h2, .profile-block h2 { font-family: "Cormorant Garamond", serif; font-size: clamp(32px, 3.4vw, 44px); color: var(--green); line-height: 1.12; margin: 14px 0 24px; }
.profile-intro-copy p, .profile-block-copy p { color: var(--muted); margin-bottom: 18px; line-height: 1.85; }
.profile-intro-copy .btn { margin-top: 14px; }
.profile-block { padding: 70px 0; border-top: 1px solid var(--border); }
.profile-text-block { display: grid; grid-template-columns: minmax(0, 1fr); }
.profile-text-block .profile-block-copy { max-width: 900px; }
.profile-activity { background: #f4f3ee; }
.profile-activity-reverse { background: white; }
.profile-activity-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 48px; }
.profile-activity-reverse .profile-block-copy { order: 2; }
.profile-activity-photo { margin: 0; min-width: 0; background: white; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 12px 32px rgba(7,38,32,.08); }
.profile-activity-photo img { display: block; width: 100%; height: auto; }
.profile-activity-photo figcaption { padding: 15px 20px; font-size: 13px; color: var(--green); border-top: 2px solid var(--gold); }
.profile-list-item { padding-left: 18px; border-left: 2px solid var(--gold); }
@media (max-width: 1000px) {
    .profile-activity-grid { grid-template-columns: 1fr; gap: 24px; }
    .profile-activity-reverse .profile-block-copy { order: 0; }
}
@media (max-width: 760px) {
    .profile-intro-grid { grid-template-columns: 1fr; gap: 34px; }
    .profile-portrait { width: 100%; max-width: 420px; margin: 0 auto; }
    .profile-block { padding: 44px 0; }
    .profile-portrait figcaption { padding: 18px 20px; }
    .profile-intro-copy .btn { width: 100%; justify-content: center; }
}
