/* ============================================================
   ENCONTR@S — Reencontrémonos
   Proyecto Ciencia y Tecnología 2026
   ============================================================ */

:root {
  /* Paleta */
  --blue-900: #0b2447;
  --blue-800: #112b5c;
  --blue-700: #1e3a8a;
  --blue-600: #2747a8;
  --blue-500: #3b5bdb;
  --blue-100: #e8eeff;
  --blue-50:  #f3f6ff;

  --yellow-500: #facc15;
  --yellow-400: #fbbf24;
  --yellow-300: #fde68a;
  --yellow-100: #fef9c3;

  --green-500: #22c55e;
  --red-500:   #ef4444;

  --ink:     #0f1730;
  --ink-2:   #36405d;
  --ink-3:   #6b7693;
  --line:    #e5eaf3;
  --bg:      #f7f8fc;
  --bg-2:    #ffffff;

  /* Tipografía */
  --font-display: "Poppins", system-ui, sans-serif;
  --font-text:    "Inter", system-ui, sans-serif;

  /* Misc */
  --radius:   18px;
  --radius-l: 28px;
  --radius-s: 12px;
  --shadow-1: 0 4px 16px rgba(11,36,71,.06);
  --shadow-2: 0 18px 50px rgba(11,36,71,.12);
  --shadow-3: 0 30px 90px rgba(11,36,71,.18);
  --ease-out:    cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  --nav-h: 76px;
  --container: 1240px;
}

* { box-sizing: border-box; }
*::selection { background: var(--yellow-400); color: var(--blue-900); }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  /* Safe area iPhone (notch) */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  min-height: 100vh;
  min-height: 100dvh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: rgba(0,0,0,0); }
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-appearance: none;
  appearance: none;
}
input, textarea, select {
  font: inherit;
  color: inherit;
  font-size: 16px; /* evita zoom en iOS Safari al hacer focus */
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
}
input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-700);
  cursor: pointer;
  flex-shrink: 0;
}
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px !important;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ============================================================
   SPLASH
   ============================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(120% 90% at 30% 0%, #1f3fa4 0%, var(--blue-900) 60%);
  display: grid;
  place-content: center;
  gap: 24px;
  color: var(--yellow-400);
  animation: splashSafety .01s 4.5s forwards;
}
.splash-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 40px);
  letter-spacing: -.02em;
}
.splash-logo--fallback { flex-direction: column; gap: 24px; }
.splash-logo-img {
  max-width: min(440px, 80vw);
  height: auto;
  display: block;
  animation: pawPulse 1.6s ease-in-out infinite;
}
.splash-logo-svg {
  width: min(220px, 60vw);
  height: auto;
  display: block;
  animation: pawPulse 1.6s ease-in-out infinite;
}
.splash-paw {
  width: 80px; height: 80px;
  animation: pawPulse 1.2s ease-in-out infinite;
}
.splash-name {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .005em;
  display: inline-flex;
  align-items: baseline;
}
.splash-name > span { color: inherit; }
.splash-name .brand-text-accent { color: var(--yellow-400); }
.splash-bar {
  width: 220px; height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 99px; overflow: hidden;
  margin-inline: auto;
}
.splash-bar span {
  display: block; height: 100%;
  background: var(--yellow-400);
  width: 30%;
  animation: splashLoad 1.6s ease-in-out infinite;
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--ease-out), clip-path .6s var(--ease-out);
  clip-path: inset(0 0 100% 0);
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}
@keyframes splashLoad {
  0%   { transform: translateX(-100%); width: 30%; }
  50%  { transform: translateX(80%);  width: 60%; }
  100% { transform: translateX(250%); width: 30%; }
}
@keyframes pawPulse {
  0%, 100% { transform: scale(1) rotate(-4deg); }
  50%      { transform: scale(1.12) rotate(4deg); }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(16px, 3vw, 40px);
  padding-left: max(clamp(16px, 3vw, 40px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 3vw, 40px), env(safe-area-inset-right));
  background: rgba(11, 36, 71, .92);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .4s var(--ease-out), backdrop-filter .4s, box-shadow .4s;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.header.is-scrolled {
  background: rgba(11, 36, 71, .78);
  box-shadow: 0 8px 30px rgba(11, 36, 71, .35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: #fff;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #fff;
  color: var(--blue-900);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .35s var(--ease-spring), box-shadow .3s;
  padding: 2px;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark svg,
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}
.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 6px 22px rgba(250, 204, 21, .4);
}
.brand .at { color: var(--yellow-400); }
.brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .002em;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  color: #fff;
}
.brand-text > span { color: inherit; }
.brand-text-accent { color: var(--yellow-400) !important; }

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(4px, 1.2vw, 18px);
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 15px;
  color: rgba(255,255,255,.82);
  border-radius: 999px;
  transition: color .25s var(--ease-out), background .25s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.is-active {
  color: var(--blue-900);
  background: var(--yellow-400);
}

.header-cta {
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
}

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block; width: 20px; height: 2px;
  background: #fff;
  border-radius: 99px;
  transition: transform .3s var(--ease-out), opacity .25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 44px; /* touch target iOS/Android */
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .25s var(--ease-spring),
    box-shadow .3s var(--ease-out),
    background .25s,
    color .25s;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  line-height: 1.2;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn svg { flex-shrink: 0; }
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: initial; }
}

.btn-yellow {
  background: var(--yellow-400);
  color: var(--blue-900);
  box-shadow: 0 10px 28px rgba(250, 204, 21, .35);
}
.btn-yellow:hover {
  background: var(--yellow-500);
  box-shadow: 0 16px 38px rgba(250, 204, 21, .5);
}
.btn-blue {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 10px 28px rgba(30, 58, 138, .35);
}
.btn-blue:hover {
  background: var(--blue-800);
  box-shadow: 0 16px 38px rgba(30, 58, 138, .5);
}
.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border: 2px solid var(--blue-700);
}
.btn-outline:hover {
  background: var(--blue-700);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--blue-700); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .35);
}
.btn-whatsapp:hover {
  background: #1da851;
  box-shadow: 0 16px 38px rgba(37, 211, 102, .5);
  color: #fff;
}

.btn-sm  { padding: 10px 16px; font-size: 12px; }
.btn-lg  { padding: 18px 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background:
    radial-gradient(120% 80% at 90% -10%, rgba(250, 204, 21, .18) 0%, transparent 60%),
    linear-gradient(180deg, #fdfdff 0%, #f1f4ff 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.hero-blob--blue {
  width: 480px; height: 480px;
  left: -120px; top: -100px;
  background: radial-gradient(closest-side, #c7d3ff, transparent 70%);
  animation: blobFloat 18s ease-in-out infinite alternate;
}
.hero-blob--yellow {
  width: 420px; height: 420px;
  right: -100px; bottom: -80px;
  background: radial-gradient(closest-side, #fff1a8, transparent 70%);
  animation: blobFloat 22s ease-in-out infinite alternate-reverse;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 138, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 138, .045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 30px) scale(1.1); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .9fr);
  gap: 60px;
  align-items: center;
}

.hero-copy { max-width: 640px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(30, 58, 138, .08);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  animation: fadeUp .8s var(--ease-out) both;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow-400);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, .25);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(250, 204, 21, .25); }
  50%      { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(250, 204, 21, .15); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 6.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -.035em;
  color: var(--blue-900);
  margin: 0 0 24px;
  text-wrap: balance;
  animation: fadeUp .9s .1s var(--ease-out) both;
}
.hero-heart {
  display: inline-block;
  width: .8em; height: .8em;
  vertical-align: -0.05em;
  margin-left: 8px;
  animation: heartBeat 1.6s ease-in-out infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  20%, 60% { transform: scale(1.18); }
  40%, 80% { transform: scale(.96); }
}

.hero-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 0 28px;
  animation: fadeUp .9s .2s var(--ease-out) both;
}

.hero-search {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  max-width: 520px;
  margin-bottom: 22px;
  animation: fadeUp .9s .3s var(--ease-out) both;
  transition: box-shadow .3s, border-color .3s;
}
.hero-search-btn {
  min-height: 0 !important;
  padding: 0 18px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  flex-shrink: 0;
}
.hero-search:focus-within {
  border-color: var(--blue-700);
  box-shadow: 0 10px 30px rgba(30, 58, 138, .15);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 8px;
  background: transparent;
  font-size: 16px;
}
.hero-search-icon {
  display: inline-grid; place-content: center;
  width: 40px; height: 40px;
  color: var(--ink-3);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  animation: fadeUp .9s .4s var(--ease-out) both;
}

.hero-trust {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  list-style: none;
  padding: 0; margin: 0;
  animation: fadeUp .9s .5s var(--ease-out) both;
}
.hero-trust li {
  display: flex;
  flex-direction: column;
}
.hero-trust strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--blue-900);
  line-height: 1;
}
.hero-trust span {
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
}

/* Caso destacado */
.hero-featured {
  position: relative;
  animation: fadeUp 1s .3s var(--ease-out) both;
}
.featured-card {
  background: #fff;
  border-radius: var(--radius-l);
  padding: 22px;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
  position: relative;
  transition: transform .4s var(--ease-spring), box-shadow .4s;
}
.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3);
}
.featured-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--yellow-400), transparent 45%, var(--blue-500) 100%);
  z-index: -1;
  opacity: .35;
  filter: blur(14px);
}
.featured-label {
  display: inline-block;
  padding: 6px 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.featured-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  background: var(--blue-50);
}
.featured-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(120%) brightness(.65);
  transform: scale(1.25);
  z-index: 0;
}
.featured-photo > img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 1s var(--ease-out);
}
.featured-card:hover .featured-photo > img { transform: scale(1.04); }
.featured-type {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: rgba(11, 36, 71, .85);
  color: var(--yellow-400);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
  z-index: 3;
}
.featured-name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--blue-900);
}
.featured-name .paw { font-size: 18px; vertical-align: middle; }
.featured-meta {
  margin: 0 0 8px;
  color: var(--ink-3);
  font-size: 13px;
}
.featured-line {
  margin: 4px 0;
  font-size: 13px;
  color: var(--ink-2);
}
.featured-tag {
  font-weight: 600;
  color: var(--ink);
}
.featured-card .btn { margin-top: 16px; }

/* Marquee hero */
.hero-marquee {
  margin-top: 60px;
  background: var(--blue-900);
  color: var(--yellow-400);
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.05);
  position: relative;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeMove 40s linear infinite;
}
.marquee-track span { white-space: nowrap; padding-right: 30px; }
@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease-spring), box-shadow .35s, border-color .35s;
}
.stat:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: var(--yellow-400);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  color: var(--blue-700);
  line-height: 1;
  display: block;
  letter-spacing: -.02em;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  font-weight: 600;
}

/* ============================================================
   SECTION HEAD (común)
   ============================================================ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--blue-900);
  margin: 0 0 14px;
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  color: var(--blue-700);
  position: relative;
  white-space: nowrap;
}
.section-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: .25em;
  background: var(--yellow-400);
  z-index: -1;
  border-radius: 4px;
}
.section-lead {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 auto;
  max-width: 600px;
}

/* ============================================================
   HOW STEPS
   ============================================================ */
.how {
  padding: 120px 0 100px;
  background: #fff;
}
.how-steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
.how-step {
  position: relative;
  padding: 30px 22px;
  background: var(--blue-50);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease-spring), background .3s, border-color .3s;
}
.how-step:hover {
  transform: translateY(-6px);
  background: #fff;
  border-color: var(--yellow-400);
  box-shadow: var(--shadow-2);
}
.how-num {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: rgba(30, 58, 138, .15);
  letter-spacing: -.03em;
}
.how-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-700);
  color: #fff;
  display: grid; place-content: center;
  margin-bottom: 18px;
  transition: background .3s, transform .35s var(--ease-spring);
}
.how-step:hover .how-icon {
  background: var(--yellow-400);
  color: var(--blue-900);
  transform: rotate(-6deg) scale(1.08);
}
.how-icon svg { width: 26px; height: 26px; }
.how-step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--blue-900);
}
.how-step p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ============================================================
   REPORTAR
   ============================================================ */
.report {
  padding: 120px 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, #eef2ff 100%);
}
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}
.report-form {
  background: #fff;
  border-radius: var(--radius-l);
  padding: 36px;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
}

.field-group { border: 0; padding: 0; margin: 0 0 24px; }
.field-legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.radio-card {
  position: relative;
  cursor: pointer;
}
.radio-card input { position: absolute; opacity: 0; inset: 0; }
.radio-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--bg);
  transition: all .25s var(--ease-out);
}
.radio-card-body svg {
  width: 28px; height: 28px;
  margin-bottom: 6px;
  color: var(--ink-3);
  transition: color .25s;
}
.radio-card-body strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
}
.radio-card-body small { color: var(--ink-3); font-size: 13px; }
.radio-card input:checked + .radio-card-body {
  border-color: var(--blue-700);
  background: var(--blue-50);
  box-shadow: 0 8px 24px rgba(30, 58, 138, .12);
}
.radio-card input:checked + .radio-card-body svg { color: var(--blue-700); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.field {
  display: block;
  margin-bottom: 14px;
}
.field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field > span em { color: var(--red-500); font-style: normal; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 14px;
  min-height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-size: 16px; /* importante: 16px evita zoom en iOS al hacer focus */
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: 0;
}
.field textarea { min-height: 100px; padding-top: 12px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue-700);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, .12);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--red-500);
}
.field textarea { resize: vertical; min-height: 100px; }

.dropzone {
  position: relative;
  margin: 8px 0 18px;
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 2px dashed #c5cdde;
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: all .25s;
}
.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--blue-700);
  background: var(--blue-50);
}
.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
}
.dropzone-empty svg { color: var(--blue-700); }
.dropzone-empty strong { color: var(--ink); font-weight: 700; }
.dropzone-empty small { font-size: 13px; }
.dropzone-preview {
  position: relative;
  display: inline-block;
  max-width: 220px;
}
.dropzone-preview img {
  width: 100%;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-1);
}
.dropzone-remove {
  position: absolute;
  top: -10px; right: -10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--red-500);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: grid; place-content: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, .35);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  margin: 6px 0 18px;
  cursor: pointer;
}
.checkbox input { margin-top: 3px; accent-color: var(--blue-700); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.form-success {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--yellow-100);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--yellow-400);
  animation: fadeUp .5s var(--ease-out);
}
.form-success strong { color: var(--blue-900); font-family: var(--font-display); font-size: 16px; }
.form-success p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.form-success [data-success-code] { color: var(--blue-700); font-weight: 700; }

.report-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.side-card {
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.side-card h3 {
  font-family: var(--font-display);
  margin: 0 0 14px;
  font-size: 18px;
}
.side-card--blue {
  background: var(--blue-900);
  color: #fff;
}
.side-card--blue h3 { color: var(--yellow-400); }
.side-card--blue ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.side-card--blue li {
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.side-card--blue li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--yellow-400);
  font-weight: 800;
}
.side-card--yellow {
  background: linear-gradient(140deg, var(--yellow-400), var(--yellow-500));
  color: var(--blue-900);
}
.side-card--yellow .phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin: 12px 0 8px;
  color: var(--blue-900);
}
.side-card--yellow small {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

/* ============================================================
   CASES (DESAPARECIDOS)
   ============================================================ */
.cases {
  padding: 120px 0;
  background: #fff;
}
.cases-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.cases-search {
  margin-bottom: 0;
  flex: 1 1 320px;
  max-width: 480px;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  min-width: 320px;
  flex: 1 1 320px;
  max-width: 460px;
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus-within {
  border-color: var(--blue-700);
  background: #fff;
  box-shadow: 0 6px 22px rgba(30, 58, 138, .12);
}
.search-input svg { color: var(--ink-3); flex-shrink: 0; }
.search-input input {
  border: 0; outline: 0; background: transparent;
  width: 100%; padding: 10px 0;
  font-size: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .25s var(--ease-out);
}
.chip:hover {
  border-color: var(--blue-700);
  color: var(--blue-700);
}
.chip.is-active {
  background: var(--blue-700);
  color: #fff;
  border-color: var(--blue-700);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.case-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s var(--ease-spring), box-shadow .35s, border-color .35s;
  display: flex;
  flex-direction: column;
}
.case-card.is-new {
  border-color: var(--yellow-400);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, .35), var(--shadow-2);
  animation: caseNewPulse 1.6s ease-out;
}
.case-new {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--yellow-400);
  color: var(--blue-900);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(250, 204, 21, .5);
  animation: caseNewBadge 1.4s ease-in-out infinite;
}
.case-card.is-new .case-code { top: 36px; }
@keyframes caseNewPulse {
  0%   { box-shadow: 0 0 0 0 rgba(250, 204, 21, .8), var(--shadow-2); }
  100% { box-shadow: 0 0 0 12px rgba(250, 204, 21, 0), var(--shadow-2); }
}
@keyframes caseNewBadge {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  opacity: .85;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  color: var(--blue-900);
  animation: spin .8s linear infinite;
}
.btn-blue.is-loading::after { color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--yellow-400);
  box-shadow: var(--shadow-2);
}
.case-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-50);
}
.case-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(120%) brightness(.65);
  transform: scale(1.25);
  z-index: 0;
}
.case-photo .case-photo-img,
.case-photo img.case-photo-img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .7s var(--ease-out);
}
.case-card:hover .case-photo-img { transform: scale(1.04); }
.case-card:hover .case-photo-bg { transform: scale(1.32); transition: transform .8s var(--ease-out); }
.case-type {
  position: absolute;
  top: 10px; left: 10px;
  padding: 5px 10px;
  background: rgba(11, 36, 71, .85);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
  z-index: 3;
}
.case-type--mascota { background: var(--yellow-400); color: var(--blue-900); }
.case-code {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 8px;
  background: rgba(255,255,255,.95);
  color: var(--blue-700);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  z-index: 3;
}
.case-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.case-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-900);
  margin: 0;
}
.case-meta {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}
.case-line {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
  display: flex; align-items: center; gap: 6px;
}
.case-line svg { width: 14px; height: 14px; color: var(--ink-3); flex-shrink: 0; }
.case-card .case-cta {
  margin-top: auto;
  padding: 10px 14px;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  transition: background .25s, color .25s;
}
.case-card:hover .case-cta {
  background: var(--blue-700);
  color: #fff;
}

.cases-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-3);
  font-style: italic;
}

/* ============================================================
   MAPA
   ============================================================ */
.mapa {
  padding: 120px 0;
  background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
}
.map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: stretch;
}
.map {
  height: 520px;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--bg);
  z-index: 0;
}
.map-legend {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  height: fit-content;
}
.map-legend h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 16px;
  color: var(--blue-900);
}
.map-legend ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.map-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.pin {
  width: 18px; height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.pin-blue   { background: var(--blue-700); }
.pin-yellow { background: var(--yellow-400); }
.pin-green  { background: var(--green-500); }
.map-tip {
  margin: 18px 0 0;
  padding: 12px;
  background: var(--yellow-100);
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink-2);
  border-left: 3px solid var(--yellow-400);
}

/* Marker custom Leaflet */
.leaflet-pin {
  width: 30px; height: 42px;
  position: relative;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
}
.leaflet-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue-700);
  clip-path: path("M15 0C6.7 0 0 6.7 0 15c0 10.5 15 27 15 27s15-16.5 15-27c0-8.3-6.7-15-15-15z");
}
.leaflet-pin.is-mascota::after { background: var(--yellow-400); }
.leaflet-pin.is-encontrado::after { background: var(--green-500); }
.leaflet-pin::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 2;
}

.leaflet-popup-content {
  margin: 14px 16px !important;
  font-family: var(--font-text) !important;
}
.popup-card { width: 200px; }
.popup-card img {
  width: 100%; height: 110px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}
.popup-card h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--blue-900);
}
.popup-card p { margin: 0 0 4px; font-size: 12px; color: var(--ink-2); }
.popup-card .popup-code {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================
   NOTICIAS
   ============================================================ */
.news {
  padding: 120px 0;
  background: #fff;
}
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-spring), box-shadow .35s;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}
.news-card--lead {
  grid-row: span 2;
  grid-column: 1;
}
.news-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.news-card--lead .news-photo { aspect-ratio: 4 / 3; }
.news-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.news-card:hover .news-photo img { transform: scale(1.05); }
.news-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 6px 12px;
  background: rgba(11, 36, 71, .85);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
}
.news-badge--success { background: var(--green-500); }
.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.news-date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  font-weight: 600;
}
.news-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-900);
  margin: 0;
  line-height: 1.25;
}
.news-card--lead h3 { font-size: 22px; }
.news-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.link-arrow {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 10px;
  font-weight: 700;
  color: var(--blue-700);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: gap .25s, color .25s;
  display: inline-flex; gap: 6px;
}
.link-arrow:hover { color: var(--yellow-500); gap: 12px; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}
.contact-form {
  background: #fff;
  border-radius: var(--radius-l);
  padding: 36px;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
}
.contact-success {
  margin-top: 16px;
  padding: 14px;
  background: var(--yellow-100);
  border-radius: 10px;
  color: var(--blue-900);
  font-weight: 600;
  border-left: 4px solid var(--yellow-400);
}
.contact-info {
  display: grid;
  gap: 16px;
}
.info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease-spring), border-color .3s;
}
.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow-400);
}
.info-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.info-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.info-card .phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--blue-900);
}
.info-card .mail {
  font-weight: 600;
  color: var(--blue-700);
  font-size: 15px;
}
.info-card--social .socials {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.socials a {
  display: grid; place-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: all .25s var(--ease-out);
}
.socials a:hover {
  background: var(--yellow-400);
  color: var(--blue-900);
  transform: translateY(-3px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.78);
  padding: 70px 0 30px;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1fr;
  gap: 40px;
}
.brand--light .brand-mark {
  background: var(--yellow-400);
  color: var(--blue-900);
}
.brand--light { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 320px; margin: 0; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--yellow-400);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 16px;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 14px 0 8px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.footer-col li a, .footer-col li {
  font-size: 14px;
  color: rgba(255,255,255,.78);
  transition: color .25s;
}
.footer-col li a:hover { color: var(--yellow-400); }
.footer-team li { color: rgba(255,255,255,.7); font-size: 13px; }
.footer-school { font-size: 14px; margin: 0; line-height: 1.6; }
.footer-school strong { color: #fff; }
.phone--light, .mail--light {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* ============================================================
   MODAL DE CASO
   ============================================================ */
.case-modal {
  border: 0;
  border-radius: var(--radius-l);
  padding: 0;
  max-width: 700px;
  width: 92%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: #fff;
}
.case-modal::backdrop {
  background: rgba(11, 36, 71, .65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.case-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--blue-900);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  z-index: 5;
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease-spring), background .25s;
  display: grid;
  place-content: center;
}
.case-modal-close:hover { transform: rotate(90deg) scale(1.08); background: var(--yellow-400); }
.case-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: hidden;
}
.modal-photo {
  position: relative;
  background: var(--blue-50);
  overflow: hidden;
  min-height: 320px;
}
.modal-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(120%) brightness(.6);
  transform: scale(1.25);
  z-index: 0;
}
.modal-photo > img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  min-height: 320px;
}
.modal-info {
  padding: 32px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.modal-info .case-code {
  position: static;
  display: inline-block;
  margin-bottom: 10px;
}
.modal-info h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--blue-900);
}
.modal-info .modal-meta {
  color: var(--ink-3);
  font-size: 14px;
  margin: 0 0 18px;
}
.modal-list {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: grid; gap: 8px;
}
.modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.modal-list strong { color: var(--ink); min-width: 90px; }
.modal-desc {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-2);
  border-left: 3px solid var(--yellow-400);
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.modal-actions .btn {
  flex: 1 1 auto;
  min-width: 140px;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Defensive — never invisible if split conflict appears */
.reveal[data-split] { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-featured { max-width: 420px; margin-inline: auto; }
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .how-step:nth-child(4), .how-step:nth-child(5) { grid-column: span 1.5; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card--lead { grid-row: auto; grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--blue-900);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 30px;
    transform: translateY(-110%);
    transition: transform .4s var(--ease-out);
    box-shadow: 0 30px 60px rgba(0,0,0,.3);
    border-top: 1px solid rgba(255,255,255,.05);
  }
  .nav.is-open { transform: translateY(0); }
  .nav-link { padding: 14px 18px; font-size: 16px; }

  .burger { display: inline-flex; }
  .header { grid-template-columns: 1fr auto; }

  .stats { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .how-step { grid-column: auto !important; }
  .report-grid { grid-template-columns: 1fr; }
  .report-side { position: static; }
  .map-wrap { grid-template-columns: 1fr; }
  .map-legend { order: -1; }
  .map { height: 400px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-text { display: none; }
  .brand-mark { width: 44px; height: 44px; padding: 2px; }
  .header { padding: 0 14px; gap: 10px; grid-template-columns: auto 1fr auto; }

  .hero { padding: calc(var(--nav-h) + 30px) 0 30px; }
  .hero-title {
    font-size: clamp(30px, 9vw, 48px);
    line-height: 1;
    margin-bottom: 18px;
  }
  .hero-lead { font-size: 15px; margin-bottom: 20px; }
  .hero-search {
    flex-direction: row;
    gap: 4px;
    padding: 4px;
    align-items: stretch;
  }
  .hero-search-icon {
    display: inline-grid;
    place-content: center;
    width: 34px;
    height: auto;
    flex-shrink: 0;
    color: var(--ink-3);
  }
  .hero-search-icon svg { width: 16px; height: 16px; }
  .hero-search input {
    flex: 1;
    min-width: 0;
    width: auto;
    text-align: left;
    padding: 10px 6px;
    background: transparent;
    font-size: 14px;
    border-radius: 0;
  }
  .hero-search .btn,
  .hero-search-btn {
    width: auto;
    flex-shrink: 0;
    padding: 0 14px !important;
    font-size: 11px !important;
    min-height: 0 !important;
    border-radius: 8px !important;
  }
  .hero-ctas { flex-direction: column; gap: 10px; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-trust { flex-wrap: wrap; gap: 14px 22px; }
  .hero-trust strong { font-size: 22px; }
  .hero-trust span { font-size: 10px; }

  .featured-card { padding: 16px; }
  .featured-name { font-size: 22px; }

  .section-title { font-size: clamp(24px, 6vw, 32px); }
  .section-lead { font-size: 15px; }
  .section-head { margin-bottom: 28px; }

  .field-row { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card--lead { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .case-modal {
    width: 96%;
    max-width: 480px;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px;
  }
  .case-modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-photo { min-height: 200px; max-height: 240px; }
  .modal-photo > img { min-height: 200px; max-height: 240px; }
  .modal-info {
    padding: 20px 18px 24px;
    overflow: visible;
  }
  .modal-info h3 { font-size: 22px; line-height: 1.2; }
  .modal-info .modal-meta { font-size: 13px; margin-bottom: 14px; }
  .modal-list { margin-bottom: 14px; }
  .modal-list li { font-size: 13px; }
  .modal-list strong { min-width: 80px; }
  .modal-desc { font-size: 13px; padding: 12px; margin-bottom: 16px; }
  .modal-actions {
    flex-direction: column;
    gap: 8px;
  }
  .modal-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    font-size: 13px;
  }
  .case-modal-close {
    width: 40px; height: 40px;
    top: 10px; right: 10px;
    font-size: 22px;
  }
  .report-form { padding: 22px 18px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px 14px; }
  .stat-num { font-size: 26px; }
  .stat-label { font-size: 10px; }
  .cases-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .search-input { min-width: 0; max-width: none; }
  .chips { justify-content: center; }
  .cases-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .how-steps { grid-template-columns: 1fr; }
  .container { width: min(100% - 28px, var(--container)); }
  .hero-marquee { padding: 12px 0; font-size: 11px; }

  .footer { padding: 50px 0 24px; }
  .footer-bottom { font-size: 11px; text-align: center; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .hero-title { font-size: 26px; }
  .hero-trust { gap: 12px 18px; }
  .hero-trust strong { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob, .marquee-track, .badge-dot, .splash-paw, .hero-heart {
    animation: none !important;
  }
}
