/* ============================================================
   Patitas Seguras — Landing + Centro legal
   Sitio estático. Paleta Vibrante (alineada a la app).
   Tipografías: Fraunces (display) + Plus Jakarta Sans (cuerpo).
   ============================================================ */

:root {
  /* Paleta Vibrante */
  --bg: #F0F4EF;
  --bg-alt: #F7FAF5;
  --surface: #FFFFFF;
  --green: #1F9D63;
  --green-deep: #10583A;
  --green-soft: #DDF0E5;
  --green-tint: #EBF7F0;
  --green-line: #BFE3CE;
  --text: #181B19;
  --text-2: #5C615C;
  --text-3: #8B918A;
  --border: #E5E3DB;
  --border-soft: #EFEDE6;
  --warn: #C57A1E;
  --warn-soft: #F7EDDB;
  --red: #C73E2E;
  --red-soft: #FBE9E6;
  --footer: #0E2A1E;

  --hero-sky: radial-gradient(120% 95% at 50% 2%, #F4FBF4 0%, #E2F2E6 44%, #CFEAD9 100%);
  --hero-glow: radial-gradient(56% 48% at 50% 26%, rgba(31,157,99,0.20) 0%, rgba(31,157,99,0) 72%);

  --shadow-card: 0 1px 2px rgba(20,30,22,0.05), 0 14px 34px rgba(20,30,22,0.10);
  --shadow-soft: 0 1px 2px rgba(20,30,22,0.04), 0 6px 18px rgba(20,30,22,0.05);

  --font: "Plus Jakarta Sans", -apple-system, system-ui, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;

  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(31,157,99,0.18); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(247, 250, 245, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 28px; padding-top: 13px; padding-bottom: 13px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand b { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: 14.5px; font-weight: 600; color: var(--text-2); transition: color .15s; }
.nav__links a:hover { color: var(--green-deep); }
.nav__cta {
  background: var(--green); color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(31,157,99,0.28); transition: transform .15s, box-shadow .15s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31,157,99,0.34); }

/* ============================================================
   HERO (inmersivo)
   ============================================================ */
.hero { position: relative; background: var(--hero-sky); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.hero__inner { position: relative; padding: 28px 28px 60px; }

/* Abanico */
.fan-viewport { width: 100%; margin-bottom: clamp(56px, 9vw, 120px); }
.fan-stage {
  position: relative; width: 760px; height: 470px; margin: 0 auto;
  transform: scale(var(--fan-scale, 1)); transform-origin: top center;
}
/* Estado por defecto = ABANICO ABIERTO y visible (progressive enhancement:
   sin JS o si el JS falla, las tarjetas igual se ven). La apertura es solo realce. */
.fan-card {
  position: absolute; left: 50%; bottom: 0; width: 152px;
  transform-origin: 50% 660px;
  transform: translateX(-50%) rotate(var(--angle, 0deg));
  opacity: 1;
  filter: brightness(var(--bright, 1));
}
.is-intro .fan-card { animation: fan-in .85s var(--ease) var(--d, 0ms) both; }
@keyframes fan-in {
  from { transform: translateX(-50%) translateY(60px) rotate(0deg) scale(.92); opacity: 0; }
  to   { transform: translateX(-50%) rotate(var(--angle, 0deg)); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .is-intro .fan-card { animation: none; } }

.hero__text { max-width: 720px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--green-line); border-radius: 999px;
  padding: 6px 14px 6px 8px; box-shadow: var(--shadow-soft);
}
.eyebrow .dot {
  width: 22px; height: 22px; border-radius: 999px; background: var(--green-soft);
  display: grid; place-items: center;
}
.eyebrow span { font-size: 12.5px; font-weight: 700; color: var(--green-deep); letter-spacing: .2px; }
.hero__text h1 {
  font-family: var(--display); font-weight: 600; font-optical-sizing: auto;
  font-size: clamp(38px, 6vw, 70px); letter-spacing: -1.5px; line-height: 1.02; color: var(--text);
}
.hero__text h1 .accent { color: var(--green); }
.hero__text p {
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--text-2);
  margin: 22px auto 30px; max-width: 540px; font-weight: 500;
}
.trust { display: flex; gap: 18px; margin-top: 22px; justify-content: center; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-3); }

/* Badges de tienda */
.badges { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.badge {
  position: relative; display: inline-flex; align-items: center; gap: 11px;
  background: #13201A; color: #fff; border-radius: 14px; padding: 10px 18px 10px 15px;
  box-shadow: 0 6px 18px rgba(20,30,22,0.18); transition: transform .15s;
}
.badge:hover { transform: translateY(-2px); }
.badge small { display: block; font-size: 9.5px; font-weight: 600; opacity: .8; letter-spacing: .2px; line-height: 1.1; }
.badge strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.15; }
.badge .pronto {
  position: absolute; top: -8px; right: -8px; background: var(--warn); color: #fff;
  font-size: 8.5px; font-weight: 800; letter-spacing: .4px; padding: 2px 7px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(197,122,30,0.4);
}

/* ============================================================
   TARJETA DE MASCOTA
   ============================================================ */
.pet {
  width: 100%; background: var(--surface); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-card); user-select: none;
}
.pet__media { padding: 7px; position: relative; }
.pet__photo {
  position: relative; aspect-ratio: 1.04 / 1; border-radius: 14px; overflow: hidden;
  background: linear-gradient(150deg, #C49A6B 0%, #8B6845 56%, #4F3A22 100%);
}
.pet__photo img { width: 100%; height: 100%; object-fit: cover; }
.pet__photo::after { /* viñeta inferior para que el pill se lea */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.22) 100%);
}
.pet__pill {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .2px;
  padding: 3px 8px 3px 6px; border-radius: 999px; white-space: nowrap;
}
.pet__pill.is-located { background: var(--green); color: #fff; box-shadow: 0 2px 8px rgba(31,157,99,0.30); }
.pet__pill.is-adoption { background: #fff; color: var(--green-deep); border: 1px solid var(--green-line); box-shadow: var(--shadow-soft); }
.pet__body { padding: 2px 13px 13px; }
.pet__name { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.1; }
.pet__breed { font-size: 11.5px; color: var(--text-2); margin-top: 2px; font-weight: 500; }
.pet__loc { display: flex; align-items: center; gap: 3px; margin-top: 6px; font-size: 11px; color: var(--text-3); font-weight: 600; }
.pet__loc svg { flex-shrink: 0; }

/* ============================================================
   SECCIONES GENERICAS
   ============================================================ */
.section { padding-top: 96px; }
.section--tight { padding-top: 72px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.kicker i { width: 22px; height: 2px; background: var(--green); border-radius: 2px; }
.kicker span { font-size: 12.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green); }
.h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.8px; line-height: 1.08; color: var(--text);
}
.lead { font-size: 17px; line-height: 1.65; color: var(--text-2); font-weight: 500; }

/* Cómo funciona */
.how__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.how__head .kicker { justify-content: center; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 24px; padding: 32px 28px; box-shadow: var(--shadow-soft);
}
.step__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--green-soft); display: grid; place-items: center; margin-bottom: 20px; }
.step__num { position: absolute; top: 28px; right: 28px; font-family: var(--display); font-size: 42px; font-weight: 600; color: var(--green-tint); line-height: 1; }
.step h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 8px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--text-2); margin: 0; font-weight: 500; }

/* Reencuentros (ilustrativo, honesto) */
.stories__head { max-width: 680px; margin-bottom: 12px; }
.stories__sub { max-width: 560px; margin: 0 0 44px; }
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.story {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
}
.story__media { position: relative; height: 220px; background: linear-gradient(150deg, #9A8F7E 0%, #5C5448 58%, #2C2A24 100%); }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,0.95); color: var(--green-deep);
  font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
}
.story__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.story__body p { font-size: 16px; line-height: 1.55; color: var(--text); margin: 0; font-weight: 600; letter-spacing: -0.2px; }
.story__foot { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--text-3); }

/* Adopción */
.adopt { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.adopt__benefits { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.adopt__benefit { display: flex; align-items: center; gap: 12px; }
.adopt__benefit i { width: 26px; height: 26px; border-radius: 8px; background: var(--green-soft); display: grid; place-items: center; flex-shrink: 0; }
.adopt__benefit span { font-size: 15.5px; font-weight: 600; }
.adopt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adopt__grid > div:nth-child(even) { transform: translateY(24px); }

/* CTA descarga */
.cta {
  background: var(--surface); border: 1px solid var(--border); border-radius: 32px;
  padding: clamp(40px, 5vw, 64px); text-align: center; box-shadow: var(--shadow-card);
  background-image: var(--hero-glow);
}
.cta img.logo { width: 56px; height: 56px; margin: 0 auto; object-fit: contain; }
.cta h2 { margin: 20px auto 14px; max-width: 560px; }
.cta p.sub { font-size: 17px; line-height: 1.6; color: var(--text-2); margin: 0 auto 32px; max-width: 480px; font-weight: 500; }
.cta .fine { font-size: 13px; color: var(--text-3); margin-top: 18px; font-weight: 600; }

/* Banda de impacto reemplazada por valor cualitativo (sin números falsos) */
.values { margin-top: 96px; }
.values__card {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
  border-radius: 32px; padding: clamp(40px, 5vw, 60px); position: relative; overflow: hidden; color: #fff;
}
.values__card .paw { position: absolute; right: -40px; bottom: -50px; opacity: .08; }
.values__card .kicker span { color: rgba(255,255,255,0.85); }
.values__card .kicker i { background: rgba(255,255,255,0.6); }
.values__card h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px,3.6vw,38px); letter-spacing: -0.6px; max-width: 560px; margin: 0 0 36px; }
.values__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; position: relative; }
.value h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.value p { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.82); margin: 0; font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--footer); color: rgba(255,255,255,0.7); margin-top: 84px; }
.footer__top { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(3, 1fr); gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__brand img { width: 34px; height: 34px; object-fit: contain; }
.footer__brand b { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.4px; }
.footer__top p { font-size: 14px; line-height: 1.6; margin: 0; max-width: 280px; }
.footer__col h4 { font-size: 12.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14.5px; color: rgba(255,255,255,0.78); font-weight: 500; margin-bottom: 11px; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bar { border-top: 1px solid rgba(255,255,255,0.12); }
.footer__bar .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-size: 13px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .section { padding-top: 72px; }
  .adopt__grid > div:nth-child(even) { transform: none; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ============================================================
   CENTRO LEGAL (legal.html)
   ============================================================ */
.legal-nav .back { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.legal-hero { padding: 56px 28px 32px; }
.legal-hero .kicker { margin-bottom: 14px; }
.legal-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 52px); letter-spacing: -1px; line-height: 1.05; margin-bottom: 14px; }
.legal-hero p { font-size: 17px; color: var(--text-2); max-width: 620px; margin: 0; font-weight: 500; }
.legal-hero .updated {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 15px; font-size: 13px; font-weight: 600; color: var(--text-2);
}

.legal-layout { display: grid; grid-template-columns: 236px 1fr; gap: 48px; align-items: start; padding: 28px 28px 80px; max-width: var(--maxw); margin: 0 auto; }
.toc { position: sticky; top: 84px; }
.toc h5 { font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; padding-left: 14px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 11px; font-size: 14.5px; font-weight: 600; color: var(--text-2); margin-bottom: 2px; transition: background .15s, color .15s; }
.toc a:hover, .toc a.active { background: var(--green-soft); color: var(--green-deep); }
.toc a svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green); }

.doc {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 24px;
  padding: 40px 44px; margin-bottom: 24px; box-shadow: var(--shadow-soft); scroll-margin-top: 84px;
}
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.6px; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.doc h2 .badge-i { width: 38px; height: 38px; border-radius: 11px; background: var(--green-soft); display: grid; place-items: center; flex-shrink: 0; }
.doc h2 .badge-i svg { width: 20px; height: 20px; color: var(--green-deep); }
.doc .doc-lead { color: var(--text-2); font-size: 15.5px; margin: 0 0 22px; font-weight: 500; }
.doc h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -0.2px; margin: 26px 0 8px; color: var(--text); }
.doc p { font-size: 15px; color: var(--text-2); margin: 0 0 12px; }
.doc ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.doc li { font-size: 15px; color: var(--text-2); margin: 0 0 9px; padding-left: 26px; position: relative; }
.doc li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--green); }
.doc strong { color: var(--text); font-weight: 700; }
.doc a { color: var(--green-deep); font-weight: 600; }
.doc a:hover { text-decoration: underline; }
.doc .divider { height: 1px; background: var(--border-soft); margin: 28px 0; }

.dtable { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 14px; }
.dtable th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); padding: 0 12px 10px; border-bottom: 1px solid var(--border); }
.dtable td { padding: 12px; border-bottom: 1px solid var(--border-soft); color: var(--text-2); vertical-align: top; }
.dtable td:first-child { font-weight: 700; color: var(--text); width: 38%; }

.callout { border-radius: 16px; padding: 22px 24px; margin: 18px 0; border: 1px solid; }
.callout.green { background: var(--green-soft); border-color: var(--green-line); }
.callout.del { background: var(--red-soft); border-color: #F0CDC7; }
.callout h4 { margin: 0 0 8px; font-size: 15.5px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.callout p { margin: 0 0 6px; font-size: 14.5px; }
.steps-num { counter-reset: s; margin: 14px 0 0; padding: 0; list-style: none; }
.steps-num li { counter-increment: s; padding-left: 40px; position: relative; margin-bottom: 12px; font-size: 15px; color: var(--text-2); }
.steps-num li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 8px; background: var(--green); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }

.contact-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.contact-row a { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #fff; padding: 12px 20px; border-radius: 13px; font-weight: 700; font-size: 15px; transition: background .15s; }
.contact-row a:hover { background: var(--green-deep); text-decoration: none; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc h5 { width: 100%; }
  .toc a { margin: 0; }
  .doc { padding: 30px 26px; }
}
