:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --primary: #2563eb;
  --danger: #dc2626;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
}

* { box-sizing: border-box; font-family: system-ui, -apple-system, sans-serif; }
body { margin: 0; background: var(--bg); color: var(--text); }
.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

/* Autenticación */
.auth-box {
  max-width: 420px; margin-top: 4rem; background: var(--card);
  padding: 2rem; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.subtitle { color: var(--muted); margin-top: -0.5rem; font-size: 0.95rem; }
.tabs { display: flex; gap: 0.5rem; margin: 1.2rem 0; }
.tabs button {
  flex: 1; padding: 0.6rem; border: 1px solid var(--border);
  background: var(--bg); border-radius: 6px; cursor: pointer; font-weight: 600;
}
.tabs button.active { background: var(--primary); color: white; border-color: var(--primary); }

label { display: block; font-size: 0.85rem; font-weight: 600; margin: 0.8rem 0 0.3rem; }
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; padding: 0.65rem; border: 1px solid var(--border); border-radius: 6px;
}

.terms-box { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; }
.terms-box input { margin-top: 0.25rem; }
.terms-box label { margin: 0; font-weight: 400; font-size: 0.82rem; color: var(--muted); }

/* Botones */
button { cursor: pointer; border: none; border-radius: 6px; font-weight: 600; }
.btn-primary { width: 100%; padding: 0.75rem; background: var(--primary); color: white; margin-top: 1.2rem; }
.btn-secondary { padding: 0.5rem 1rem; background: var(--border); color: var(--text); }
.btn-danger { padding: 0.5rem 1rem; background: var(--danger); color: white; }
.btn-takedown {
  width: 100%; padding: 0.45rem; margin-top: 0.6rem; font-size: 0.8rem;
  background: #fee2e2; color: var(--danger);
}

/* Barra superior y galería */
.navbar {
  background: var(--card); padding: 1rem 2rem; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.navbar h2 { margin: 0; font-size: 1.2rem; }
.badge { font-size: 0.8rem; color: var(--muted); }

.privacy-banner {
  background: #eff6ff; border-left: 4px solid var(--primary);
  padding: 0.9rem 1rem; border-radius: 6px; font-size: 0.9rem; margin-bottom: 1.5rem;
}

.admin-card {
  background: var(--card); padding: 1.2rem; border-radius: 10px;
  border: 2px dashed var(--primary); margin-bottom: 1.5rem;
}
.upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; align-items: end; }
.upload-grid .btn-primary { margin-top: 0; }

.filters { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-btn { padding: 0.5rem 1.1rem; background: var(--card); border: 1px solid var(--border); }
.filter-btn.active { background: var(--text); color: white; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.photo-card {
  background: var(--card); border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.photo-card img { width: 100%; height: 220px; object-fit: cover; background: #e2e8f0; }
.photo-info { padding: 0.9rem; }
.photo-info h4 { margin: 0 0 0.25rem; font-size: 0.95rem; }
.photo-tag { font-size: 0.75rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-content { background: var(--card); padding: 1.5rem; border-radius: 10px; max-width: 420px; width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1rem; }
.message { font-size: 0.85rem; margin-top: 0.8rem; color: var(--primary); }
