/* Zynetia Design: capa oscura con los colores de marca (#3c32ea violeta, #e0e932 lima) */
:root {
  --zy-accent: #8b84ff;
  --zy-line: rgba(255, 255, 255, .08);
  --zy-line-strong: rgba(139, 132, 255, .55);
  --zy-glow: rgba(60, 50, 234, .55);
  --zy-ease: cubic-bezier(.2, .7, .2, 1);
}
body { background: var(--global-palette9); }
::selection { background: rgba(60, 50, 234, .6); color: #fff; }

/* ---------- Tipografía ---------- */
.entry-content h1, .entry-content h2,
.entry-content .wp-block-kadence-advancedheading:is(h1, h2) {
  font-weight: 600 !important;
  letter-spacing: -.03em !important;
  line-height: 1.12 !important;
}
:root .entry-content [class].has-theme-palette-1-color:is(h1, h2, h3),
:root .entry-content .kt-blocks-info-box-title { color: var(--global-palette3) !important; }
:root .entry-content [class].has-theme-palette-9-color,
:root .site-footer [class].has-theme-palette-9-color { color: #fff !important; }

:root .entry-content .zy-accent,
:root .entry-content [class].has-theme-palette-1-color mark,
:root .entry-content mark[class].has-theme-palette-1-color {
  background: linear-gradient(90deg, #8b84ff 0%, #c9c5ff 45%, #8b84ff 90%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  animation: zy-shine 7s linear infinite;
}
@keyframes zy-shine { to { background-position: -200% center; } }

/* Etiqueta monoespaciada sobre los títulos */
.zy-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
  font-size: 12.5px !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--global-palette6) !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px !important;
}
p.zy-eyebrow.has-text-align-center { display: flex; justify-content: center; }
.zy-eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--global-palette10);
  box-shadow: 0 0 10px var(--global-palette10);
  animation: zy-blink 2.4s ease-in-out infinite;
}
@keyframes zy-blink { 50% { opacity: .35; } }

/* ---------- Encabezado ---------- */
#masthead .item-is-fixed,
#masthead .item-is-stuck {
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--zy-line);
}
.main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.main-navigation .primary-menu-container > ul > li > a:hover { color: var(--zy-accent) !important; }

/* ---------- Botones ---------- */
.kb-button, .wp-block-button__link, .button, .header-button {
  border-radius: 8px !important;
  transition: transform .25s var(--zy-ease), box-shadow .25s var(--zy-ease), background-color .25s !important;
}
.kb-button:hover, .wp-block-button__link:hover, .button:hover, .header-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--zy-line-strong), 0 12px 40px -12px var(--zy-glow);
}

/* ---------- Secciones ---------- */
.kt-row-layout-bottom-sep, .kt-row-layout-top-sep { display: none !important; }
.entry-content > .kb-row-layout-wrap:not(.zy-hero):not(.zy-cta) { background-image: none !important; }

/* Hero: retícula de puntos + resplandor que respira */
.zy-hero { position: relative; overflow: hidden; isolation: isolate; background-image: none !important; background-color: var(--global-palette9) !important; }
.zy-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  animation: zy-drift 30s linear infinite;
}
.zy-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; left: 50%; top: -280px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(60, 50, 234, .55) 0%, rgba(60, 50, 234, .18) 35%, transparent 65%);
  filter: blur(20px);
  animation: zy-breathe 6s ease-in-out infinite;
}
@keyframes zy-drift { to { background-position: 22px 22px; } }
@keyframes zy-breathe { 50% { opacity: .55; transform: translateX(-50%) scale(1.08); } }
.zy-hero .wp-block-kadence-advancedgallery { animation: zy-float 8s ease-in-out infinite; }
@keyframes zy-float { 50% { transform: translateY(-12px); } }

/* ---------- Tarjetas de vidrio con brillo que sigue al cursor ---------- */
.zy-glass, .zy-card, .kt-blocks-info-box-link-wrap {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)) !important;
  border: 1px solid var(--zy-line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  transition: border-color .35s var(--zy-ease), box-shadow .35s var(--zy-ease), transform .35s var(--zy-ease) !important;
}
.zy-glass::before, .zy-card::before, .kt-blocks-info-box-link-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(139, 132, 255, .16), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.zy-glass:hover, .zy-card:hover, .kt-blocks-info-box-link-wrap:hover {
  border-color: var(--zy-line-strong) !important;
  box-shadow: 0 30px 80px -40px var(--zy-glow) !important;
  transform: translateY(-3px);
}
.zy-glass:hover::before, .zy-card:hover::before, .kt-blocks-info-box-link-wrap:hover::before { opacity: 1; }
.zy-price.zy-popular { border-color: var(--zy-line-strong) !important; box-shadow: 0 0 0 1px rgba(139, 132, 255, .25), 0 40px 100px -50px var(--zy-glow) !important; }

/* Cifras */
.zy-stats {
  background: rgba(60, 50, 234, .10) !important;
  border: 1px solid rgba(139, 132, 255, .35) !important;
  border-radius: 16px !important;
}
.zy-stats * { word-break: normal !important; overflow-wrap: normal !important; hyphens: none !important; }
.zy-stats strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--global-palette10);
  text-shadow: 0 0 24px rgba(224, 233, 50, .35);
}
.zy-stats p:not(:has(strong)) { font-size: 15px !important; line-height: 1.4 !important; color: var(--global-palette4) !important; }

/* Cierre azul */
.zy-cta .zy-eyebrow { color: rgba(255, 255, 255, .75) !important; }
.zy-cta .kb-button { background: var(--global-palette10) !important; color: #08080d !important; }

/* ---------- Animaciones de entrada ---------- */
.zy-js .zy-reveal {
  opacity: 0; transform: translateY(26px); filter: blur(4px);
  transition: opacity .9s var(--zy-ease), transform .9s var(--zy-ease), filter .9s var(--zy-ease);
  transition-delay: var(--zy-d, 0ms);
}
.zy-js .zy-reveal.zy-in { opacity: 1; transform: none; filter: none; }
.zy-intro { animation: zy-up 1s var(--zy-ease) both; animation-delay: var(--zy-d, 0ms); }
@keyframes zy-up { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .zy-js .zy-reveal { opacity: 1; transform: none; filter: none; }
}

/* Contraste en secciones propias (zy-*) */
.zy-num { color: var(--zy-accent) !important; font-family: "JetBrains Mono", ui-monospace, monospace; }
.zy-section .wp-block-button.is-style-outline > .wp-block-button__link {
  border: 1px solid var(--zy-line-strong) !important; color: var(--global-palette3) !important; background: transparent !important;
}
.zy-section .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(60, 50, 234, .25) !important; }
.zy-section details.wp-block-details { border-color: var(--zy-line) !important; }
.zy-section details.wp-block-details[open] { border-color: var(--zy-line-strong) !important; }
.zy-section.zy-alt { border-top: 1px solid var(--zy-line); border-bottom: 1px solid var(--zy-line); }
ul.zy-check li::before { color: var(--global-palette10) !important; }
