/* Vitrina de adopción — cálida, distinta de la ficha clínica verde. */

.vet-ad-public {
  margin: 0;
  min-height: 100vh;
  color: #3d2914;
  font-family: "Segoe UI", Candara, "Trebuchet MS", sans-serif;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(232, 146, 90, 0.35), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(122, 154, 110, 0.28), transparent 50%),
    linear-gradient(180deg, #fff4e6 0%, #f7efe4 40%, #f3e6d4 100%);
}

.vet-ad-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.vet-ad-top h1,
.vet-ad-historia h2,
.vet-ad-vitrina h2,
.vet-ad-detail h2,
.vet-ad-card h3,
.vet-ad-closed h2,
.vet-ad-closed h3 {
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.vet-ad-kicker {
  margin: 0 0 6px;
  color: #b85a2a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vet-ad-top h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.vet-ad-top p:last-child {
  max-width: 38rem;
  color: #6b5344;
  font-size: 1.05rem;
}

.vet-ad-historia {
  margin: 8px 0 28px;
  padding: 22px 22px 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(255, 248, 240, 0.94));
  border: 1px solid rgba(196, 92, 38, 0.14);
  box-shadow: 0 16px 36px rgba(90, 48, 20, 0.07);
}

.vet-ad-historia-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: #3f6b4e;
  font-weight: 700;
}

.vet-ad-historia-mark svg {
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 14px;
  background: #e7f2e4;
  color: #3f6b4e;
}

.vet-ad-historia p {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #3d2914;
}

.vet-ad-historia h2 {
  margin: 18px 0 10px;
  font-size: 1.45rem;
}

.vet-ad-servicios {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.vet-ad-servicios li {
  margin: 0;
  padding: 12px 12px 12px 40px;
  border-radius: 16px;
  background: #fff6ec;
  color: #5c3b24;
  position: relative;
}

.vet-ad-servicios li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3f6b4e;
  box-shadow: 0 0 0 4px rgba(63, 107, 78, 0.15);
}

.vet-ad-acceso {
  padding: 12px 14px;
  border-radius: 16px;
  background: #eef6ee;
  border-left: 4px solid #3f6b4e;
}

.vet-ad-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

.vet-ad-btn-soft {
  background: #eef6ee !important;
  border-color: #3f6b4e !important;
  color: #2f523b !important;
}

.vet-ad-tutor {
  margin: 18px 0 8px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f3faf3, #e8f4ea);
  border: 1px solid rgba(63, 107, 78, 0.28);
}

.vet-ad-tutor h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #2f523b;
}

.vet-ad-tutor p {
  margin: 0 0 10px;
}

.vet-ad-tutor-hint {
  margin: 8px 0 0 !important;
  font-size: 0.9rem !important;
  color: #5a6f5f !important;
}

.vet-ad-btn-adopta {
  background: #8a3e16 !important;
  border-color: #8a3e16 !important;
  color: #fff !important;
}

.vet-ad-adopta-cta {
  margin: 18px 0 8px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff6ec, #f8ebe0);
  border: 1px solid rgba(196, 92, 38, 0.28);
}

.vet-ad-adopta-cta h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #8a3e16;
}

.vet-ad-adopta-cta p {
  margin: 0 0 10px;
}

.vet-ad-cierre {
  margin-top: 16px !important;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-size: 1.25rem !important;
  color: #8a3e16 !important;
}

.vet-ad-firma {
  margin: 0 !important;
  color: #6b5344 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vet-ad-vitrina { margin-top: 8px; }
.vet-ad-vitrina h2 { margin: 0 0 6px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.vet-ad-vitrina-lead { margin: 0 0 12px; color: #6b5344; }

.vet-ad-preview {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff4d6;
  border: 1px solid #e4c27a;
  color: #6d4b12;
}

.vet-ad-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 18px;
}

.vet-ad-chip,
.vet-ad-btn,
.vet-ad-back {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  text-decoration: none;
  color: #6a3b22;
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid #e4cbb4;
  padding: 8px 14px;
}

.vet-ad-chip.is-on,
.vet-ad-btn {
  background: #c45c26;
  border-color: #c45c26;
  color: #fff;
}

.vet-ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.vet-ad-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fffdf9;
  border-radius: 22px;
  border: 1px solid rgba(196, 92, 38, 0.16);
  box-shadow: 0 14px 30px rgba(90, 48, 20, 0.08);
}

.vet-ad-card img,
.vet-ad-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(160deg, #f6d7be, #ead7c4);
}

.vet-ad-ph {
  display: grid;
  place-items: center;
  color: #c45c26;
}

.vet-ad-ph svg { width: 64px; height: 64px; opacity: 0.85; }

.vet-ad-card-body { padding: 12px 14px 16px; }
.vet-ad-card h3 { margin: 0 0 4px; font-size: 1.35rem; }
.vet-ad-card p { margin: 0; color: #6b5344; }

.vet-ad-desde,
.vet-ad-estado {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #8a4b12;
}

.vet-ad-estado {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f6e2cf;
}
.vet-ad-estado.es-disponible { background: #e5f0df; color: #2f5d32; }
.vet-ad-estado.es-reservada { background: #fff1cc; color: #8a5a10; }
.vet-ad-estado.es-adoptada { background: #e7eef8; color: #27456e; }
.vet-ad-estado.es-retirada { background: #f3e4e1; color: #7a3b32; }

.vet-ad-closed {
  margin-top: 12px;
  padding: 28px 22px;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.9);
  border: 1px dashed #e0b89a;
}

.vet-ad-detail {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 22px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 18px 40px rgba(90, 48, 20, 0.08);
}

.vet-ad-detail-photo img,
.vet-ad-ph-lg {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  background: #f6d7be;
}

.vet-ad-detail h2 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 2.8rem); }

.vet-ad-facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}

.vet-ad-facts li {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff6ec;
}

.vet-ad-facts span {
  display: block;
  color: #9a6a48;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vet-ad-relato {
  font-size: 1.05rem;
  line-height: 1.5;
}

.vet-ad-cta {
  padding: 12px 14px;
  border-radius: 14px;
  background: #3f6b4e;
  color: #f7fff4;
}

.vet-ad-gal-title { margin: 22px 0 10px; }

.vet-ad-galeria,
.vet-ad-galeria-public {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.vet-ad-galeria-public img,
.vet-ad figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}

.vet-ad-tutor {
  margin-top: 28px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(63, 107, 78, 0.2);
}
.vet-ad-tutor h2 { margin: 0 0 6px; font-size: 1.45rem; }
.vet-ad-tutor-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
}
.vet-ad-tutor-form label { display: grid; gap: 4px; font-size: 0.92rem; }
.vet-ad-tutor-form input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e4cbb4;
  background: #fff;
}
.vet-ad-tutor-ok { color: #2f5d32; font-weight: 700; }
.vet-ad-tutor-error { color: #8a3e16; font-weight: 700; }
.vet-ad-foot {
  margin-top: 28px;
  color: #6b5344;
  font-size: 0.95rem;
}

.vet-ad .vet-ad-switch {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #fff7ee, #fff);
  border: 1px solid #f0d2b8;
}

.vet-ad .vet-ad-switch h2 { margin-top: 0; }
.vet-ad-flag { margin: 8px 0 0; font-weight: 700; color: #8a4b12; }
.vet-ad-flag.is-on { color: #2f5d32; }
.vet-ad-buscar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.vet-ad-buscar-head h2 { margin: 0; }
.vet-ad-nueva {
  margin: 12px 0 16px;
  padding: 12px;
  border-radius: 16px;
  background: #fff6ec;
}
.vet-ad-buscar-form,
.vet-ad-estados { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.vet-ad-buscar-form label { flex: 1; min-width: 220px; }
.vet-ad-hits { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.vet-ad-hits li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff6ec;
}
.vet-ad-hits a { color: #8a3e16; }
.vet-ad figure {
  margin: 0;
  padding: 8px;
  border-radius: 16px;
  background: #fff6ec;
}
.vet-ad figure.is-perfil { outline: 3px solid #c45c26; }
.vet-ad figcaption { font-size: 0.8rem; color: #8a4b12; }
.vet-ad-vacio { color: #6b5344; }

@media (max-width: 760px) {
  .vet-ad-detail,
  .vet-ad .vet-ad-switch { grid-template-columns: 1fr; display: grid; }
}

.vet-ico-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.vet-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid #e4cbb4;
  background: #fffdf9;
  color: #8a3e16;
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.vet-tip:hover,
.vet-tip:focus-visible {
  background: #fff1e6;
  outline: 2px solid #c45c26;
}
.vet-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 8px;
  background: #3d2914;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
}
.vet-tip:hover::after,
.vet-tip:focus-visible::after { opacity: 1; }
