/* i'Witown · Políticas — paleta tomada de la landing (ecosistema-landing/css/styles.css) y del logo */

/* Fuente alojada aquí mismo: cargarla de Google mandaría la IP del lector a Google en la página de privacidad. */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fuentes/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("/fuentes/space-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/fuentes/space-grotesk-700.woff2") format("woff2"); }

:root {
  --morado-950: #1E0119;
  --morado-900: #36022F;
  --morado-800: #45023C;
  --morado-700: #520348;   /* color principal de marca */
  --morado-600: #760467;
  --lila:       #C86DE0;   /* punta del lápiz del logo */
  --lila-300:   #D692CE;
  --morado-100: #F7E6F5;
  --morado-050: #FBF3FA;

  --fondo: var(--morado-050);
  --papel: #ffffff;
  --texto: #1A1523;
  --suave: #4A4458;
  --borde: #EBD9E8;
  --enlace: var(--morado-600);
  --titulo: var(--morado-700);
  --brillo: 0 0 18px rgba(200, 109, 224, .55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #12020F; --papel: #1D0719; --texto: #F1E6EF; --suave: #C2AFC0;
    --borde: #3A1434; --enlace: #E3A6F2; --titulo: #E9B8F5;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--enlace); overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--lila); outline-offset: 3px; border-radius: 6px; }

/* ---------- Cabecera futurista ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 10;
  background:
    linear-gradient(rgba(214, 146, 206, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(214, 146, 206, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(120deg, rgba(30, 1, 25, .94), rgba(82, 3, 72, .92) 60%, rgba(118, 4, 103, .9));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff;
}
.cabecera::after {               /* línea de neón inferior */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--lila), #fff, var(--lila), transparent);
  background-size: 200% 100%; animation: barrido 6s linear infinite;
  box-shadow: var(--brillo);
}
@keyframes barrido { to { background-position: -200% 0; } }

.cabecera__fila {
  max-width: 1040px; margin: 0 auto; padding: 14px 16px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.marca img { height: 30px; width: auto; display: block; }
.marca__etiqueta {
  font-family: "Space Grotesk", system-ui, sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--lila-300);
  padding-left: 12px; border-left: 1px solid rgba(214, 146, 206, .4);
}

.menu {
  max-width: 1040px; margin: 0 auto; padding: 0 16px 14px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.menu::-webkit-scrollbar { display: none; }
.menu a {
  flex: none; position: relative; text-decoration: none; white-space: nowrap;
  font-family: "Space Grotesk", system-ui, sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: .02em; color: rgba(255, 255, 255, .78);
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(214, 146, 206, .25); background: rgba(255, 255, 255, .04);
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.menu a:hover { color: #fff; border-color: rgba(214, 146, 206, .6); background: rgba(255, 255, 255, .08); }
.menu a[aria-current="page"] {
  color: #fff; border-color: var(--lila);
  background: linear-gradient(120deg, rgba(200, 109, 224, .35), rgba(118, 4, 103, .55));
  box-shadow: var(--brillo), inset 0 0 12px rgba(255, 255, 255, .12);
}
.menu a[aria-current="page"]::before {     /* punto luminoso */
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; margin-right: 8px; vertical-align: 2px; box-shadow: 0 0 8px var(--lila);
}

/* ---------- Contenido ---------- */
main {
  max-width: 820px; margin: 28px auto 32px; padding: 28px 16px 40px;
  background: var(--papel); border: 1px solid var(--borde); border-radius: 18px;
  box-shadow: 0 18px 50px -30px rgba(82, 3, 72, .45);
}
@media (min-width: 860px) { main { padding: 44px 56px 60px; } }
@media (max-width: 859px) { main { margin: 16px 12px 28px; } }

h1, h2 { font-family: "Space Grotesk", system-ui, sans-serif; color: var(--titulo); }
h1 {
  font-size: clamp(1.5rem, 4.2vw, 2.1rem); line-height: 1.2; margin: 0 0 1.4rem;
  background: linear-gradient(100deg, var(--morado-700), var(--morado-600) 55%, var(--lila));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) h1 { background-image: linear-gradient(100deg, #fff, var(--lila-300) 60%, var(--lila)); }
}
h2 {
  font-size: 1.1rem; line-height: 1.35; margin: 2.1rem 0 .6rem;
  padding-left: 14px; border-left: 3px solid var(--lila);
}
p { margin: 0 0 .9rem; overflow-wrap: break-word; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: .35rem; }
li::marker { color: var(--lila); }
strong { color: var(--titulo); }

/* ---------- Pie ---------- */
.pie {
  background: linear-gradient(120deg, var(--morado-950), var(--morado-800));
  color: rgba(255, 255, 255, .78); font-size: 14px; text-align: center;
  padding: 28px 16px 96px;
}
.pie img { height: 26px; width: auto; margin-bottom: 12px; opacity: .95; }
.pie p { margin: 0 0 .3rem; }
.pie a { color: var(--lila-300); }
.pie__marca { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: .14em; color: #fff; }

/* ---------- Menú flotante circular de redes ---------- */
.redes { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 62px; height: 62px; }
.redes__boton {
  position: relative; z-index: 2; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  background: radial-gradient(circle at 30% 25%, var(--morado-600), var(--morado-700) 55%, var(--morado-900));
  box-shadow: 0 10px 28px -6px rgba(82, 3, 72, .7), 0 0 0 1px rgba(214, 146, 206, .45), var(--brillo);
  transition: transform .3s;
}
.redes__boton::before {             /* anillo giratorio */
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--lila) 75%, #fff 80%, transparent 85%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: giro 3.5s linear infinite;
}
@keyframes giro { to { transform: rotate(360deg); } }
.redes__boton img { width: 34px; height: 34px; transition: transform .35s, opacity .2s; }
.redes__cerrar { position: absolute; width: 22px; height: 22px; opacity: 0; transform: rotate(-90deg); transition: transform .35s, opacity .2s; }
.redes.abierto .redes__boton img { opacity: 0; transform: scale(.4) rotate(90deg); }
.redes.abierto .redes__cerrar { opacity: 1; transform: none; }

.redes__lista { list-style: none; margin: 0; padding: 0; }
.redes__lista li { position: absolute; left: 8px; top: 8px; margin: 0; }
.redes__lista a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: linear-gradient(140deg, var(--morado-600), var(--morado-900));
  border: 1px solid rgba(214, 146, 206, .55);
  box-shadow: 0 6px 18px -6px rgba(30, 1, 25, .8);
  /* cerrado: invisible también para el teclado y los lectores de pantalla */
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(0, 0) scale(.3);
  transition: transform .4s cubic-bezier(.2, 1.4, .4, 1), opacity .25s, visibility 0s .4s, box-shadow .2s, background .2s;
}
.redes__lista svg { width: 20px; height: 20px; }
.redes.abierto .redes__lista a {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(var(--x), var(--y)) scale(1);
  transition-delay: calc(var(--i) * 35ms), calc(var(--i) * 35ms), 0s, 0s, 0s;
}
.redes__lista a:hover, .redes__lista a:focus-visible {
  background: linear-gradient(140deg, var(--lila), var(--morado-600)); box-shadow: var(--brillo);
}
.redes__lista a span {               /* nombre de la red al pasar */
  position: absolute; right: calc(100% + 8px); white-space: nowrap;
  font: 600 12px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: .04em;
  background: var(--morado-900); color: #fff; padding: 6px 9px; border-radius: 999px;
  opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.redes__lista a:hover span, .redes__lista a:focus-visible span { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
@media print {
  :root { --fondo: #fff; --papel: #fff; --texto: #000; --suave: #333; --titulo: #520348; --enlace: #520348; }
  .cabecera, .redes, .pie img { display: none; }
  body { background: #fff; } main { border: 0; box-shadow: none; margin: 0 auto; }
  h1 { background: none; color: #520348; }   /* el degradado sobre el texto no se imprime */
  .pie { background: none; color: #000; padding-bottom: 0; }
  .pie__marca { color: #000; } .pie a { color: #000; }
}
