/* =========================================================
 * TIPOGRAFÍA CORPORATIVA SEGÚN MANUAL DE MARCA
 * ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;0,900;1,400&display=swap");

.dmb-wrapper, 
.dmb-wrapper *, 
.dmb-modal, 
.dmb-modal * {
    font-family: "Poppins", sans-serif;
}

/* Base Contenedor */
.dmb-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
    box-sizing: border-box;
}

/* Buscador (Poppins Regular 400) */
.dmb-search-box {
    margin-bottom: 20px;
}

.dmb-search-box input {
    width: 100%;
    padding: 14px 20px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.dmb-search-box input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.dmb-search-box input:focus {
    border-color: #d9232e;
    box-shadow: 0 0 0 3px rgba(217, 35, 46, 0.12);
}

/* Botones de Categoría (Poppins Bold 700) */
.dmb-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.dmb-cat-btn {
    background: #f1f5f9;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    color: #475569;
}

.dmb-cat-btn:hover, 
.dmb-cat-btn.active {
    background: #d9232e;
    color: #ffffff;
}

/* Grid de Tarjetas */
.dmb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.dmb-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 12px;
}

.dmb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
}

/* Logo Box */
.dmb-logo-box {
    position: relative;
    height: 180px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dmb-logo-bg, #f8fafc);
    padding: 14px;
    box-sizing: border-box;
}

.dmb-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Badge Categoría (Poppins Bold 700) */
.dmb-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fef3c7;
    color: #1e293b;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 2;
    text-transform: uppercase;
}

.dmb-info {
    padding: 16px 6px 4px 6px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Título de Marca (Poppins Black 900) */
.dmb-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.2;
}

/* Local / Ubicación (Poppins Regular 400) */
.dmb-location {
    font-size: 13px;
    color: #6366f1;
    font-weight: 400;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Descripción (Poppins Regular 400) */
.dmb-description {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Acciones y Botones (Poppins Bold 700) */
.dmb-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    align-items: center;
}

.dmb-btn-details {
    flex-grow: 1;
    padding: 10px 16px;
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.dmb-btn-details:hover {
    background: #f1f5f9;
}

.dmb-btn-whatsapp-icon {
    background: #ecfdf5;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

.dmb-btn-whatsapp-icon:hover {
    background: #d1fae5;
}

/* BOTÓN CARGAR MÁS */
.dmb-load-more-wrapper {
    text-align: center;
    margin-top: 35px;
}

.dmb-btn-load-more {
    background: #d9232e;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.dmb-btn-load-more:hover {
    background: #b51a24;
    transform: translateY(-2px);
}

.dmb-btn-load-more:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* MODAL */
.dmb-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.dmb-modal-content {
    background-color: #ffffff;
    padding: 28px;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.dmb-close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.dmb-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.dmb-no-results {
    width: 100%;
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .dmb-wrapper { padding: 15px 8px; }
    .dmb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .dmb-card { border-radius: 16px; padding: 8px; }
    .dmb-logo-box { height: 145px; border-radius: 12px; }
    .dmb-title { font-size: 16px; }
    .dmb-btn-details { padding: 9px 8px; font-size: 11px; }
    .dmb-btn-whatsapp-icon { width: 38px; height: 38px; }
}

@media (max-width: 480px) {
    .dmb-grid { grid-template-columns: 1fr; }
    .dmb-logo-box { height: 180px; }
}