/* ===== ANWI · Tema oscuro ejecutivo =====
   Se carga después de styles.css y sobrescribe colores y acabados.
   Para volver al tema claro, quita <link rel="stylesheet" href="ejecutivo.css"> de index.html. */

:root {
  --bg: #07080c;
  --soft: #0b0d12;
  --panel: #0f1218;
  --panel-2: #141820;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eceef3;
  --muted: #98a0b3;
  --dark: #050609;
  --ink: #eceef3;
  --violet: #8b7cf6;
  --orange: #f08a3c;
  --grad: linear-gradient(120deg, #8b7cf6, #f08a3c);
  --grad-light: linear-gradient(120deg, #a79bff, #f39a55);
  --shadow: 0 30px 70px -35px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

body { background: var(--bg); color: var(--text); letter-spacing: -.005em; }
::selection { background: rgba(139, 124, 246, .35); }
h1, h2, h3, h4 { letter-spacing: -.02em; }
.hero h1 { font-weight: 800; }
.section__head h2 { font-weight: 700; }

/* Texto con degradado: más sobrio */
.grad-text, .section--dark .grad-text { background-image: var(--grad); }

/* Logo: siempre la versión clara */
.logo__letter, .footer .logo__letter { stroke: url(#gradLogoDark); }
.logo__string { stroke: #fff; opacity: .5; }
.logo__pivot { fill: #fff; }
.logo__mark { animation-duration: 7s; }

/* Botones */
.btn { font-weight: 600; letter-spacing: .005em; }
.btn--grad { background: var(--grad); animation: none; box-shadow: 0 14px 34px -14px rgba(139, 124, 246, .55); }
.btn--grad:hover { box-shadow: 0 18px 40px -14px rgba(240, 138, 60, .5); }
.btn--ghost { background: rgba(255, 255, 255, .03); color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn:hover { transform: translateY(-2px); }

/* Etiquetas */
.pill, .pill--alt, .section--dark .pill {
  background: rgba(255, 255, 255, .04); color: #c9c3ff; border: 1px solid var(--line);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}

/* Menú */
.nav.is-scrolled { background: rgba(7, 8, 12, .78); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.nav__links { color: #c4c9d6; font-weight: 500; font-size: .95rem; }
.nav__links a:not(.btn) { position: relative; padding: .3rem 0; transition: color .2s; }
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: #fff; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle span { background: #fff; }

/* Portada */
.hero { padding-bottom: 130px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 75%);
}
.lead { color: var(--muted); }
.blob { filter: blur(90px); }
.blob--1 { background: #6d5ef8; opacity: .22; }
.blob--2 { background: #1f3a8a; opacity: .25; }
.blob--3 { background: #f08a3c; opacity: .12; }
.blob--4 { background: #6d5ef8; opacity: .14; }

.mock { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .02); transform: none; animation: none; }
.mock__bar { background: #0c0e13; border-bottom: 1px solid var(--line); }
.mock__bar i, .mock__bar i:nth-child(2), .mock__bar i:nth-child(3) { background: #2a2f3a; }
.c1 { background: linear-gradient(135deg, #2a2560, #6d5ef8); }
.c2 { background: linear-gradient(135deg, #10233f, #1f5fae); }
.mock__chart { background: #0b0d12; border: 1px solid var(--line); }
.mock__chart i { background: linear-gradient(180deg, #f08a3c, #6d5ef8); }

.hero__visual { perspective: 1100px; }

/* Indicador para bajar */
.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; z-index: 3; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .5rem; color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  transition: opacity .4s;
}
.scroll-cue i { width: 22px; height: 36px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; }

/* Secciones */
.section { border-top: 1px solid var(--line); }
.section--soft { background: var(--soft); }
.section--dark { background: linear-gradient(180deg, #05060a, #090a10); }
.section__head p, .section--dark .section__head p { color: var(--muted); }
.section__head h2::after {
  content: ""; display: block; width: 64px; height: 2px; margin: 1.1rem auto 0; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform .9s .25s cubic-bezier(.2, .8, .2, 1);
}
.section__head.is-visible h2::after { transform: scaleX(1); }

/* Tarjetas de servicios */
.card { background: linear-gradient(180deg, var(--panel), #0c0e13); border: 1px solid var(--line); box-shadow: none; }
.card::before { height: 2px; opacity: .8; }
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -35px rgba(0, 0, 0, .95); }
.card h3 { color: #fff; }
.card p { color: var(--muted); }
.card__icon { box-shadow: none; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 124, 246, .12), transparent 45%);
}
.card:hover::after { opacity: 1; }

/* Proyectos */
.app { box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .95); border: 1px solid var(--line); }

/* Paquetes */
.plan { background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.plan--featured { background: linear-gradient(170deg, rgba(109, 94, 248, .22), rgba(240, 138, 60, .08)); border: 1px solid rgba(240, 138, 60, .55); }
.plan__badge { background: #fff; color: #07080c; letter-spacing: .04em; }
.plan__price span { color: #f3a46b; }
.switch__glider { background: var(--grad); }

/* Proceso: línea que se llena al bajar */
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 2.9rem; height: 1px; background: var(--line-2); z-index: 0;
}
.steps::after {
  content: ""; position: absolute; left: 4%; right: 4%; top: 2.9rem; height: 1px; z-index: 0;
  background: var(--grad); transform-origin: left; transform: scaleX(var(--fill, 0)); transition: transform .2s linear;
}
.step { position: relative; z-index: 1; background: var(--panel); border: 1px solid var(--line); box-shadow: none; transition: border-color .3s, transform .3s; }
.step:hover { border-color: var(--line-2); transform: translateY(-4px); }
.step b { background-image: var(--grad); }
.step p { color: var(--muted); }

/* Preguntas */
.faq details { background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq details[open] { box-shadow: none; border-color: rgba(139, 124, 246, .45); background: var(--panel-2); }
.faq summary::after { background: #1b1f29; color: #fff; }
.faq details[open] summary::after { background: var(--orange); }
.faq details p { color: var(--muted); }

/* Contacto */
.contact { background: linear-gradient(160deg, #121528, #0b0d12 60%); animation: none; border: 1px solid var(--line); }
.contact__list .ico { background: rgba(255, 255, 255, .06); }
.form { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.form input, .form select, .form textarea { background: #0a0c10; border: 1px solid var(--line-2); color: var(--text); }
.form input::placeholder, .form textarea::placeholder { color: #6b7385; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--violet); }

/* Pie */
.footer { background: #040507; border-top: 1px solid var(--line); color: var(--muted); }

/* Asistente y botones flotantes */
.chat-fab { background: var(--grad); box-shadow: 0 12px 30px -10px rgba(109, 94, 248, .7); }
.chat { background: var(--panel); border: 1px solid var(--line); }
.chat__head { background: #0b0d12; border-bottom: 1px solid var(--line); }
.chat__log { background: #0a0b10; }
.msg--bot { background: var(--panel-2); color: var(--text); }
.msg--user { background: #5b4fe0; }
.chat__form { border-top: 1px solid var(--line); }
.chat__form input { background: #0a0c10; border-color: var(--line-2); color: var(--text); }
.wa-float { animation: none; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .6); }

/* Barra de avance de lectura */
.read-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; background: var(--grad); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* Botón para subir */
.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(15, 18, 24, .85);
  border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s, border-color .2s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: rgba(255, 255, 255, .4); }

/* Apariciones al bajar: variantes y escalonado */
.reveal { transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1), filter .9s; transition-delay: var(--d, 0s); filter: blur(6px); }
.reveal[data-rv="left"] { transform: translateX(-40px); }
.reveal[data-rv="right"] { transform: translateX(40px); }
.reveal[data-rv="zoom"] { transform: scale(.94) translateY(20px); }
.reveal.is-visible, .reveal.is-visible[data-rv] { opacity: 1; transform: none; filter: none; }

/* Menú en celular */
@media (max-width: 760px) {
  .nav__links { background: rgba(12, 14, 19, .97); border: 1px solid var(--line); }
  .nav.menu-open { background: rgba(7, 8, 12, .95); }
  .steps::before, .steps::after { display: none; }
  .to-top { left: 16px; bottom: 16px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none; }
  .read-bar { display: none; }
}
