/* Página pública de ARCANO BRAIN: blanco, neón mínimo, glitch sobrio y tejido neuronal de fondo. */
:root {
  --tinta: #0B0B0B;
  --tenue: #6B6A66;
  --linea: #ECEBE8;
  --neon: #6C4CF1;        /* violeta eléctrico */
  --neon2: #17D1E8;       /* cian */
  --neon3: #FF2E88;       /* magenta */
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Gotham", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  background: #FFFFFF; color: var(--tinta);
  min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden;
}
#tejido { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------------------------------------------------------- barra superior */
.barra {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px clamp(16px, 5vw, 56px);
}
.marca-min { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); }
.marca-min img { height: 26px; width: auto; }
.marca-min span { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.acceso {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tinta); text-decoration: none;
  padding: 9px 16px; border: 1.5px solid var(--tinta); border-radius: 999px;
  transition: color .2s, border-color .2s, box-shadow .2s, background .2s;
}
.acceso svg { width: 15px; height: 15px; }
.acceso:hover {
  color: var(--neon); border-color: var(--neon);
  box-shadow: 0 0 0 1px rgba(108, 76, 241, .25), 0 6px 22px rgba(108, 76, 241, .22);
}

/* ---------------------------------------------------------- héroe */
main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }
.hero {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: clamp(40px, 9vh, 96px) 20px 40px; gap: 6px;
}
.neon {
  margin: 0; font-weight: 900; line-height: .95;
  font-size: clamp(38px, 9.5vw, 116px); letter-spacing: -.02em;
  color: var(--tinta);                                   /* respaldo si el degradado no aplica */
  background-image: linear-gradient(104deg, #1B1B22 0%, var(--neon) 34%, var(--neon2) 62%, var(--neon3) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 2px rgba(108, 76, 241, .55))
    drop-shadow(0 0 16px rgba(108, 76, 241, .35))
    drop-shadow(0 0 38px rgba(23, 209, 232, .28));
  animation: respirar 5.5s ease-in-out infinite;
}
@keyframes respirar {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(108,76,241,.5)) drop-shadow(0 0 14px rgba(108,76,241,.3)) drop-shadow(0 0 34px rgba(23,209,232,.22)); }
  50%      { filter: drop-shadow(0 0 3px rgba(108,76,241,.7)) drop-shadow(0 0 22px rgba(108,76,241,.45)) drop-shadow(0 0 52px rgba(23,209,232,.35)); }
}
.sub {
  margin: 10px 0 0; font-size: clamp(10px, 1.5vw, 13px); font-weight: 700;
  letter-spacing: .5em; color: var(--tenue); text-indent: .5em;
}
.frase {
  max-width: 760px; margin: clamp(26px, 5vh, 46px) auto 0;
  font-size: clamp(16px, 2.1vw, 21px); line-height: 1.55; color: #26262B; font-weight: 400;
}
.frase b { font-weight: 700; color: var(--tinta); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(26px, 5vh, 44px); }
.cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  background: var(--tinta); color: #fff; border: 1.5px solid var(--tinta);
  transition: transform .18s, box-shadow .25s, background .2s, color .2s;
}
.cta svg { width: 17px; height: 17px; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(108, 76, 241, .3); background: var(--neon); border-color: var(--neon); }
.cta.secundaria { background: transparent; color: var(--tinta); }
.cta.secundaria:hover { color: var(--neon); background: transparent; box-shadow: none; }

/* ---------------------------------------------------------- fuentes y respaldo */
.rotulo {
  margin: 0 0 14px; text-align: center; font-size: 10.5px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--tenue);
}
.fuentes { padding: clamp(24px, 5vh, 46px) 20px 0; }
.lista-fuentes {
  list-style: none; margin: 0 auto; padding: 0; max-width: 900px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
}
.lista-fuentes li { font-size: 13px; font-weight: 500; color: #45454A; opacity: .85; }
.respaldo { padding: clamp(26px, 5vh, 52px) 20px clamp(20px, 4vh, 40px); }
.respaldo.vacio { display: none; }
.banner { max-width: 1100px; margin: 0 auto; }
.banner img { width: 100%; height: auto; display: block; filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s; }
.banner img:hover { filter: grayscale(0); opacity: 1; }

footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  /* deja libres las dos esquinas: «Qué hacemos» a la izquierda y WhatsApp a la derecha */
  padding: 18px calc(clamp(16px, 5vw, 56px) + 62px) 18px calc(clamp(16px, 5vw, 56px) + 150px);
  border-top: 1px solid var(--linea);
  font-size: 12px; color: var(--tenue);
}
footer a {
  color: var(--tinta); text-decoration: none; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; font-size: 11px;
  padding: 7px 14px; border: 1.5px solid var(--linea); border-radius: 999px;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
footer a:hover { color: var(--neon); border-color: var(--neon); box-shadow: 0 0 0 1px rgba(108, 76, 241, .18); }

/* ---------------------------------------------------------- botón flotante de WhatsApp */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #0B0B0B;
  box-shadow: 0 8px 26px rgba(11, 11, 11, .22); transition: transform .18s, box-shadow .25s, background .2s;
}
.wa svg { width: 24px; height: 24px; }
.wa:hover { transform: translateY(-2px); background: #1FAF54; box-shadow: 0 12px 30px rgba(31, 175, 84, .35); }

/* ---------------------------------------------------------- glitch */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-texto); position: absolute; inset: 0;
  clip-path: inset(0 0 100% 0); opacity: .9; pointer-events: none;
}
.glitch::before, .glitch::after { background: none; -webkit-text-fill-color: currentColor; filter: none; }
.glitch::before { color: var(--neon2); transform: translate(-3px, -1px); animation: glitch-a 6s infinite steps(1); }
.glitch::after { color: var(--neon3); transform: translate(3px, 1px); animation: glitch-b 6s infinite steps(1); }
@keyframes glitch-a {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); }
  93% { clip-path: inset(12% 0 62% 0); transform: translate(-3px, -1px); }
  95% { clip-path: inset(48% 0 34% 0); transform: translate(3px, 1px); }
  97% { clip-path: inset(74% 0 8% 0); transform: translate(-2px, 2px); }
}
@keyframes glitch-b {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); }
  91% { clip-path: inset(66% 0 18% 0); transform: translate(3px, 1px); }
  94% { clip-path: inset(28% 0 56% 0); transform: translate(-3px, -2px); }
  98% { clip-path: inset(6% 0 82% 0); transform: translate(2px, -1px); }
}
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { animation: none; display: none; }
  .neon { animation: none; }
}
@media (max-width: 560px) {
  .acciones { flex-direction: column; width: 100%; max-width: 320px; }
  .cta { justify-content: center; }
  footer { flex-direction: column; gap: 6px; padding: 18px 16px 84px; text-align: center; }  /* sitio para los botones flotantes */
  .barra { padding-top: 14px; }
}

/* ---------------------------------------------------------- selector de idioma */
.idiomas { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--tenue); }
.idiomas a { color: var(--tenue); text-decoration: none; padding: 4px 2px; transition: color .2s; }
.idiomas a:hover { color: var(--neon); }
.idiomas a.activo { color: var(--tinta); border-bottom: 2px solid var(--neon); }

/* ---------------------------------------------------------- contenido */
.intro {
  max-width: 720px; margin: clamp(22px, 4vh, 38px) auto 0;
  font-size: 15px; line-height: 1.7; color: #45454A;
}
.bloques { padding: clamp(34px, 7vh, 70px) clamp(16px, 5vw, 56px) 0; max-width: 1120px; margin: 0 auto; width: 100%; }
.bloques h2 {
  margin: 0 0 clamp(18px, 3vh, 28px); text-align: center; font-size: clamp(20px, 3vw, 28px);
  font-weight: 900; letter-spacing: -.01em;
}
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(14px, 2.4vw, 24px); }
.rejilla article {
  border: 1px solid var(--linea); border-radius: 16px; padding: 22px 20px; background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(2px); transition: border-color .25s, box-shadow .25s, transform .2s;
}
.rejilla article:hover {
  border-color: rgba(108, 76, 241, .45); transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(108, 76, 241, .12);
}
.rejilla h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.rejilla p { margin: 0; font-size: 14px; line-height: 1.65; color: #4A4A50; }
.pasos .rejilla.tres { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pasos .rejilla article { text-align: center; }

.preguntas { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.preguntas details {
  border: 1px solid var(--linea); border-radius: 14px; padding: 14px 18px; background: rgba(255, 255, 255, .72);
}
.preguntas summary { cursor: pointer; font-weight: 700; font-size: 14.5px; list-style: none; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; float: right; color: var(--neon); font-weight: 900; }
.preguntas details[open] summary::after { content: "–"; }
.preguntas p { margin: 10px 0 2px; font-size: 14px; line-height: 1.65; color: #4A4A50; }


/* ---------------------------------------------------------- contenido plegado (visible para buscadores) */
.plegado[hidden] { display: none; }
.plegado { animation: aparecer .4s ease both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.mas-boton {
  position: fixed; left: 18px; bottom: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tenue); background: rgba(255, 255, 255, .86); backdrop-filter: blur(4px);
  border: 1.5px solid var(--linea); border-radius: 999px; padding: 9px 16px;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.mas-boton svg { width: 14px; height: 14px; transition: transform .25s; }
.mas-boton:hover { color: var(--neon); border-color: var(--neon); box-shadow: 0 0 0 1px rgba(108, 76, 241, .18); }
.mas-boton[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 560px) {
  .mas-boton { left: 14px; bottom: 14px; font-size: 10.5px; padding: 8px 13px; }
}
