/* ── DNK Directorio – Frontend CSS ──────────────────────────────────────────── */

/* ── CSS variables (overridden from admin settings) ──────────────────────── */
:root {
    --dnk-primary:      #0073e6;
    --dnk-primary-dark: #005bb5;
    --dnk-wp:           #25d366;
    --dnk-wp-dark:      #1da851;
    --dnk-acento:       #6366f1;
    --dnk-acento-dark:  #4f46e5;
}

/* Reset base */
.dnk-directorio-root *,
.dnk-directorio-root *::before,
.dnk-directorio-root *::after {
    box-sizing: border-box;
}
.dnk-directorio-root {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    position: relative;
}

/* ── Layout principal ─────────────────────────────────────────────────────── */
.dnk-layout-split {
    display: flex;
    gap: 0;
    height: 100%;
}
.dnk-layout-split .dnk-lista-panel {
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.dnk-layout-split .dnk-mapa-panel {
    flex: 1;
    min-width: 0;
}
.dnk-layout-lista .dnk-lista-panel {
    width: 100%;
}
.dnk-layout-mapa .dnk-mapa-panel {
    width: 100%;
}
.dnk-main-content {
    display: flex;
    position: relative;
}

/* ── Mapa ─────────────────────────────────────────────────────────────────── */
.dnk-mapa {
    width: 100%;
    z-index: 0;
}

/* Marcadores personalizados */
.dnk-leaflet-icon {
    background: transparent !important;
    border: none !important;
}
.dnk-marker-wrap {
    cursor: pointer;
    transition: transform 0.15s ease;
}
.dnk-marker-active .dnk-marker-wrap {
    transform: scale(1.2);
}

/* Popup */
.dnk-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    padding: 0;
    overflow: hidden;
}
.dnk-leaflet-popup .leaflet-popup-content {
    margin: 0;
    width: 260px !important;
}
.dnk-popup {
    display: flex;
    gap: 10px;
    padding: 12px;
    align-items: flex-start;
}
.dnk-popup-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.dnk-popup-body { flex: 1; }
.dnk-popup-nombre {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 2px;
}
.dnk-popup-cat {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}
.dnk-popup-loc {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px;
}
.dnk-popup-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.dnk-popup-detalle {
    background: #0073e6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}
.dnk-popup-detalle:hover { background: #005bb5; }
.dnk-popup-wp {
    background: #25d366;
    color: #fff;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}

/* ── Filtros ──────────────────────────────────────────────────────────────── */
.dnk-filtros {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
}
.dnk-filtros-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.dnk-filtro-grupo { flex-shrink: 0; }
.dnk-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.dnk-search-icon {
    position: absolute;
    left: 10px;
    color: #999;
    font-size: 16px;
}
.dnk-search-input {
    padding-left: 34px !important;
    min-width: 220px;
}
.dnk-input,
.dnk-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    background: #fff;
    outline: none;
    width: 100%;
    transition: border-color 0.15s;
}
.dnk-input:focus,
.dnk-select:focus {
    border-color: #0073e6;
    box-shadow: 0 0 0 3px rgba(0,115,230,.12);
}

/* ── Lista / Cards ────────────────────────────────────────────────────────── */
.dnk-lista { padding: 12px; }
.dnk-lista-scroll { height: 100%; overflow-y: auto; }
.dnk-lista-header {
    padding: 6px 0 10px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}
.dnk-lista-count strong { color: #111; }

.dnk-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}
.dnk-empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}
.dnk-empty p { font-size: 14px; }

/* ── Card horizontal (2 columnas: logo | info) ───────────────────────────── */
.dir-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
    margin-bottom: 10px;
    min-height: 0;
}
.dir-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
    transform: translateY(-2px);
    border-color: #0073e6;
}
.dir-card-activa {
    border-color: #0073e6 !important;
    box-shadow: 0 0 0 3px rgba(0,115,230,.18) !important;
}

/* Columna 1: Logo */
.dir-card-logo-col {
    width: 88px;
    min-width: 88px;
    background: linear-gradient(145deg, #f8faff 0%, #eef2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-right: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.dir-card-logo-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.1));
}
.dir-card-logo-inicial {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    color: #2563eb;
}

/* Columna 2: Info */
.dir-card-info {
    flex: 1;
    min-width: 0;
    padding: 11px 13px 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dir-card-top { min-height: 18px; }

/* Badge categoría */
.dir-card-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.dir-card-nombre {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dir-card-ubicacion {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dir-card-ubicacion svg { flex-shrink: 0; fill: #9ca3af; }

/* Footer: botón + iconos */
.dir-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.dir-btn-detalle {
    flex: 1;
    background: var(--dnk-primary, #0073e6);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-align: center;
    white-space: nowrap;
}
.dir-btn-detalle:hover { background: var(--dnk-primary-dark, #005bb5); }
.dir-btn-detalle:active { transform: scale(0.97); }

.dir-card-icons { display: flex; gap: 5px; align-items: center; }

/* Botones icono (WhatsApp y Web) */
.dir-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
}
.dir-icon-btn:active { transform: scale(0.95); }
.dir-icon-btn svg { display: block; }
.dir-icon-btn--wp  { background: var(--dnk-wp, #25d366); color: #fff; }
.dir-icon-btn--wp:hover  { background: var(--dnk-wp-dark, #1da851); color: #fff; }
.dir-icon-btn--web { background: var(--dnk-acento, #6366f1); color: #fff; }
.dir-icon-btn--web:hover { background: var(--dnk-acento-dark, #4f46e5); color: #fff; }

/* ── Botones genéricos (usados en otras partes) ────────────────────────────── */
.dnk-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}
.dnk-btn:active { transform: scale(0.97); }
.dir-btn-primary  { background: #0073e6; color: #fff; }
.dir-btn-primary:hover  { background: #005bb5; color: #fff; }
.dir-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}
.dir-btn-secondary:hover { background: #e5e7eb; }
.dir-btn-link {
    background: transparent;
    color: #ef4444;
    padding: 4px 8px;
    border: none;
    font-size: 12px;
}
.dir-btn-link:hover { color: #b91c1c; }

/* ── Paginación ───────────────────────────────────────────────────────────── */
.dnk-paginacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0 8px;
    font-size: 13px;
    color: #555;
}
.dnk-pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.15s, border-color 0.15s;
    color: #374151;
}
.dnk-pag-btn:hover:not(:disabled) { background: #0073e6; border-color: #0073e6; color: #fff; }
.dnk-pag-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.dnk-pag-info { font-size: 13px; color: #6b7280; font-weight: 500; }

/* ── Detalle de empresa (rediseño moderno, sin bordes duros) ─────────────── */
.dnk-detalle {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* Topbar: volver + nombre + share */
.dnk-det-topbar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0 16px;
    flex-wrap: wrap;
}
.dnk-det-volver {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #374151;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.dnk-det-volver:hover { background: var(--dnk-primary, #0073e6); color: #fff; }
.dnk-det-title-wrap { flex: 1; min-width: 0; }
.dnk-det-nombre {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.25;
    color: #111;
}
.dnk-det-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.dnk-det-cat {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Share strip */
.dnk-det-share {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.dnk-det-share-label { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.dnk-share-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    color: #fff;
}
.dnk-share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.dnk-share-fb  { background: #1877f2; }
.dnk-share-x   { background: #000; }
.dnk-share-wa  { background: var(--dnk-wp, #25d366); }
.dnk-share-cp  { background: #6b7280; }
.dnk-share-cp.copiado { background: #22c55e; }

/* Body: sidebar angosta a la izquierda, main ancho a la derecha */
.dnk-det-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* ── SIDEBAR ────────────────────────────────────────────────────────────── */
.dnk-det-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
}
.dnk-det-logo-box {
    background: #fafafa;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.dnk-det-logo {
    max-width: 160px;
    max-height: 120px;
    object-fit: contain;
}
.dnk-det-vistas {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}
.dnk-det-wa-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--dnk-wp, #25d366);
    color: #fff;
    text-decoration: none;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(37,211,102,.3);
    transition: opacity 0.15s, transform 0.15s;
}
.dnk-det-wa-cta:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }

/* Info list */
.dnk-det-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafafa;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.dnk-det-info-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
}
.dnk-det-info-icon {
    color: var(--dnk-primary, #0073e6);
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
}
.dnk-det-info-icon--wp { color: var(--dnk-wp, #25d366); }
.dnk-det-info-text { color: #374151; display: block; line-height: 1.4; }
.dnk-det-info-sub  { font-size: 12px; color: #9ca3af; display: block; }
.dnk-det-info-link {
    color: var(--dnk-primary, #0073e6);
    text-decoration: none;
    word-break: break-all;
}
.dnk-det-info-link:hover { text-decoration: underline; }
.dnk-det-wp-num {
    display: block;
    color: var(--dnk-wp, #25d366);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2px;
}
.dnk-det-wp-num:hover { text-decoration: underline; }

/* Redes */
.dnk-det-redes { display: flex; gap: 8px; flex-wrap: wrap; }
.dnk-det-red-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 22px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}
.dnk-det-red-btn:hover {
    background: var(--dnk-primary, #0073e6);
    color: #fff;
    transform: translateY(-2px);
}

/* Mini mapa */
.dnk-det-minimap { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* ── MAIN CONTENT ────────────────────────────────────────────────────────── */
.dnk-det-main { min-width: 0; }

/* Galería */
.dnk-det-galeria { margin-bottom: 28px; }
.dnk-det-galeria-principal {
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 16/9;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.dnk-det-galeria-img { width: 100%; height: 100%; object-fit: cover; }
.dnk-det-galeria-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.dnk-det-galeria-thumb {
    width: 78px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s, box-shadow 0.15s;
}
.dnk-det-galeria-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dnk-det-galeria-thumb.activa,
.dnk-det-galeria-thumb:hover {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--dnk-primary, #0073e6);
}

/* Secciones */
.dnk-det-section { margin-bottom: 32px; }
.dnk-det-section-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px;
    color: #111;
    letter-spacing: -.2px;
}

.dnk-det-descripcion { line-height: 1.75; color: #444; font-size: 15px; }

/* Servicios: grid de tarjetas con hover lift */
.dnk-det-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.dnk-det-servicio {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.dnk-det-servicio:hover { box-shadow: 0 8px 28px rgba(0,0,0,.13); transform: translateY(-4px); }
.dnk-det-srv-img-wrap { height: 130px; overflow: hidden; flex-shrink: 0; }
.dnk-det-srv-img { width: 100%; height: 100%; object-fit: cover; }
.dnk-det-srv-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: var(--dnk-primary, #0073e6);
    background: linear-gradient(145deg, #f0f7ff 0%, #dbeafe 100%);
    flex-shrink: 0;
}
.dnk-det-srv-body { padding: 12px 14px; flex: 1; }
.dnk-det-srv-nombre { font-weight: 700; font-size: 14px; margin: 0 0 5px; color: #111; }
.dnk-det-srv-desc { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.5; }

/* ── Responsive mobile: sidebar PRIMERO ─────────────────────────────────── */
@media (max-width: 768px) {
    .dnk-det-topbar { gap: 10px; }
    .dnk-det-nombre { font-size: 20px; }
    .dnk-det-share  { order: 10; width: 100%; }
    .dnk-det-body {
        grid-template-columns: 1fr;
    }
    .dnk-det-side {
        order: -1;
        position: static;
    }
    .dnk-det-servicios { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ── Formulario de postulación ────────────────────────────────────────────── */
.dnk-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px;
}
.dnk-form-exito {
    text-align: center;
    padding: 60px 20px;
}
.dnk-exito-icon {
    font-size: 64px;
    color: #22c55e;
    display: block;
    margin-bottom: 16px;
}
.dnk-form-pasos {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    overflow-x: auto;
}
.dnk-form-paso {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    border-bottom: 3px solid #e5e7eb;
    transition: border-color 0.15s;
    min-width: 80px;
}
.dnk-form-paso.activo { border-color: #0073e6; }
.dnk-form-paso.completado { border-color: #22c55e; }
.dnk-paso-num {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
}
.dnk-form-paso.activo .dnk-paso-num { background: #0073e6; color: #fff; }
.dnk-form-paso.completado .dnk-paso-num { background: #22c55e; color: #fff; }
.dnk-paso-label { display: block; font-size: 11px; color: #666; }
.dnk-form-paso.activo .dnk-paso-label { color: #0073e6; font-weight: 600; }

.dnk-form-paso-contenido h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
}
.dnk-campo { margin-bottom: 18px; }
.dnk-campo > label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #374151;
}
.dnk-hint { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.dnk-form-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #dc2626;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}
.dnk-form-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}
.dnk-form-resumen {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    margin-top: 20px;
}
.dnk-form-resumen h3 { font-size: 16px; margin: 0 0 12px; }
.dnk-form-resumen p { margin: 4px 0; }

/* Form media */
.dnk-upload-zone {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.dnk-logo-preview {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.dnk-galeria-upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.dnk-galeria-upload-item {
    position: relative;
    width: 80px;
    height: 80px;
}
.dnk-galeria-upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.dnk-galeria-upload-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 10px;
    line-height: 20px;
    text-align: center;
    padding: 0;
}
.dnk-servicio-form-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dnk-srv-foto-row { display: flex; align-items: center; gap: 10px; }
.dnk-srv-foto-preview { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.dnk-repeater-row { display: flex; gap: 8px; margin-bottom: 8px; }
.dnk-red-input-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dnk-red-input-row ion-icon { font-size: 22px; flex-shrink: 0; color: #374151; }
.dnk-otra-red-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.dnk-categorias-check {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dnk-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 5px 12px;
    border-radius: 20px;
    transition: background 0.15s, border-color 0.15s;
}
.dnk-check-label:has(input:checked) {
    background: #e8f0fe;
    border-color: #0073e6;
    color: #0073e6;
    font-weight: 600;
}
/* Ubicación inline */
.dnk-ubicacion-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.dnk-ubicacion-col {
    flex: 1 1 160px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dnk-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dnk-geocode-spinner {
    font-size: 11px;
    font-weight: 400;
    color: #0073e6;
    animation: dnk-pulse 1s infinite;
}
@keyframes dnk-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
.dnk-input-buscando {
    border-color: #0073e6 !important;
    box-shadow: 0 0 0 3px rgba(0,115,230,.1) !important;
}
.dnk-coords {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

.dnk-form-mapa {
    height: 320px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    margin-bottom: 8px;
}

/* ── Loading ──────────────────────────────────────────────────────────────── */
.dnk-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
    gap: 10px;
    font-weight: 600;
    color: #555;
}
.dnk-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #0073e6;
    border-radius: 50%;
    animation: dnk-spin 0.7s linear infinite;
}
@keyframes dnk-spin { to { transform: rotate(360deg); } }
.dnk-spin { animation: dnk-spin 0.7s linear infinite; display: inline-block; }

/* ── Error ────────────────────────────────────────────────────────────────── */
.dnk-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    margin: 12px;
}

/* ── Responsive general ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .dnk-layout-split { flex-direction: column; }
    .dnk-layout-split .dnk-lista-panel {
        width: 100% !important;
        height: 50vh;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        order: 2 !important;
    }
    .dnk-layout-split .dnk-mapa-panel { order: 1 !important; height: 50vh !important; }
    .dnk-filtros-inner { flex-direction: column; align-items: stretch; }
    .dnk-filtro-grupo { width: 100%; }
    .dnk-search-input { min-width: unset; }
}
