/* ============================================================
   PsychoIA · public.css
   Zona pública: landing oscura futurista.
   ============================================================ */

body.psy-landing,
.psy-public-page {
  background-color: var(--psy-night);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, .15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(139, 92, 246, .12), transparent);
  color: #cbd5e1;
  overflow-x: clip;
}

.psy-public-page { min-height: 100vh; }

/* ============ Header público ============ */
.psy-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 16px 16px 0;
}
.psy-header__bar {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 22px;
  border-radius: 18px;
  background: rgba(13, 18, 34, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, .12);
}
.psy-header__nav { display: flex; gap: 30px; }
.psy-header__nav a {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.psy-header__nav a:hover { color: var(--psy-cyan-soft); }
.psy-header__actions { display: flex; align-items: center; gap: 14px; }
.psy-header__login {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 8px 10px;
}
.psy-header__login:hover { color: #fff; }
.psy-header__burger {
  display: none;
  background: none;
  border: 0;
  color: #cbd5e1;
  padding: 8px;
}
.psy-header__mobile {
  display: none;
  max-width: 1200px;
  margin: 8px auto 0;
  border-radius: 18px;
  padding: 14px;
  background: rgba(13, 18, 34, .85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, .12);
}
.psy-header__mobile.is-open { display: block; }
.psy-header__mobile a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: #cbd5e1;
  font-weight: 500;
}
.psy-header__mobile a:hover { background: rgba(255, 255, 255, .05); }
.psy-header__mobile .psy-btn { width: 100%; margin-top: 10px; }

@media (max-width: 860px) {
  .psy-header__nav, .psy-header__actions { display: none; }
  .psy-header__burger { display: block; }
}

/* ============ Hero ============ */
.psy-hero {
  position: relative;
  padding: 190px 0 110px;
  text-align: center;
}
.psy-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}
.psy-hero__canvas { position: absolute; inset: 0; }
.psy-hero__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.psy-hero__inner { position: relative; max-width: 900px; margin: 0 auto; padding: 0 24px; }

.psy-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  font-size: 13px;
  color: #cbd5e1;
  background: rgba(13, 18, 34, .55);
  border: 1px solid rgba(148, 163, 184, .12);
  backdrop-filter: blur(10px);
}
.psy-hero__badge b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(90deg, #22d3ee, #8b5cf6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 11px;
  border-radius: 999px;
}

.psy-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6.5vw, 74px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
  margin: 30px 0 0;
}
.psy-hero h1 .neon {
  background: linear-gradient(100deg, var(--psy-cyan-soft), var(--psy-cyan) 35%, var(--psy-violet) 75%, var(--psy-fuchsia));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.psy-hero__sub {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: #94a3b8;
}
.psy-hero__ctas {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.psy-hero__stats {
  margin: 60px auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(13, 18, 34, .55);
  border: 1px solid rgba(148, 163, 184, .12);
  backdrop-filter: blur(10px);
}
.psy-hero__stat {
  padding: 26px 14px;
  background: rgba(255, 255, 255, .02);
}
.psy-hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  background: linear-gradient(100deg, var(--psy-cyan-soft), var(--psy-cyan) 35%, var(--psy-violet) 75%, var(--psy-fuchsia));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.psy-hero__stat span { font-size: 12.5px; color: #64748b; }

@media (max-width: 640px) {
  .psy-hero { padding-top: 150px; }
  .psy-hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Marquee ============ */
.psy-marquee {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  background: rgba(0, 0, 0, .2);
  overflow: hidden;
}
.psy-marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: psy-marquee 32s linear infinite;
}
.psy-marquee__track span {
  margin: 0 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
  color: #64748b;
}
.psy-marquee__track i { color: rgba(6, 182, 212, .5); font-style: normal; margin-left: 48px; }
@keyframes psy-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Secciones genéricas ============ */
.psy-section { position: relative; padding: 110px 0; }
.psy-section--line { border-top: 1px solid rgba(255, 255, 255, .05); }
.psy-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--psy-cyan);
}
.psy-kicker--violet { color: var(--psy-violet); }
.psy-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.12;
  color: #fff;
  margin: 14px 0 0;
  letter-spacing: -.01em;
}
.psy-h2 .muted { color: #64748b; }
.psy-lead { color: #94a3b8; font-size: 17px; line-height: 1.65; margin-top: 16px; max-width: 620px; }
.psy-center { text-align: center; }
.psy-center .psy-lead { margin-left: auto; margin-right: auto; }

/* ============ Tarjetas glass (público) ============ */
.psy-glass {
  background: rgba(13, 18, 34, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 18px;
}
.psy-glow { transition: all .3s ease; }
.psy-glow:hover {
  border-color: rgba(56, 189, 248, .35);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .15), 0 12px 50px -12px rgba(56, 189, 248, .25);
  transform: translateY(-3px);
}

/* ============ Bento de features ============ */
.psy-bento {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.psy-bento__item { padding: 28px; }
.psy-bento__item--wide { grid-column: span 2; }
.psy-bento__head { display: flex; align-items: center; justify-content: space-between; }
.psy-bento__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--psy-cyan-soft);
  background: linear-gradient(135deg, rgba(6, 182, 212, .18), rgba(139, 92, 246, .18));
  border: 1px solid rgba(56, 189, 248, .2);
}
.psy-bento__item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  margin: 20px 0 0;
}
.psy-bento__item p { color: #94a3b8; line-height: 1.65; margin: 10px 0 0; font-size: 15px; }

@media (max-width: 900px) {
  .psy-bento { grid-template-columns: 1fr; }
  .psy-bento__item--wide { grid-column: span 1; }
}

/* ============ Catálogo ============ */
.psy-catalog {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.psy-catalog__item { padding: 26px; text-align: left; display: block; width: 100%; background: rgba(13, 18, 34, .55); backdrop-filter: blur(14px); border: 1px solid rgba(148, 163, 184, .12); border-radius: 18px; }
.psy-catalog__item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  margin: 18px 0 0;
  transition: color .2s;
}
.psy-catalog__item:hover h3 { color: var(--psy-cyan-soft); }
.psy-catalog__item p { color: #94a3b8; font-size: 14px; line-height: 1.6; margin: 8px 0 0; }
.psy-catalog__meta {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #64748b;
}
.psy-catalog__meta i { color: #334155; font-style: normal; }
.psy-accent--lg { width: 48px; height: 48px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }

@media (max-width: 900px) { .psy-catalog { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .psy-catalog { grid-template-columns: 1fr; } }

.psy-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.psy-link-more {
  color: var(--psy-cyan-soft);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============ Método ============ */
.psy-method {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.psy-method__item { padding: 30px 26px; text-align: center; }
.psy-method__num {
  width: 56px; height: 56px;
  margin: 0 auto;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #22d3ee, #3b82f6 50%, #8b5cf6);
  box-shadow: 0 0 30px rgba(56, 189, 248, .35);
}
.psy-method__item h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #fff; margin: 20px 0 0; }
.psy-method__item p { color: #94a3b8; line-height: 1.65; margin: 10px 0 0; font-size: 15px; }
@media (max-width: 900px) { .psy-method { grid-template-columns: 1fr; } }

/* ============ Precios ============ */
.psy-pricing {
  margin: 52px auto 0;
  max-width: 1060px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.psy-plan { padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.psy-plan--featured {
  background: linear-gradient(180deg, rgba(6, 182, 212, .14), rgba(139, 92, 246, .1));
  border: 1px solid rgba(56, 189, 248, .4);
  box-shadow: 0 0 60px rgba(56, 189, 248, .18);
}
.psy-plan__flag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #22d3ee, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.psy-plan h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; margin: 0; }
.psy-plan__price { margin-top: 16px; display: flex; align-items: baseline; gap: 6px; }
.psy-plan__price b { font-family: var(--font-display); font-weight: 700; font-size: 38px; color: #fff; }
.psy-plan__price span { color: #64748b; font-size: 14px; }
.psy-plan__desc { color: #94a3b8; font-size: 14px; margin: 8px 0 0; }
.psy-plan ul { list-style: none; margin: 24px 0 0; padding: 0; flex: 1; display: grid; gap: 12px; }
.psy-plan li { display: flex; gap: 10px; align-items: flex-start; color: #cbd5e1; font-size: 14px; line-height: 1.5; }
.psy-plan li .psy-icon { margin-top: 2px; color: #64748b; }
.psy-plan--featured li .psy-icon { color: var(--psy-cyan-soft); }
.psy-plan .psy-btn { width: 100%; margin-top: 30px; }
.psy-pricing__note {
  margin-top: 30px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.psy-pricing__note .psy-icon { color: #34d399; }
@media (max-width: 900px) { .psy-pricing { grid-template-columns: 1fr; max-width: 480px; } }

/* ============ Testimonios ============ */
.psy-quotes { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.psy-quote { padding: 28px; display: flex; flex-direction: column; }
.psy-quote__stars { display: flex; gap: 4px; color: #fcd34d; }
.psy-quote blockquote {
  margin: 18px 0 0;
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 15px;
  flex: 1;
}
.psy-quote figcaption { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .06); }
.psy-quote figcaption b { color: #fff; font-size: 14px; display: block; }
.psy-quote figcaption span { color: rgba(103, 232, 249, .8); font-size: 12px; display: block; margin-top: 3px; }
@media (max-width: 900px) { .psy-quotes { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.psy-faq { max-width: 780px; margin: 48px auto 0; display: grid; gap: 12px; }
.psy-faq__item { overflow: hidden; }
.psy-faq__item.is-open { border-color: rgba(56, 189, 248, .3); }
.psy-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: 0;
  text-align: left;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}
.psy-faq__toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  transition: all .2s;
}
.psy-faq__item.is-open .psy-faq__toggle { background: rgba(56, 189, 248, .1); color: var(--psy-cyan-soft); }
.psy-faq__a { display: none; padding: 0 24px 24px; color: #94a3b8; line-height: 1.7; font-size: 15px; }
.psy-faq__item.is-open .psy-faq__a { display: block; }
.psy-faq__item.is-open .icon-plus { display: none; }
.psy-faq__item:not(.is-open) .icon-minus { display: none; }

/* ============ CTA final ============ */
.psy-final { position: relative; padding: 110px 0; border-top: 1px solid rgba(255, 255, 255, .05); overflow: hidden; text-align: center; }
.psy-final__grid {
  position: absolute; inset: 0; opacity: .6;
  background-image:
    linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px);
  background-size: 56px 56px;
}
.psy-final__inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.psy-final__icon {
  width: 64px; height: 64px;
  margin: 0 auto;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #22d3ee, #3b82f6 50%, #8b5cf6);
  animation: psy-pulse-ring 2.4s ease-out infinite, psy-float 7s ease-in-out infinite;
}
@keyframes psy-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, .4); }
  70% { box-shadow: 0 0 0 14px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
@keyframes psy-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.psy-final h2 { margin-top: 32px; }
.psy-final .psy-btn { margin-top: 32px; }

/* ============ Footer público ============ */
.psy-footer {
  border-top: 1px solid rgba(255, 255, 255, .05);
  background: rgba(0, 0, 0, .3);
  padding: 56px 0 0;
}
.psy-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.psy-footer__about { color: #64748b; font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 360px; }
.psy-footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin: 0 0 16px; }
.psy-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.psy-footer ul a { color: #64748b; font-size: 14px; transition: color .2s; }
.psy-footer ul a:hover { color: var(--psy-cyan-soft); }
.psy-footer__bottom {
  margin-top: 48px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: #475569;
  font-size: 12px;
}
.psy-footer__bottom .psy-mono { font-size: 11px; }
@media (max-width: 800px) { .psy-footer__grid { grid-template-columns: 1fr; } }

/* ============ Páginas estándar (blog, legal) en claro ============ */
body:not(.psy-landing):not(.psy-app) {
  background: #fff;
  color: var(--psy-ink);
}
.psy-pagehead {
  background-color: var(--psy-night);
  padding: 140px 0 70px;
  text-align: center;
}
.psy-pagehead h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  color: #fff;
  margin: 0;
}
.psy-content { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; line-height: 1.8; font-size: 16.5px; color: #334155; }
.psy-content h2, .psy-content h3 { font-family: var(--font-display); color: var(--psy-ink); margin-top: 2em; }
.psy-content a { color: var(--psy-teal); }
.psy-simple-header {
  position: absolute;
  top: 16px; left: 0; right: 0;
  z-index: 50;
  padding: 0 16px;
}
