/*
 * Hydrology — coming-soon page.
 * System fonts only. No inline styles or scripts anywhere (CSP: style-src 'self').
 * Mobile-first; dark mode via prefers-color-scheme; motion only when the
 * visitor has not asked for reduced motion; it runs twice and stops within
 * 5 s (WCAG 2.2.2 Pause, Stop, Hide).
 */

:root {
  color-scheme: light dark;

  --bg: #f3f7f9;
  --bg-2: #e6eff3;
  --surface: #ffffff;
  --ink: #0b1b2b;
  --ink-2: #3b4d5e;
  --line: #d2dfe6;
  --brand: #066570;
  --brand-2: #1a4fd0;
  --ring: #1a4fd0;
  --on-button: #ffffff;
  --icon-tile: #e2f1f3;
  --ripple: rgba(7, 112, 124, 0.11);
  --glow: rgba(43, 195, 207, 0.20);
  --shadow: 0 1px 2px rgba(11, 27, 43, 0.06), 0 10px 28px -12px rgba(11, 27, 43, 0.16);

  --radius: 1rem;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06121d;
    --bg-2: #081a29;
    --surface: #0c1f2f;
    --ink: #e7f1f6;
    --ink-2: #a9bccb;
    --line: #1d3547;
    --brand: #5fd6df;
    --brand-2: #8fb0ff;
    --ring: #8fb0ff;
    --on-button: #06121d;
    --icon-tile: #10303f;
    --ripple: rgba(95, 214, 223, 0.08);
    --glow: rgba(29, 79, 214, 0.28);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 28px -12px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 100% -10%, var(--glow), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Concentric "ripple" rings: water drop meets signal. Decorative only. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-radial-gradient(circle at 92% 6%, transparent 0 44px, var(--ripple) 44px 45px);
  -webkit-mask-image: radial-gradient(circle at 92% 6%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 92% 6%, #000 0%, transparent 62%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

::selection {
  color: var(--bg);
  background: var(--brand);
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.accent {
  color: var(--brand);
}

.lead {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.75rem 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  box-shadow: var(--shadow);
}

.dot {
  position: relative;
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  background: var(--brand);
  border-radius: 50%;
}

.dot::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--brand);
  border-radius: 50%;
  opacity: 0;
}

/* ---------- Audiences ---------- */

.audiences {
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

.section-label {
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Thin "water line" along the top edge of each card. */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.card h3 {
  margin-top: 0.125rem;
  margin-bottom: 0.375rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p:last-child {
  color: var(--ink-2);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Icons are same-origin SVGs used as masks so they follow the theme color. */
.icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  background: var(--icon-tile);
  border-radius: 0.75rem;
}

.icon::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--brand);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-hogar::before {
  -webkit-mask-image: url("/static/icons/hogar.svg");
  mask-image: url("/static/icons/hogar.svg");
}

.icon-empresas::before {
  -webkit-mask-image: url("/static/icons/empresas.svg");
  mask-image: url("/static/icons/empresas.svg");
}

.icon-gobierno::before {
  -webkit-mask-image: url("/static/icons/gobierno.svg");
  mask-image: url("/static/icons/gobierno.svg");
}

/* ---------- 404 ---------- */

.hero-error {
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.hero-error p + p {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  color: var(--on-button);
  text-decoration: none;
  background: var(--brand-2);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.button:hover {
  text-decoration: underline;
  background: var(--brand);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}

/* ---------- Larger screens ---------- */

@media (min-width: 48rem) {
  .site-header {
    padding-block: 1.75rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .card {
    padding: 1.75rem;
  }
}

/* ---------- Motion (opt-in) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .dot::after {
    animation: hy-ripple 2.4s ease-out 2;
  }

  .button {
    transition: background-color 0.2s ease;
  }
}

@keyframes hy-ripple {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(3.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Windows High Contrast / forced colors ---------- */

@media (forced-colors: active) {
  .icon::before,
  .dot {
    forced-color-adjust: none;
    background-color: CanvasText;
  }

  .card::before,
  body::before {
    display: none;
  }
}
