:root {
  --ink: #17212b;
  --ink-soft: #52606d;
  --muted: #73808c;
  --surface: #ffffff;
  --line: #e7e2d9;
  --teal: #087f8c;
  --teal-dark: #075e69;
  --coral: #e76f51;
  --coral-soft: #fff0eb;
  --cream: #f5f0e8;
  --shadow: 0 18px 45px rgba(35, 48, 54, .10);
  --radius: 16px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  color: var(--ink);
  background: var(--cream);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.5;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 260px;
  content: "";
    background-image:
        radial-gradient(ellipse 6px 4px at 25px 43px, rgba(8, 127, 140, .07) 98%, transparent),
        radial-gradient(ellipse 3px 5px at 13px 25px, rgba(8, 127, 140, .07) 98%, transparent),
        radial-gradient(ellipse 3px 5px at 23px 18px, rgba(8, 127, 140, .07) 98%, transparent),
        radial-gradient(ellipse 3px 5px at 34px 21px, rgba(8, 127, 140, .07) 98%, transparent),
        radial-gradient(ellipse 3px 5px at 43px 30px, rgba(8, 127, 140, .07) 98%, transparent),
        linear-gradient(135deg, rgba(8, 127, 140, .13), rgba(231, 111, 81, .08) 58%, transparent);
    background-size: 86px 72px, 86px 72px, 86px 72px, 86px 72px, 86px 72px, auto;
  pointer-events: none;
}
a { color: var(--teal-dark); font-weight: 700; }
a:hover { color: var(--coral); }
button, input, textarea, select { font: inherit; }

.mp-wrapper { width: min(100%, var(--max-width)); margin: 0 auto; padding: 18px 0; animation: page-enter .55s ease both; }
.mp-card {
  margin: 0 0 22px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
    animation: card-enter .45s ease both;
}
.mp-card.center { padding: clamp(24px, 5vw, 42px); }
.mp-title { margin: 0; color: var(--ink); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.15; }
.mp-sub { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.mp-header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.mp-body { padding: 22px 0 4px; }
.mp-body p { margin: 0 0 14px; overflow-wrap: anywhere; }
.mp-body strong { color: var(--ink); }
.mp-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.mp-link { color: var(--teal-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lost-alert { margin: 20px 0 0; padding: 16px; border-left: 5px solid var(--coral); border-radius: 10px; color: #743322; background: var(--coral-soft); }
.lost-alert .btn { margin-top: 12px; }
.public-pet-photo { display: block; width: min(100%, 360px); max-height: 280px; margin: 0 auto 18px; border-radius: 14px; object-fit: cover; box-shadow: 0 10px 24px rgba(35, 48, 54, .14); }
.thank-you { padding: 12px 14px; border-radius: 10px; color: var(--teal-dark); background: #e9f7f4; }
.notice { margin: 14px 0; padding: 12px 14px; border-radius: 10px; }
.notice.success { color: #146c43; background: #e8f7ef; }
.notice.error { color: #9f2d2d; background: #fff0f0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

form { width: 100%; }
form label { display: block; margin: 0 0 12px; color: var(--ink); font-weight: 700; }
form label, .pet-form-grid, .age-fields { min-width: 0; }
form input, form textarea, form select {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
form textarea { min-height: 110px; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(8, 127, 140, .13); }
input[type="checkbox"]:focus-visible, summary:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(8, 127, 140, .35); outline-offset: 3px; }
.pet-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; align-items: start; }
.pet-form-grid > label { min-width: 0; }
.age-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px; }
.age-fields input, .age-fields select { min-width: 0; }

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--teal);
  border-radius: 10px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(8, 127, 140, .18);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { color: #fff; background: var(--teal-dark); box-shadow: 0 11px 22px rgba(8, 127, 140, .25); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.secondary { border-color: #efc3b7; color: #b64e38; background: var(--coral-soft); box-shadow: none; }
.btn.secondary:hover { color: #963b28; background: #ffe3db; }
.btn:focus-visible { outline: 3px solid rgba(231, 111, 81, .35); outline-offset: 3px; }

.pet-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 18px; }
.pet-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(35, 48, 54, .08);
  opacity: 0;
  transform: translateY(14px);
  animation: fade-in-up .5s forwards;
  transition: transform .25s, box-shadow .25s;
}
.pet-card:hover { box-shadow: 0 18px 34px rgba(35, 48, 54, .14); transform: translateY(-5px); }
.pet-media { display: flex; height: 210px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden; background: #e9f3f1; }
.pet-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.pet-media .pet-photo { height: 112px; object-fit: cover; }
.pet-media img:not(.pet-photo) { width: 112px; height: 112px; object-fit: contain; }
.pet-card:hover .pet-media img { transform: scale(1.04); }
.pet-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px; }
.pet-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-size: 1.15rem; }
.pet-meta { color: var(--muted); font-size: .92rem; }
.pet-desc { min-height: 44px; margin: 2px 0; color: var(--ink-soft); font-size: .94rem; overflow-wrap: anywhere; }
.pet-detail-preview { margin: 0; color: var(--ink-soft); font-size: .88rem; overflow-wrap: anywhere; }
.badge { padding: 4px 9px; border-radius: 999px; color: var(--teal-dark); background: #d9f1ee; font-size: .74rem; }
.pet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.pet-actions .btn { flex: 1 1 90px; padding: 9px 11px; font-size: .9rem; }
.pet-admin-modal { width: min(92vw, 460px); max-width: 460px; max-height: 90dvh; padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 70px rgba(23, 33, 43, .28); }
.pet-admin-modal::backdrop { background: rgba(23, 33, 43, .58); backdrop-filter: blur(4px); }
.pet-admin-content { padding: clamp(20px, 5vw, 30px); border-top: 6px solid var(--teal); }
.pet-admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pet-admin-kicker { color: var(--coral); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.pet-admin-heading h2 { margin: 4px 0 0; font-size: 1.5rem; line-height: 1.2; overflow-wrap: anywhere; }
.pet-admin-close { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background: #fff; cursor: pointer; }
.pet-admin-options { display: grid; gap: 10px; margin-top: 18px; }
.pet-admin-options a { display: grid; min-height: 72px; grid-template-columns: 42px minmax(0, 1fr) 20px; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #f5f8f7; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.pet-admin-options a:hover { border-color: var(--teal); color: var(--ink); background: #eaf5f2; transform: translateX(3px); }
.pet-admin-options strong, .pet-admin-options small { display: block; }
.pet-admin-options small { margin-top: 2px; color: var(--muted); font-size: .85rem; }
.pet-admin-number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 8px; color: var(--teal-dark); background: #d9f1ee; font-size: .82rem; font-weight: 800; }
.pet-admin-options a > span:last-child { color: var(--coral); font-size: 1.25rem; text-align: right; }
.pet-admin-modal[open] .pet-admin-content { animation: modal-enter .24s ease both; }
.lost-report-section { padding: 20px; }
.add-pet-section > summary, .lost-report-section > summary { width: fit-content; list-style: none; }
.add-pet-section > summary::-webkit-details-marker, .lost-report-section > summary::-webkit-details-marker { display: none; }
.add-pet-content, .lost-report-content { margin-top: 20px; }
.details-toggle-close { display: none; }
details[open] > summary .details-toggle-open { display: none; }
details[open] > summary .details-toggle-close { display: inline; }
.lost-report-content { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); animation: card-enter .25s ease both; }
.lost-wall-photo { display: block; width: 100%; height: 190px; object-fit: cover; background: #e9f3f1; }
.lost-card-media { display: flex; min-height: 196px; align-items: center; justify-content: space-evenly; gap: 12px; overflow: hidden; background: #e9f3f1; }
.lost-card-media .lost-wall-photo { width: calc(100% - 112px); height: 190px; }
.lost-wall-qr { width: 92px; height: 92px; flex: 0 0 92px; padding: 5px; border-radius: 8px; background: #fff; object-fit: contain; }
.nearby-controls, .location-capture { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.nearby-controls .mp-sub, .location-capture .mp-sub { margin: 0; }
.lost-distance { min-height: 1.4em; color: var(--coral); font-size: .86rem; font-weight: 800; }
.lost-alert { animation: card-enter .35s ease both; }
.medical-profile { min-width: 0; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.medical-profile legend { padding: 0 8px; color: var(--teal-dark); font-weight: 800; }
.medical-profile textarea { min-height: 78px; }
.wall-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 0 12px; margin-top: 16px; }
.wall-filter-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.mark-found-form { width: auto; }
.upcoming-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.push-settings { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; border-left: 5px solid var(--teal); }
.push-settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.push-settings-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .88rem; }
.upcoming-list { display: grid; gap: 8px; margin-top: 16px; }
.upcoming-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #f7f9f8; text-decoration: none; }
.upcoming-item:hover { border-color: var(--teal); color: var(--ink); background: #eaf5f2; }
.upcoming-kind { color: var(--teal-dark); font-size: .82rem; font-weight: 800; }
.upcoming-info strong, .upcoming-info small { display: block; overflow-wrap: anywhere; }
.upcoming-info small { color: var(--muted); }
.upcoming-item time { color: var(--ink-soft); font-size: .86rem; text-align: right; white-space: nowrap; }
.upcoming-item time.is-overdue { color: #a33c2b; font-weight: 800; }
.weight-chart { display: grid; min-height: 230px; grid-auto-flow: column; grid-auto-columns: minmax(48px, 1fr); align-items: end; gap: 12px; overflow-x: auto; margin-top: 18px; padding: 14px 10px 8px; border-bottom: 1px solid var(--line); }
.weight-bar-item { display: flex; min-width: 0; height: 190px; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.weight-bar { width: min(100%, 30px); min-height: 8px; height: var(--bar-height); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--coral), var(--teal)); transform-origin: bottom; animation: bar-grow .55s cubic-bezier(.2, .8, .2, 1) both; }
.weight-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.weight-record p { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); }
.weight-record time { color: var(--muted); }
.owner-profile-page { max-width: 900px; }
.owner-profile-cover { position: relative; min-height: 270px; margin-bottom: 22px; overflow: hidden; border-radius: 16px; color: #fff; background: linear-gradient(112deg, #075e69 0%, #087f8c 62%, #e76f51 100%); box-shadow: var(--shadow); }
.owner-profile-cover::after { position: absolute; top: 0; right: 0; width: 34%; height: 100%; background: rgba(255, 255, 255, .11); clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%); content: ""; }
.owner-profile-back { position: absolute; z-index: 1; top: 20px; right: 20px; }
.owner-profile-identity { position: absolute; z-index: 1; right: 24px; bottom: 24px; left: 28px; display: flex; align-items: flex-end; gap: 20px; }
.owner-profile-avatar { display: grid; width: 128px; height: 128px; flex: 0 0 128px; place-items: center; border: 4px solid #fff; border-radius: 50%; color: var(--teal-dark); background: #fff; box-shadow: 0 8px 24px rgba(23, 33, 43, .2); object-fit: cover; }
.owner-profile-initial { font-size: 3rem; font-weight: 800; }
.owner-profile-kicker { font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.owner-profile-identity h1 { margin: 5px 0; font-size: 2rem; line-height: 1.1; overflow-wrap: anywhere; }
.owner-profile-identity p { margin: 0; overflow-wrap: anywhere; }
.owner-profile-form-card { max-width: 760px; margin-right: auto; margin-left: auto; }
.owner-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.owner-dashboard-header { position: relative; padding-top: 78px; }
.owner-profile-compact { position: absolute; top: 18px; right: 22px; display: flex; align-items: center; gap: 9px; }
.owner-avatar-open { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; overflow: hidden; border: 2px solid #fff; border-radius: 50%; color: var(--teal-dark); background: #d9f1ee; box-shadow: 0 4px 12px rgba(23, 33, 43, .15); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.owner-avatar-open:hover { transform: scale(1.08); box-shadow: 0 7px 16px rgba(23, 33, 43, .2); }
.owner-avatar-open img { width: 100%; height: 100%; object-fit: cover; }
.owner-avatar-small { font-weight: 800; }
.owner-profile-link { padding: 7px 10px; border-radius: 8px; color: var(--teal-dark); background: #d9f1ee; font-size: .88rem; text-decoration: none; }
.owner-profile-photo-link { display: block; flex: 0 0 128px; border-radius: 50%; }
.owner-avatar-small { font-weight: 800; }
.owner-profile-compact > div { display: grid; text-align: left; }
.owner-profile-compact small { color: var(--muted); }

.auth { display: flex; max-width: 520px; min-height: 70vh; margin: 0 auto; flex-direction: column; align-items: center; justify-content: center; padding: 56px 0 18px; }
.auth-card { position: relative; width: 100%; }
.auth-form { display: flex; flex-direction: column; gap: 2px; }
.auth-form > div { display: flex; flex-wrap: wrap; gap: 8px; }
.login-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.pet-anim { position: absolute; top: -52px; left: 50%; display: flex; gap: 12px; pointer-events: none; transform: translateX(-50%); }
.pet-anim::before, .pet-anim::after { position: absolute; color: var(--coral); content: "✦"; font-size: 20px; animation: sparkle 1.8s ease-in-out infinite; }
.pet-anim::before { top: 8px; left: -28px; }
.pet-anim::after { right: -28px; bottom: 8px; animation-delay: .7s; }
.pet-svg { width: 76px; height: 76px; opacity: 0; filter: drop-shadow(0 10px 15px rgba(35, 48, 54, .16)); transform-origin: 50% 90%; }
.pet-svg.dog { animation: appear-dog .9s cubic-bezier(.2, .9, .25, 1) .1s forwards, happy-dog 2.8s ease-in-out 1.1s infinite; }
.pet-svg.cat { animation: appear-cat .9s cubic-bezier(.2, .9, .25, 1) .28s forwards, happy-cat 3.1s ease-in-out 1.28s infinite; }
.pet-message { margin-top: 14px; color: var(--muted); }
.pet-text { font-weight: 700; }
.heart { color: var(--coral); font-size: 26px; transform-origin: center; animation: heart-beat 1.6s ease-in-out infinite; }

@keyframes fade-in-up { to { opacity: 1; transform: translateY(0); } }
@keyframes page-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes bar-grow { from { transform: scaleY(.1); opacity: .4; } to { transform: scaleY(1); opacity: 1; } }
@keyframes appear-dog { 0% { opacity: 0; transform: scale(.2) rotate(-22deg) translateY(20px); } 65% { opacity: 1; transform: scale(1.12) rotate(8deg) translateY(-5px); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes appear-cat { 0% { opacity: 0; transform: scale(.2) rotate(22deg) translateY(20px); } 65% { opacity: 1; transform: scale(1.12) rotate(-8deg) translateY(-5px); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes happy-dog { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-7px) rotate(-7deg); } 50% { transform: translateY(0) rotate(5deg); } 75% { transform: translateY(-4px) rotate(-3deg); } }
@keyframes happy-cat { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-5px) rotate(6deg); } 60% { transform: translateY(1px) rotate(-6deg); } }
@keyframes sparkle { 0%, 100% { opacity: .35; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.25) rotate(90deg); } }
@keyframes heart-beat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.18); } 50% { transform: scale(1); } }

.pet-grid .pet-card:nth-child(2) { animation-delay: .08s; }
.pet-grid .pet-card:nth-child(3) { animation-delay: .16s; }
.pet-grid .pet-card:nth-child(4) { animation-delay: .24s; }
.pet-grid .pet-card:nth-child(5) { animation-delay: .32s; }

@media (min-width: 640px) { .pet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pet-media { height: 190px; } }
@media (min-width: 980px) { .pet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pet-media { height: 180px; } }
@media (max-width: 520px) {
  body { padding: 12px; }
  .mp-wrapper { padding: 8px 0; }
  .mp-card { padding: 20px 16px; }
  .pet-media { height: 170px; }
  .pet-actions .btn, .mp-actions .btn { flex: 1 1 100%; }
  .auth { min-height: 0; padding-top: 58px; }
  .pet-svg { width: 62px; height: 62px; }
  .pet-anim { top: -44px; }
    .pet-form-grid { grid-template-columns: 1fr; }
    .login-actions .btn { flex: 1 1 100%; }
    .upcoming-item { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    .upcoming-item time { text-align: left; }
    .push-settings { grid-template-columns: 1fr; }
    .push-settings-actions { display: grid; grid-template-columns: 1fr; }
    .push-settings-actions .btn { width: 100%; }
    .lost-card-media { min-height: 168px; gap: 8px; }
    .lost-card-media .lost-wall-photo { width: calc(100% - 86px); height: 160px; }
    .lost-wall-qr { width: 72px; height: 72px; flex-basis: 72px; }
    .nearby-controls .btn, .location-capture .btn { flex: 1 1 100%; }
    .owner-profile-cover { min-height: 230px; }
    .owner-profile-identity { right: 16px; bottom: 18px; left: 16px; gap: 12px; }
    .owner-profile-avatar { width: 88px; height: 88px; flex-basis: 88px; }
    .owner-profile-identity h1 { font-size: 1.4rem; }
    .owner-profile-back { top: 12px; right: 12px; }
    .owner-dashboard-header { padding-top: 88px; }
    .owner-profile-compact { top: 12px; right: 14px; }
    .owner-avatar-open { width: 42px; height: 42px; flex-basis: 42px; }
    .owner-profile-link { font-size: .82rem; }
    .owner-profile-photo-link { flex-basis: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.center { text-align: center; }
.muted { color: var(--muted); }


.pet-anim {
    position: relative;
    width: 180px;
    height: 140px;
    overflow: hidden;
}

.pet-real {
    position: absolute;
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pet-real.dog {
    left: 5px;
    bottom: 10px;
}

.pet-real.cat {
    right: 5px;
    bottom: 10px;
}

.pet-anim {
    position: relative;
    width: 200px;
    height: 130px;
    overflow: visible;
}

/* Animación general: flotan felices */
.pet-real {
    position: absolute;
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
}

/* Perro feliz */
.pet-real.dog {
    left: 15px;
    bottom: 10px;
    animation: dogHappy 3s ease-in-out infinite;
}

/* Gato feliz */
.pet-real.cat {
    right: 15px;
    bottom: 10px;
    animation: catHappy 3s ease-in-out infinite;
}

/* El perro se mueve hacia el gato */
@keyframes dogHappy {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(-3deg);
    }

    25% {
        transform: translateX(8px) translateY(-8px) rotate(3deg);
    }

    50% {
        transform: translateX(18px) translateY(0) rotate(-2deg) scale(1.05);
    }

    75% {
        transform: translateX(8px) translateY(-5px) rotate(2deg);
    }
}

/* El gato responde feliz */
@keyframes catHappy {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(3deg);
    }

    25% {
        transform: translateX(-8px) translateY(-5px) rotate(-2deg);
    }

    50% {
        transform: translateX(-18px) translateY(-8px) rotate(2deg) scale(1.05);
    }

    75% {
        transform: translateX(-8px) translateY(0) rotate(-3deg);
    }
}

/* Respeta a usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .pet-real.dog,
    .pet-real.cat {
        animation: none;
    }
}