/* ============================================================
   TUSEOCONIA V3 — CAPA ÚNICA (consolidada)
   ============================================================

   Archivo aislado del style.css del theme (decisión 2026-06-10).
   Se carga vía wp_enqueue_style('tuseoconia-v3', .../assets/css/v3.css)
   DESPUÉS de style.css, por lo que gana la cascada en portada y
   /servicios/ sin necesidad de !important.

   Consolida la antigua V3 + los 3 parches (FIX-V3.2/3.3/3.4):
     · vars de texto claras canónicas (--text2 / --text3)
     · scrim global reforzado (mín. 0.55 en todo el eje vertical)
     · color explícito en todos los títulos (sin herencia)
     · títulos de cards de blog en morado de marca
     · .plan-x.feat con fondo oscuro reforzado
     · fallback defensivo h1–h4

   Sin !important. Las colisiones con el CSS antiguo del theme se
   resolvieron BORRANDO las reglas viejas en style.css, no tapándolas.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- VARIABLES (refuerzo, por si el theme ya las define) ---------- */
:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #16161f;
  --border: #1e1e2e;
  --border2: #2a2a3e;
  --purple: #6c47ff;
  --cyan: #00d4ff;
  --text: #ffffff;
  --text2: #c8c8d8;
  /* claro canónico (migrado de FIX-V3.2: legibilidad sobre vídeo) */
  --text3: #9a9ab2;
  /* claro canónico (migrado de FIX-V3.2: el original #606075 era casi invisible) */
  --grad: linear-gradient(135deg, #6c47ff, #00d4ff);
  --ff: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --max-w: 960px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* === BG VIDEO + SCRIM === */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.bg-video-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Scrim uniforme: el centro ya NO queda transparente (causa raíz de los
     textos sobre franjas brillantes del vídeo). Mín. 0.55 en cualquier punto. */
  background: linear-gradient(180deg,
      rgba(10, 10, 15, 0.62) 0%,
      rgba(10, 10, 15, 0.65) 30%,
      rgba(10, 10, 15, 0.70) 60%,
      rgba(10, 10, 15, 0.65) 100%);
}

/* === TYPO HELPERS === */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  color: var(--text);
}

/* === LIQUID GLASS === */
.liquid-glass {
  background: rgba(255, 255, 255, 0.04);
  background-blend-mode: luminosity;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  border: none;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 20%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.15) 80%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass-strong {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  border: none;
}

.liquid-glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.2) 80%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* === GLASS NAV === */
.glass-nav {
  position: fixed;
  top: 1.2rem;
  left: 0;
  right: 0;
  padding: 0 1.5rem;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  pointer-events: none;
  animation: glass-nav-in .7s cubic-bezier(.2, .7, .2, 1) both;
}

.glass-nav>* {
  pointer-events: auto;
}

.glass-nav>.glass-logo {
  justify-self: start;
}

.glass-nav>.glass-pill {
  justify-self: center;
}

.glass-nav>.glass-cta {
  justify-self: end;
}

.glass-nav>.glass-hamburger {
  justify-self: end;
}

@keyframes glass-nav-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.glass-logo {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: box-shadow .25s;
}

.glass-logo:hover {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 6px 24px rgba(255, 255, 255, 0.08);
}

.glass-logo .logo-ia {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 1px;
}

.glass-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 48px;
  padding: 0 6px;
  border-radius: 999px;
  transition: box-shadow .25s;
}

.glass-pill:hover {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 6px 24px rgba(255, 255, 255, 0.08);
}

.glass-link {
  padding: 0 14px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}

.glass-link:hover {
  color: var(--text);
}

.glass-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.glass-cta {
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: box-shadow .25s;
}

.glass-cta:hover {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 6px 24px rgba(255, 255, 255, 0.08);
}

.glass-hamburger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  background: transparent;
  border: none;
}

.glass-hamburger span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
}

.glass-mobile {
  position: absolute;
  top: 60px;
  right: 1.5rem;
  border-radius: 20px;
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}

.glass-mobile.is-open {
  display: flex;
}

.glass-mobile a {
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: 12px;
}

.glass-mobile a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.glass-mobile .glass-cta {
  margin-top: 6px;
  height: 40px;
  justify-content: center;
}

@media (max-width: 820px) {
  .glass-pill {
    display: none;
  }

  .glass-nav>.glass-cta {
    display: none;
  }

  .glass-hamburger {
    display: inline-flex;
  }
}

/* === CURSOR SPOTLIGHT === */
.cursor-spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --mx: 50vw;
  --my: 50vh;
  background-image:
    linear-gradient(rgba(108, 71, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 71, 255, 0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle 320px at var(--mx) var(--my), #000 0%, transparent 70%);
  mask-image: radial-gradient(circle 320px at var(--mx) var(--my), #000 0%, transparent 70%);
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --mx: 50vw;
  --my: 50vh;
  background: radial-gradient(circle 400px at var(--mx) var(--my), rgba(108, 71, 255, 0.10), rgba(0, 212, 255, 0.04) 40%, transparent 70%);
  mix-blend-mode: screen;
}

@media (hover: none) {

  .cursor-spotlight,
  .cursor-glow {
    display: none;
  }
}

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  border: 1px solid var(--border2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color .2s;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--purple);
}

/* === HERO === */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 11rem 2rem 4rem;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(108, 71, 255, 0.20) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-section h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === HERO DEMO + CLAUDE MOCK === */
.hero-demo {
  position: relative;
  z-index: 1;
  padding: 0 2rem 4rem;
  display: flex;
  justify-content: center;
}

.claude-mock {
  width: 100%;
  max-width: 460px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4), 0 0 0 1px rgba(108, 71, 255, .04);
  position: relative;
  overflow: hidden;
}

.claude-mock::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(108, 71, 255, .4), transparent 30%, transparent 70%, rgba(0, 212, 255, .3));
  z-index: -1;
  opacity: .6;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.cm-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.cm-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #d97757, #c66744);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -.5px;
}

.cm-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.cm-sub {
  font-size: 11px;
  color: var(--text3);
}

.cm-model {
  margin-left: auto;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--text3);
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.cm-msg {
  margin-bottom: 14px;
}

.cm-role {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 6px;
}

.cm-user-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

.cm-asst-text {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  white-space: pre-wrap;
  font-family: var(--ff);
  min-height: 1.7em;
}

.cm-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  vertical-align: -2px;
  background: #00d4ff;
  margin-left: 2px;
  animation: cm-blink 1s steps(2) infinite;
}

@keyframes cm-blink {

  0%,
  49% {
    opacity: 1
  }

  50%,
  100% {
    opacity: 0
  }
}

.cm-thinking {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
}

.cm-thinking .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text3);
  animation: cm-pulse 1.4s infinite;
}

.cm-thinking .dot:nth-child(2) {
  animation-delay: .2s;
}

.cm-thinking .dot:nth-child(3) {
  animation-delay: .4s;
}

@keyframes cm-pulse {

  0%,
  80%,
  100% {
    opacity: .3;
    transform: scale(.8);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.cm-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cm-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text3);
  font-family: var(--ff);
}

.cm-send {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6c47ff, #00d4ff);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.cm-replay {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--purple);
  background: none;
  border: none;
  cursor: pointer;
}

.cm-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cm-pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 212, 255, .1);
  border: 1px solid rgba(0, 212, 255, .25);
  color: var(--cyan);
}

/* === SECTIONS === */
.site-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}

.inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.inner-narrow {
  max-width: 680px;
  margin: 0 auto;
}

/* === HOW IT WORKS === */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  perspective: 1400px;
}

.how-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  position: relative;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .3s;
  overflow: hidden;
}

.how-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(108, 71, 255, .18), rgba(0, 212, 255, .06) 40%, transparent 70%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

.how-card:hover::before {
  opacity: 1;
}

.how-card:hover {
  border-color: rgba(108, 71, 255, .4);
  box-shadow: 0 30px 80px rgba(108, 71, 255, .18), 0 0 0 1px rgba(108, 71, 255, .1);
}

.how-card-content {
  position: relative;
  z-index: 1;
  transform: translateZ(20px);
}

.how-step {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.how-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.how-card p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
}

/* === DOCTRINA === */
.doctrina-grid {
  max-width: 760px;
  margin: 0 auto;
}

.doctrina-text p {
  margin-bottom: 1rem;
  color: var(--text2);
  line-height: 1.7;
}

.doctrina-text code {
  font-family: 'Fira Code', monospace;
  font-size: 0.92em;
  background: var(--bg3);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--cyan);
}

.doctrina-quote {
  border-left: 3px solid var(--purple);
  padding: 0.8rem 1.2rem;
  margin: 1.8rem 0;
  font-style: italic;
  color: var(--text);
  background: var(--bg2);
  border-radius: 0 8px 8px 0;
}

.doctrina-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text3);
}

.doctrina-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  text-decoration: none;
}

.doctrina-link:hover {
  border-bottom-color: var(--purple);
}

/* === COMPARE TABLE === */
.compare-glass {
  border-radius: 18px;
  padding: 4px;
  margin-top: 1.5rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text3);
}

.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  text-align: center;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.check {
  color: #00c080;
  font-weight: 600;
}

.cross {
  color: #ff5555;
  font-weight: 600;
}

/* === FAQ === */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.faq-a {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.65;
}

/* === CTA FINAL === */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.cta-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.25);
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(108, 71, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-box p {
  font-size: 0.95rem;
  color: var(--text2);
  margin-bottom: 2rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-box .btn-primary {
  position: relative;
  z-index: 1;
}

/* === FOOTER === */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text3);
}

.footer-tagline {
  color: var(--text3);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text3);
  transition: color .2s;
  text-decoration: none;
}

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

/* === PLAN CARDS (servicios) === */
.plans-grid-x {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 40px auto 0;
  max-width: 1280px;
  perspective: 1400px;
}

.plan-x {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 52px 28px 28px;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .3s;
  overflow: hidden;
}

.plan-x::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(108, 71, 255, .18), rgba(0, 212, 255, .06) 40%, transparent 70%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

.plan-x:hover::before {
  opacity: 1;
}

.plan-x:hover {
  border-color: rgba(108, 71, 255, .4);
  box-shadow: 0 30px 80px rgba(108, 71, 255, .18), 0 0 0 1px rgba(108, 71, 255, .1);
}

.plan-x.feat {
  background: linear-gradient(180deg, rgba(108, 71, 255, .10), rgba(0, 212, 255, .05)), #111118;
  border-color: rgba(108, 71, 255, .5);
}

.plan-x.feat::before {
  opacity: .5;
}

.plan-x.feat:hover::before {
  opacity: 1;
}

.px-ribbon {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6c47ff, #00d4ff);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  z-index: 2;
}

.px-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  transform: translateZ(20px);
}

.px-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}

.px-price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 6px 0 4px;
  background: linear-gradient(135deg, #6c47ff, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.px-price small {
  font-size: 16px;
  color: var(--text2);
  -webkit-text-fill-color: var(--text2);
  font-weight: 400;
}

.px-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin: 10px 0 22px;
}

.px-feats {
  padding: 18px 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex: 1;
  list-style: none;
}

.px-feats li {
  padding: 7px 0;
  font-size: 13px;
  color: var(--text2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.px-feats li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 7px;
  width: 14px;
  height: 1px;
  background: var(--cyan);
}

.px-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--purple);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.px-btn:hover {
  background: var(--purple);
  color: #fff;
}

.plan-x.feat .px-btn {
  background: linear-gradient(135deg, #6c47ff, #00d4ff);
  border-color: transparent;
  color: #fff;
}

.plan-x.feat .px-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* === SERVICIOS WRAP + TABLES === */
.srv-wrap {
  padding: 11rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

.srv-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.srv-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.srv-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.srv-hero p {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.srv-section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 2.5rem;
}

.srv-section-sub {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text2);
  margin: -1.5rem 0 2.5rem;
}

.srv-block {
  margin-top: 5.5rem;
}

.srv-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
}

.srv-matrix,
.srv-vs-wrap {
  border-radius: 18px;
  overflow: hidden;
}

.srv-matrix table,
.srv-vs-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.srv-matrix thead th,
.srv-vs-wrap thead th {
  padding: 1.1rem 1.2rem;
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.srv-matrix thead th:not(:first-child),
.srv-vs-wrap thead th:not(:first-child) {
  text-align: center;
}

.srv-matrix thead th.is-feat {
  color: var(--text);
  background: linear-gradient(180deg, rgba(108, 71, 255, 0.22), rgba(108, 71, 255, 0.06));
  position: relative;
}

.srv-vs-wrap thead th.is-self {
  color: #fff;
  background: linear-gradient(180deg, rgba(108, 71, 255, 0.4), rgba(108, 71, 255, 0.18));
  text-align: center;
}

.srv-matrix tbody td,
.srv-vs-wrap tbody td {
  padding: 1rem 1.2rem;
  color: var(--text2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.srv-matrix tbody tr:last-child td,
.srv-vs-wrap tbody tr:last-child td {
  border-bottom: none;
}

.srv-matrix tbody td:not(:first-child) {
  text-align: center;
}

.srv-matrix tbody td.is-feat-col {
  background: linear-gradient(180deg, rgba(108, 71, 255, 0.10), rgba(108, 71, 255, 0.04));
  color: var(--text);
}

.srv-vs-wrap tbody td.is-self-col {
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(180deg, rgba(108, 71, 255, 0.10), rgba(108, 71, 255, 0.04));
  text-align: center;
}

.srv-matrix .dash {
  color: var(--text3);
}

.srv-table-scroll .srv-matrix table {
  min-width: 640px;
}

.srv-table-scroll .srv-vs-wrap table {
  min-width: 760px;
}

.srv-faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 18px;
}

.srv-mini-cta {
  margin-top: 4rem;
  text-align: center;
}

.srv-mini-cta p {
  color: var(--text2);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .plans-grid-x {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
}

@media (max-width: 820px) {
  .how-grid {
    grid-template-columns: 1fr;
  }

  .srv-matrix table,
  .srv-vs-wrap table {
    font-size: 0.78rem;
  }

  .srv-matrix thead th,
  .srv-matrix tbody td,
  .srv-vs-wrap thead th,
  .srv-vs-wrap tbody td {
    padding: 0.8rem 0.7rem;
  }

  .srv-wrap {
    padding: 8rem 1rem 4rem;
  }

  .srv-block {
    margin-top: 4rem;
  }
}

@media (max-width: 768px) {
  .compare-table {
    font-size: 0.78rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.6rem 0.5rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 8rem 1.2rem 3rem;
  }

  .site-section {
    padding: 3rem 1.2rem;
  }
}

/* ============================================================
   COLORES DE TEXTO EXPLÍCITOS (consolida FIX-V3.2 / V3.4)
   Reglas SIN !important. Sustituyen a la herencia frágil que
   provocaba las regresiones de contraste. Color declarado en el
   sitio, no heredado.
   ============================================================ */

/* Hero y secciones principales — blanco */
.hero-section h1,
.section-title,
.srv-hero h1,
.srv-section-title,
.cta-box h2,
.how-card h3,
.faq-q,
.doctrina-text h2,
.px-name {
  color: var(--text);
}

/* El span con gradiente NO debe heredar el blanco */
.hero-section h1 .grad,
.section-title .grad,
.srv-hero h1 .grad,
.cta-box h2 .grad {
  -webkit-text-fill-color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Títulos de cards del blog — morado de marca (decisión consolidada 2026-06-10).
   Selectores reales verificados en home.php. Van en morado, no en blanco,
   para quedar siempre legibles sobre el vídeo y reforzar identidad. */
.blog-featured-title,
.post-card-title,
.blog-featured-title a,
.post-card-title a {
  color: var(--purple);
}

.blog-featured-title a:hover,
.post-card-title a:hover {
  color: #8b6dff;
}

/* Fallback defensivo — cualquier título sin regla específica nace en blanco */
h1,
h2,
h3,
h4 {
  color: var(--text);
}

/* ============================================================
   TUSEOCONIA V3 — FIN
   ============================================================ */