/* =========================================================
   FÉNIX — Sistema de diseño compartido
   ========================================================= */

:root {
  --bg: #060911;
  --bg-alt: #0a0f1c;
  --bg-card: #0e1524;
  --bg-card-hover: #121b30;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);

  --blue: #1e9be0;
  --blue-light: #4db8f0;
  --blue-dark: #0d6fae;
  --blue-glow: rgba(30, 155, 224, 0.35);

  --green: #34d399;
  --red: #f0544c;
  --purple: #8b5cf6;
  --gold: #f5c451;

  --white: #f6f8fb;
  --text: #cbd5e3;
  --text-muted: #8a96ab;

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { color: var(--text); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  color: var(--blue-light);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section--tight { padding: 64px 0; }

.section--alt { background: var(--bg-alt); }

.hex-bg {
  background-color: var(--bg);
  background-image: url('../assets/img/bg-hexagon.webp');
  background-size: cover;
  background-position: left top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.dots {
  position: absolute;
  display: flex;
  gap: 8px;
}
.dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue);
  opacity: 0.6;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  color: #05121e;
  box-shadow: 0 8px 24px var(--blue-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--blue-glow); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border-light);
}
.btn--ghost:hover { border-color: var(--blue-light); color: var(--blue-light); }

.btn--whatsapp {
  background: #25d366;
  color: #04170c;
}
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35); }

.btn--sm { padding: 11px 22px; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(6, 9, 17, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(6, 9, 17, 0.92);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.04em;
}
.logo span { color: var(--white); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav__links a { color: var(--text); transition: color 0.2s ease; }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }

.nav__dropdown { position: relative; }
.nav__dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.nav__dropdown:hover .nav__dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
}
.nav__dropdown-panel a:hover { background: var(--bg-card-hover); color: var(--white); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--white); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 170px 0 100px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: "intro media" "body media";
  gap: 56px;
  align-items: center;
}
.hero__intro { grid-area: intro; }
.hero__body { grid-area: body; }
.hero__media { grid-area: media; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 155, 224, 0.1);
  border: 1px solid rgba(30, 155, 224, 0.3);
  color: var(--blue-light);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero__badge .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text);
  margin: 20px 0 32px;
  max-width: 46ch;
}

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 30px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(30,155,224,0.08);
}
.hero__video video { width: 100%; border-radius: var(--radius); }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }
.reveal-delay-4.is-visible { transition-delay: 0.32s; }

/* ---------- Diagnóstico (scroll story) ---------- */

.diagnostico { position: relative; }
.diagnostico__intro { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.diagnostico__intro p { margin-top: 14px; }

.stage {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
}
.stage:last-child { border-bottom: 1px solid var(--border); }

.stage__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--blue-light);
  opacity: 0.55;
}

.stage__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }

.stage__checklist { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 20px; }
.stage__checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.stage__checklist .mark {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.mark--yes { background: rgba(52,211,153,0.15); color: var(--green); }
.mark--warn { background: rgba(245,196,81,0.15); color: var(--gold); }
.mark--no { background: rgba(240,84,76,0.15); color: var(--red); }

.stage__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.stage__card .service-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 10px;
}
.stage__card h3 { margin-bottom: 10px; }
.stage__card p { font-size: 0.92rem; margin-bottom: 18px; }

/* ---------- Cards / Grid ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(30,155,224,0.35); background: var(--bg-card-hover); }

.card__icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30, 155, 224, 0.12);
  color: var(--blue-light);
  font-size: 1.3rem;
  margin-bottom: 18px;
  overflow: hidden;
}
.card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; margin-bottom: 18px; }
.card .card-link { color: var(--blue-light); font-family: var(--font-head); font-weight: 700; font-size: 0.86rem; }

/* ---------- Exclusividad ---------- */

.exclusividad {
  border: 1px solid rgba(30,155,224,0.3);
  background: linear-gradient(160deg, rgba(30,155,224,0.1), rgba(139,92,246,0.05));
  border-radius: 24px;
  padding: 56px;
  text-align: center;
}
.exclusividad__icon { width: 72px; margin: 0 auto 18px; }
.exclusividad h2 { margin-bottom: 16px; }
.exclusividad p { max-width: 56ch; margin: 0 auto 28px; }

.counter-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin: 36px 0 8px;
  flex-wrap: wrap;
}
.counter-row .stat { text-align: center; }
.counter-row .stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
}
.counter-row .stat span { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Steps (numbered process, reused across service pages) ---------- */

.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.step:last-child { padding-bottom: 0; }
.step__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(30,155,224,0.12);
  color: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800;
}
.step h4 { color: var(--white); margin-bottom: 4px; font-family: var(--font-head); }
.step p { font-size: 0.92rem; }

/* ---------- Service hero (sub-pages) ---------- */

.service-hero { padding: 150px 0 70px; }
.service-hero__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.84rem; color: var(--text-muted); margin-bottom: 18px;
}
.service-hero__meta a { color: var(--blue-light); }

.platform-badges { display: flex; gap: 14px; align-items: center; margin: 26px 0; flex-wrap: wrap; }
.platform-badges .badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ---------- Blog ---------- */

.blog-card { display: flex; flex-direction: column; }
.blog-card .tag {
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-light);
  margin-bottom: 12px;
}
.article { max-width: 760px; margin: 0 auto; }
.article__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.84rem; color: var(--text-muted); margin-bottom: 18px;
}
.article__lead { font-size: 1.1rem; color: var(--text); margin-top: 18px; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 52px 0 18px;
  padding-top: 6px;
}
.article-body h3 {
  font-size: 1.2rem;
  color: var(--blue-light);
  margin: 32px 0 12px;
}
.article-body p { margin-bottom: 18px; font-size: 1rem; }
.article-body ul { margin: 0 0 18px 0; display: flex; flex-direction: column; gap: 8px; }
.article-body ul li {
  padding-left: 22px;
  position: relative;
  color: var(--text);
}
.article-body ul li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-light);
}
.article-body strong { color: var(--white); }
.article-faq {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.article-faq .faq-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.article-faq .faq-item h3 { margin: 0 0 8px; color: var(--white); }
.article-faq .faq-item p { margin: 0; font-size: 0.95rem; }
.article-cta {
  margin: 56px auto 0;
  max-width: 760px;
}

.blog-empty {
  text-align: center;
  padding: 60px 30px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* ---------- CTA final ---------- */

.cta-final {
  text-align: center;
  padding: 90px 0;
}
.cta-final h2 { margin-bottom: 16px; }
.cta-final p { max-width: 50ch; margin: 0 auto 32px; }
.cta-final .hero__ctas { justify-content: center; }

/* ---------- Formulario aplicación ---------- */

.apply-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: flex-start;
}

.apply-info .stat-block {
  display: flex; gap: 14px; margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.apply-info .stat-block strong { font-family: var(--font-head); color: var(--white); display:block; margin-bottom: 4px;}
.apply-info .stat-block p { font-size: 0.88rem; }

form.apply-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; color: var(--white); }
.field input, .field select, .field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer__brand p { font-size: 0.88rem; margin-top: 14px; max-width: 32ch; }
.footer h4 { font-size: 0.85rem; color: var(--white); margin-bottom: 16px; font-family: var(--font-head); }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 0.88rem; color: var(--text-muted); }
.footer a:hover { color: var(--blue-light); }

.logo:hover, .logo:hover span { color: var(--blue-light); }
.logo, .logo span { transition: color 0.2s ease; }
.footer .logo,
.footer .logo span { color: var(--white); }
.footer .logo:hover,
.footer .logo:hover span { color: var(--blue-light); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- WhatsApp float button ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #04170c;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); }
.wa-float svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "media" "body";
  }
  .hero__intro, .hero__body { text-align: center; }
  .hero__intro .hero__badge,
  .hero__intro .eyebrow { margin-left: auto; margin-right: auto; }
  .hero__body .lead { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .platform-badges { justify-content: center; }
  .hero { padding-top: 140px; }
  .stage__body { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .apply-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav .btn--ghost { display: none; }
  .nav__toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__brand p { margin-left: auto; margin-right: auto; }
  .footer ul { align-items: center; }
  .footer__bottom { justify-content: center; text-align: center; }
  .exclusividad { padding: 36px 22px; }
  .counter-row { gap: 30px; }
  .stage { grid-template-columns: 50px 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(6,9,17,0.98);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.nav-drawer.is-open { opacity: 1; visibility: visible; }
