/* MAH · Subir mascotas — pensado para el celular */
.mt-wrap {
  --mt-orange: var(--orange, #F57921);
  --mt-forest: var(--forest, #1B3A2F);
  --mt-tint: var(--orange-tint, #FDEAD6);
  --mt-line: #D9D0BC;
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--body, 'Manrope', system-ui, sans-serif);
  color: var(--ink, #1A1A1A);
}
.mt-wrap h2 { font-family: var(--display, "Fraunces", Georgia, serif); color: var(--mt-forest); margin: .25rem 0 1rem; line-height: 1.15; font-size: clamp(1.5rem, 6vw, 2rem); }
.mt-wrap h3 { font-size: 1.05rem; margin: 0 0 1rem; color: var(--mt-forest); }

.mt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.25rem; border-radius: 999px; border: 0; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.mt-btn-primario { background: var(--mt-orange); color: #fff !important; }
.mt-btn[disabled] { opacity: .7; }

.mt-aviso { background: #E3F2E8; color: #1D5B36; padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.mt-aviso a { color: inherit; font-weight: 700; }
.mt-aviso-error { background: #FBE3E1; color: #8A2018; }

/* ---------- Lista ---------- */
.mt-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mt-cabecera h2 { margin: 0; }
.mt-filtros { display: flex; gap: .5rem; margin: 1rem 0; overflow-x: auto; }
.mt-filtros a { padding: .45rem .9rem; border-radius: 999px; background: var(--bg-soft, #EDE5D2); color: var(--ink-soft, #4A4A4A); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.mt-filtros a.activo { background: var(--mt-forest); color: #fff; }
.mt-vacio { padding: 2rem 1rem; text-align: center; background: #fff; border-radius: 16px; }

.mt-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.mt-item { display: grid; grid-template-columns: 72px 1fr auto; gap: .85rem; align-items: start; background: #fff; border-radius: 16px; padding: .75rem; }
.mt-item-foto { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--bg-soft, #EDE5D2); display: grid; place-items: center; font-size: 1.6rem; text-decoration: none; }
.mt-item-foto img { width: 100%; height: 100%; object-fit: cover; }
.mt-item-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.mt-item-info small { color: var(--ink-muted, #7A756A); }
.mt-item-info .mt-solicitudes { color: var(--orange-deep, #D86813); font-weight: 600; }
.mt-estados { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.mt-estado { border: 1.5px solid var(--mt-line); background: #fff; border-radius: 999px; padding: .3rem .7rem; font: inherit; font-size: .8rem; cursor: pointer; color: var(--ink-soft, #4A4A4A); }
.mt-estado.activo { border-color: var(--mt-orange); background: var(--mt-tint); color: var(--mt-forest); font-weight: 700; }
.mt-estado-adoptado.activo { border-color: #2E8B57; background: #E3F2E8; }
.mt-editar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg, #F5EFE0); color: var(--mt-forest); text-decoration: none; font-size: 1.1rem; }

/* ---------- Formulario ---------- */
.mt-volver { display: inline-block; margin-bottom: .5rem; color: var(--ink-muted, #7A756A); text-decoration: none; }
.mt-seccion { background: #fff; border-radius: 16px; padding: 1.15rem; margin-bottom: .9rem; }
.mt-campo { display: block; margin-bottom: 1.1rem; }
.mt-campo:last-child { margin-bottom: 0; }
.mt-campo > span { display: block; font-weight: 700; margin-bottom: .45rem; font-size: .95rem; }
.mt-campo input[type=text], .mt-campo textarea {
  width: 100%; box-sizing: border-box; padding: .8rem .9rem; border: 1.5px solid var(--mt-line); border-radius: 12px; font: inherit; font-size: 16px; background: #fff;
}
.mt-campo input[type=text] { margin-top: .5rem; }
.mt-campo > span + input[type=text] { margin-top: 0; }
.mt-campo input:focus, .mt-campo textarea:focus { outline: none; border-color: var(--mt-orange); box-shadow: 0 0 0 3px rgba(245, 121, 33, .2); }

.mt-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.mt-chip input, .mt-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.mt-chip span, .mt-toggle span {
  display: inline-block; padding: .55rem .9rem; border: 1.5px solid var(--mt-line); border-radius: 999px; cursor: pointer; font-size: .92rem; background: #fff; user-select: none;
}
.mt-chip input:checked + span, .mt-toggle input:checked + span { border-color: var(--mt-orange); background: var(--mt-tint); font-weight: 700; color: var(--mt-forest); }
.mt-chip input:focus-visible + span, .mt-toggle input:focus-visible + span { outline: 3px solid rgba(245, 121, 33, .35); }
.mt-toggles { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Fotos ---------- */
.mt-ayuda { color: var(--ink-muted, #7A756A); font-size: .88rem; margin: 0 0 .6rem; }
.mt-fotos, .mt-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; margin-bottom: .75rem; }
.mt-foto { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-soft, #EDE5D2); }
.mt-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-foto label { position: absolute; top: 4px; }
.mt-foto label input { position: absolute; opacity: 0; }
.mt-foto label span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: .9rem; cursor: pointer; }
.mt-foto-principal { left: 4px; }
.mt-foto-quitar { right: 4px; }
.mt-foto-principal input:checked + span { background: var(--mt-orange); }
.mt-foto-quitar input:checked + span { background: #C0392B; }
.mt-foto:has(.mt-foto-quitar input:checked) img { opacity: .35; }
.mt-foto-nueva.es-primera::after { content: "Principal"; position: absolute; left: 4px; bottom: 4px; background: var(--mt-orange); color: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .45rem; border-radius: 99px; }

.mt-subir { display: block; position: relative; border: 2px dashed var(--mt-line); border-radius: 14px; padding: 1.1rem; text-align: center; cursor: pointer; background: var(--bg, #F5EFE0); }
.mt-subir input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mt-subir span { display: flex; flex-direction: column; gap: .25rem; }
.mt-subir strong { color: var(--orange-deep, #D86813); font-size: 1.05rem; }
.mt-subir small { color: var(--ink-muted, #7A756A); }

.mt-mas summary { font-weight: 700; color: var(--mt-forest); cursor: pointer; }
.mt-mas[open] summary { margin-bottom: 1rem; }

.mt-enviar { position: sticky; bottom: 0; padding: .75rem 0 1rem; background: linear-gradient(transparent, var(--bg, #F5EFE0) 35%); }
.mt-enviar .mt-btn { width: 100%; min-height: 54px; font-size: 1.05rem; }

/* ---------- Login ---------- */
.mt-login { background: #fff; border-radius: 16px; padding: 1.5rem; }
.mt-login form p { margin: 0 0 1rem; }
.mt-login label { display: block; font-weight: 700; margin-bottom: .35rem; }
.mt-login input[type=text], .mt-login input[type=password] { width: 100%; box-sizing: border-box; padding: .8rem .9rem; border: 1.5px solid var(--mt-line); border-radius: 12px; font-size: 16px; }
.mt-login input[type=submit] { width: 100%; min-height: 50px; border: 0; border-radius: 999px; background: var(--mt-orange); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; }

/* Pestañas Mascotas / Actividades */
.mt-tabs { display: flex; gap: .4rem; background: var(--bg-soft, #EDE5D2); padding: .3rem; border-radius: 999px; margin-bottom: 1.25rem; }
.mt-tabs a { flex: 1; text-align: center; padding: .6rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink-soft, #4A4A4A); }
.mt-tabs a.activo { background: #fff; color: var(--mt-forest); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mt-item-borrador { opacity: .6; }
.mt-quitar-form { text-align: center; margin: .5rem 0 2rem; }
.mt-link-peligro { background: none; border: 0; color: #B03A2E; text-decoration: underline; font: inherit; cursor: pointer; }
