/* Portal Damnificados - Estilos públicos v1.0.4 */
:root {
    --dp-primary:    #c0392b;
    --dp-primary-dk: #922b21;
    --dp-secondary:  #2c3e50;
    --dp-light:      #f8f9fa;
    --dp-border:     #dee2e6;
    --dp-radius:     10px;
    --dp-shadow:     0 2px 12px rgba(0,0,0,.1);
    --dp-text:       #333;
    --dp-muted:      #6c757d;
}
.dp-portal { max-width:1200px; margin:0 auto; padding:20px; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--dp-text); }

/* Buscador */
.dp-search-form { background:var(--dp-light); border:1px solid var(--dp-border); border-radius:var(--dp-radius); padding:20px 24px; margin-bottom:24px; }
.dp-search-row { display:flex; flex-wrap:wrap; gap:16px; align-items:flex-end; }
.dp-search-field { flex:1 1 240px; display:flex; flex-direction:column; gap:6px; }
.dp-search-field label { font-size:13px; font-weight:600; color:var(--dp-secondary); }
.dp-search-field input, .dp-search-field select { padding:10px 14px; border:1px solid var(--dp-border); border-radius:6px; font-size:14px; background:#fff; transition:border-color .2s; }
.dp-search-field input:focus, .dp-search-field select:focus { outline:none; border-color:var(--dp-primary); box-shadow:0 0 0 3px rgba(192,57,43,.12); }
.dp-search-actions { display:flex; gap:8px; align-items:center; }

/* Botones */
.dp-btn { display:inline-flex; align-items:center; gap:6px; padding:10px 20px; border-radius:6px; font-size:14px; font-weight:600; cursor:pointer; border:none; text-decoration:none; transition:background .2s,transform .1s; line-height:1; }
.dp-btn:active { transform:scale(.97); }
.dp-btn-primary { background:var(--dp-primary); color:#fff; }
.dp-btn-primary:hover { background:var(--dp-primary-dk); color:#fff; }
.dp-btn-secondary { background:#fff; color:var(--dp-secondary); border:1px solid var(--dp-border); }
.dp-btn-secondary:hover { background:var(--dp-light); }
.dp-btn-update { background:#2980b9; color:#fff; padding:8px 14px; font-size:13px; }
.dp-btn-update:hover { background:#1f618d; }

/* Contador */
.dp-results-info { font-size:14px; color:var(--dp-muted); margin-bottom:20px; }

/* Grid */
.dp-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:20px; margin-bottom:32px; }

/* Tarjeta */
.dp-card { background:#fff; border:1px solid var(--dp-border); border-radius:var(--dp-radius); box-shadow:var(--dp-shadow); overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .2s,transform .2s; }
.dp-card:hover { box-shadow:0 6px 20px rgba(0,0,0,.15); transform:translateY(-2px); }
.dp-card-photo { position:relative; height:220px; background:#ecf0f1; overflow:hidden; }
.dp-card-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.dp-card-no-photo { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; background:#ecf0f1; color:var(--dp-muted); }
.dp-card-no-photo span { font-size:40px; }
.dp-card-no-photo small { font-size:12px; }
.dp-status-badge { position:absolute; bottom:10px; left:10px; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:700; color:#fff; letter-spacing:.3px; text-transform:uppercase; }
.dp-card-body { padding:16px; flex:1; display:flex; flex-direction:column; gap:4px; }
.dp-card-section { margin-bottom:8px; }
.dp-section-title { font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:var(--dp-muted); margin:0 0 6px; font-weight:700; }
.dp-card-body p { margin:3px 0; font-size:14px; line-height:1.5; }
.dp-divider { border:none; border-top:1px solid var(--dp-border); margin:12px 0; }
.dp-card-footer { margin-top:auto; padding-top:12px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.dp-date { font-size:11px; color:var(--dp-muted); }

/* Nombre destacado */
.dp-nombre-buscado { font-size:16px !important; font-weight:700 !important; color:var(--dp-secondary) !important; margin-bottom:4px !important; }

/* Vacío */
.dp-empty { text-align:center; padding:60px 20px; color:var(--dp-muted); font-size:16px; }

/* Paginación */
.dp-pagination { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin:24px 0; }
.dp-page-btn { width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:6px; border:1px solid var(--dp-border); font-size:14px; font-weight:600; text-decoration:none; color:var(--dp-text); background:#fff; transition:all .2s; }
.dp-page-btn:hover, .dp-page-active { background:var(--dp-primary); color:#fff; border-color:var(--dp-primary); }

/* Modal */
.dp-modal { position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; padding:20px; }
.dp-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.55); backdrop-filter:blur(2px); }
.dp-modal-content { position:relative; background:#fff; border-radius:12px; padding:32px; max-width:560px; width:100%; max-height:90vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,.25); animation:dpSlideIn .2s ease; }
@keyframes dpSlideIn { from{transform:translateY(-20px);opacity:0} to{transform:translateY(0);opacity:1} }
.dp-modal-close { position:absolute; top:16px; right:16px; background:none; border:none; font-size:18px; cursor:pointer; color:var(--dp-muted); padding:4px 8px; border-radius:4px; }
.dp-modal-close:hover { background:var(--dp-light); color:var(--dp-text); }
.dp-modal-content h2 { margin:0 0 8px; font-size:20px; }
.dp-modal-subtitle { color:var(--dp-muted); font-size:14px; margin-bottom:24px; }

/* Formularios */
.dp-form-group { margin-bottom:16px; }
.dp-form-group label { display:block; font-size:13px; font-weight:600; margin-bottom:6px; color:var(--dp-secondary); }
.dp-required { color:var(--dp-primary); }
.dp-form-group input, .dp-form-group select, .dp-form-group textarea { width:100%; padding:10px 14px; border:1px solid var(--dp-border); border-radius:6px; font-size:14px; font-family:inherit; box-sizing:border-box; transition:border-color .2s; }
.dp-form-group input:focus, .dp-form-group select:focus, .dp-form-group textarea:focus { outline:none; border-color:var(--dp-primary); box-shadow:0 0 0 3px rgba(192,57,43,.12); }
.dp-form-group input[type="file"] { padding:8px; background:var(--dp-light); cursor:pointer; }
.dp-field-hint { display:block; font-size:12px; color:var(--dp-muted); margin-top:4px; }
.dp-form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.dp-form-actions { display:flex; gap:12px; margin-top:24px; }
.dp-form-message { margin-top:16px; padding:12px 16px; border-radius:6px; font-size:14px; font-weight:600; }
.dp-form-message.dp-success { background:#d4edda; color:#155724; border:1px solid #c3e6cb; }
.dp-form-message.dp-error   { background:#f8d7da; color:#721c24; border:1px solid #f5c6cb; }

/* Detalle */
.dp-back-link { display:inline-block; margin-bottom:20px; color:var(--dp-primary); text-decoration:none; font-weight:600; font-size:14px; }
.dp-back-link:hover { text-decoration:underline; }
.dp-detalle-card { display:grid; grid-template-columns:280px 1fr; gap:32px; background:#fff; border:1px solid var(--dp-border); border-radius:var(--dp-radius); box-shadow:var(--dp-shadow); overflow:hidden; margin-bottom:32px; }
.dp-detalle-photo-col { background:#ecf0f1; display:flex; flex-direction:column; align-items:center; padding:24px; gap:16px; }
.dp-detalle-photo { width:100%; max-width:240px; border-radius:8px; object-fit:cover; }
.dp-detalle-no-photo { width:100%; min-height:200px; border-radius:8px; background:#dfe6e9; }
.dp-status-lg { position:static; padding:8px 20px; font-size:13px; border-radius:20px; font-weight:700; color:#fff; text-transform:uppercase; }
.dp-detalle-data-col { padding:28px 28px 28px 0; }
.dp-section { margin-bottom:28px; }
.dp-section h2 { font-size:15px; text-transform:uppercase; letter-spacing:.5px; color:var(--dp-muted); border-bottom:1px solid var(--dp-border); padding-bottom:8px; margin-bottom:14px; }
.dp-data-row { display:flex; gap:12px; padding:6px 0; border-bottom:1px solid #f0f0f0; font-size:14px; }
.dp-data-label { flex:0 0 200px; font-weight:600; color:var(--dp-secondary); }
.dp-data-value { color:var(--dp-text); }
.dp-update-section { background:#fff; border:1px solid var(--dp-border); border-radius:var(--dp-radius); padding:28px; box-shadow:var(--dp-shadow); }
.dp-update-section h2 { margin:0 0 8px; font-size:20px; }
.dp-update-form { max-width:640px; margin-top:24px; }
.dp-error { background:#f8d7da; color:#721c24; padding:16px; border-radius:6px; border:1px solid #f5c6cb; }

/* Responsive */
@media (max-width:768px) {
    .dp-search-row, .dp-form-actions { flex-direction:column; }
    .dp-grid, .dp-form-row { grid-template-columns:1fr; }
    .dp-detalle-card { grid-template-columns:1fr; }
    .dp-detalle-data-col { padding:20px; }
    .dp-data-label { flex:0 0 140px; }
}
