/* TouchPaaw — estilos compartidos de páginas internas (/app, /fundaciones, /municipios, /seguridad) */
:root {
  --background: #f7f9fc;
  --surface: #f1f5f9;
  --surface-elev: #ffffff;
  --ink: #253047;
  --ink-soft: #6a7486;
  --border: #e2e8f0;
  --brand: #4cb0e4;
  --brand-dark: #2a6e8c;
  --paw: #ff9f43;
  --adopt: #8e7cff;
  --vet: #3ddc97;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.container { width: min(100% - 48px, 1152px); margin: 0 auto; }

/* Header simple */
.ph-header { position: fixed; inset: 0 0 auto; z-index: 50; pointer-events: none; }
.ph-nav {
  pointer-events: auto;
  width: min(100% - 32px, 1152px);
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(226,232,240,.85);
  border-radius: 999px;
  background: rgba(247,249,252,.78);
  padding: 8px 12px 8px 16px;
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px rgba(255,255,255,.7), 0 8px 30px -12px rgba(0,0,0,.12);
}
.ph-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.ph-brand img { width: 28px; height: 28px; }
.ph-nav-actions { display: flex; align-items: center; gap: 10px; }
.ph-back { display: none; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 999px; transition: color .2s ease, background .2s ease; }
.ph-back:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.ph-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(76,176,228,.6);
  transition: transform .2s ease, background .2s ease;
}
.ph-cta:hover { transform: translateY(-2px); background: var(--brand-dark); }

/* Mini-nav contextual (hermanas + Inicio; la actual queda activa, sin link) */
.ph-nav-links { display: flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 600; }
.ph-nav-links a,
.ph-nav-links span[aria-current] {
  padding: 7px 13px; border-radius: 999px; color: var(--ink-soft);
  white-space: nowrap; transition: color .2s ease, background .2s ease;
}
.ph-nav-links a:hover { color: var(--ink); background: rgba(37,48,71,.05); }
.ph-nav-links a:active { transform: scale(.97); }
.ph-nav-links span[aria-current="page"] { color: var(--ink); background: var(--surface); font-weight: 700; cursor: default; box-shadow: inset 0 0 0 1px rgba(37,48,71,.06); }
.ph-nav-links span[aria-current="page"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 999px; background: var(--brand); vertical-align: middle; }
/* Pestaña "Próximamente": visible, neutra, no clickeable, sin punto azul */
.ph-nav-links .soon-tab { color: var(--ink-soft); font-weight: 700; cursor: default; background: transparent; box-shadow: none; }
.ph-nav-links .soon-tab::before { display: none; }
.ph-nav-links .soon-tab i { font-style: normal; margin-left: 6px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #c47a14; background: #fff4e3; padding: 2px 6px; border-radius: 999px; vertical-align: middle; }

@media (max-width: 860px) {
  .ph-nav-links { display: none; }
  .ph-back { display: inline-flex; }
}
@media (max-width: 560px) {
  .ph-back span { display: none; }
}

/* PageHero */
.page-hero { position: relative; overflow: hidden; padding: 132px 0 64px; text-align: center; }
@media (min-width: 768px) { .page-hero { padding: 168px 0 96px; } }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 45% at 80% 10%, var(--hero-tint, rgba(255,159,67,.18)), transparent 60%),
    radial-gradient(40% 35% at 5% 30%, rgba(76,176,228,.12), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; max-width: 56rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-elev); padding: 5px 12px;
  color: var(--ink-soft); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--paw); }
.page-hero h1 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 700;
  text-wrap: balance;
}
.page-hero h1 em { color: var(--ink-soft); font-style: italic; font-weight: 400; }
.page-hero p { margin: 20px auto 0; max-width: 42rem; color: var(--ink-soft); font-size: 17px; line-height: 1.7; text-wrap: pretty; }

/* FeatureGrid */
.fg { position: relative; padding: 64px 0; }
@media (min-width: 768px) { .fg { padding: 96px 0; } }
.fg.surface { background: var(--surface); }
.fg-head { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: end; }
@media (min-width: 768px) { .fg-head { grid-template-columns: 1.2fr 1fr; } }
.fg-head h2 { margin-top: 16px; font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.fg-head h2 .soft { color: var(--ink-soft); }
.fg-intro { color: var(--ink-soft); line-height: 1.65; }
@media (min-width: 768px) { .fg-intro { text-align: right; } }
.fg-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--border);
}
@media (min-width: 640px) { .fg-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .fg-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fg-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.fg-item { background: var(--surface-elev); padding: 28px; }
.fg-item .n { display: flex; align-items: center; gap: 12px; }
.fg-item .n b { font-family: var(--font-display); font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.fg-item .n .line { height: 1px; flex: 1; background: var(--border); }
.fg-item h3 { margin-top: 16px; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.fg-item p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* Stats band (municipios) */
.stats-band { padding: 64px 0; }
@media (min-width: 768px) { .stats-band { padding: 96px 0; } }
.stats-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  overflow: hidden; border: 1px solid var(--border);
  border-radius: 28px; background: var(--border);
  max-width: 64rem; margin: 0 auto;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--surface-elev); padding: 40px 24px; text-align: center; }
.stat .k { font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; color: var(--brand-dark); }
.stat .v { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* Dual phone (app page) */
.phones { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; padding: 8px 0 56px; }
.phone-shell {
  width: min(280px, 80vw);
  border-radius: 2.4rem;
  padding: 10px;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  box-shadow: 0 50px 110px -40px rgba(0,0,0,.4);
}
.phone-shell .scr { overflow: hidden; border-radius: 2rem; border: 1px solid rgba(255,255,255,.06); background: var(--background); }
.phone-shell .scr img { width: 100%; height: auto; display: block; }

/* PageCta */
.page-cta { padding: 64px 0; }
@media (min-width: 768px) { .page-cta { padding: 96px 0; } }
.page-cta .container { max-width: 64rem; }
.cta-card {
  position: relative; overflow: hidden;
  border-radius: 2rem;
  background: var(--ink);
  color: var(--background);
  padding: 40px 28px;
}
@media (min-width: 768px) { .cta-card { padding: 56px; } }
.cta-card::before {
  content: ""; position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background:
    radial-gradient(50% 60% at 80% 20%, rgba(255,159,67,.5), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(76,176,228,.5), transparent 60%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.cta-card p { margin-top: 16px; max-width: 36rem; color: rgba(247,249,252,.72); line-height: 1.65; }
.cta-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.cta-actions .primary { background: var(--background); color: var(--ink); }
.cta-actions .primary:hover { transform: translateY(-2px); }
.cta-actions .secondary { border: 1px solid rgba(255,255,255,.2); color: var(--background); }
.cta-actions .secondary:hover { background: rgba(255,255,255,.06); }

/* Footer */
.ph-footer { border-top: 1px solid var(--border); background: var(--background); }
.ph-footer .container { padding: 48px 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.ph-footer .fb { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; }
.ph-footer .fb img { width: 30px; height: 30px; }
.ph-footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--ink-soft); }
.ph-footer nav a:hover { color: var(--ink); }
.ph-footer .copy { width: 100%; border-top: 1px solid var(--border); padding-top: 18px; font-size: 12px; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ph-cta:hover, .cta-actions a:hover { transform: none; }
}


/* ============================================================
   Footer completo (igual al index) — páginas internas
   ============================================================ */
footer { border-top: 1px solid var(--border); background: var(--background); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; }
.footer-brand img { width: 32px; height: 32px; }
.footer-desc { margin-top: 16px; max-width: 320px; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.footer-socials { margin-top: 20px; display: flex; gap: 12px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--ink-soft); background: var(--surface-elev);
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.social-link:hover { transform: translateY(-2px); color: var(--brand); border-color: rgba(76,176,228,.35); }
.social-link svg { width: 18px; height: 18px; }
footer h4 { font-family: var(--font-display); font-size: 14px; color: var(--ink); }
footer ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-soft); font-size: 14px; }
footer ul a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding: 24px 0; color: var(--ink-soft); font-size: 12px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 6px; } }
