.glosario-section {
    padding: 60px 0 80px;
    background: var(--brand-surface-muted);
}

.glosario-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.glosario-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    background: var(--brand-surface);
    border-radius: 28px;
    border: 1px solid var(--brand-border-soft);
    box-shadow: var(--brand-shadow-lg);
    overflow: hidden;
}

.glosario-hero__media {
    background: var(--brand-surface-soft);
}

.glosario-hero__media picture,
.glosario-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: initial;
}

.glosario-hero__content {
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--brand-muted);
    line-height: 1.8;
}

.glosario-card {
    background: var(--brand-surface);
    border-radius: 28px;
    border: 1px solid var(--brand-border-soft);
    box-shadow: var(--brand-shadow-lg);
    padding: clamp(24px, 4vw, 40px);
}

.glosario-card__head h2 {
    margin: 0 0 16px;
    font-weight: 700;
}

.glosario-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 24px;
}

.glosario-index__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.glosario-index__list a {
    color: var(--brand-secondary);
    font-weight: 600;
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--brand-border-soft);
    transition: color 0.2s ease;
}

.glosario-index__list a:hover {
    color: var(--brand-primary);
}

.glosario-terms {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.palabra-section {
    scroll-margin-top: 140px;
    padding: 16px 0;
    border-bottom: 1px solid var(--brand-border-soft);
}

.palabra-section h3 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2.6vw, 1.2rem);
    color: var(--brand-secondary);
}

.palabra-section p {
    margin: 0;
    color: var(--brand-muted);
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .glosario-hero {
        grid-template-columns: 1fr;
    }

    .glosario-index {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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