/* ==========================================================================
   Speakers Archive Banner and Layout
   ========================================================================== */

.page-hero-banner {
    padding: 64px 0;
    background: #16201f;
    color: #fff;
    margin-bottom: 48px;
}

.page-hero-banner__subtitle {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary, #008a9c);
}

.page-hero-banner__title {
    margin: 10px 0 0;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 40px;
    color: #ffffff;
    line-height: 1.2;
}

.page-hero-banner__text {
    margin: 10px 0 0;
    max-width: 620px;
    font-size: 16px;
    color: #c6cdcb;
    line-height: 1.6;
}

/* --- Buscador --- */
.biblioteca-search-bar {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    max-width: 680px;
}

.biblioteca-search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 0 16px;
    border: 1px solid #e6e9e9;
}

.biblioteca-search-icon {
    color: #707b7b;
    font-size: 18px;
}

.biblioteca-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 15px 0 !important;
    font-family: inherit;
    font-size: 15px;
    color: #1b1c19;
    background: transparent;
    box-shadow: none !important;
    height: auto !important;
}

.biblioteca-search-btn {
    padding: 15px 30px;
    background: var(--color-primary, #008a9c);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.biblioteca-search-btn:hover {
    opacity: 0.85;
}

/* --- Grid and Cards --- */
.ponentes-archive-wrapper {
    padding-bottom: 64px;
    font-family: var(--font-body, 'Lato', sans-serif);
    color: var(--color-ink, #1b1c19);
}

.ponentes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ponente-card {
    border: 1px solid #e6e9e9;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ponente-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary, #008a9c);
}

.ponente-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.ponente-card__img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: #e8ecec;
    position: relative;
    overflow: hidden;
}

.ponente-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ponente-card__img-head {
    position: absolute;
    left: 50%;
    top: 18%;
    transform: translateX(-50%);
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: #b7c1c0;
}

.ponente-card__img-body {
    position: absolute;
    left: 50%;
    bottom: -9%;
    transform: translateX(-50%);
    width: 58%;
    height: 48%;
    border-radius: 50% 50% 0 0;
    background: #b7c1c0;
}

.ponente-card__name {
    margin: 0 0 6px 0;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-ink, #1b1c19);
}

.ponente-card__role {
    font-size: 14px;
    color: var(--color-muted, #707b7b);
    line-height: 1.4;
}

.ponentes-pagination {
    margin-top: 56px;
    display: flex;
    justify-content: center;
}

.ponentes-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ponentes-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6e9e9;
    border-radius: 8px;
    color: var(--color-ink, #1b1c19);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.ponentes-pagination .page-numbers:hover:not(.current):not(.dots) {
    background: #f0f3f3;
    border-color: #d0d7d7;
    color: var(--color-primary, #008a9c);
}

.ponentes-pagination .page-numbers.current {
    background: var(--color-primary, #008a9c);
    color: #ffffff;
    font-weight: 900;
    border-color: var(--color-primary, #008a9c);
}

.ponentes-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--color-muted, #707b7b);
    padding: 0 4px;
    min-width: auto;
}

.ponentes-pagination .page-numbers.prev,
.ponentes-pagination .page-numbers.next {
    font-size: 18px;
    line-height: 1;
}

.ponentes-empty {
    padding: 64px;
    text-align: center;
    border: 2px dashed #e6e9e9;
    border-radius: 12px;
    color: var(--color-muted, #707b7b);
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .ponentes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ponentes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .page-hero-banner {
        padding: 40px 0;
    }
    .page-hero-banner__title {
        font-size: 32px;
    }
    .biblioteca-search-bar {
        flex-direction: column;
    }
    .biblioteca-search-input-wrapper input {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .ponentes-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Loader de búsqueda --- */
.ponente-search-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ponente-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 138, 156, 0.15);
    border-top: 4px solid var(--color-primary, #008a9c);
    border-radius: 50%;
    animation: ponente-spin 1s linear infinite;
}

@keyframes ponente-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
