/* ============================================================
   COGNITIVA — Agencia de Marketing Digital y Publicidad
   Hoja de estilos principal (mobile first)
   ============================================================ */

:root {
  --ink: #0b0e14;
  --ink-soft: #3a3f4a;
  --cyan: #22a6cb;
  --cyan-dark: #1789ab;
  --magenta: #ed1456;
  --magenta-dark: #c40d45;
  --bg: #fdfcf9;
  --bg-alt: #f6f4ef;
  --card: #ffffff;
  --line: #e8e5de;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 14, 20, .07);
  --shadow-lg: 0 24px 60px rgba(11, 14, 20, .12);
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  /* Textura sutil tipo papel */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.028 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; }

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

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- Utilidades de texto ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.accent-cyan { color: var(--cyan); }
.accent-magenta { color: var(--magenta); }
.section-sub { color: var(--ink-soft); max-width: 640px; margin-top: 1rem; }
.link-accent { color: var(--magenta); font-weight: 600; border-bottom: 2px solid transparent; transition: border-color .25s ease; }
.link-accent:hover { border-color: var(--magenta); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(11, 14, 20, .22); }
.btn-primary:hover { background: var(--magenta); box-shadow: 0 10px 28px rgba(237, 20, 86, .35); transform: translateY(-2px); }

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--cyan); border-color: var(--cyan); color: #fff; transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--ink); box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
.btn-light:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.wa-icon { width: 22px; height: 22px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(253, 252, 249, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(11, 14, 20, .06); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand img { width: 128px; height: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-soft);
  position: relative;
  padding: .3rem 0;
  transition: color .25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

.btn-nav { font-size: .85rem; padding: .65rem 1.3rem; }

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0 11px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 2rem 6%;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22, .8, .3, 1);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; margin-bottom: 2rem; }
.mobile-menu ul a {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  transition: color .25s ease, padding-left .25s ease;
}
.mobile-menu ul a:hover { color: var(--magenta); padding-left: .5rem; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 3.5rem) 0 4.8rem; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 7.5vw, 4.4rem); font-weight: 900; margin: .4rem 0 1.3rem; }
.lead { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: var(--ink-soft); max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: 4% 0 0;
  border-radius: 48% 52% 46% 54%;
  background: radial-gradient(circle at 32% 38%, rgba(34,166,203,.46), transparent 42%),
              radial-gradient(circle at 72% 62%, rgba(237,20,86,.40), transparent 43%);
  filter: blur(22px);
  opacity: .92;
  z-index: -3;
}
.hero-glass {
  position: absolute;
  width: 58%;
  height: 58%;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 30px 70px rgba(11,14,20,.06);
  backdrop-filter: blur(5px);
  border-radius: 28px;
  z-index: -1;
}
.hero-glass-back { transform: translate(-14%, -4%) rotate(-4deg); }
.hero-glass-front { transform: translate(14%, 12%) rotate(2deg); }
.hero-mark {
  width: min(53%, 285px);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 28px 48px rgba(11,14,20,.16));
  animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 220px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(11,14,20,.08);
  border-radius: 18px;
  padding: .72rem .9rem;
  box-shadow: 0 16px 42px rgba(11,14,20,.10);
  animation: cardFloat 6s ease-in-out infinite;
}
.float-card strong { display:block; font-family:var(--font-head); font-size:.86rem; line-height:1.2; }
.float-card small { display:block; color:var(--ink-soft); font-size:.74rem; margin-top:.15rem; }
.fc-icon {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display:grid; place-items:center;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.34);
}
.fc-icon svg { width: 20px; height: 20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.fc-icon-cyan { background: rgba(34,166,203,.18); color: var(--cyan-dark); }
.fc-icon-magenta { background: rgba(237,20,86,.16); color: var(--magenta); }
.fc-icon-dark { background: rgba(11,14,20,.10); color: var(--ink); }
.fc-1 { top: 7%; right: 0; }
.fc-2 { bottom: 15%; left: -1%; animation-delay: 1.4s; }
.fc-3 { bottom: -1%; right: 4%; animation-delay: 2.6s; }
@keyframes cardFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

.services-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--magenta);
  background: linear-gradient(135deg, rgba(34, 166, 203, .12), rgba(237, 20, 86, .12));
  margin-bottom: 1.1rem;
  transition: transform .3s ease;
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .5rem; }
.service-card p { color: var(--ink-soft); font-size: .93rem; }

/* Problema */
.section-problem { background: var(--ink); color: #fff; }
.section-problem .eyebrow { color: rgba(255, 255, 255, .65); }
.section-problem p { color: rgba(255, 255, 255, .78); }
.problem-grid { display: grid; gap: 3rem; }
.problem-copy h2 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1.4rem; }
.problem-copy p { margin-bottom: 1rem; max-width: 34rem; }

.benefits { display: flex; flex-direction: column; gap: 1rem; }
.benefit {
  display: flex;
  gap: 1.2rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: background-color .3s ease, transform .3s ease;
}
.benefit:hover { background: rgba(255, 255, 255, .09); transform: translateX(6px); }
.benefit-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex: none;
}
.benefit h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.benefit p { font-size: .92rem; }

/* Paquetes */
.pricing-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.package-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.package-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.package-featured { border: 2px solid var(--magenta); box-shadow: 0 18px 50px rgba(237, 20, 86, .13); }
.package-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--magenta);
  color: #fff;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.package-name { font-size: 1.45rem; font-weight: 800; margin-bottom: .6rem; }
.package-desc { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.4rem; }

.package-price { font-family: var(--font-head); margin-bottom: 1.4rem; }
.package-price .currency { font-size: 1.1rem; font-weight: 700; vertical-align: top; }
.package-price .amount { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.03em; }
.package-price .period { color: var(--ink-soft); font-size: .95rem; }

.package-features { list-style: none; display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.5rem; }
.package-features li { position: relative; padding-left: 1.6rem; font-size: .93rem; color: var(--ink-soft); }
.package-features li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.package-benefit {
  font-size: .92rem;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border-radius: 12px;
  padding: .9rem 1.1rem;
  margin-bottom: 1.6rem;
  margin-top: auto;
}
.package-benefit strong { color: var(--ink); }
.pricing-note { text-align: center; margin-top: 2.4rem; color: var(--ink-soft); }

/* Metodología */
.section-method { background: var(--bg-alt); }
.steps-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: .9rem;
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--ink-soft); font-size: .94rem; }

/* Portafolio */
.portfolio-section { background: linear-gradient(180deg, rgba(34,166,203,.025), rgba(237,20,86,.02)); }
.portfolio-grid { display: grid; gap: 1.45rem; grid-template-columns: 1fr; }
.work-card {
  background: var(--card);
  border: 1px solid rgba(11,14,20,.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(11,14,20,.055);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.work-card:hover { transform: translateY(-7px); box-shadow: 0 24px 52px rgba(11,14,20,.12); border-color: rgba(34,166,203,.22); }
.work-card-link { display:block; height:100%; color:inherit; text-decoration:none; }
.work-card-link:focus-visible { outline:3px solid var(--cyan); outline-offset:-3px; }
.work-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #10131a; }
.work-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.work-card:hover .work-thumb img { transform: scale(1.025); }
.work-info { padding: 1.05rem 1.25rem 1.35rem; }
.work-cat {
  display:inline-block; font-family:var(--font-head); font-size:.70rem; font-weight:800;
  letter-spacing:.12em; text-transform:uppercase; color:var(--cyan-dark); margin-bottom:.38rem;
}
.work-info h3 { font-size:1.06rem; line-height:1.25; }
.work-more { display:inline-block; margin-top:.9rem; font-family:var(--font-head); font-size:.78rem; font-weight:800; color:var(--cyan-dark); }

/* Portafolio en video */
.video-showcase { margin-top: 3rem; }
.video-showcase-head { max-width: 680px; margin-bottom: 1.5rem; }
.video-showcase-head .eyebrow { margin-bottom: .55rem; }
.video-showcase-head h3 { font-size: clamp(1.45rem, 3vw, 2rem); }
.portfolio-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
  gap: 1.5rem;
}
.video-work-card {
  width: 100%;
  padding: 0;
  border: 1px solid rgba(11,14,20,.08);
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 14px 34px rgba(11,14,20,.07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.video-work-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 56px rgba(11,14,20,.13);
  border-color: rgba(237,20,86,.22);
}
.video-work-card:focus-visible { outline: 3px solid rgba(34,166,203,.35); outline-offset: 4px; }
.video-preview {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #eef0f2;
}
.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}
.video-work-card:hover .video-preview img { transform: scale(1.025); filter: brightness(.94); }
.video-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(11,14,20,.22));
  pointer-events: none;
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(11,14,20,.18);
  transition: transform .25s ease, background-color .25s ease;
}
.video-play svg { width: 30px; height: 30px; }
.video-work-card:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.video-card-info { display: block; padding: 1.05rem 1.2rem 1.2rem; }
.video-card-info .work-cat { display: block; }
.video-card-info strong { display: block; font-family: var(--font-head); font-size: 1.06rem; line-height: 1.25; }
.video-card-info small { display: inline-block; margin-top: .55rem; color: var(--ink-soft); font-weight: 600; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5,7,11,.88);
  backdrop-filter: blur(10px);
}
.video-modal.is-open { display: flex; }
.video-modal-shell { width: min(420px, 88vw); }
.video-modal video {
  display: block;
  width: 100%;
  max-height: 82vh;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.video-modal-title {
  margin-top: .85rem;
  color: rgba(255,255,255,.9);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
}
.video-modal-close {
  position: fixed;
  top: 20px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.video-modal-close:hover { background: rgba(255,255,255,.2); }

@media (min-width: 760px) {
  .portfolio-video-grid { grid-template-columns: repeat(2, minmax(0, 300px)); }
}

/* CTA */
.section-cta { padding-bottom: 5.5rem; }
.cta-box {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 3.5rem 8%;
  text-align: center;
  overflow: hidden;
}
.cta-box::before, .cta-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
}
.cta-box::before { width: 340px; height: 340px; background: var(--cyan); top: -160px; left: -120px; }
.cta-box::after { width: 340px; height: 340px; background: var(--magenta); bottom: -180px; right: -120px; }
.cta-box h2, .cta-box p, .cta-box a, .cta-phone { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; }
.cta-box > p { color: rgba(255, 255, 255, .8); max-width: 34rem; margin: 0 auto 2rem; }
.cta-phone { margin-top: 1.2rem; font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .75); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand .footer-logo { display:block; width:min(220px,100%); height:auto; filter:brightness(0) invert(1); opacity:1; margin:0 0 1.15rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { font-weight: 500; transition: color .25s ease; }
.footer-links a:hover { color: var(--cyan); }
.footer-title { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.social-icons { display: flex; gap: .8rem; }
.social-icons a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  color: #fff;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.social-icons a:hover { background: var(--magenta); border-color: var(--magenta); transform: translateY(-3px); }
.social-icons svg { width: 20px; height: 20px; }
.footer-bottom { padding-top: 1.6rem; font-size: .85rem; color: rgba(255, 255, 255, .5); }

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: waPulse 3s ease-in-out infinite;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(37, 211, 102, .55); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, .45); }
  50% { box-shadow: 0 10px 28px rgba(37, 211, 102, .45), 0 0 0 12px rgba(37, 211, 102, .12); }
}

/* Animaciones de aparición */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger sutil en grids */
.services-grid .reveal.is-visible:nth-child(3n+2) { transition-delay: .08s; }
.services-grid .reveal.is-visible:nth-child(3n+3) { transition-delay: .16s; }
.steps-grid .reveal.is-visible:nth-child(2) { transition-delay: .08s; }
.steps-grid .reveal.is-visible:nth-child(3) { transition-delay: .16s; }
.steps-grid .reveal.is-visible:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .section { padding: 6.5rem 0; }
  .hero { padding: calc(var(--header-h) + 5rem) 0 6rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 2rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .package-featured { transform: scale(1.03); }
  .package-featured:hover { transform: scale(1.03) translateY(-8px); }
  .problem-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}

@media (max-width: 959px) {
  .main-nav, .btn-nav { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 385px; margin-top: .5rem; }
  .hero-mark { width: min(45%, 190px); }
  .hero-glass { width: 64%; height: 53%; border-radius: 22px; }
  .float-card { min-width: 186px; padding: .58rem .7rem; gap: .6rem; }
  .float-card strong { font-size: .74rem; }
  .float-card small { font-size: .64rem; }
  .fc-icon { width: 31px; height: 31px; }
  .fc-icon svg { width: 16px; height: 16px; }
  .fc-1 { top: 3%; right: 0; }
  .fc-2 { bottom: 16%; left: 0; }
  .fc-3 { bottom: 0; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Iconos premium de servicios */
.premium-service-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: transparent;
  overflow: visible;
  margin: -5px 0 .9rem -6px;
}
.premium-service-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 9px 15px rgba(11, 14, 20, .08));
}
.service-card:hover .premium-service-icon {
  transform: translateY(-3px) scale(1.055);
}
@media (max-width: 480px) {
  .premium-service-icon { width: 66px; height: 66px; }
}


/* Refinamiento multipágina final */
.work-desc { margin-top:.55rem; color:var(--ink-soft); font-size:.9rem; line-height:1.55; }
.portfolio-proof { margin-top:1.5rem; padding:1.25rem 1.4rem; border:1px solid var(--line); border-radius:18px; display:flex; gap:1rem; align-items:center; justify-content:space-between; background:rgba(255,255,255,.72); }
.portfolio-proof p { max-width:760px; color:var(--ink-soft); }
.portfolio-proof strong { color:var(--ink); }
.text-link { font-family:var(--font-head); font-weight:800; white-space:nowrap; color:var(--cyan-dark); }
.service-purpose { display:inline-block; margin-bottom:.5rem; font-family:var(--font-head); font-size:.67rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--magenta); }
.service-guide { margin-top:2.2rem; padding:clamp(1.5rem,4vw,2.6rem); border-radius:24px; background:var(--ink); color:#fff; display:grid; gap:1.5rem; align-items:center; overflow:hidden; position:relative; }
.service-guide:after { content:''; position:absolute; width:180px; height:180px; border-radius:50%; right:-70px; top:-80px; background:radial-gradient(circle,rgba(34,166,203,.28),transparent 68%); pointer-events:none; }
.service-guide h2 { color:#fff; font-size:clamp(1.65rem,3vw,2.35rem); }
.service-guide p:not(.eyebrow) { color:rgba(255,255,255,.72); margin-bottom:1.1rem; max-width:560px; }
@media (min-width:960px) { .service-guide { grid-template-columns:1.05fr .95fr; } }
@media (max-width:639px) { .portfolio-proof { align-items:flex-start; flex-direction:column; } }


/* Arquitectura de servicios 2026 */
.service-hub .section-head h1 { font-size:clamp(2.25rem,6vw,4.4rem); max-width:900px; line-height:.98; margin-bottom:1rem; }
.service-hub-grid { display:grid; grid-template-columns:1fr; gap:1.25rem; }
.service-hub-card, .home-service-card { background:rgba(255,255,255,.78); border:1px solid var(--line); border-radius:24px; padding:1.5rem; box-shadow:0 14px 38px rgba(11,14,20,.045); }
.service-hub-card { scroll-margin-top:110px; }
.service-hub-card h3, .home-service-card h3 { font-family:var(--font-head); font-size:1.32rem; line-height:1.12; margin-bottom:.7rem; }
.service-hub-card > p, .home-service-card p { color:var(--ink-soft); line-height:1.62; }
.service-preview { margin:1rem 0 1.1rem; padding-left:1.15rem; color:var(--ink); display:grid; gap:.42rem; font-size:.92rem; }
.service-details { border-top:1px solid var(--line); padding-top:.95rem; margin-top:.9rem; }
.service-details summary { list-style:none; cursor:pointer; font-family:var(--font-head); font-weight:800; color:var(--cyan-dark); }
.service-details summary::-webkit-details-marker { display:none; }
.service-details summary::after { content:'+'; float:right; color:var(--magenta); font-size:1.1rem; }
.service-details[open] summary::after { content:'–'; }
.service-details-body { padding-top:1rem; }
.service-details-body ul { padding-left:1.1rem; display:grid; gap:.45rem; color:var(--ink-soft); font-size:.92rem; }
.service-details-body .btn { margin-top:1rem; }
.training-topics { margin-top:1rem; padding:.85rem 1rem; border-radius:14px; background:rgba(34,166,203,.08); font-size:.88rem; line-height:1.55; }
.home-services { background:linear-gradient(180deg,rgba(255,255,255,0),rgba(34,166,203,.035)); }
.home-services-grid { display:grid; grid-template-columns:1fr; gap:1rem; }
.home-service-card { padding:1.25rem; }
.home-service-card .premium-service-icon { width:58px; height:58px; margin-bottom:.55rem; }
.home-services-cta { margin-top:1.6rem; text-align:center; }
@media (min-width:640px) { .service-hub-grid, .home-services-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:960px) { .service-hub-grid { grid-template-columns:repeat(2,1fr); } .service-hub-card:last-child { grid-column:1 / -1; display:grid; grid-template-columns:auto 1fr; column-gap:1.2rem; } .service-hub-card:last-child .service-icon { grid-row:1 / span 5; } .home-services-grid { grid-template-columns:repeat(3,1fr); } .home-service-card:last-child { grid-column:2 / 3; } }

/* ============================================================
   MODO OSCURO — conserva la identidad visual y el logo original
   ============================================================ */
.theme-toggle {
  width: 42px;
  height: 42px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11,14,20,.06);
  transition: transform .2s ease, background-color .25s ease, border-color .25s ease, color .25s ease;
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle:focus-visible { outline: 3px solid rgba(34,166,203,.35); outline-offset: 3px; }
.theme-toggle .theme-icon { font-size: 1.05rem; line-height: 1; }

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body {
  --ink: #f4f7fb;
  --ink-soft: #b9c0cc;
  --bg: #0b0e14;
  --bg-alt: #11151d;
  --card: #151a23;
  --line: #2a313d;
  --shadow: 0 10px 30px rgba(0,0,0,.24);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.34);
  background-image:
    linear-gradient(rgba(255,255,255,.012), rgba(255,255,255,.012)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .site-header { background: rgba(11,14,20,.88); }
html[data-theme="dark"] .site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.28); }
.logo-dark { display:none; }
html[data-theme="dark"] .brand { background: transparent; padding: 0; }
html[data-theme="dark"] .brand .logo-light { display:none; }
html[data-theme="dark"] .brand .logo-dark { display:block; }
html[data-theme="dark"] .nav-toggle { background: var(--card); }
html[data-theme="dark"] .mobile-menu { background: var(--bg); }
html[data-theme="dark"] .btn-primary { background: #f4f7fb; color: #0b0e14; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
html[data-theme="dark"] .btn-primary:hover { background: var(--magenta); color: #fff; }
html[data-theme="dark"] .btn-ghost:hover { background: #f4f7fb; color: #0b0e14; }
html[data-theme="dark"] .btn-light { background: #f4f7fb; color: #0b0e14; }
html[data-theme="dark"] .btn-light:hover { background: var(--magenta); color: #fff; }
html[data-theme="dark"] .hero-glass { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.035); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 70px rgba(0,0,0,.2); }
html[data-theme="dark"] .floating-card { background: rgba(21,26,35,.94); }
html[data-theme="dark"] .fc-icon-dark { background: rgba(255,255,255,.08); color: var(--ink); }
html[data-theme="dark"] .section-problem,
html[data-theme="dark"] .cta-box,
html[data-theme="dark"] .service-guide,
html[data-theme="dark"] .site-footer { background: #070a0f; color: #fff; }
html[data-theme="dark"] .service-hub-card,
html[data-theme="dark"] .home-service-card,
html[data-theme="dark"] .portfolio-proof { background: rgba(21,26,35,.88); }
html[data-theme="dark"] .training-topics { background: rgba(34,166,203,.12); }
html[data-theme="dark"] .home-services { background: linear-gradient(180deg,rgba(11,14,20,0),rgba(34,166,203,.045)); }
html[data-theme="dark"] .video-play { background: rgba(21,26,35,.94); }
html[data-theme="dark"] .video-work-card:hover .video-play { background: #f4f7fb; color: #0b0e14; }
html[data-theme="dark"] .video-thumb { background: #0a0d13; }
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select { color: var(--ink); background: var(--card); border-color: var(--line); }
html[data-theme="dark"] ::selection { background: rgba(237,20,86,.45); color: #fff; }

@media (max-width: 900px) {
  .theme-toggle { width: 40px; height: 40px; margin-left: auto; }
}

/* Neuron oficial asomándose junto al logotipo — usa el PNG suministrado por Cognitiva */
.brand { position: relative; display: inline-flex; align-items: center; isolation: isolate; }
.brand .logo-light, .brand .logo-dark { position: relative; z-index: 2; }
.brand-neuron {
  position: absolute;
  z-index: 1;
  width: 74px !important;
  height: auto !important;
  left: 94px;
  top: 3px;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 6px 12px rgba(11,14,20,.12));
}
html[data-theme="dark"] .brand-neuron { display: block; filter: drop-shadow(0 7px 14px rgba(0,0,0,.28)); }
@media (max-width: 720px) {
  .brand-neuron { width: 62px !important; left: 88px; top: 7px; }
}

/* Tendencias Digitales */
.brand-neuron { display:none !important; }
.trends-hero { padding-top: clamp(7rem, 10vw, 8.5rem); padding-bottom: 1.5rem; }
.trends-hero .section-head { max-width: 980px; }
.trends-hero h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5.25rem); line-height: .96; letter-spacing: -.055em; margin: .45rem 0 1.1rem; }
.trends-lead { font-size: clamp(1.08rem, 2vw, 1.34rem); line-height:1.55; color: var(--ink-soft); max-width: 760px; }
.trends-categories { padding:.75rem 0 1.25rem; }
.trend-category-list { display:flex; gap:.65rem; overflow-x:auto; padding:.2rem 0 .55rem; scrollbar-width:thin; }
.trend-category-pill { flex:none; padding:.62rem .9rem; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--ink); font-family:var(--font-head); font-size:.76rem; font-weight:750; text-decoration:none; transition:.2s ease; }
.trend-category-pill:hover, .trend-category-pill.is-active { background:var(--ink); border-color:var(--ink); color:var(--bg); transform:translateY(-1px); }
.trends-section { padding-top: 1.25rem; }
.trends-intro { max-width: 820px; margin-bottom: 2rem; font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); }
.trends-intro strong { color: var(--ink); }
.trend-featured { display:grid; border:1px solid var(--line); border-radius:28px; overflow:hidden; background:var(--card); box-shadow:0 18px 54px rgba(11,14,20,.07); margin-bottom:2rem; }
.trend-featured-media, .trend-card-media { display:block; overflow:hidden; background:#0b0e14; }
.trend-featured-media { min-height:280px; aspect-ratio:16/10; }
.trend-featured-media img, .trend-card-media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .45s cubic-bezier(.2,.8,.2,1); }
.trend-featured:hover img, .trend-card:hover img { transform:scale(1.025); }
.trend-featured-copy { padding:clamp(1.5rem,4vw,3rem); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.trend-featured-copy h2 { font-size:clamp(1.8rem,3.5vw,3rem); line-height:1.02; margin:0 0 1rem; }
.trend-featured-copy > p { color:var(--ink-soft); line-height:1.7; margin:0 0 1rem; }
.trend-featured-copy .btn { margin-top:.4rem; }
.trends-grid { display:grid; grid-template-columns:1fr; gap:1.25rem; }
.trend-card { position:relative; border:1px solid var(--line); border-radius:22px; background:var(--card); overflow:hidden; min-height:100%; display:flex; flex-direction:column; box-shadow:0 12px 34px rgba(11,14,20,.045); transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.trend-card:hover { transform:translateY(-5px); box-shadow:0 22px 48px rgba(11,14,20,.09); border-color:rgba(34,166,203,.25); }
.trend-card-media { aspect-ratio:16/9; }
.trend-card-body { padding:1.35rem; display:flex; flex:1; flex-direction:column; align-items:flex-start; }
.trend-tag { display:inline-block; font-size:.69rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; color:var(--cyan-dark); margin-bottom:.8rem; }
.trend-card:nth-child(2n) .trend-tag { color:var(--magenta); }
.trend-card h2 { font-size:1.35rem; line-height:1.12; margin:0 0 .75rem; }
.trend-card p { color:var(--ink-soft); line-height:1.6; margin:0; }
.trend-meta, .article-meta { display:flex; flex-wrap:wrap; gap:.5rem 1rem; color:var(--ink-soft); font-size:.76rem; margin:.9rem 0; }
.trend-meta span + span, .article-meta span + span { padding-left:1rem; border-left:1px solid var(--line); }
.trend-status { margin-top:auto; padding-top:.65rem; font-weight:750; font-size:.86rem; color:var(--ink); }
.trend-media-placeholder { width:100%; height:100%; display:grid; place-items:center; background:radial-gradient(circle at 25% 25%,rgba(34,166,203,.32),transparent 38%),radial-gradient(circle at 78% 72%,rgba(237,20,86,.3),transparent 38%),#0b0e14; }
.trend-media-placeholder span { color:#fff; font-family:var(--font-head); font-size:clamp(.8rem,2vw,1rem); font-weight:900; letter-spacing:.28em; }
.trends-empty { padding:clamp(2rem,5vw,4rem); border:1px solid var(--line); border-radius:28px; background:var(--card); max-width:800px; }
.trends-empty h2 { font-size:clamp(1.7rem,3vw,2.6rem); margin-bottom:.8rem; }
.trends-empty > p:last-child { color:var(--ink-soft); max-width:620px; line-height:1.65; }
html[data-theme="dark"] .trend-card, html[data-theme="dark"] .trend-featured, html[data-theme="dark"] .trends-empty { background:rgba(21,26,35,.88); }
@media (min-width:700px){ .trends-grid{grid-template-columns:repeat(2,1fr);} }
@media (min-width:900px){ .trend-featured{grid-template-columns:1.18fr .82fr;} .trend-featured-media{aspect-ratio:auto; min-height:430px;} }
@media (min-width:1100px){ .trends-grid{grid-template-columns:repeat(3,1fr);} }

/* Corrección final de legibilidad: tarjetas flotantes del Hero en modo oscuro */
html[data-theme="dark"] .float-card {
  background: rgba(250, 251, 253, .96);
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 16px 36px rgba(0,0,0,.22);
  color: #0b0e14;
}
html[data-theme="dark"] .float-card strong {
  color: #0b0e14;
}
html[data-theme="dark"] .float-card small {
  color: #5f6877;
}
html[data-theme="dark"] .float-card .fc-icon-dark {
  background: rgba(11,14,20,.07);
  color: #0b0e14;
}

/* ============================================================
   COGNITIVA HERO V6 — SIN NEURON
   Composición aprobada: isotipo + glass + 3 tarjetas.
   ============================================================ */
html, body { max-width: 100%; overflow-x: clip; }
.hero .container { overflow: visible; }
.hero-visual {
  min-width: 0;
  overflow: visible;
  min-height: 430px;
}
.hero-mark {
  width: min(53%, 285px);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 28px 48px rgba(11,14,20,.16));
}
.float-card { z-index: 4; max-width: 250px; }
.fc-1 { top: 7%; right: 0; }
.fc-2 { bottom: 15%; left: -1%; }
.fc-3 { bottom: -1%; right: 4%; }

html[data-theme="dark"] .hero-mark {
  filter:
    drop-shadow(-5px 0 14px rgba(34,166,203,.18))
    drop-shadow(6px 0 14px rgba(237,20,86,.16))
    drop-shadow(0 28px 48px rgba(0,0,0,.30));
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); }
  .hero-copy, .hero-visual { min-width: 0; }
}
@media (max-width: 959px) {
  .hero-visual { min-height: 390px; overflow: hidden; border-radius: 30px; }
  .hero-mark { width: min(45%, 210px); }
  .fc-1 { top: 8%; right: 3%; }
  .fc-2 { bottom: 15%; left: 3%; }
  .fc-3 { bottom: 2%; right: 3%; }
}
@media (max-width: 480px) {
  .hero-visual { min-height: 350px; }
  .hero-mark { width: min(43%, 170px); }
  .float-card { min-width: 0; max-width: 170px; }
  .fc-1 { top: 6%; right: 2%; }
  .fc-2 { bottom: 17%; left: 2%; }
  .fc-3 { bottom: 3%; right: 2%; }
}
