/* Watcher24 marketing site — shared styles.
   Palette copied verbatim from src/constants/watcher24-theme.ts so this
   site reads as the same product as the app, not a separate thing bolted
   on. If that file's colors ever change, update the --accent/etc. custom
   properties below to match — nothing imports across the JS/TS boundary,
   this is a plain static site (see public/unirse-familia.html for the
   established "no build step" convention this follows). */

:root {
  --background: #0b0d12;
  --background-elevated: #151822;
  --background-raised: #1b1f2b;
  --border: #262b38;
  --accent: #3ddc97;
  --accent-dark: #239063;
  --warning: #f5b841;
  --danger: #ff4d4d;
  --text: #f5f3ee;
  --text-muted: #8b93a3;
  --placeholder: #5b6172;
  --button-text: #0b1710;
  --max-width: 1080px;
  --radius: 16px;
  --radius-small: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.5px;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--background-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.lang-switch button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--button-text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--background-elevated);
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--button-text);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 11px 20px;
}

.btn-ghost {
  background: var(--background-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

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

.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
}

.hero h1 {
  font-size: 44px;
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p.lede {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--background-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.trust-chip svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  max-width: 320px;
}

/* ---------- Generic section ---------- */

section {
  padding: 64px 0;
}

section.alt {
  background: var(--background-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head h2 {
  font-size: 30px;
  margin: 0 0 12px;
  font-weight: 800;
}

.section-head p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Platform picker ---------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.platform-card {
  background: var(--background-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.platform-card:hover {
  transform: translateY(-2px);
}

.platform-card svg {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}

.platform-card[aria-pressed='true'] {
  border-color: var(--accent);
  background: rgba(61, 220, 151, 0.08);
}

.platform-card[aria-pressed='true'] svg {
  color: var(--accent);
}

.platform-card strong {
  font-size: 15.5px;
  font-weight: 700;
}

.platform-card span {
  color: var(--text-muted);
  font-size: 12.5px;
}

/* ---------- Interactive guide ---------- */

.guide {
  margin-top: 44px;
}

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.feature-tab {
  background: var(--background-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.feature-tab[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-text);
}

.feature-tab .badge-soon {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--warning);
}

.guide-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}

.device-stage {
  display: flex;
  justify-content: center;
}

.device-frame {
  width: 260px;
  border-radius: 34px;
  border: 8px solid #05070a;
  background: #05070a;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
  overflow: hidden;
  position: relative;
}

.device-frame.computer {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.device-screen {
  background: var(--background);
  min-height: 420px;
  position: relative;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
}

.device-frame.computer .device-screen {
  min-height: 260px;
  padding: 0;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--background-elevated);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.browser-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.browser-bar .url {
  margin-left: 10px;
  flex: 1;
  background: var(--background);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--text-muted);
  padding: 5px 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.screen-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 6px 0 12px;
}

.screen-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
}

.screen-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--background-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  position: relative;
}

.screen-row .row-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--background-raised);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.screen-row .row-icon svg {
  width: 13px;
  height: 13px;
}

.screen-row .row-label {
  flex: 1;
  color: var(--text);
  font-weight: 600;
}

.screen-row .row-chevron {
  color: var(--placeholder);
  font-size: 12px;
}

.screen-row .row-toggle {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  flex: none;
}

.screen-row .row-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.screen-row.is-on .row-toggle {
  background: var(--accent);
}

.screen-row.is-on .row-toggle::after {
  transform: translateX(14px);
  background: var(--button-text);
}

.screen-row.is-target {
  border-color: var(--accent);
}

.tap-ring {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: tap-pulse 1.4s ease-out infinite;
}

@keyframes tap-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55);
    opacity: 1;
  }
  70% {
    box-shadow: 0 0 0 12px rgba(61, 220, 151, 0);
    opacity: 0.4;
  }
  100% {
    box-shadow: 0 0 0 12px rgba(61, 220, 151, 0);
    opacity: 0;
  }
}

.screen-toolbar-icons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px;
}

.screen-toolbar-icons .toolbar-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--background-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
}

.screen-toolbar-icons .toolbar-icon svg {
  width: 14px;
  height: 14px;
}

.screen-done {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
}

.screen-done .check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--button-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-done .check svg {
  width: 24px;
  height: 24px;
}

.screen-done strong {
  font-size: 14px;
}

.screen-done span {
  color: var(--text-muted);
  font-size: 12px;
}

.screen-generic {
  flex: 1;
  padding: 8px 4px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.screen-generic strong {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.form-field {
  background: var(--background-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text);
  position: relative;
}

.form-field.is-target {
  border-color: var(--accent);
}

.guide-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-progress {
  display: flex;
  gap: 6px;
}

.step-progress .dot {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
}

.step-progress .dot.is-active {
  background: var(--accent);
}

.step-label {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.step-caption {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.step-caption b {
  color: var(--accent);
}

.feature-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.step-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-controls .btn {
  padding: 11px 18px;
}

.step-controls button[disabled] {
  opacity: 0.35;
  cursor: default;
}

.soon-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 184, 65, 0.1);
  border: 1px solid rgba(245, 184, 65, 0.35);
  color: var(--warning);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
}

.download-cta {
  margin-top: 48px;
  background: var(--background-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.download-cta h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.download-cta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
}

.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--background-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 168px;
}

.store-badge svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  flex: none;
}

.store-badge .store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.store-badge .store-label small {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.store-badge .store-label strong {
  font-size: 13.5px;
}

.store-badge .soon-pill {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--warning);
  background: rgba(245, 184, 65, 0.12);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

/* ---------- Feature grid (why-us section) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card .icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(61, 220, 151, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card .icon-badge svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  font-size: 15.5px;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Trust / security section ---------- */

.trust-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.trust-card {
  background: var(--background-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.trust-card .seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.3);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}

.trust-card .seal svg {
  width: 15px;
  height: 15px;
}

.trust-card h3 {
  font-size: 20px;
  margin: 0 0 12px;
}

.trust-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

.contact-card {
  background: var(--background-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card h3 {
  margin: 0;
  font-size: 18px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.contact-row svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  width: 100%;
  color: var(--placeholder);
  font-size: 12px;
  margin-top: 12px;
}

/* ---------- Legal pages ---------- */

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-doc h1 {
  font-size: 28px;
  margin: 0 0 6px;
}

.legal-doc .updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.legal-notice {
  background: rgba(245, 184, 65, 0.1);
  border: 1px solid rgba(245, 184, 65, 0.35);
  color: var(--warning);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.legal-lang-notice {
  background: var(--background-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.legal-doc p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.legal-doc section {
  padding: 0;
  margin: 28px 0;
}

.legal-doc h2 {
  font-size: 17px;
  margin: 0 0 10px;
}

.legal-doc ul {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
  padding-left: 20px;
  margin: 10px 0;
}

.legal-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.legal-tabs a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.legal-tabs a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--button-text);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    max-width: 220px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 20px;
    gap: 16px;
    display: none;
    z-index: 39;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 6px 0;
    font-size: 15px;
  }

  .nav-toggle {
    display: flex;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .guide-panel {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .trust-section {
    grid-template-columns: 1fr;
  }

  .download-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .store-badges {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .device-frame {
    width: 100%;
    max-width: 260px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  section {
    padding: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tap-ring {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
