:root {
  --bg-dark: #0f172a;
  --card-bg: #1e293b;
  --accent: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --danger: #ef4444;
  --success: #22c55e;
}

body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg-dark); color: var(--text-main); }

/* NAVBAR & HEADER */
.navbar { height: 55px; background: #1e293b; border-bottom: 2px solid var(--accent); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 1000; }
.nav-brand { color: white; text-decoration: none; font-weight: bold; }
.header { display: flex; align-items: center; justify-content: center; padding: 20px; gap: 40px; }
.header-icon { height: 50px; }
.header-title { color: var(--accent); font-size: 1.5rem; text-transform: uppercase; margin: 0; text-align: center; }

.main-area { padding: 15px; display: flex; flex-direction: column; align-items: center; }
.form-container { width: 100%; max-width: 1100px; }

/* BUSCADOR */
.search-box { background: var(--card-bg); padding: 20px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 25px; }
input { background: #0f172a; border: 1px solid var(--border); color: white; padding: 12px; border-radius: 6px; width: 100%; outline: none; font-size: 16px; }

/* TARJETA FILIADO */
.filiado-card { background: var(--card-bg); border-radius: 15px; border: 1px solid var(--border); display: grid; grid-template-columns: 1fr; gap: 20px; padding: 25px; margin-bottom: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

@media (min-width: 900px) { .filiado-card { grid-template-columns: 400px 1fr; } }

/* CARRUSEL REVISADO (FOTOS COMPLETAS) */
.carrusel { 
    width: 100%; height: 450px; background: #020617; position: relative; 
    border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; 
}
.carrusel img { 
    max-width: 100%; max-height: 100%; width: auto; height: auto; 
    object-fit: contain; display: none; cursor: zoom-in; 
}
.carrusel img.active { display: block; }
.carrusel button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: white; border: none; padding: 15px; cursor: pointer; z-index: 10; }
.prev { left: 5px; } .next { right: 5px; }

/* VISOR PANTALLA COMPLETA (MODAL) */
.modal-foto {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95);
    align-items: center; justify-content: center;
}
.modal-content { max-width: 95%; max-height: 90%; border: 2px solid var(--accent); border-radius: 8px; }
.close-modal { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; }

/* ETIQUETAS Y LISTAS */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 12px 0; }
.tag-list li { background: var(--border); padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.tag-list.accent li { border: 1px solid var(--accent); color: var(--accent); }
.tag-list.danger li { border: 1px solid var(--danger); color: var(--danger); background: rgba(239, 68, 68, 0.1); }
.delete-btn { color: var(--text-muted); cursor: pointer; font-weight: bold; }

/* DETENCIONES */
.detencion-card { background: rgba(15, 23, 42, 0.4); border: 1px solid var(--border); border-radius: 8px; margin-top: 10px; overflow: hidden; }
.detencion-header { background: rgba(239, 68, 68, 0.15); padding: 10px; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(239, 68, 68, 0.2); }
.detencion-body { padding: 10px; font-size: 0.85rem; color: var(--text-muted); }

/* BOTONES */
.btn-small { background: var(--accent); border: none; padding: 8px 12px; border-radius: 6px; font-weight: bold; cursor: pointer; }
.btn-maps { background: var(--success); color: white; }
.btn-submit { background: var(--accent); border: none; padding: 12px; border-radius: 6px; cursor: pointer; }

@media (max-width: 600px) { .carrusel { height: 350px; } }
