/* --- Contenedor Principal --- */
.dm-container {
    max-width: 1200px;
    margin: 2rem auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- Paginador / Filtro Alfabético Compacto --- */
.dm-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    justify-content: center !important;
    margin-bottom: 30px !important;
    background: #ffffff !important;
    padding: 10px 15px !important;
    border-radius: 8px !important; /* Estilo de caja moderna en lugar de píldora */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e2e8f0 !important;
}

.dm-btn-letra {
    background: #f8fafc !important;
    border: 1px solid #cbd5e0 !important;
    color: #4a5568 !important;
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important; /* Cuadrados con bordes suaves */
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important; /* Fuente más pequeña y sutil */
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.dm-btn-letra[data-filter="all"] {
    padding: 0 12px !important;
}

.dm-btn-letra:hover {
    background: #ebf8ff !important;
    color: #3182ce !important;
    border-color: #3182ce !important;
}

.dm-btn-letra.active {
    background: #3182ce !important;
    color: #ffffff !important;
    border-color: #3182ce !important;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2) !important;
}

/* --- Grid y Tarjetas --- */
.dm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.dm-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dm-card-header {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.dm-campo-badge {
    background: #ebf4ff;
    color: #3182ce;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.dm-termino {
    font-size: 1.4rem;
    color: #2d3748;
    margin: 0;
}

.dm-card-body {
    padding: 20px;
    flex-grow: 1;
}

.dm-seccion h4 {
    font-size: 0.9rem;
    color: #718096;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

.dm-seccion p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.dm-ejemplos ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

.dm-metadatos {
    background: #f7fafc;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #718096;
}

.dm-metadatos p {
    margin: 4px 0;
}

.dm-metadatos a {
    color: #3182ce;
    text-decoration: none;
}

.dm-prompt-container {
    padding: 20px;
    border-top: 1px dashed #cbd5e0;
    background: #fff;
}

.dm-prompt-container h4 {
    font-size: 0.9rem;
    color: #2b6cb0;
    margin: 0 0 10px 0;
}

.dm-prompt-box {
    background: #ebf8ff;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #2c5282;
    margin-bottom: 15px;
    border-left: 3px solid #3182ce;
}

.dm-copy-action {
    width: 100%;
    background: #3182ce;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.dm-copy-action:hover {
    background: #2b6cb0;
}