/**
 * Glosario — índice de términos (/glosario)
 * Diseño limpio, sin degradados.
 */

.gl-page {
    padding-bottom: 3rem;
}

.public-page-hero .gl-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.25rem;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
}

.public-page-hero .gl-hero-count strong {
    color: #fff;
    font-weight: 800;
}

.gl-inner {
    position: relative;
}

.gl-toolbar {
    margin: -1.75rem 0 0;
    position: relative;
    z-index: 2;
}

.gl-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 4px 4px 4px 16px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.gl-search i {
    color: #94a3b8;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.gl-search input {
    flex: 1;
    border: none;
    padding: 12px 8px 12px 0;
    font-size: 0.95rem;
    color: #0f172a;
    background: transparent;
    outline: none;
    font-family: var(--font-family);
    min-width: 0;
}

.gl-search input::placeholder {
    color: #94a3b8;
}

.gl-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
}

.gl-search-clear.is-visible {
    display: flex;
}

.gl-search-clear:hover {
    background: #e2e8f0;
    color: #334155;
}

.gl-body {
    padding: 2.5rem 0 1rem;
    background: #f8fafc;
}

.gl-alpha-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.gl-alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.gl-alpha-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    color: #475569;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gl-alpha-btn:hover {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.gl-alpha-btn.disabled {
    background: transparent;
    color: #cbd5e1;
    cursor: default;
    pointer-events: none;
}

.gl-list {
    width: 100%;
}

.gl-letter-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    scroll-margin-top: 7rem;
}

.gl-letter-head:first-child {
    margin-top: 0;
}

.gl-letter-char {
    font-size: 1.35rem;
    font-weight: 900;
    color: #4f46e5;
    line-height: 1;
    min-width: 1.25rem;
}

.gl-letter-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-left: auto;
}

.gl-term {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gl-term:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
}

.gl-term-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.35rem;
}

.gl-term-title h2 {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.gl-term-arrow {
    font-size: 0.75rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.gl-term:hover .gl-term-arrow {
    color: #4f46e5;
    transform: translateX(2px);
}

.gl-term-excerpt {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.gl-term-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4f46e5;
}

.gl-no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #64748b;
    display: none;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 14px;
}

.gl-no-results.is-visible {
    display: block;
}

.gl-no-results i {
    font-size: 2rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.75rem;
}

.gl-cta {
    width: 100%;
    margin: 2.5rem 0 0;
    padding: 1.5rem 1.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #4f46e5;
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.gl-cta-text h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.gl-cta-text p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.gl-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.gl-cta-btn:hover {
    background: #4338ca;
    color: #fff;
}

@media (max-width: 767px) {
    .gl-toolbar {
        margin-top: -1.25rem;
    }

    .gl-alpha-btn {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }

    .gl-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .gl-cta-btn {
        justify-content: center;
    }
}
