/* =====================================================
   Dixewave — estilos compartidos
   Identidad: negro y azul, la misma de la app.
   ===================================================== */

:root {
  --bg: #08090c;
  --panel: #0f1520;
  --panel-soft: #131b28;
  --border: #1c2635;
  --border-bright: #16305c;

  --blue: #2563eb;
  --blue-soft: #60a5fa;
  --blue-dim: #1d3a6b;

  --text: #f4f6fa;
  --text-2: #aeb8c8;
  --text-3: #6b7688;

  --measure: 68ch;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Tipografía ---------- */

h1,
h2,
h3 {
  font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin-top: 3.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  color: var(--blue-soft);
}

p {
  margin: 0 0 1.1rem;
  color: var(--text-2);
}

a {
  color: var(--blue-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Estructura ---------- */

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

.narrow {
  max-width: var(--measure);
}

/* ---------- Cabecera ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.025em;
}

/* La marca gráfica es el logo de la app: mismo símbolo,
   mismo degradado. Se sirve desde /logo.png */
.brand img {
  display: block;
  height: 42px;
  width: auto;
}

.site-foot .brand {
  font-size: 1.35rem;
}

.site-foot .brand img {
  height: 32px;
}

@media (max-width: 46rem) {
  /* En pantalla estrecha la navegación no cabe al lado de
     la marca: baja a una segunda línea en vez de cortarse. */
  .site-head .wrap {
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    padding-block: 0.75rem;
  }

  .site-nav {
    width: 100%;
    gap: 1.25rem;
    font-size: 0.88rem;
    padding-bottom: 0.35rem;
  }

  .brand {
    font-size: 1.35rem;
  }

  .brand img {
    height: 34px;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-mark {
    height: 84px;
  }

  .site-foot .wrap {
    gap: 1.25rem;
  }
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.93rem;
}

.site-nav a {
  color: var(--text-3);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

/* ---------- Portada ---------- */

.hero {
  padding-block: clamp(4rem, 12vw, 8rem) 3rem;
  position: relative;
  overflow: hidden;
}

.hero-mark {
  display: block;
  width: auto;
  height: 108px;
  margin-bottom: 2.4rem;
}

.hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 1.4rem;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-2);
  max-width: 44ch;
  margin-top: 1.6rem;
}

/* Firma visual: onda de audio construida con la
   propia paleta. Es lo único que se mueve en la
   página, y se detiene si el sistema lo pide. */
.wave {
  width: 100%;
  height: 120px;
  margin-top: 3rem;
  display: block;
}

.wave path {
  fill: none;
  stroke: url(#onda);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.wave path:nth-child(2) {
  opacity: 0.35;
}

@media (prefers-reduced-motion: no-preference) {
  .wave path {
    animation: drift 9s ease-in-out infinite alternate;
  }

  .wave path:nth-child(2) {
    animation-duration: 13s;
    animation-direction: alternate-reverse;
  }
}

@keyframes drift {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: translateY(6px);
  }
}

/* ---------- Secciones ---------- */

.section {
  padding-block: 3.5rem;
  border-top: 1px solid var(--border);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---------- Documentos legales ---------- */

.doc {
  padding-block: 3rem 5rem;
}

.doc .updated {
  color: var(--text-3);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.doc h2:first-of-type {
  margin-top: 2rem;
}

.doc ul {
  color: var(--text-2);
  padding-left: 1.2rem;
  margin: 0 0 1.1rem;
}

.doc li {
  margin-bottom: 0.45rem;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 2rem;
  font-size: 0.95rem;
}

.doc th,
.doc td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.doc th {
  color: var(--blue-soft);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc td {
  color: var(--text-2);
}

.callout {
  background: var(--panel-soft);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Pie ---------- */

.site-foot {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem 3.5rem;
  color: var(--text-3);
  font-size: 0.92rem;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
}

.site-foot a {
  color: var(--text-2);
  text-decoration: none;
}

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

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.legal-line {
  width: 100%;
  color: var(--text-3);
  font-size: 0.85rem;
  margin: 0;
}
