/* HuellaViva — identidad visual v2 (inspirada en PetsZone, colores extraídos y adaptados 2026-08-15) */
:root {
  --coral:    #FFA028; /* antes #FF7043 — acento cálido tipo PetsZone */
  --turquesa: #00C9D5; /* antes #4ECDC4 — primario, más vibrante */
  --amarillo: #FFCC00; /* antes #FFD166 — usado en ratings/destacados en el original */
  --tinta:    #1D256B; /* antes #2D3142 — navy tipo PetsZone */
  --crema:    #E4F9FC; /* fondo general azul claro, como el de la plantilla de referencia */
  --blanco:   #FFFFFF;
  --gris:     #8D93A1;
  --radio:    16px;
  --sombra:   0 4px 14px rgba(29, 37, 107, 0.12);

  /* fondos pastel intercambiables — variedad visual en tarjetas, no significado fijo */
  --pastel-verde: #E1FFD5;
  --pastel-azul:  #D0E7FF;
  --pastel-rosa:  #FFD0E9;
  --pastel-cian:  #D2FAFF;

  --font-titulo: "Fredoka One", "Nunito", system-ui, sans-serif;
  --font-cuerpo: "Readex Pro", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: var(--font-cuerpo);
  background: var(--crema);
  color: var(--tinta);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3,
.topbar__brand strong,
.banner-match__texto strong,
.match__pregunta {
  font-family: var(--font-titulo);
  font-weight: 400; /* Fredoka One solo trae un peso */
}

/* Transición de color suave en enlaces/texto interactivo — igual al patrón del sitio de referencia (0.3s) */
a, .btn-texto, .tab, .chip { transition: color 0.3s linear, background-color 0.3s linear, border-color 0.3s linear; }

/* ── Ticker de mensajes destacados (franja superior con scroll continuo) ── */
.ticker {
  background: var(--turquesa);
  color: var(--blanco);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.4rem 0;
  font-size: 0.78rem;
  font-weight: 700;
}
.ticker__pista {
  display: inline-flex;
  gap: 3rem;
  padding-left: 100%;
  animation: ticker-desplazar 55s linear infinite;
}
.ticker__pista span { padding-right: 3rem; }
.ticker:hover .ticker__pista { animation-play-state: paused; }
@keyframes ticker-desplazar {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__pista { animation: none; padding-left: 1rem; }
}

/* ── Barra superior / header del sitio ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: var(--blanco);
  color: var(--tinta);
  box-shadow: var(--sombra);
  position: sticky;
  top: 0;
  z-index: 1200;
}
.topbar__brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.topbar__logo { font-size: 1.6rem; flex-shrink: 0; }
.topbar__brand strong { font-size: 1.1rem; font-weight: 900; display: block; line-height: 1.1; }
.topbar__brand small { color: var(--gris); font-size: 0.7rem; white-space: nowrap; }
.topbar__badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--turquesa);
  background: rgba(0, 201, 213, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  display: none; /* en móvil no cabe junto a Publicar + menú; vuelve a aparecer en escritorio */
  white-space: nowrap;
}

/* ── Menú del sitio (nav real, no tabbar de app) ── */
.btn-menu-movil {
  border: 0; background: none; cursor: pointer;
  font-size: 1.4rem; color: var(--tinta); line-height: 1;
  order: 1; flex-shrink: 0;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--blanco);
  flex-direction: column;
  box-shadow: var(--sombra);
  padding: 0.4rem 0;
  z-index: 1150;
}
.site-nav--abierta { display: flex; }
.site-nav .tab {
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1.2rem;
  border-top: none;
  font-size: 1rem;
}
.site-nav .tab span:last-child { font-size: 0.9rem; font-weight: 700; }
.site-nav .tab--activo { background: rgba(0, 201, 213, 0.12); border-top: none; }
.topbar__acciones { order: 2; }
.btn--nav { font-size: 0.85rem; padding: 0.55rem 0.7rem; white-space: nowrap; }
.btn--nav__texto { display: none; }

/* ── Vistas ── */
.vista { display: none; padding: 1rem; }
.vista--activa { display: block; }
#vista-mapa { padding: 0; position: relative; height: min(70vh, 560px); min-height: 360px; }

/* ── Hero (Inicio) ── */
.hero {
  background: linear-gradient(180deg, var(--crema), var(--blanco));
  padding: 2rem 0;
}
.hero__kicker {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--turquesa); margin-bottom: 0.5rem;
}
.hero__titulo {
  font-family: var(--font-titulo); font-weight: 400;
  font-size: 1.7rem; line-height: 1.25; color: var(--tinta);
  margin-bottom: 0.7rem;
}
.hero__subtitulo { font-size: 0.9rem; color: var(--gris); max-width: 480px; margin-bottom: 1.1rem; }
.hero__acciones { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.hero__visual { display: none; }

/* ── Secciones de ancho completo (rompen el padding de .vista, van borde a borde) ── */
.seccion-ancha {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.seccion-ancha__interior {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* ── Sección de reportes (banda de color con transición de "ola", inspirada en la plantilla) ── */
.seccion-reportes {
  background: var(--blanco);
  padding: 2.6rem 0 2.8rem;
}
.seccion-reportes__titulo { color: var(--tinta); font-weight: 900; margin-bottom: 0.9rem; }
.seccion-reportes .chip--activo { background: var(--tinta); border-color: var(--tinta); color: var(--blanco); }
.ola {
  display: block; width: 100%; height: 40px;
  position: absolute; left: 0; right: 0;
}
.ola path { fill: var(--blanco); }
.ola--arriba { top: -39px; }
.ola--verde path { fill: var(--pastel-verde); }

/* ── Franja de valores/beneficios ── */
.seccion-features {
  background: var(--pastel-verde);
  padding: 2.8rem 0 2rem;
  margin-bottom: -1rem; /* cancela el padding inferior de .vista para que toque el footer */
  position: relative;
}
.seccion-features__interior { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.feature { display: flex; gap: 0.6rem; align-items: flex-start; flex: 1 1 200px; }
.feature__icono { font-size: 1.6rem; line-height: 1; }
.feature h4 { font-size: 0.9rem; font-weight: 900; margin-bottom: 0.15rem; }
.feature p { font-size: 0.78rem; color: var(--tinta); opacity: 0.75; }

/* ── Iconos decorativos flotantes (inspirado en PetsZone) ── */
.decorativo-flotante {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.45;
  pointer-events: none;
  animation: flotar 7s ease-in-out infinite;
}
.decorativo-flotante--1 { top: 8%;  left: 3%;  animation-duration: 6.5s; }
.decorativo-flotante--2 { bottom: 10%; right: 5%; animation-duration: 5.5s; animation-delay: 1.2s; }
.decorativo-flotante--3 { top: 45%; right: 16%; font-size: 1.4rem; animation-duration: 8s; animation-delay: 2.4s; }

@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .decorativo-flotante { animation: none; }
}
@media (max-width: 680px) {
  .decorativo-flotante { display: none; }
}

/* ── Footer del sitio ── */
.site-footer {
  background: #141414;
  color: #F2F2F2;
  margin-top: auto;
  padding: 2rem 1rem 1rem;
}
.site-footer__top {
  display: flex; flex-wrap: wrap; gap: 2rem;
  max-width: 1160px; margin: 0 auto 1.5rem;
}
.site-footer .topbar__brand strong { color: var(--blanco); }
.site-footer__marca { flex: 2 1 240px; }
.site-footer__marca p { font-size: 0.8rem; opacity: 0.75; margin-top: 0.5rem; line-height: 1.5; }
.site-footer__col { flex: 1 1 140px; display: flex; flex-direction: column; gap: 0.35rem; }
.site-footer__col h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--turquesa); margin-bottom: 0.3rem;
}
.site-footer .enlace-footer {
  display: block;
  flex-direction: unset;
  background: none; border: 0; border-top: none; text-align: left; cursor: pointer;
  font-family: inherit; font-size: 0.85rem; color: #F2F2F2; opacity: 0.85;
  text-decoration: none; padding: 0.15rem 0;
}
.site-footer .enlace-footer:hover { opacity: 1; color: var(--turquesa); }
.site-footer .tab.tab--activo.enlace-footer { background: none; color: var(--turquesa); opacity: 1; }
.site-footer__bottom {
  max-width: 1160px; margin: 0 auto; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.75rem; opacity: 0.7; text-align: center;
}
.vista h2 { font-weight: 900; margin-bottom: 0.8rem; }
.vista h2 small { color: var(--gris); font-size: 0.8rem; }
.vista h3 { margin: 1.2rem 0 0.5rem; }

/* ── Mapa principal ── */
.mapa { position: absolute; inset: 0; }
.mapa__leyenda {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1000;
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 0.4rem 0.8rem;
  display: flex;
  gap: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.pin { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.pin--perdida { background: var(--coral); }
.pin--encontrada { background: var(--turquesa); }

/* Pines emoji en Leaflet */
.pin-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50% 50% 50% 6px;
  font-size: 1.15rem;
  box-shadow: var(--sombra);
  border: 3px solid var(--blanco);
}
.pin-emoji--perdida { background: var(--coral); }
.pin-emoji--encontrada { background: var(--turquesa); }

.popup-reporte { font-family: "Nunito", sans-serif; max-width: 220px; }
.popup-reporte img { width: 100%; border-radius: 10px; margin-bottom: 0.4rem; }
.popup-reporte h4 { margin-bottom: 0.15rem; }
.popup-reporte .etiqueta { font-size: 0.65rem; font-weight: 900; padding: 0.1rem 0.5rem; border-radius: 12px; display: inline-block; margin-bottom: 0.3rem; }
.etiqueta--perdida { background: #FFE1D6; color: #C43D12; }
.etiqueta--encontrada { background: #D9F6F3; color: #0F7A72; }
.etiqueta--sin-revisar { background: var(--amarillo); color: #7A5A00; }
.popup-reporte p { font-size: 0.8rem; }
.popup-reporte .btn-mini {
  margin-top: 0.4rem; display: inline-block; border: 0; cursor: pointer;
  background: var(--turquesa); color: var(--tinta); font-weight: 800;
  padding: 0.3rem 0.7rem; border-radius: 10px; font-size: 0.75rem;
}

/* ── Formulario ── */
.form { display: flex; flex-direction: column; gap: 0.9rem; max-width: 480px; margin: 0 auto; }
.form label { font-weight: 800; font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; }
.form label small { color: var(--gris); font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea, .form input[type="file"] {
  font-family: inherit; font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 2px solid #EAD9CC;
  border-radius: var(--radio);
  background: var(--blanco);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--turquesa); }
.form__tipo { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.chip-radio { flex: 1; min-width: 150px; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span {
  display: block; text-align: center;
  padding: 0.7rem 0.5rem;
  border: 2px solid #EAD9CC;
  border-radius: var(--radio);
  background: var(--blanco);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip-radio input:checked + span { border-color: var(--coral); background: #FFE1D6; }
.form__preview { max-width: 180px; border-radius: var(--radio); box-shadow: var(--sombra); }
.form__zona { font-size: 0.85rem; font-weight: 700; color: var(--gris); }
.form__zona--error { color: #C43D12; }
.sugerencias-direccion {
  list-style: none; margin: -0.5rem 0 0; padding: 0.3rem; border-radius: var(--radio);
  background: #fff; box-shadow: var(--sombra); max-height: 220px; overflow-y: auto;
}
.sugerencias-direccion li {
  padding: 0.5rem 0.6rem; border-radius: 10px; cursor: pointer; font-size: 0.85rem; font-weight: 600;
}
.sugerencias-direccion li:hover, .sugerencias-direccion li:focus { background: #FFE1D6; }
.form__nota { font-size: 0.75rem; color: var(--gris); text-align: center; }
.mapa-mini { height: 220px; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }

/* ── Botones ── */
.btn {
  font-family: inherit; font-weight: 500; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  border: 0; cursor: pointer;
  padding: 0.9rem 1.6rem;
  border-radius: 30px;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primario { background: var(--tinta); color: var(--blanco); }
.btn--primario:hover { background: var(--coral); color: var(--blanco); }
.btn--secundario { background: var(--blanco); color: var(--tinta); border: 2px solid var(--tinta); font-size: 0.85rem; padding: calc(0.6rem - 2px) calc(0.9rem - 2px); }
.btn--secundario:hover { background: var(--coral); color: var(--blanco); border-color: var(--coral); }
.fila-botones { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }

.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  margin-top: 0.9rem; padding: 0.7rem 1rem;
  background: #25D366; color: var(--blanco);
  font-family: inherit; font-weight: 700; font-size: 0.85rem;
  border-radius: var(--radio); text-decoration: none; text-align: center;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-whatsapp:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ── Contacto directo con el autor (Story 2.6) ── */
.contacto-autor { border-top: 1px dashed #EAD9CC; margin-top: 1rem; padding-top: 0.8rem; }
.contacto-autor .btn-whatsapp { margin-top: 0; }
.contacto-autor .nota { margin: 0.5rem 0; }
.contacto-autor .btn--secundario { width: 100%; margin-top: 0.4rem; }
.form__whatsapp-propio { margin: 0.4rem 0; }
.form__whatsapp-propio .nota { margin: 0.5rem 0; }

/* ── Alertas ── */
.card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  max-width: 520px;
}
.rango { font-size: 0.9rem; font-weight: 800; display: flex; flex-direction: column; gap: 0.3rem; }
.rango input { accent-color: var(--coral); }
.nota { font-size: 0.8rem; color: var(--gris); }
.lista-alertas { list-style: none; max-width: 520px; display: flex; flex-direction: column; gap: 0.5rem; }
.lista-alertas li {
  background: var(--blanco); border-left: 5px solid var(--coral);
  border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.85rem;
  box-shadow: var(--sombra);
}

/* ── Páginas legales (Story 1.5) ── */
.legal-contenido { max-width: 720px; margin: 0 auto; text-align: left; }
.legal-fecha { margin-bottom: 0.6rem; }
.legal-contenido h3 { margin-top: 1.4rem; }
.legal-contenido ul { margin: 0.4rem 0 0.8rem 1.2rem; padding: 0; }
.legal-contenido li { margin-bottom: 0.4rem; }
.legal-aviso {
  background: var(--blanco); border-left: 5px solid var(--amarillo);
  border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.85rem;
  box-shadow: var(--sombra); margin-bottom: 1.4rem;
}
.tab.enlace-legal-inline {
  display: inline; padding: 0; border-top: 0;
  font-size: inherit; font-weight: 800; color: var(--coral); text-decoration: underline;
}

/* ── Moderación ── */
.mod-stats { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mod-stats span {
  background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra);
  padding: 0.5rem 0.9rem; font-size: 0.8rem; font-weight: 800;
}
.cola { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; max-width: 560px; }
.cola li {
  background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra);
  padding: 0.8rem; display: flex; gap: 0.8rem; align-items: flex-start;
}
.cola img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.cola .cuerpo { flex: 1; font-size: 0.85rem; }
.cola .acciones { display: flex; flex-direction: column; gap: 0.4rem; }
.cola .acciones button {
  border: 0; cursor: pointer; font-family: inherit; font-weight: 800;
  border-radius: 10px; padding: 0.35rem 0.7rem; font-size: 0.75rem;
}
.btn-aprobar { background: var(--turquesa); }
.btn-rechazar { background: #FFD6D6; color: #B00020; }

/* ── Enlaces de navegación (usados en el nav del header y en el footer) ── */
.tab {
  border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 1.2rem;
  padding: 0.5rem 0 0.6rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  color: var(--tinta);
  border-top: 3px solid transparent;
}
.tab span { font-size: 0.65rem; font-weight: 800; }
.tab--activo { color: var(--turquesa); border-top-color: var(--turquesa); }

/* ── v2: Inicio / feed estilo marketplace ── */
.filtros-feed { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  border: 2px solid #EAD9CC; background: var(--blanco);
  border-radius: 20px; padding: 0.35rem 0.85rem;
  font-family: inherit; font-weight: 800; font-size: 0.8rem;
  cursor: pointer; color: var(--tinta);
  transition: all 0.15s ease;
}
.chip--activo { background: var(--turquesa); border-color: var(--turquesa); color: var(--blanco); }

/* Categorías (Perdidas/Encontradas/En adopción) como tarjetas, estilo "Shop by Category" de la plantilla */
.chips--categorias { gap: 1.1rem; }
.chips--categorias .chip {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  border: 0; background: none; padding: 0;
}
.chips--categorias .chip__icono {
  width: 78px; height: 78px; border-radius: 20px;
  background: var(--blanco); display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.15s ease;
}
.chips--categorias .chip:hover .chip__icono { transform: translateY(-3px); }
.chips--categorias .chip__nombre { font-size: 0.78rem; font-weight: 900; color: var(--blanco); }
.chips--categorias .chip--activo { background: none; }
.chips--categorias .chip--activo .chip__icono { box-shadow: 0 0 0 3px var(--tinta), 0 6px 18px rgba(0,0,0,0.12); }
.filtros-feed select {
  font-family: inherit; font-size: 0.9rem; font-weight: 700;
  padding: 0.5rem 0.75rem;
  border: 2px solid #EAD9CC; border-radius: var(--radio);
  background: var(--blanco); max-width: 280px;
}

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.1rem;
}
/* Tarjetas blancas con foto + ícono de favorito, estilo "Shop by Category" de la plantilla */
.tarjeta {
  background: var(--blanco);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.tarjeta__foto { position: relative; aspect-ratio: 4/3; background: var(--crema); }
.tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tarjeta__foto .etiqueta { position: absolute; top: 8px; left: 8px; }
.tarjeta__fav {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blanco); box-shadow: var(--sombra);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: var(--tinta);
}
.tarjeta__cuerpo { padding: 0.7rem 0.75rem 0.85rem; }
.tarjeta__cuerpo h3 { font-size: 0.95rem; font-weight: 900; margin-bottom: 0.15rem; }
.tarjeta__meta { font-size: 0.72rem; color: var(--gris); font-weight: 700; }

.etiqueta--adopcion { background: #D9F0E2; color: #1B7A45; }
.pin--adopcion { background: #58C98B; }
.pin-emoji--adopcion { background: #58C98B; }

/* ── v2: Modal detalle ── */
.modal {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(45, 49, 66, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
/* El display:flex anula el atributo hidden — forzar cierre real del modal */
.modal[hidden] { display: none !important; }
.modal__caja {
  background: var(--blanco);
  border-radius: var(--radio);
  max-width: 420px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 1rem;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.modal__cerrar {
  position: absolute; top: 10px; right: 10px;
  border: 0; background: var(--crema); border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-weight: 900;
}
.modal__foto { width: 100%; border-radius: 12px; margin-bottom: 0.6rem; }
.modal__caja h3 { margin: 0.4rem 0 0.2rem; font-weight: 900; }
.modal__caja p { font-size: 0.88rem; margin-bottom: 0.4rem; }
.modal__acciones { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }

/* ── v2: Mi mascota ── */
.mimascota-layout { max-width: 640px; margin: 0 auto; text-align: left; }
.mimascota-kicker {
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em;
  color: var(--gris); margin-bottom: 0.3rem;
}
.perfil { flex-direction: row; align-items: center; gap: 0.9rem; max-width: none; }
.perfil__emoji {
  font-size: 1.7rem; flex-shrink: 0; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--crema); border-radius: 50%;
}
.perfil h3 { font-weight: 900; }
.mimascota-layout .card,
.mimascota-layout .lista-alertas { max-width: none; }
.form--compacta { gap: 0.6rem; margin-bottom: 0.8rem; }
.form__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.form__fila label { min-width: 0; }
.btn-texto {
  border: 0; background: none; cursor: pointer;
  color: var(--gris); font-size: 0.9rem; margin-left: auto;
}
.topbar__acciones { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.topbar__mod {
  border: 0; cursor: pointer;
  background: rgba(0, 201, 213, 0.12);
  border-radius: 50%; width: 34px; height: 34px; font-size: 1rem;
  position: relative;
}
/* Cuenta con sesión iniciada — mismo ícono, fondo sólido en vez del tinte tenue */
#btn-cuenta.topbar__mod--activo { background: var(--turquesa); }
.mod-contador {
  position: absolute; top: -5px; right: -5px;
  background: #E63946; color: #fff;
  font-size: 0.65rem; font-weight: 900; font-family: "Nunito", sans-serif;
  border-radius: 50%; min-width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--coral);
}
.mod-contador[hidden] { display: none; }
/* .tab--publicar ya no lleva acento propio — el menú queda uniforme, igual que la plantilla */

/* ── Cuenta / login social (Story 1.2) — el topbar/ticker/footer se mantienen en todas las páginas (misma estructura del sitio) ── */

/* Mientras está activa, la vista ocupa el alto disponible entre el topbar y el footer (body ya es flex-column 100vh) */
#vista-login.vista--activa { display: flex; flex: 1; padding: 0; min-height: 0; }

.login-full { display: flex; flex-direction: column; width: 100%; }
.login-full__panel { flex: 1 1 auto; }
.login-full__panel--form {
  background: var(--blanco);
  display: flex; flex-direction: column;
  padding: 1.5rem 1.5rem 2rem;
}
.login-full__contenido {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 380px; margin: 0 auto; text-align: center;
}
.login-full__panel--visual {
  display: none; position: relative; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--amarillo), var(--pastel-rosa));
}
.login-card__etiqueta { font-size: 0.85rem; font-weight: 700; color: var(--gris); margin: 1.6rem 0 0; }
#login-estado-sesion { text-align: center; }
#login-estado-sesion .btn { margin-top: 1rem; }
.login-card__botones { display: flex; justify-content: center; gap: 1.4rem; margin: 0.6rem 0 1rem; }
.login-card__social {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  text-decoration: none; color: var(--tinta); font-size: 0.8rem; font-weight: 700;
}
.login-card__social-icono {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  box-shadow: var(--sombra); border: 2px solid var(--blanco);
  transition: transform 0.15s ease;
}
.login-card__social:hover .login-card__social-icono { transform: translateY(-2px); }
.login-card__social-icono--google { background: var(--blanco); }
.login-card__social-icono--microsoft { background: var(--blanco); }

@media (max-width: 480px) {
  .form__fila { grid-template-columns: 1fr; }
}

/* ── Contáctenos ── */
.contacto-banner { background: linear-gradient(180deg, var(--crema), var(--blanco)); padding: 1.6rem 0 2rem; }
.contacto-banner__interior { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.contacto-banner__migas { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; color: var(--turquesa); text-transform: uppercase; margin-bottom: 0.4rem; }
.contacto-banner__titulo { font-size: 1.6rem; }
.contacto-banner__visual { display: none; }
.contacto-faq, .contacto-form-seccion { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.contacto-faq h3, .contacto-form-seccion h3 { margin-bottom: 0.6rem; }
.contacto-form-seccion > .nota { margin-bottom: 1.2rem; }
.faq-lista { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.2rem; text-align: left; }
.faq-item {
  background: var(--blanco); border-radius: var(--radio);
  box-shadow: var(--sombra); padding: 0.9rem 1.1rem;
}
.faq-item summary {
  cursor: pointer; font-weight: 800; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 0.8rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--turquesa); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 0.7rem; color: var(--gris); font-size: 0.9rem; line-height: 1.5; }
.contacto-form-seccion .form { text-align: left; }

/* ── v3: Match de adopción (estilo Petfinder) ── */
.banner-match {
  display: block;
  background: linear-gradient(120deg, var(--amarillo), #FFE9A8);
  border: 0; padding: 1rem 0 3.2rem;
  font-family: inherit; text-align: left;
  cursor: pointer; transition: transform 0.15s ease;
}
.banner-match:hover { transform: translateY(-1px); }
.banner-match__interior { display: flex; align-items: center; gap: 0.8rem; }
.banner-match__emoji { font-size: 1.8rem; }
.banner-match__texto { flex: 1; font-size: 0.85rem; color: var(--tinta); }
.banner-match__texto strong { font-size: 0.95rem; font-weight: 900; }
.banner-match__flecha { font-size: 1.3rem; font-weight: 900; color: var(--tinta); }

.nch-progreso {
  height: 6px; background: rgba(45,49,66,0.1);
  border-radius: 3px; overflow: hidden; margin-bottom: 0.8rem;
}
.nch-progreso div { height: 100%; width: 0; background: var(--coral); transition: width 0.3s ease; }
.nch-paso {
  font-size: 0.75rem; color: var(--gris); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem;
}
.match__pregunta { font-weight: 900; font-size: 1.2rem; margin-bottom: 0.8rem; }
.match__opciones { display: flex; flex-direction: column; gap: 0.6rem; }
.match__opcion {
  text-align: left; font-family: inherit; font-size: 1rem; font-weight: 700;
  padding: 0.8rem 1rem; cursor: pointer;
  background: var(--crema); border: 2px solid #EAD9CC; border-radius: var(--radio);
  transition: all 0.15s ease;
}
.match__opcion:hover { border-color: var(--coral); background: #FFE1D6; transform: translateY(-2px); }

.match-banner {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(255, 209, 102, 0.95);
  color: #7A5A00; font-size: 0.72rem; font-weight: 900;
  padding: 0.25rem 0.5rem; letter-spacing: 0.03em;
}
.match-banner--medio { background: rgba(255, 255, 255, 0.92); color: var(--gris); }
.match-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }
.match-tag {
  font-size: 0.62rem; font-weight: 800;
  background: #D9F0E2; color: #1B7A45;
  border-radius: 10px; padding: 0.12rem 0.45rem;
}
.btn-fav {
  position: absolute; top: 8px; right: 8px;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,0.85); border-radius: 50%;
  width: 32px; height: 32px; font-size: 0.95rem;
  box-shadow: var(--sombra);
}
.btn-fav--activo { background: #FFE1D6; }

/* ── Aparición suave al hacer scroll (equivalente propio, sin depender de Elementor) ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal--visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Escritorio: header/nav horizontal tipo sitio web + contenido centrado (mapa a ancho completo) ── */
@media (min-width: 768px) {
  .topbar { padding: 0.8rem 2rem; }
  .topbar__brand strong { font-size: 1.3rem; }

  /* El menú siempre visible e inline en el header — sin hamburguesa, sin dropdown */
  .btn-menu-movil { display: none; }
  .topbar__badge { display: inline-block; }
  .btn--nav { padding: 0.55rem 0.9rem; }
  .btn--nav__texto { display: inline; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    box-shadow: none;
    padding: 0;
    gap: 0.3rem;
  }
  .site-nav .tab {
    flex-direction: row;
    width: auto;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border-top: none;
    font-size: 0.95rem;
  }
  .site-nav .tab__icono { display: none; }
  .site-nav .tab span { font-size: 0.85rem; }
  .site-nav .tab:hover { color: var(--turquesa); }
  .site-nav .tab--activo { background: rgba(0, 201, 213, 0.12); color: var(--turquesa); }
  .site-nav .tab--activo:hover { color: var(--turquesa); }

  /* Hero de dos columnas en pantallas anchas: texto + visual, no un bloque centrado angosto */
  .hero { padding: 3.5rem 0; }
  .hero__interior { display: flex; align-items: center; gap: 2.5rem; }
  .hero__texto { flex: 1 1 55%; }
  .hero__titulo { font-size: 2.4rem; }
  .hero__subtitulo { font-size: 1rem; }
  .hero__visual {
    display: flex; align-items: center; justify-content: center;
    flex: 1 1 40%; position: relative; height: 220px;
  }
  .hero__visual-emoji {
    font-size: 4.5rem; width: 140px; height: 140px;
    display: flex; align-items: center; justify-content: center;
    background: var(--blanco); border-radius: 50%;
    box-shadow: var(--sombra); position: absolute;
  }
  .hero__visual-emoji--2 { font-size: 3rem; width: 100px; height: 100px; top: -10px; right: 30px; background: var(--pastel-rosa); }
  .hero__visual-emoji--3 { font-size: 2.2rem; width: 74px; height: 74px; bottom: -6px; left: 20px; background: var(--pastel-azul); }

  /* Login a pantalla completa en pantallas anchas: dos paneles pegados, sin gap ni bordes — como la referencia */
  .login-full { flex-direction: row; }
  .login-full__panel { flex: 1 1 50%; }
  .login-full__panel--form { justify-content: center; padding: 2rem 3rem; }
  .login-full__panel--visual { display: flex; }
  .login-visual__emoji {
    font-size: 4rem; width: 130px; height: 130px;
    display: flex; align-items: center; justify-content: center;
    background: var(--blanco); border-radius: 50%;
    box-shadow: var(--sombra); position: absolute;
  }
  .login-visual__emoji--2 { font-size: 2.8rem; width: 90px; height: 90px; top: 18%; right: 20%; background: var(--pastel-azul); }
  .login-visual__emoji--3 { font-size: 2rem; width: 64px; height: 64px; bottom: 20%; left: 22%; background: var(--pastel-verde); }

  /* Contenido a ancho de sitio web real — el mapa va a ancho completo, las secciones de color van borde a borde */
  .vista { padding: 1.5rem 2rem; }
  .vista:not(#vista-mapa):not(#vista-login) > *:not(.seccion-ancha):not(.form):not(.cola):not(.mod-stats):not(.mimascota-layout) { max-width: 1160px; margin-left: auto; margin-right: auto; }
  /* La cola de moderación y sus stats no deben ir a todo el ancho — quedan
     desbalanceadas con mucho espacio vacío junto a los botones de acción. */
  .cola, .mod-stats { max-width: 900px; margin-left: auto; margin-right: auto; }
  .vista:not(#vista-mapa) .feed { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .seccion-features { margin-bottom: -1.5rem; }
  #vista-mapa { padding: 0; }

  /* En escritorio los botones de formulario no deben estirarse a todo el ancho
     (patrón de app móvil) — en la web un botón se ve como botón, con su tamaño
     natural. .form es flex-column sin align-items, así que sus hijos (botones
     incluidos) se estiran por defecto (stretch); esto lo corrige solo en
     desktop, el mobile se deja igual (ahí sí es un patrón normal). */
  .form > .btn, .form > button[type="submit"],
  #form-recordatorio > button[type="submit"] { align-self: flex-start; }

  /* Publicar: formulario + panel de confianza, dos columnas en escritorio */
  .publicar-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.2rem; align-items: start; max-width: 1160px; margin: 0 auto; }
  .publicar-layout .form { max-width: none; margin: 0; }
  .publicar-lateral { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 90px; }
  .publicar-lateral__tip { display: flex; gap: 0.7rem; align-items: flex-start; background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); padding: 1rem 1.1rem; }
  .publicar-lateral__tip span { font-size: 1.1rem; }
  .publicar-lateral__tip p { margin: 0; font-size: 0.85rem; color: var(--tinta); line-height: 1.4; }

  /* Alertas: card de zona + historial, dos columnas en escritorio */
  .alertas-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.2rem; align-items: start; max-width: 1160px; margin: 0 auto; }
  .alertas-historial h3 { margin-top: 0; }

  /* Contacto: banner con visual decorativo + FAQ/formulario en dos columnas */
  .contacto-banner__titulo { font-size: 2.2rem; }
  .contacto-banner__visual { display: flex; flex: 0 0 170px; height: 140px; position: relative; }
  .contacto-banner__emoji { width: 120px; height: 120px; border-radius: 50%; background: var(--blanco); box-shadow: var(--sombra); display: flex; align-items: center; justify-content: center; font-size: 3.2rem; position: absolute; right: 0; top: 0; }
  .contacto-banner__emoji--2 { width: 68px; height: 68px; font-size: 1.9rem; background: var(--pastel-rosa); right: 110px; bottom: 0; top: auto; }
  .contacto-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; max-width: 1160px; margin: 0 auto; }
  .contacto-faq, .contacto-form-seccion { max-width: none; margin: 0; text-align: left; }
  .faq-lista { text-align: left; }

}

/* ── Tienda: Coming Soon (decisión de Angy — sin catálogo falso) ── */
.tienda-comingsoon {
  position: relative;
  min-height: 60vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 3rem 1.2rem;
  overflow: hidden;
}
.tienda-comingsoon__icono {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--blanco); box-shadow: var(--sombra);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; margin-bottom: 1.2rem;
}
.tienda-comingsoon h2 { font-size: 1.5rem; margin: 0.3rem 0 0.7rem; max-width: 20ch; }
.tienda-comingsoon__texto { color: var(--gris); font-size: 0.92rem; max-width: 440px; margin: 0 0 1.4rem; line-height: 1.6; }
@media (min-width: 768px) {
  .tienda-comingsoon__icono { width: 130px; height: 130px; font-size: 3.4rem; }
  .tienda-comingsoon h2 { font-size: 2rem; }
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--tinta); color: var(--blanco);
  padding: 0.7rem 1.2rem; border-radius: 30px;
  font-size: 0.85rem; font-weight: 700;
  box-shadow: var(--sombra); z-index: 2000;
  max-width: 90vw; text-align: center;
}
