/* ================================================================
   ESTUDIO JURÍDICO — Di Tieri & Rodríguez Propiedades
   Tokens, base, componentes y utilidades.
   Versión: 2.1
   ================================================================ */

/* ── Tokens ─────────────────────────────────────────────────────── */
.ej-page {
    --ej-red: #d60000;
    --ej-red-dark: #b30000;
    --ej-red-light: #fff1f1;
    --ej-red-mid: rgba(214, 0, 0, .12);

    --ej-dark: #101828;
    --ej-heading: #0d1b2a;
    --ej-body: #344054;
    --ej-muted: #667085;
    --ej-border: #e4e7ec;
    --ej-border-soft: rgba(16, 24, 40, .07);
    --ej-white: #ffffff;
    --ej-tint: #fafafa;
    --ej-cream: #fdf8f7;

    --ej-shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .05);
    --ej-shadow-md: 0 4px 20px rgba(16, 24, 40, .08), 0 2px 8px rgba(16, 24, 40, .05);
    --ej-shadow-lg: 0 20px 60px rgba(16, 24, 40, .10);

    --ej-font-display: Georgia, "Times New Roman", serif;
    --ej-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --ej-radius-sm: 8px;
    --ej-radius-md: 14px;
    --ej-radius-lg: 22px;
    --ej-radius-xl: 32px;

    --ej-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: var(--ej-font-body);
    color: var(--ej-body);
    background: var(--ej-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Astra overrides ────────────────────────────────────────────── */
.page-template-page-estudio-juridico .site-content .ast-container,
.page-template-page-estudio-juridico .entry-content {
    padding-top: 0;
    margin-top: 0;
}

/* ── Container ──────────────────────────────────────────────────── */
.ej-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 40px);
}

/* ── Typography ─────────────────────────────────────────────────── */
.ej-page h1,
.ej-page h2,
.ej-page h3 {
    font-family: var(--ej-font-display);
    color: var(--ej-heading);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.ej-page h1 {
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 700;
    line-height: 1.08;
}

.ej-page h1 em {
    font-style: italic;
    color: var(--ej-red);
}

.ej-page h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    margin: 0 0 16px;
}

.ej-page h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
}

.ej-page p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 16px;
}

.ej-page p:last-child {
    margin-bottom: 0;
}

/* ── Eyebrow ────────────────────────────────────────────────────── */
.ej-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px !important;
    color: var(--ej-red);
    font-family: var(--ej-font-body);
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1 !important;
    text-transform: uppercase;
}

.ej-eyebrow::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--ej-red);
    border-radius: 999px;
    flex-shrink: 0;
}

/* ── Sections ───────────────────────────────────────────────────── */
.ej-section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.ej-section--tinted {
    background: var(--ej-cream);
    border-top: 1px solid var(--ej-border);
    border-bottom: 1px solid var(--ej-border);
}

.ej-section--compact {
    padding: clamp(40px, 6vw, 72px) 0;
}

.ej-section__header {
    max-width: 700px;
    margin-bottom: 44px;
}

.ej-section__header--centered {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.ej-section__header--centered .ej-eyebrow {
    justify-content: center;
}

.ej-section__header--inline {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: end;
    margin-bottom: 40px;
}

.ej-section__sub {
    color: var(--ej-muted);
    font-size: 17px !important;
    max-width: 640px;
    margin: 0;
}

.ej-section__header--centered .ej-section__sub {
    margin-inline: auto;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.ej-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-family: var(--ej-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none !important;
    border: 2px solid transparent;
    transition:
        transform var(--ej-transition),
        box-shadow var(--ej-transition),
        background var(--ej-transition),
        color var(--ej-transition);
    white-space: nowrap;
}

.ej-btn:hover {
    transform: translateY(-2px);
}

.ej-btn--primary {
    background: var(--ej-red);
    color: var(--ej-white) !important;
    box-shadow: 0 8px 24px rgba(214, 0, 0, .24);
}

.ej-btn--primary:hover {
    background: var(--ej-red-dark);
    box-shadow: 0 12px 32px rgba(214, 0, 0, .32);
}

.ej-btn--outline {
    background: transparent;
    color: var(--ej-dark) !important;
    border-color: var(--ej-border);
    box-shadow: var(--ej-shadow-sm);
}

.ej-btn--outline:hover {
    border-color: var(--ej-dark);
    background: var(--ej-dark);
    color: var(--ej-white) !important;
}

.ej-btn--ghost {
    background: transparent;
    color: var(--ej-red) !important;
    border-color: var(--ej-red);
}

.ej-btn--ghost:hover {
    background: var(--ej-red);
    color: var(--ej-white) !important;
}

.ej-btn--light {
    background: var(--ej-white);
    color: var(--ej-dark) !important;
    box-shadow: var(--ej-shadow-md);
}

.ej-btn--light:hover {
    background: #f0f0f0;
    box-shadow: var(--ej-shadow-lg);
}

.ej-btn--outline-light {
    background: transparent;
    color: rgba(255, 255, 255, .9) !important;
    border-color: rgba(255, 255, 255, .4);
}

.ej-btn--outline-light:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .8);
    color: var(--ej-white) !important;
}

/* ── Link arrow ─────────────────────────────────────────────────── */
.ej-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ej-red) !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    transition: gap var(--ej-transition), opacity var(--ej-transition);
    margin-top: 8px;
}

.ej-link-arrow:hover {
    gap: 10px;
    opacity: .85;
}

/* ────────────────────────────────────────────────────────────────
   HERO
──────────────────────────────────────────────────────────────── */
.ej-hero {
    padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 72px);
    background:
        radial-gradient(circle at 0% 0%, rgba(214, 0, 0, .06), transparent 40%),
        linear-gradient(180deg, #fff 0%, #fdfafa 100%);
}

.ej-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

.ej-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.ej-breadcrumb li {
    font-size: 13px;
    color: var(--ej-muted);
    line-height: 1;
    margin: 0;
}

.ej-breadcrumb a {
    color: var(--ej-muted);
    text-decoration: none;
}

.ej-breadcrumb a:hover {
    color: var(--ej-red);
}

.ej-hero h1 {
    margin: 12px 0 24px;
}

.ej-hero__lead {
    font-size: clamp(16px, 1.8vw, 19px) !important;
    line-height: 1.7 !important;
    color: var(--ej-body);
    max-width: 640px;
    margin-bottom: 32px !important;
}

.ej-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Hero card */
.ej-hero__card {
    background: var(--ej-white);
    border: 1px solid var(--ej-border);
    border-radius: var(--ej-radius-xl);
    box-shadow: var(--ej-shadow-lg);
    overflow: hidden;
    position: sticky;
    top: 32px;
}

.ej-hero__card-header {
    background: var(--ej-dark);
    padding: 20px 28px;
}

.ej-card-tag {
    color: var(--ej-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .8;
}

.ej-hero__checklist {
    margin: 0;
    padding: 24px 28px;
    list-style: none;
}

.ej-hero__checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    padding: 11px 0;
    border-bottom: 1px solid var(--ej-border);
    margin: 0;
}

.ej-hero__checklist li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ej-hero__checklist li:first-child {
    padding-top: 0;
}

.ej-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ej-red);
    flex-shrink: 0;
    margin-top: 1px;
}

.ej-check::after {
    content: '';
    display: block;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

.ej-hero__card-footer {
    padding: 16px 28px;
    background: var(--ej-tint);
    border-top: 1px solid var(--ej-border);
}

.ej-hero__card-footer span {
    font-size: 12px;
    color: var(--ej-muted);
    font-weight: 500;
    letter-spacing: .04em;
}

/* ────────────────────────────────────────────────────────────────
   TRUST STRIP
──────────────────────────────────────────────────────────────── */
.ej-trust {
    background: var(--ej-dark);
    padding: 20px 0;
}

.ej-trust__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.ej-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 36px;
    text-align: center;
}

.ej-trust__item strong {
    color: var(--ej-white);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--ej-font-body);
}

.ej-trust__item span {
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}

.ej-trust__divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, .12);
    flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────────
   AREAS GRID
──────────────────────────────────────────────────────────────── */
.ej-areas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ej-area-card {
    background: var(--ej-white);
    border: 1px solid var(--ej-border);
    border-radius: var(--ej-radius-lg);
    padding: 32px;
    position: relative;
    transition:
        transform var(--ej-transition),
        box-shadow var(--ej-transition),
        border-color var(--ej-transition);
}

.ej-area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ej-shadow-lg);
    border-color: rgba(214, 0, 0, .25);
}

.ej-area-card__num {
    display: block;
    font-family: var(--ej-font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--ej-red);
    letter-spacing: .08em;
    margin-bottom: 18px;
}

.ej-area-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.ej-area-card p {
    color: var(--ej-muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ────────────────────────────────────────────────────────────────
   SPLIT LAYOUT
──────────────────────────────────────────────────────────────── */
.ej-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: center;
}

.ej-split--reverse {
    grid-template-columns: 380px minmax(0, 1fr);
}

.ej-split--reverse .ej-split__content {
    order: 2;
}

.ej-split--reverse .ej-split__aside {
    order: 1;
}

.ej-split__content h2 {
    margin-bottom: 20px;
}

.ej-split__content p {
    color: var(--ej-body);
}

.ej-highlight-card,
.ej-cta-card {
    background: var(--ej-white);
    border: 1px solid var(--ej-border);
    border-radius: var(--ej-radius-lg);
    padding: 32px;
    box-shadow: var(--ej-shadow-md);
}

.ej-highlight-card h3 {
    font-size: 18px;
    margin-bottom: 18px;
}

.ej-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ej-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    padding: 10px 0;
    border-bottom: 1px solid var(--ej-border);
    margin: 0;
    color: var(--ej-body);
}

.ej-check-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ej-check-list li:first-child {
    padding-top: 0;
}

.ej-check-list li::before {
    content: '✓';
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ej-red-mid);
    color: var(--ej-red);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    line-height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ej-cta-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
}

.ej-cta-card p {
    color: var(--ej-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.ej-cta-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ej-cta-card__actions .ej-btn {
    justify-content: center;
}

/* ────────────────────────────────────────────────────────────────
   DIVORCE GRID
──────────────────────────────────────────────────────────────── */
.ej-divorce-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.ej-divorce-item {
    background: var(--ej-white);
    border: 1px solid var(--ej-border);
    border-radius: var(--ej-radius-lg);
    padding: 32px 28px;
    text-align: center;
    transition: transform var(--ej-transition), box-shadow var(--ej-transition);
}

.ej-divorce-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--ej-shadow-lg);
}

.ej-divorce-item__icon {
    display: block;
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1;
}

.ej-divorce-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.ej-divorce-item p {
    color: var(--ej-muted);
    font-size: 15px;
    margin: 0;
}

/* ────────────────────────────────────────────────────────────────
   STEPS
──────────────────────────────────────────────────────────────── */
.ej-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: relative;
    gap: 0;
}

.ej-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(10% + 8px);
    right: calc(10% + 8px);
    height: 2px;
    background: linear-gradient(90deg, var(--ej-red) 0%, rgba(214, 0, 0, .2) 100%);
    z-index: 0;
}

.ej-step {
    position: relative;
    padding: 0 12px;
    text-align: center;
    z-index: 1;
}

.ej-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ej-red);
    color: var(--ej-white);
    font-family: var(--ej-font-body);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 16px rgba(214, 0, 0, .30);
}

.ej-step h3 {
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.ej-step p {
    color: var(--ej-muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

/* ────────────────────────────────────────────────────────────────
   ZONAS
──────────────────────────────────────────────────────────────── */
.ej-zonas__desc {
    color: var(--ej-muted);
    font-size: 15px !important;
    max-width: 420px;
}

.ej-zonas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ej-zona {
    background: var(--ej-white);
    border: 1px solid var(--ej-border);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ej-dark);
    cursor: default;
    transition:
        border-color var(--ej-transition),
        background var(--ej-transition),
        color var(--ej-transition);
}

.ej-zona:hover {
    background: var(--ej-red);
    border-color: var(--ej-red);
    color: var(--ej-white);
}

/* ────────────────────────────────────────────────────────────────
   FAQ
──────────────────────────────────────────────────────────────── */
.ej-faq-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.ej-faq-layout__header {
    position: sticky;
    top: 40px;
}

.ej-faq-layout__header h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin-bottom: 16px;
}

.ej-faq-layout__header p {
    color: var(--ej-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.ej-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ej-faq__item {
    background: var(--ej-white);
    border: 1px solid var(--ej-border);
    border-radius: var(--ej-radius-md);
    overflow: hidden;
    transition: border-color var(--ej-transition), box-shadow var(--ej-transition);
}

.ej-faq__item[open] {
    border-color: rgba(214, 0, 0, .25);
    box-shadow: 0 4px 20px rgba(214, 0, 0, .08);
}

.ej-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--ej-heading);
    line-height: 1.4;
    margin: 0;
    transition: color var(--ej-transition);
}

.ej-faq__q::-webkit-details-marker {
    display: none;
}

.ej-faq__item[open] .ej-faq__q {
    color: var(--ej-red);
}

.ej-faq__icon {
    flex-shrink: 0;
    transition: transform var(--ej-transition);
    color: var(--ej-muted);
}

.ej-faq__item[open] .ej-faq__icon {
    transform: rotate(180deg);
    color: var(--ej-red);
}

.ej-faq__a {
    padding: 0 24px 20px;
    border-top: 1px solid var(--ej-border);
}

.ej-faq__a p {
    padding-top: 16px;
    color: var(--ej-muted);
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}

/* ────────────────────────────────────────────────────────────────
   CTA FINAL
──────────────────────────────────────────────────────────────── */
.ej-cta-final {
    padding: clamp(64px, 8vw, 100px) 0;
    background:
        radial-gradient(circle at 0% 50%, rgba(214, 0, 0, .3), transparent 40%),
        linear-gradient(135deg, #0d1b2a 0%, #1a2d42 100%);
}

.ej-cta-final__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
}

.ej-cta-final h2,
.ej-cta-final p {
    color: var(--ej-white);
}

.ej-cta-final h2 {
    font-size: clamp(26px, 3.5vw, 42px);
    margin-bottom: 14px;
}

.ej-cta-final p {
    color: rgba(255, 255, 255, .72);
    font-size: 17px;
    margin: 0;
    max-width: 560px;
}

.ej-cta-final .ej-eyebrow {
    color: rgba(255, 170, 170, .9);
}

.ej-cta-final .ej-eyebrow::before {
    background: rgba(255, 170, 170, .9);
}

.ej-cta-final__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────────
   DISCLAIMER
──────────────────────────────────────────────────────────────── */
.ej-disclaimer {
    background: var(--ej-tint);
    border-top: 1px solid var(--ej-border);
    padding: 24px 0 40px;
}

.ej-disclaimer p {
    font-size: 13px !important;
    color: var(--ej-muted);
    max-width: 800px;
    line-height: 1.7;
    margin: 0;
}

.ej-disclaimer a {
    color: var(--ej-red);
    text-decoration: none;
}

.ej-disclaimer a:hover {
    text-decoration: underline;
}

/* ── Page content desde editor WP, si algún día se usa ─────────── */
.ej-page-content {
    padding: 48px 0;
}

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE — 1024px
──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ej-hero__inner {
        grid-template-columns: 1fr;
    }

    .ej-hero__card {
        position: static;
    }

    .ej-split,
    .ej-split--reverse {
        grid-template-columns: 1fr;
    }

    .ej-split--reverse .ej-split__content,
    .ej-split--reverse .ej-split__aside {
        order: unset;
    }

    .ej-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .ej-steps::before {
        display: none;
    }

    .ej-divorce-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ej-faq-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ej-faq-layout__header {
        position: static;
    }

    .ej-cta-final__inner {
        grid-template-columns: 1fr;
    }

    .ej-section__header--inline {
        grid-template-columns: 1fr;
    }
}

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE — 768px
──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ej-areas {
        grid-template-columns: 1fr;
    }

    .ej-steps {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .ej-divorce-grid {
        grid-template-columns: 1fr;
    }

    .ej-trust__inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ej-trust__inner::-webkit-scrollbar {
        display: none;
    }

    .ej-trust__item {
        flex-shrink: 0;
        padding: 10px 20px;
    }

    .ej-hero__actions {
        flex-direction: column;
    }

    .ej-hero__actions .ej-btn {
        width: 100%;
        justify-content: center;
    }

    .ej-cta-final__actions {
        width: 100%;
    }

    .ej-cta-final__actions .ej-btn {
        text-align: center;
        justify-content: center;
    }
}

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE — 520px
──────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .ej-page h1 {
        font-size: clamp(34px, 11vw, 44px);
    }

    .ej-steps {
        grid-template-columns: 1fr;
    }

    .ej-step {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 16px;
    }

    .ej-step__num {
        flex-shrink: 0;
        margin-bottom: 0;
        width: 40px;
        height: 40px;
    }

    .ej-breadcrumb {
        display: none;
    }
}

/* ────────────────────────────────────────────────────────────────
   PRINT
──────────────────────────────────────────────────────────────── */
@media print {

    .ej-hero,
    .ej-cta-final,
    .ej-trust {
        background: #fff !important;
        color: #000 !important;
    }

    .ej-btn,
    .ej-hero__actions {
        display: none;
    }
}

/* Corrección específica: evita el padding global de páginas aplicado por style.css */
body.dt-estudio-juridico-page.page .site-content {
    padding-top: 10px !important;
    margin-top: 10px !important;
}

body.dt-estudio-juridico-page.page #content.site-content {
    padding-top: 10px !important;
    margin-top: 10px !important;
}

body.dt-estudio-juridico-page.page .site-content>.ast-container {
    padding-top: 10px !important;
    margin-top: 10px !important;
}

/* Imagen lateral en sección de casos frecuentes */
.ej-section-intro {
    margin-bottom: 44px;
}

.ej-section-intro--with-image {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.ej-section-intro--with-image .ej-section__header {
    margin-bottom: 0;
}

.ej-section-image-card {
    margin: 0;
    border-radius: var(--ej-radius-xl);
    overflow: hidden;
    background: var(--ej-white);
    border: 1px solid var(--ej-border);
    box-shadow: var(--ej-shadow-lg);
}

.ej-section-image-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

@media (max-width: 921px) {
    .ej-section-intro--with-image {
        grid-template-columns: 1fr;
    }

    .ej-section-image-card {
        max-width: 520px;
    }
}

/* Ajuste: acercar sección de casos frecuentes a la franja azul */
#servicios.ej-section {
    padding-top: 32px;
}