.cp-directory {
    --cp-ink: #193445;
    --cp-blue: #173c55;
    --cp-muted: #4b626e;
    --cp-rule: #c9d2d4;
    --cp-accent: #e46f37;
    --cp-paper: #faf9f5;
    font-family: Montserrat, Arial, sans-serif;
    color: var(--cp-ink);
    background: var(--cp-paper);
    line-height: 1.5;
}
.cp-directory *, .cp-directory *::before, .cp-directory *::after { box-sizing: border-box; }
.cp-directory [hidden] { display: none !important; }
.cp-directory .cp-container { width: min(100%, 1280px); padding-inline: clamp(1rem, 4.5vw, 4rem); margin-inline: auto; }
.cp-directory a { color: inherit; text-underline-offset: .22em; }
.cp-directory :focus-visible { outline: 3px solid #bc641d; outline-offset: 4px; }
.cp-directory :is(#perfiles, #criterios, .cp-profile) { scroll-margin-top: 11rem; }
.cp-directory h1, .cp-directory h2, .cp-directory h3 { margin: 0; font-weight: 700; line-height: 1.12; }
.cp-directory-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(112deg, #e46f37 0%, #e46f37 68%, #004d75 100%); }
.cp-directory .cp-directory-hero h1 { color: #102632; }
.cp-directory-hero :focus-visible { outline-color: #fff; }
.cp-breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem .7rem; width: fit-content; max-width: 100%; margin-top: 1rem; padding: .55rem .85rem; border-radius: .8rem; background: #142e3a; font-size: .8rem; color: #fff; }
.cp-hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(2rem, 5vw, 4.3rem); align-items: center; }
.cp-directory .cp-eyebrow { margin: 0 0 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cp-directory-hero .cp-eyebrow { color: #102632; }
.cp-directory h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -.055em; }
.cp-intro { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 48ch; margin: 1.5rem 0; color: #102632; }
.cp-directory .cp-explore { color: #102632; display: inline-flex; gap: 1rem; padding: .65rem 0; font-size: .9rem; font-weight: 600; }
.cp-overview { padding: 1.8rem 0 1.8rem 2rem; border-left: 1px solid #ffffff70; }
.cp-overview > p { font-size: 1.1rem; font-weight: 600; margin: 0 0 1rem; }
.cp-overview dl { margin: 0 0 1.1rem; }
.cp-overview dl > div { display: flex; gap: 1rem; justify-content: space-between; align-items: center; border-bottom: 1px solid #ffffff70; padding-block: .8rem; }
.cp-overview dt { font-size: .85rem; font-weight: 400; max-width: 24ch; color: #fff; }
.cp-overview dd { color: #fff; margin: 0; font-size: 2rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cp-overview > a { font-size: .8rem; }
.cp-directory-content { padding-block: clamp(2.3rem, 5vw, 4rem); }
.cp-section-heading { margin-bottom: 1.8rem; }
.cp-directory h2 { font-size: clamp(1.7rem, 3vw, 2.65rem); letter-spacing: -.035em; }
.cp-section-heading p { margin: .75rem 0 0; font-size: .88rem; color: var(--cp-muted); }
.cp-filters { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.15fr) auto; align-items: end; gap: 1rem; }
.cp-filters label { margin: 0; font-size: .8rem; font-weight: 600; min-width: 0; }
.cp-filters :is(input, select) { display: block; width: 100%; min-height: 3rem; padding: .6rem .7rem; margin-top: .5rem; font: 400 1rem/1.3 Montserrat, Arial, sans-serif; border: 1px solid #879da5; border-radius: 10px; color: var(--cp-ink); background: #fff; }
.cp-filters button { min-height: 3rem; padding: .7rem 1.2rem; border: 1px solid var(--cp-blue); background: var(--cp-blue); border-radius: 10px; font: 600 .9rem/1.3 Montserrat, Arial, sans-serif; color: #fff; cursor: pointer; }
.cp-filters button:hover { background: #0b2a40; }
.cp-results-bar { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; align-items: baseline; padding-top: 1.25rem; font-size: .82rem; color: var(--cp-muted); }
.cp-results-bar p { margin: 0; }
.cp-results-bar a { min-height: 2rem; padding-block: .3rem; }
.cp-group-note { margin: .85rem 0 1.6rem; padding: 1rem 1.2rem; border-radius: 12px; background: #fff1e6; color: #163449; font-size: .84rem; }
.cp-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.cp-profile { min-width: 0; padding: 1.35rem; background: #fff; border: 1px solid #e3e8e9; border-radius: 14px; box-shadow: 0 3px 16px #19344506; }
.cp-profile-top { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 1rem; min-height: 96px; }
.cp-profile img { width: 72px; height: 96px; object-fit: cover; background: #edf0ef; border-radius: 2px; }
.cp-no-portrait { display: grid; place-content: center; width: 72px; height: 96px; text-align: center; font-size: .6rem; color: var(--cp-muted); background: #edf0ef; }
.cp-profile-chambers { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cp-muted); margin: 0 0 .5rem; }
.cp-directory .cp-profile h3 { font-size: 1.17rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
.cp-profile h3 a { text-decoration: none; }
.cp-profile h3 a:hover { text-decoration: underline; }
.cp-profile dl { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid #e1e7e8; }
.cp-profile dl > div + div { margin-top: .75rem; }
.cp-profile dt { color: var(--cp-muted); font-size: .7rem; font-weight: 500; }
.cp-profile dd { margin: .15rem 0 0; font-size: .84rem; overflow-wrap: anywhere; }
.cp-profile-status { display: inline-block; margin: 1rem 0 0; padding: .3rem .5rem; color: #284e5f; background: #edf2f3; font-size: .71rem; font-weight: 600; }
.cp-profile-pending { color: #163449; background: #fff1da; }
.cp-empty { padding: 3rem 1rem; border: 1px solid var(--cp-rule); text-align: center; }
.cp-empty p { margin: .8rem 0 0; color: var(--cp-muted); }
.cp-method { padding-block: 3rem; border-top: 1px solid var(--cp-rule); background: #eaf0ef; }
.cp-method-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem 4rem; }
.cp-method .cp-eyebrow { color: var(--cp-ink); }
.cp-method p { font-size: .86rem; color: var(--cp-muted); max-width: 75ch; }
.cp-method cite { font-style: normal; font-weight: 600; }
.cp-method a { display: inline-block; margin-top: .5rem; font-size: .88rem; font-weight: 600; }
@media (max-width: 1000px) {
    .cp-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cp-filters button { justify-self: start; min-width: 8rem; }
}
@media (max-width: 650px) {
    .cp-hero-grid, .cp-method-grid { grid-template-columns: minmax(0, 1fr); }
    .cp-overview { padding: 1rem 0 0; border-left: 0; border-top: 1px solid #ffffff70; }
    .cp-overview dt { max-width: none; }
    .cp-profile-grid, .cp-filters { grid-template-columns: minmax(0, 1fr); }
    .cp-filters button { justify-self: stretch; }
    .cp-directory :is(#perfiles, #criterios, .cp-profile) { scroll-margin-top: 8rem; }
}
@media print {
    .cp-directory-hero { background: #fff; color: #000; }
    .cp-directory-hero :is(p, dt) { color: #222; }
    .cp-filters, .cp-results-bar, .cp-explore { display: none; }
    .cp-profile { break-inside: avoid; }
    .cp-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
    .cp-hero-grid h1 { animation: cp-rise .65s cubic-bezier(.2,.7,.3,1) both; }
    .cp-hero-grid .cp-intro, .cp-overview { animation: cp-rise .7s .12s cubic-bezier(.2,.7,.3,1) both; }
    .cp-profile.cp-awaiting { opacity: 0; }
    .cp-profile.cp-revealed { animation: cp-rise .45s var(--cp-delay, 0ms) cubic-bezier(.2,.7,.3,1) both; }
    .cp-profile { transition: box-shadow .2s ease; }
    .cp-profile:hover { box-shadow: 0 8px 24px #19344512; }
}
.cp-directory-logo { display: block; width: 160px; height: auto; margin-bottom: 1.4rem; }
@keyframes cp-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .cp-directory *, .cp-directory *::before, .cp-directory *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .cp-directory .cp-awaiting { opacity: 1; }
}
@media print {
    .cp-directory .cp-profile { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Los textos pequeños mantienen contraste sin apagar el naranja del logotipo. */
.cp-overview { padding: 1.5rem; border: 0; border-radius: 1.1rem; background: #003a59; }
@media (max-width: 800px) { .cp-directory-hero { background: linear-gradient(180deg, #e46f37 0%, #e46f37 60%, #004d75 100%); } }
