:root{--bg:#f4f7f4;--surface:#fff;--text: #000000;--muted:#69736d;--green:#247255;--border:#17211c1a;--shadow:0 20px 60px #1b402f1f}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 10% 0,#dfeee5,transparent 32rem),var(--bg);color:var(--text);font-family:Inter,system-ui,sans-serif}button,input,select,textarea{font:inherit}nav{max-width:1200px;margin:auto;display:flex;justify-content:space-between;align-items:center}.brand{font-weight:850;color:var(--text);text-decoration:none}.pill{padding:11px 18px;border:1px solid var(--border);border-radius:99px;color:var(--text);text-decoration:none;background:#ffffffb3}.hero{padding:24px clamp(20px,6vw,92px) 70px}.intro{max-width:900px;margin:95px auto 42px;text-align:center}.intro span,.heading span,.dialog>span{font-size:.74rem;color:var(--green);font-weight:850;letter-spacing:.14em}.intro h1{font-size:clamp(2.8rem,7vw,6rem);line-height:.96;letter-spacing:-.065em;margin:18px auto}.intro p{max-width:650px;margin:auto;color:var(--muted);font-size:1.15rem;line-height:1.7}.actions{max-width:1080px;margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.actions button{min-height:180px;padding:24px;text-align:left;display:grid;gap:8px;border:1px solid var(--border);border-radius:24px;background:#ffffffdd;box-shadow:var(--shadow);cursor:pointer;transition:.2s}.actions button:hover{transform:translateY(-6px)}.actions b{font-size:1.2rem}.actions small{color:var(--muted)}.section{width:min(1200px,calc(100% - 40px));margin:auto;padding:70px 0}.heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}.heading h2{font-size:clamp(2rem,4vw,3.7rem);letter-spacing:-.045em;margin:8px 0 0}.legend{color:var(--muted);font-size:.85rem}.filters{display:flex;gap:10px}.filters input{min-width:280px}input,select,textarea{width:100%;padding:14px 15px;border:1px solid var(--border);border-radius:14px;background:#fff;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 4px #2472551a}#map{height:520px;border-radius:28px;overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.card{overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:24px;box-shadow:0 12px 38px #17211c12}.card img,.placeholder{width:100%;height:230px;object-fit:cover}.placeholder{display:grid;place-items:center;font-size:4rem;background:#edf4ef}.body{padding:20px}.top{display:flex;justify-content:space-between;gap:10px}.top h3{margin:0}.badge{padding:7px 10px;border-radius:99px;background:#e2efe8;color:#174d3a;font-size:.72rem;font-weight:850;height:max-content}.location{color:var(--green);font-weight:750}.desc,.date,.center p{color:var(--muted);line-height:1.6}.date{font-size:.8rem}.share{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.share button{border:1px solid var(--border);background:#f7f9f7;border-radius:11px;padding:10px 6px;cursor:pointer}.center{padding:22px}.center a{color:var(--green);font-weight:750}.modal{position:fixed;inset:0;z-index:1000;display:none;place-items:center;padding:20px}.modal.open{display:grid}.backdrop{position:absolute;inset:0;background:#0c181199;backdrop-filter:blur(8px)}.dialog{position:relative;z-index:1;width:min(620px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:28px;padding:32px;box-shadow:var(--shadow)}.close{position:absolute;right:17px;top:17px;width:38px;height:38px;border:0;border-radius:50%;cursor:pointer}form{display:grid;gap:15px}label{display:grid;gap:7px;font-size:.86rem;font-weight:750}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.primary,.soft{border:0;border-radius:99px;padding:14px 20px;cursor:pointer;font-weight:750}.primary{background:var(--green);color:#fff}.soft{background:#edf4ef;color:#174d3a}@media(max-width:780px){.actions{grid-template-columns:1fr}.heading{align-items:stretch;flex-direction:column}.filters{flex-direction:column}.filters input{min-width:0}.row{grid-template-columns:1fr}#map{height:420px}}


/* Identidad visual naranja, negro y blanco */
.navigation {
  background: #000000;
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: 0 16px 40px rgba(17,17,17,.16);
}

.navigation .brand,
.navigation .ghost-button {
  color: #ffffff;
}

.navigation .ghost-button {
  background: transparent;
  border-color: rgba(255,255,255,.24);
}

.brand span {
  background: #F49819;
  color: #ffffff;
}

.hero-content h1 {
  color: #000000;
}

.quick-actions .action-card {
  border-top: 5px solid #F49819;
}

.quick-actions .action-card strong {
  color: #000000;
}

.action-card.attention {
  background: #000000;
  color: #ffffff;
}

.action-card.attention strong,
.action-card.attention small {
  color: #ffffff;
}

.section-header h2,
.card-top h3,
.center-card h3 {
  color: #000000;
}

.map {
  border: 3px solid #000000;
}

.badge {
  background: #F49819;
  color: #ffffff;
}

.primary-button {
  background: #F49819;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(255,106,0,.28);
}

.primary-button:hover {
  background: #000000;
}

.share-button {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.share-button:hover {
  background: #F49819;
  border-color: #F49819;
}

.center-link,
.location {
  color: #F49819;
}

.modal-content,
.admin-panel {
  border: 2px solid #000000;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #F49819;
}

.lost-dot { background: #F49819; }
.found-dot { background: #000000; }
.attention-dot { background: #ffb000; }
.center-dot { background: #ffffff; border: 2px solid #000000; }

footer {
  background: #000000;
  color: #ffffff;
}


/* Marca Tarantín */
.brand {
  min-width: 150px;
}

.brand img {
  display: block;
  width: 150px;
  height: auto;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 4px 8px;
}

.navigation {
  background: #FFFFFF;
  border: 2px solid #000000;
}

.navigation .ghost-button {
  color: #000000;
  border-color: #000000;
  background: #FFFFFF;
}

.navigation .ghost-button:hover {
  color: #FFFFFF;
  background: #000000;
}

.hero {
  background:
    radial-gradient(circle at 12% 0, rgba(244, 152, 25, .22), transparent 34rem),
    #FFFFFF;
}

.eyebrow,
.location,
.center-link {
  color: #C87400;
}

.action-card {
  border-color: rgba(0, 0, 0, .16);
}

.action-card.lost,
.action-card.found {
  border-top-color: #F49819;
}

.action-card.attention {
  border-top-color: #F49819;
  background: #000000;
}

.primary-button,
.badge {
  background: #F49819;
}

.primary-button:hover,
.share-button {
  background: #000000;
}

.share-button:hover {
  background: #F49819;
  border-color: #F49819;
}

.map-wrapper {
  position: relative;
}

.map {
  position: relative;
  z-index: 1;
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(244, 152, 25, .10), rgba(255,255,255,.95)),
    #FFFFFF;
}

.map-status {
  position: absolute;
  z-index: 500;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(92%, 620px);
  padding: 12px 16px;
  color: #FFFFFF;
  background: rgba(0, 0, 0, .88);
  border: 2px solid #F49819;
  border-radius: 14px;
  text-align: center;
  font-size: .9rem;
}

.leaflet-control-zoom a {
  color: #000000 !important;
}

.leaflet-control-attribution a {
  color: #C87400;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: #000000;
  background: #FFFFFF;
}

@media (max-width: 780px) {
  .brand img {
    width: 125px;
  }

  .map {
    min-height: 420px;
  }
}


/* Botón animado: Perdí mi mascota */
.action-card.lost {
  position: relative;
  overflow: hidden;
  color: #000000;
  background: #F49819;
  border: 2px solid #000000;
  border-top: 5px solid #000000;
  animation: lostCardFloat 2.8s ease-in-out infinite;
  isolation: isolate;
}

.action-card.lost::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -45%;
  left: -30%;
  width: 46%;
  height: 190%;
  background: rgba(255, 255, 255, .28);
  transform: rotate(18deg);
  animation: lostCardShine 3.2s ease-in-out infinite;
}

.action-card.lost::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(135deg, #F49819 0%, #FFB347 50%, #F49819 100%);
  background-size: 180% 180%;
  animation: lostCardBackground 4s ease infinite;
}

.action-card.lost strong,
.action-card.lost small,
.action-card.lost .action-icon {
  color: #000000;
  position: relative;
  z-index: 1;
}

.action-card.lost .action-icon {
  display: inline-block;
  animation: lostIconMove 1.8s ease-in-out infinite;
}

.action-card.lost:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 26px 70px rgba(244, 152, 25, .34);
}

.action-card.lost:focus-visible {
  outline: 4px solid #000000;
  outline-offset: 4px;
}

@keyframes lostCardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes lostCardShine {
  0% {
    left: -42%;
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  55%, 100% {
    left: 125%;
    opacity: 0;
  }
}

@keyframes lostCardBackground {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes lostIconMove {
  0%, 100% {
    transform: translateX(0) rotate(0deg);
  }
  35% {
    transform: translateX(5px) rotate(7deg);
  }
  70% {
    transform: translateX(-2px) rotate(-4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .action-card.lost,
  .action-card.lost::before,
  .action-card.lost::after,
  .action-card.lost .action-icon {
    animation: none !important;
  }
}


/* Iconos sociales en las cards */
.share {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.share .social-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #FFFFFF;
  background: #000000;
  border: 2px solid #000000;
  border-radius: 50%;
  cursor: pointer;
  transition:
    transform .18s ease,
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.share .social-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  pointer-events: none;
}

.share .social-button:hover {
  color: #000000;
  background: #F49819;
  border-color: #F49819;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 22px rgba(244, 152, 25, .30);
}

.share .social-button:active {
  transform: translateY(0) scale(.95);
}

.share .social-button:focus-visible {
  outline: 3px solid #F49819;
  outline-offset: 3px;
}


/* Corrección visual: Perdí mi mascota */
.actions button[data-type="lost"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #000000 !important;
  background: #F49819 !important;
  border: 2px solid #000000 !important;
  box-shadow: 0 18px 45px rgba(244, 152, 25, .34);
  animation: lostButtonFloat 2.8s ease-in-out infinite;
}

.actions button[data-type="lost"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -55%;
  left: -38%;
  width: 42%;
  height: 210%;
  background: rgba(255, 255, 255, .34);
  transform: rotate(20deg);
  animation: lostButtonShine 3.1s ease-in-out infinite;
}

.actions button[data-type="lost"]::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.28), transparent 32%),
    linear-gradient(135deg, #F49819 0%, #FFB24D 48%, #F49819 100%);
  background-size: 180% 180%;
  animation: lostButtonGradient 4s ease infinite;
}

.actions button[data-type="lost"] b,
.actions button[data-type="lost"] small {
  color: #000000 !important;
}

.actions button[data-type="lost"]:hover {
  transform: translateY(-9px) scale(1.015);
  box-shadow: 0 28px 70px rgba(244, 152, 25, .42);
}

@keyframes lostButtonFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes lostButtonShine {
  0% { left: -42%; opacity: 0; }
  18% { opacity: 1; }
  58%,100% { left: 125%; opacity: 0; }
}

@keyframes lostButtonGradient {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Botón HTML5 para llamar */
.share .social-button.call {
  text-decoration: none;
  background: #F49819;
  color: #000000;
  border-color: #F49819;
}

.share .social-button.call:hover {
  color: #FFFFFF;
  background: #000000;
  border-color: #000000;
}

/* Footer */
.site-footer {
  padding: 30px 20px;
  color: #FFFFFF;
  background: #000000;
  border-top: 5px solid #F49819;
}

.site-footer__inner {
  width: min(1200px, calc(100% - 20px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  color: #000000;
  background: #F49819;
  border: 2px solid #F49819;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: .18s ease;
}

.site-footer a:hover {
  color: #FFFFFF;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .actions button[data-type="lost"],
  .actions button[data-type="lost"]::before,
  .actions button[data-type="lost"]::after {
    animation: none !important;
  }
}


/* v5.5: botón Encontré una mascota */
.actions button[data-type="found"] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #000000;
  background: #FFFFFF;
  border: 2px solid #F49819;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .12);
  animation: foundButtonFloat 3.1s ease-in-out infinite;
}

.actions button[data-type="found"]::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(244,152,25,.28), transparent 30%),
    linear-gradient(120deg, #FFFFFF, #FFF2DE, #FFFFFF);
  background-size: 180% 180%;
  animation: foundButtonBackground 4.4s ease infinite;
}

.actions button[data-type="found"]::after {
  content: "🐾";
  position: absolute;
  z-index: -1;
  right: -12px;
  bottom: -18px;
  font-size: 5.3rem;
  opacity: .10;
  animation: foundPawMove 2.6s ease-in-out infinite;
}

.actions button[data-type="found"]:hover {
  transform: translateY(-8px) rotate(.4deg);
  border-color: #000000;
  box-shadow: 0 26px 58px rgba(244,152,25,.28);
}

@keyframes foundButtonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes foundButtonBackground {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes foundPawMove {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(-8px, -6px) rotate(5deg); }
}

/* Campos directos de contacto */
.contact-fields {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.contact-fields legend {
  padding: 0 7px;
  font-weight: 800;
}

.contact-fields small {
  color: var(--muted);
  line-height: 1.5;
}

/* Los enlaces sociales son navegación directa, no acciones de copiado */
.share .social-button {
  text-decoration: none;
}

.share .social-button.phone {
  color: #000000;
  background: #F49819;
  border-color: #F49819;
}

/* Administración de reportes */
.report-admin-list {
  display: grid;
  gap: 12px;
}

.report-admin-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.report-admin-item img,
.report-admin-placeholder {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 13px;
  background: #FFF2DE;
}

.report-admin-placeholder {
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}

.report-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.secondary-admin-button {
  padding: 8px 12px;
  color: #000000;
  background: #FFFFFF;
  border: 1px solid #000000;
  border-radius: 10px;
  cursor: pointer;
}

.admin-edit-form[hidden] {
  display: none;
}

@media (max-width: 650px) {
  .report-admin-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .report-admin-item img,
  .report-admin-placeholder {
    width: 58px;
    height: 58px;
  }

  .report-admin-actions {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .actions button[data-type="found"],
  .actions button[data-type="found"]::before,
  .actions button[data-type="found"]::after {
    animation: none !important;
  }
}
