/*
 * Áreas de Práctica / Defensa Penal Estratégica
 * Diseño base calibrado sobre la referencia 1528×1029 suministrada por el usuario.
 */
.elementor-widget-adpe_defensa_penal,
.elementor-widget-adpe_defensa_penal .elementor-widget-container {
    width: 100%;
}

.adpe-section,
.adpe-section * {
    box-sizing: border-box;
}

.adpe-section {
    --adpe-navy: #1e2d3e;
    --adpe-navy-cta: #20303f;
    --adpe-ink: #142536;
    --adpe-gold: #c9a15d;
    --adpe-gold-light: #d5a95e;
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    background-color: #f8f7f4;
    font-family: "Montserrat", Arial, sans-serif;
}

.adpe-custom-bg,
.adpe-bg-left,
.adpe-bg-right,
.adpe-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.adpe-custom-bg {
    z-index: -4;
    background-image: var(--adpe-desktop-bg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.adpe-bg-left,
.adpe-bg-right {
    z-index: -3;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
}

.adpe-bg-left {
    inset: 0 auto 0 0;
    width: min(330px, 27vw);
    background-image: var(--adpe-left-bg);
}

.adpe-bg-right {
    inset: 0 0 0 auto;
    width: min(340px, 28vw);
    background-image: var(--adpe-right-bg);
}

.adpe-has-custom-bg .adpe-bg-left,
.adpe-has-custom-bg .adpe-bg-right {
    display: none;
}

.adpe-overlay {
    z-index: -2;
    background: #fff;
    opacity: .18;
}

.adpe-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1216px;
    margin: 0 auto;
}

/* Encabezado */
.adpe-header {
    width: 100%;
    text-align: center;
}

.adpe-eyebrow {
    margin: 0 0 7px;
    color: #c9a15d;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 4.5px;
    text-transform: uppercase;
}

.adpe-title {
    margin: 0 0 12px;
    padding: 0;
    color: #142536;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.adpe-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 31px;
}

.adpe-divider-line {
    display: block;
    width: 185px;
    height: 1px;
    background: #d2ab62;
}

.adpe-divider-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d2ab62;
    font-size: 30px;
    line-height: 1;
}

.adpe-divider-icon i,
.adpe-divider-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Grid */
.adpe-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 23px;
    width: 100%;
    margin-top: 15px;
}

.adpe-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 17px 30px 18px;
    border: 0;
    border-radius: 6px;
    background: #1e2d3e;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .22);
    color: #fff;
    text-align: center;
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.adpe-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    border-radius: 6px 0 0 6px;
    background: #c9a15d;
    content: "";
}

.adpe-hover-motion .adpe-card:hover {
    transform: translateY(-3px);
}

.adpe-icon-circle {
    display: inline-flex;
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px;
    border: 1.5px solid #d5a95e;
    border-radius: 50%;
    color: #d5a95e;
    font-size: 42px;
    line-height: 1;
}

.adpe-icon-circle i,
.adpe-icon-circle svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.adpe-card-title {
    margin: 0 0 4px;
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.adpe-card-description {
    max-width: 315px;
    margin: 0;
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
}

.adpe-card-line {
    display: block;
    width: 54px;
    height: 2px;
    flex: 0 0 auto;
    margin-top: 15px;
    background: #d5a95e;
}

/* CTA */
.adpe-cta {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 92px;
    margin-top: 27px;
    padding: 13px 28px;
    overflow: hidden;
    border: 1px solid #c8a15d;
    border-radius: 8px;
    background: #20303f;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .20);
}

.adpe-cta-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 17px;
    padding-right: 26px;
    border-right: 1px solid rgba(201, 161, 93, .65);
}

.adpe-cta-logo,
.adpe-cta-emblem {
    display: block;
    width: 76px;
    min-width: 76px;
    height: auto;
    object-fit: contain;
}

.adpe-cta-emblem {
    color: #d1a65d;
    line-height: 0;
}

.adpe-cta-emblem svg {
    display: block;
    width: 100%;
    height: auto;
}

.adpe-cta-brand-copy {
    min-width: 0;
}

.adpe-cta-title {
    margin: 0 0 3px;
    color: #d1a65d;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.adpe-cta-subtitle {
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
}

.adpe-cta-description {
    max-width: 505px;
    padding: 0 28px;
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
}

.adpe-cta-action {
    display: flex;
    justify-content: flex-end;
}

.adpe-button {
    display: inline-flex;
    width: 215px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 24px;
    border: 0;
    border-radius: 6px;
    background: #d4ae65;
    color: #132536;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.adpe-button:hover,
.adpe-button:focus {
    background: #e3be77;
    color: #132536;
    text-decoration: none;
}

.adpe-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.adpe-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
}

.adpe-button-icon i,
.adpe-button-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Tablet */
@media (max-width: 1024px) {
    .adpe-custom-bg {
        background-image: var(--adpe-tablet-bg, var(--adpe-desktop-bg));
    }

    .adpe-section {
        padding: 34px 24px;
    }

    .adpe-bg-left,
    .adpe-bg-right {
        width: 230px;
    }

    .adpe-eyebrow {
        font-size: 20px;
        letter-spacing: 3.5px;
    }

    .adpe-title {
        font-size: 39px;
    }

    .adpe-divider-line {
        width: 130px;
    }

    .adpe-divider-icon {
        font-size: 27px;
    }

    .adpe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 22px;
    }

    .adpe-card {
        min-height: 215px;
    }

    .adpe-icon-circle {
        width: 78px;
        height: 78px;
        font-size: 40px;
    }

    .adpe-cta {
        grid-template-columns: minmax(275px, 1fr) minmax(0, 1.3fr);
        gap: 18px 0;
    }

    .adpe-cta-brand {
        padding-right: 20px;
    }

    .adpe-cta-description {
        padding: 0 0 0 24px;
    }

    .adpe-cta-action {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .adpe-custom-bg {
        background-image: var(--adpe-mobile-bg, var(--adpe-tablet-bg, var(--adpe-desktop-bg)));
    }

    .adpe-section {
        padding: 34px 16px 28px;
    }

    .adpe-bg-left,
    .adpe-bg-right {
        width: 145px;
    }

    .adpe-bg-left {
        background-position: top left;
    }

    .adpe-bg-right {
        background-position: top right;
    }

    .adpe-eyebrow {
        margin-bottom: 8px;
        font-size: 16px;
        line-height: 1.25;
        letter-spacing: 2.7px;
    }

    .adpe-title {
        max-width: 360px;
        margin-right: auto;
        margin-bottom: 12px;
        margin-left: auto;
        font-size: 31px;
        line-height: 1.02;
    }

    .adpe-divider {
        gap: 10px;
    }

    .adpe-divider-line {
        width: 78px;
    }

    .adpe-divider-icon {
        font-size: 23px;
    }

    .adpe-grid {
        grid-template-columns: 1fr;
        column-gap: 18px;
        row-gap: 18px;
        margin-top: 18px;
    }

    .adpe-card {
        min-height: 205px;
        padding: 22px 18px 21px;
    }

    .adpe-icon-circle {
        width: 72px;
        height: 72px;
        margin-bottom: 10px;
        font-size: 36px;
    }

    .adpe-card-title {
        font-size: 17px;
    }

    .adpe-card-description {
        max-width: 330px;
        font-size: 14px;
        line-height: 1.4;
    }

    .adpe-card-line {
        margin-top: 13px;
    }

    .adpe-hide-mobile {
        display: none !important;
    }

    .adpe-cta {
        display: flex;
        min-height: 0;
        flex-direction: column;
        align-items: center;
        gap: 19px;
        margin-top: 22px;
        padding: 25px 20px;
        text-align: center;
    }

    .adpe-cta-brand {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 0 0 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(201, 161, 93, .65);
    }

    .adpe-cta-logo,
    .adpe-cta-emblem {
        width: 74px;
        min-width: 74px;
    }

    .adpe-cta-title {
        font-size: 23px;
        white-space: normal;
    }

    .adpe-cta-subtitle {
        font-size: 12px;
        white-space: normal;
    }

    .adpe-cta-description {
        max-width: 420px;
        padding: 0;
        font-size: 14px;
    }

    .adpe-cta-action {
        width: 100%;
        justify-content: center;
    }

    .adpe-button {
        width: 100%;
        max-width: 320px;
        min-height: 48px;
    }
}

@media (max-width: 380px) {
    .adpe-title {
        font-size: 28px;
    }

    .adpe-divider-line {
        width: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adpe-card,
    .adpe-button {
        transition: none;
    }

    .adpe-hover-motion .adpe-card:hover {
        transform: none;
    }
}
