nid/* =================================================
   BOTONES
   ================================================= */

.btn,
button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
  user-select: none;
  white-space: nowrap;
}

.btn:hover,
button.btn:hover,
a.btn:hover {
  transform: translateY(-1px);
}

.btn:active,
button.btn:active,
a.btn:active {
  transform: translateY(0);
}

.btn:disabled,
button.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: #15120f;
  box-shadow: 0 8px 20px rgba(200, 164, 123, 0.18);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #111;
  box-shadow: 0 12px 24px rgba(200, 164, 123, 0.24);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-soft);
}

.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.btn-full {
  width: 100%;
}

/* =================================================
   TARJETAS
   ================================================= */

.card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-card) 92%, white 2%),
    var(--bg-card)
  );
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-soft {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.card-outline {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

/* =================================================
   BADGES / CHIPS
   ================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(200, 164, 123, 0.16);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* =================================================
   LINKS ESPECIALES
   ================================================= */

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 600;
}

.link-inline:hover {
  opacity: 0.9;
}

/* =================================================
   BLOQUES NOTICE / ALERTA
   ================================================= */

.notice {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-soft) 85%, var(--accent) 4%);
  color: var(--text-soft);
  border: 1px solid var(--border-soft);
  font-size: var(--text-sm);
  line-height: var(--line-relaxed);
}

.notice strong {
  color: var(--text-main);
}

.notice.success {
  background: rgba(143, 187, 145, 0.09);
  color: var(--text-main);
}

.notice.info {
  background: rgba(136, 168, 201, 0.09);
  color: var(--text-main);
}

.notice.error {
  background: rgba(204, 127, 127, 0.09);
  color: var(--text-main);
}

.notice.warning {
  background: rgba(217, 181, 111, 0.09);
  color: var(--text-main);
}

/* =================================================
   FORMULARIOS
   ================================================= */

.field {
  position: relative;
}

label {
  margin-bottom: 0.15rem;
}

input,
select,
textarea {
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--bg-soft) 88%, black 10%);
  color: var(--text-main);
  font-size: var(--text-sm);
  line-height: 1.4;
  padding: 0.95rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

select {
  cursor: pointer;
}

textarea {
  min-height: 140px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(200, 164, 123, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* checkbox y radio simples */

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--accent);
  box-shadow: none;
}

label.cluster {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-soft);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* =================================================
   BLOQUES VISUALES DE SERVICIO / RECURSO
   ================================================= */

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 65%);
  opacity: 0.5;
}

.service-card h3,
.resource-card h3,
.photo-card h3,
.pet-card h3,
.request-card h3 {
  color: var(--text-main);
}

.resource-card .notice {
  font-size: var(--text-sm);
}

/* =================================================
   BLOQUES DE IMAGEN
   ================================================= */

.photo-card img,
.resource-card img {
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-soft);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* =================================================
   ESTADOS DE SOLICITUD
   ================================================= */

.status {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* =================================================
   AUTH SLOT Y ACCIONES PEQUEÑAS
   ================================================= */

#authSlot {
  min-height: 40px;
}

#authSlot a {
  color: var(--text-soft);
  font-weight: 600;
}

#authSlot a:hover {
  color: var(--text-main);
}

/* =================================================
   BLOQUES VACÍOS
   ================================================= */

.empty-state {
  display: grid;
  place-items: center;
  gap: var(--space-3);
  text-align: center;
  min-height: 180px;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-soft);
  background: color-mix(in srgb, var(--bg-soft) 80%, transparent);
}

.empty-state h3 {
  margin: 0;
}

.empty-state p {
  color: var(--text-soft);
  max-width: 40ch;
}

/* =================================================
   DIVISORES
   ================================================= */

.divider {
  width: 100%;
  height: 1px;
  background: var(--border-soft);
}

.hr-soft {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: var(--space-6) 0;
}

/* =================================================
   MICROINTERACCIONES
   ================================================= */

.interactive {
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.interactive:hover {
  transform: translateY(-2px);
}

/* =================================================
   MODO CLARO
   ================================================= */

body.light-mode .btn-primary {
  color: #111;
}

body.light-mode .btn-secondary {
  background: rgba(0, 0, 0, 0.02);
}

body.light-mode .card {
  background: linear-gradient(180deg, #ffffff, #fcfbf8);
}

body.light-mode input,
body.light-mode select,
body.light-mode textarea {
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
}

/* =================================================
   RESPONSIVE
   ================================================= */

@media (max-width: 760px) {
  .card {
    padding: var(--space-5);
  }

  .btn,
  button.btn,
  a.btn {
    min-height: 44px;
    width: auto;
  }

  .badge,
  .chip {
    font-size: 0.72rem;
  }
}