.ponente_more {
    position: absolute;
    z-index: 3;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 48px;
    max-width: calc(100% - 40px);
    padding: 10px 24px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #fff;
    color: #0056a5;
    box-shadow: 0 6px 24px #002e6350;
    font: 600 20px/1.2 "mr-eaves-sans", sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.ponente_more:hover {
    background: #e6f6df;
    color: #143c17;
}

.ponente_more:focus-visible,
.speaker_dialog_close:focus-visible {
    outline: 3px solid #ffda65;
    outline-offset: 4px;
}

.speaker_dialog {
    width: min(1080px, calc(100% - 48px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: auto;
    overscroll-behavior: contain;
    font-family: "mr-eaves-sans", sans-serif;
}

.speaker_dialog::backdrop {
    background: rgb(15 20 25 / 85%);
    backdrop-filter: blur(5px);
}

.speaker_dialog_layout {
    display: grid;
    grid-template-columns: 36% 64%;
    align-items: center;
}

.speaker_dialog_photo {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    min-height: 560px;
    background: #5aba2d;
    border-radius: 180px 0 0 0;
    overflow: hidden;
}

.speaker_dialog_photo img {
    display: block;
    width: 100%;
    max-height: 660px;
    object-fit: contain;
    object-position: center bottom;
}

#speaker-jesus .speaker_dialog_photo {
    justify-content: center;
}

#speaker-jesus .speaker_dialog_photo img {
    width: 80%;
    height: auto;
}

.speaker_dialog_content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 52px 0;
    padding: 44px 38px;
    background: #0759d5;
}

.speaker_dialog_content h2 {
    margin: 0 0 6px;
    font-family: "Coconpro", sans-serif;
    font-size: 28px;
    line-height: 1.15;
}

.speaker_dialog_content p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.4;
}

.speaker_dialog_content p:last-child {
    margin-bottom: 0;
}

.speaker_dialog_content header {
    margin-bottom: 30px;
    padding-right: 30px;
}

.speaker_dialog_content .speaker_dialog_role {
    font-size: 22px;
}

.speaker_dialog_close {
    position: absolute;
    /* 52px del margen superior del panel azul + 12px de separación. */
    top: 64px;
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    margin: 0;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    background: #fff;
    color: #0056a5;
    font: 32px/1 sans-serif;
    cursor: pointer;
}

@media (max-width: 768px) {
    .ponente_more {
        /* Controles: 24px desde abajo + 60px de alto + 30px de padding + 2px de borde. */
        bottom: calc(24px + 60px + 30px + 2px + 20px);
    }

    .speaker_dialog {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
    }

    .speaker_dialog_layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .speaker_dialog_close {
        top: 12px;
    }

    .speaker_dialog_photo {
        min-height: 0;
        height: 270px;
        justify-content: center;
        border-radius: 100px 0 0 0;
    }

    .speaker_dialog_photo img {
        height: 100%;
        width: auto;
        max-width: 100%;
    }

    #speaker-jesus .speaker_dialog_photo img {
        width: auto;
        height: 85%;
        max-width: 80%;
    }

    .speaker_dialog_content {
        justify-content: flex-start;
        margin: 0;
        padding: 28px 24px;
    }

    .speaker_dialog_content h2 {
        font-size: 25px;
    }

    .speaker_dialog_content p,
    .speaker_dialog_content .speaker_dialog_role {
        font-size: 20px;
    }

    .speaker_dialog_content header {
        margin-bottom: 24px;
        padding-right: 0;
    }

    .ponente_card--1 .ponente_image,
    .ponente_card--4 .ponente_image {
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }
}
