/* =============================================
   CONSCIUSRAG — DESIGN SYSTEM v2
   Luxury tech dark · Styles Consolidated
   ============================================= */

/* === VARIABLES === */
:root {
  --navy:        #080f1e;
  --navy-mid:    #0d1a30;
  --navy-light:  #142240;
  --blue:        #1a56db;
  --blue-l:      #4f8ef7;
  --mag:         #c026d3;
  --white:       #ffffff;
  --off:         #f0f4ff;
  --blue-pale:   #eef3ff;
  --g100:        #e8edf8;
  --g300:        #94a3b8;
  --g500:        #64748b;
  --g700:        #334155;
  --charcoal:    #111827;

  --grad:       linear-gradient(135deg, var(--blue-l), var(--mag));
  --grad-dark:  linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, #0f2044 100%);
  --grad-sec:   linear-gradient(160deg, #0a1628 0%, #0e1f3d 50%, #081525 100%);

  --sh-sm:  0 1px 3px rgba(0,0,0,.12);
  --sh-md:  0 4px 16px rgba(0,0,0,.18);
  --sh-lg:  0 8px 32px rgba(0,0,0,.25);
  --sh-xl:  0 20px 60px rgba(0,0,0,.35);
  --glow-b: 0 0 28px rgba(79,142,247,.35);
  --glow-m: 0 0 28px rgba(192,38,211,.38);

  --ease:   cubic-bezier(.22,.61,.36,1);
  --bounce: cubic-bezier(.68,-.55,.265,1.55);
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; }
ul  { list-style: none; }

/* === TIPOGRAFÍA === */
h1,h2,h3,h4,h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}
h1 { font-size: clamp(1.9rem, 4vw,   3rem); }
h2 { font-size: clamp(1.5rem, 3vw,   2.2rem); }
h3 { font-size: clamp(1rem,   1.8vw, 1.25rem); }
p  { line-height: 1.75; color: var(--g500); }

/* === UTILIDADES === */
.container  { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.tc         { text-align: center; }
.section    { padding: 4.5rem 0; position: relative; overflow: hidden; }
.s-white    { background: var(--white); }
.s-off      { background: var(--off); }
.s-blue     { background: var(--blue-pale); }
.s-dark     { background: var(--grad-sec); }
.s-dark h2,
.s-dark h3  { color: var(--white); }
.s-dark p   { color: rgba(255,255,255,.65); }

/* web-canvas — telaraña, siempre detrás del contenido */
.wc {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.section > .container,
.hero > .container,
.cta-section > .container,
.footer > .container { position: relative; z-index: 2; }

/* === BADGE === */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .9rem;
  background: rgba(79,142,247,.1);
  border: 1px solid rgba(79,142,247,.28);
  border-radius: 9999px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-l);
  margin-bottom: 1.1rem;
}

/* === PROGRESS BAR === */
#pb {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--grad);
  z-index: 9998;
  transition: width .1s linear;
}

/* ══════════════════════════
   NAVBAR
══════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(8,15,30,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: .8rem 0;
  transition: padding .3s var(--ease), box-shadow .3s;
}
.nav.scrolled { padding: .55rem 0; box-shadow: 0 4px 30px rgba(0,0,0,.4); }
.nav .container { display: flex; justify-content: space-between; align-items: center; }

.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: 1.1rem; letter-spacing: -.02em; color: var(--white);
  transition: opacity .2s;
}
.brand:hover { opacity: .85; }

.logo-wrap {
  width: 34px; height: 34px;
  background: var(--white);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.logo-wrap img { width: 26px; height: 26px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  color: rgba(255,255,255,.72); font-size: .875rem; font-weight: 500;
  transition: color .2s; position: relative;
}
.nav-links a:not(.ncta)::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--grad);
  transition: width .3s var(--ease);
}
.nav-links a:not(.ncta):hover { color: var(--white); }
.nav-links a:not(.ncta):hover::after { width: 100%; }

.ncta {
  padding: .5rem 1.15rem;
  background: var(--grad); color: var(--white) !important;
  border-radius: 9999px; font-weight: 700; font-size: .85rem;
  box-shadow: var(--glow-b);
  transition: transform .2s, box-shadow .2s;
}
.ncta:hover { transform: translateY(-2px); box-shadow: var(--glow-m); }

.nav-burger { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

.nav-mob {
  display: none; position: fixed; top: 63px; left: 0; right: 0;
  background: rgba(8,15,30,.97); backdrop-filter: blur(20px);
  padding: 1.75rem 1.5rem; z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,.08);
  animation: slideDown .25s var(--ease);
}
.nav-mob.open { display: block; }
.nav-mob ul   { display: flex; flex-direction: column; gap: .85rem; }
.nav-mob a    {
  display: block; color: rgba(255,255,255,.78); font-weight: 500;
  padding: .7rem 1rem; border-radius: 10px;
  transition: background .2s, color .2s;
}
.nav-mob a:hover { background: rgba(255,255,255,.06); color: var(--white); }

/* ══════════════════════════
   HERO
══════════════════════════ */
.hero {
  position: relative;
  background: var(--grad-dark);
  color: var(--white);
  padding: 5rem 0 4.5rem;
  min-height: 86vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero .container { max-width: 760px; }
.hero h1         { color: var(--white); margin-bottom: 1.1rem; }
.hero-sub {
  font-size: 1rem; line-height: 1.8;
  color: rgba(255,255,255,.7);
  max-width: 620px; margin-bottom: 1.75rem;
}
.hero-bullets { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 2.25rem; }
.hero-bullets li {
  display: flex; align-items: center; gap: .7rem;
  color: rgba(255,255,255,.88); font-size: .93rem; font-weight: 500;
}
.bdot {
  width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; color: var(--white); font-weight: 900;
  box-shadow: var(--glow-b);
}
.ctas { display: flex; gap: .85rem; flex-wrap: wrap; }

/* ══════════════════════════
   BOTONES
══════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .65rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: .875rem; letter-spacing: -.01em;
  border-radius: 9999px; border: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-p { background: var(--grad); color: var(--white); box-shadow: var(--glow-b); }
.btn-p:hover { transform: translateY(-3px); box-shadow: var(--glow-m); }
.btn-o { background: transparent; color: rgba(255,255,255,.82); border: 1.5px solid rgba(255,255,255,.22); }
.btn-o:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn-d { background: var(--navy); color: var(--white); box-shadow: var(--sh-md); }
.btn-d:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); background: var(--navy-light); }
.btn-dk { background: var(--charcoal); color: var(--white); box-shadow: var(--sh-md); }
.btn-dk:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }

/* ══════════════════════════
   TARJETAS GENÉRICAS
══════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px; padding: 1.6rem;
  transition: transform .3s var(--ease), box-shadow .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.05rem; margin-bottom: .6rem; color: var(--charcoal); }
.card p  { font-size: .875rem; margin: 0; }

/* FIX: Tarjetas iguales en grid */
.g3 .card, .g2 .card { height: 100%; display: flex; flex-direction: column; }

/* Tarjetas Sí/No */
.card-yes { border-left: 4px solid #10b981; background: linear-gradient(135deg,rgba(16,185,129,.04),rgba(16,185,129,.08)); }
.card-no  { border-left: 4px solid #f43f5e; background: linear-gradient(135deg,rgba(244,63,94,.04),rgba(244,63,94,.08)); }
.card-yes h3 { color: #065f46; }
.card-no  h3 { color: #9f1239; }
.card-yes::before, .card-no::before { display: none; }

.filter-list { display: flex; flex-direction: column; gap: .55rem; margin-top: .85rem; }
.filter-list li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .875rem; line-height: 1.5; color: var(--g700);
}
.filter-list li .fi {
  width: 17px; height: 17px; flex-shrink: 0;
  border-radius: 50%; margin-top: .1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 900; color: white;
}
.card-yes .fi { background: #10b981; }
.card-no  .fi { background: #f43f5e; }

/* ══════════════════════════
   GRIDS
══════════════════════════ */
.g2 { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.g3 { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }

/* ══════════════════════════
   MARC
══════════════════════════ */
.marc-block { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.marc-visual { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.marc-photo {
  width: 220px; height: 220px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 8px rgba(79,142,247,.15), var(--sh-lg);
  flex-shrink: 0;
}
.marc-tag {
  display: inline-block; padding: .3rem .85rem;
  background: var(--grad); color: var(--white);
  font-size: .72rem; font-weight: 700;
  border-radius: 9999px; box-shadow: var(--glow-b);
}
.marc-name { color: var(--charcoal); margin-bottom: .2rem; }
.marc-role { font-size: .9rem; font-weight: 600; color: var(--blue); margin-bottom: .85rem; }
.marc-bio  { font-size: .9rem; max-width: 560px; }
.skill-tags { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; margin-top: 1.1rem; }
.skill-tag {
  padding: .28rem .75rem;
  border: 1.5px solid rgba(79,142,247,.3);
  border-radius: 9999px;
  font-size: .75rem; font-weight: 600; color: var(--blue);
}

/* ══════════════════════════
   MÉTODO — STEPS
══════════════════════════ */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.step-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px; padding: 1.6rem;
  transition: transform .3s var(--ease), border-color .3s;
}
.step-card:hover { transform: translateX(7px); border-color: rgba(79,142,247,.4); }
.step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: 1.15rem; color: var(--white);
  box-shadow: var(--glow-b); margin-bottom: .9rem;
}
.step-card h3       { color: var(--white); font-size: 1.05rem; margin-bottom: .3rem; }
.step-card .weeks   { font-size: .78rem; color: var(--blue-l); font-weight: 600; margin-bottom: .5rem; }
.step-card p        { font-size: .875rem; color: rgba(255,255,255,.62); margin: 0; }

/* ══════════════════════════
   TECH CARDS
══════════════════════════ */
.tech-card {
  padding: 1.5rem; border-radius: 14px;
  border: 1px solid rgba(0,0,0,.07);
  background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.tech-card::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.tech-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: rgba(79,142,247,.2); }
.tech-card:hover::after { transform: scaleX(1); }
.tech-icon { width: 44px; height: 44px; margin-bottom: .9rem; }
.tech-card h4 {
  font-size: .975rem; margin-bottom: .45rem; color: var(--charcoal);
  font-family: 'Montserrat', sans-serif; font-weight: 700;
}
.tech-card p { font-size: .86rem; margin: 0; }

/* ══════════════════════════
   CASOS
══════════════════════════ */
.case-card {
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--sh-md);
  background: var(--white);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.case-card:hover { transform: translateY(-8px); box-shadow: var(--sh-xl); }
.case-thumb {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
}
.case-thumb svg { width: 60px; height: 60px; opacity: .92; }
.case-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.case-tag {
  display: inline-block; padding: .22rem .65rem;
  background: rgba(79,142,247,.1); color: var(--blue);
  border-radius: 9999px; font-size: .72rem; font-weight: 700;
  margin-bottom: .75rem;
}
.case-card h3  { font-size: 1.05rem; margin-bottom: .75rem; color: var(--charcoal); }
.case-meta     { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.case-row      { display: flex; gap: .45rem; font-size: .85rem; }
.case-lbl      { font-weight: 700; color: var(--charcoal); flex-shrink: 0; }
.case-val      { color: var(--g500); }
.case-card .btn { margin-top: auto; align-self: flex-start; font-size: .82rem; padding: .55rem 1.2rem; }

/* ══════════════════════════
   FAQ
══════════════════════════ */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.08); }
.faq-q {
  width: 100%; padding: 1.1rem 0;
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .975rem; color: rgba(255,255,255,.88);
  transition: color .2s; text-align: left;
}
.faq-q:hover { color: var(--blue-l); }
.faq-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: rgba(255,255,255,.55);
  transition: all .3s var(--ease);
}
.faq-q.active .faq-icon { background: var(--grad); border-color: transparent; color: white; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a.open { max-height: 1200px; }
.faq-a p { font-size: .9rem; color: rgba(255,255,255,.62); padding-bottom: 1.1rem; margin: 0; line-height: 1.75; }

/* ══════════════════════════
   CTA SECTION
══════════════════════════ */
.cta-section {
  position: relative; overflow: hidden;
  text-align: center;
  background: var(--grad-sec);
  padding: 5rem 0;
}
.cta-section h2  { color: var(--white); margin-bottom: .9rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-section .lead { color: rgba(255,255,255,.68); margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; font-size: .98rem; }

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
  position: relative; overflow: hidden;
}
.footer-top { display: grid; grid-template-columns: 1fr; gap: 2.25rem; margin-bottom: 2.75rem; }
.footer-name { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.2rem; color: var(--white); letter-spacing: -.02em; margin-bottom: .35rem; }
.footer-claim { color: var(--mag); font-style: italic; font-weight: 600; margin-bottom: .85rem; font-size: .9rem; }
.footer-desc  { font-size: .85rem; line-height: 1.7; margin-bottom: 1.1rem; }
.footer-email a { color: var(--blue-l); font-weight: 600; font-size: .875rem; }
.footer-col h5 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: var(--white); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .9rem;
}
.flinks { display: flex; flex-direction: column; gap: .55rem; }
.flinks a { color: rgba(255,255,255,.52); font-size: .85rem; transition: color .2s, transform .2s; display: inline-block; }
.flinks a:hover { color: var(--mag); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.6rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .85rem;
  font-size: .78rem; color: rgba(255,255,255,.32);
}
.footer-legal { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.32); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.65); }

/* ══════════════════════════
   WIDGET LIA
══════════════════════════ */
.lia {
  display: none !important;
  position: fixed; bottom: 1.6rem; right: 1.6rem;
  z-index: 9999;
  display: flex; flex-direction: column; align-items: flex-end; gap: .7rem;
}
.lia-btn {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(79,142,247,.45);
  transition: transform .3s var(--bounce), box-shadow .3s;
  animation: liaFloat 3.5s ease-in-out infinite;
  position: relative;
}
.lia-btn:hover { transform: scale(1.12); box-shadow: 0 8px 36px rgba(192,38,211,.55); }
.lia-btn img   { width: 36px; height: 36px; border-radius: 50%; background: white; padding: 2px; }
.lia-badge {
  position: absolute; top: -4px; right: -4px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #ef4444; color: white;
  font-size: .62rem; font-weight: 900;
  display: none; align-items: center; justify-content: center;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

.lia-win {
  position: absolute; bottom: 76px; right: 0;
  width: 355px; max-width: calc(100vw - 3.2rem);
  background: var(--white); border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(.85) translateY(16px);
  opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s;
  max-height: 510px;
}
.lia-win.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.lia-head {
  background: var(--grad); padding: .95rem 1.2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.lia-head-info h4 { color: white; font-size: .975rem; margin-bottom: .1rem; }
.lia-head-info p  { color: rgba(255,255,255,.78); font-size: .75rem; margin: 0; }
.lia-x {
  background: rgba(255,255,255,.18); border: none;
  width: 26px; height: 26px; border-radius: 50%;
  color: white; font-size: .95rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lia-x:hover { background: rgba(255,255,255,.32); }

.lia-msgs {
  flex: 1; overflow-y: auto;
  padding: 1.1rem; background: #f8fafc;
  display: flex; flex-direction: column; gap: .75rem;
  min-height: 200px;
}
.lia-msg       { display: flex; gap: .55rem; align-items: flex-start; }
.lia-msg.user  { flex-direction: row-reverse; }
.lia-av {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 900; color: white;
}
.lia-bub {
  background: white; padding: .6rem .85rem;
  border-radius: 12px 12px 12px 4px;
  box-shadow: var(--sh-sm); max-width: 85%;
}
.lia-bub p { font-size: .85rem; margin: 0; color: var(--charcoal); line-height: 1.55; }
.lia-bub.u { background: var(--grad); border-radius: 12px 12px 4px 12px; }
.lia-bub.u p { color: white; }

.typing { display: flex; gap: 4px; padding: .35rem .1rem; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--g300); animation: typingDot 1.4s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

.lia-row {
  padding: .8rem .95rem; border-top: 1px solid var(--g100);
  display: flex; gap: .55rem; background: white;
}
.lia-input {
  flex: 1; padding: .5rem .85rem;
  border: 1.5px solid var(--g100); border-radius: 9999px;
  font-size: .85rem; outline: none; font-family: 'Inter', sans-serif;
  transition: border-color .2s;
}
.lia-input:focus { border-color: var(--blue-l); }
.lia-send {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%; border: none; background: var(--grad);
  color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.lia-send:hover { transform: scale(1.1); }
.lia-send svg { width: 15px; height: 15px; }

/* ══════════════════════════
   ANIMACIONES
══════════════════════════ */
@keyframes liaFloat   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse      { 0%,100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes typingDot  { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-7px); opacity: 1; } }
@keyframes slideDown  { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

.fu { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fu.vis { opacity: 1; transform: translateY(0); }
.fu:nth-child(2) { transition-delay: .1s; }
.fu:nth-child(3) { transition-delay: .2s; }
.fu:nth-child(4) { transition-delay: .3s; }

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (min-width: 700px) {
  .g2 { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .marc-block { 
    flex-direction: row; 
    text-align: left; 
    justify-content: center; 
  }
  .skill-tags { justify-content: flex-start; }
}
@media (min-width: 900px) {
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (max-width: 699px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .hero { min-height: auto; padding: 3.75rem 0 3rem; }
  .ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .section { padding: 3.25rem 0; }
}

/* ══════════════════════════
   PÁGINA SERVICIOS — (Versión Original Mejorada)
══════════════════════════ */
.srv-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  padding: 2.25rem; /* Padding original */
  box-shadow: var(--sh-md);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s;
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
}
.srv-card:hover { transform: translateY(-6px); box-shadow: var(--sh-xl); }

.srv-card ul {
  display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.5rem; flex: 1;
}
.srv-card li {
  font-size: .92rem; color: var(--g700); line-height: 1.6;
  position: relative; padding-left: 1.2rem;
}
.srv-card li::before {
  content: '•'; color: var(--blue-l);
  position: absolute; left: 0; font-weight: 900;
}

/* Subsección interna (Qué hacemos) */
.srv-internal {
  border-top: 1px solid var(--g100);
  padding-top: 1.2rem; margin-bottom: 1.5rem;
}
.srv-internal h4 { font-size: .9rem; margin-bottom: .4rem; color: var(--charcoal); }
.srv-internal p { color: var(--g500); font-size: .92rem; }

/* Footer de color (Simulando el margen negativo) */
.srv-card-footer {
  background: var(--blue-pale);
  border-top: 1px solid rgba(79,142,247,.2);
  margin: 0 -2.25rem -2.25rem -2.25rem; /* Margen negativo para cubrir */
  padding: 1.5rem 2.25rem;
  margin-top: auto;
}
.srv-card-footer h4 { color: var(--blue); font-size: .9rem; margin-bottom: 0; }
.srv-card-footer p { font-size: .9rem; margin-bottom: 0; color: var(--g500); margin-top: .4rem; }

.srv-card-footer.alert {
  background: #fef2f2; border-top-color: #fee2e2;
}
.srv-card-footer.alert h4 { color: #dc2626; }
.srv-card-footer.alert p { color: #991b1b; }

/* FIX FAQ: Estilos para cuando la FAQ está en fondo blanco */
.s-white .faq-q, .s-off .faq-q { color: var(--charcoal); }
.s-white .faq-q:hover, .s-off .faq-q:hover { color: var(--blue); }
.s-white .faq-icon, .s-off .faq-icon { border-color: rgba(0,0,0,.15); color: var(--g500); }
.s-white .faq-q.active .faq-icon, .s-off .faq-q.active .faq-icon { color: white; border-color: transparent; }
.s-white .faq-a, .s-off .faq-a { color: var(--g500); }
.s-white .faq-a p, .s-off .faq-a p { color: var(--g500); }
.s-white .faq-item, .s-off .faq-item { border-bottom-color: rgba(0,0,0,.08); }

.faq-a ul { margin-bottom: 1.1rem; padding-left: 0.5rem; display: flex; flex-direction: column; gap: .4rem; }
.faq-a li { position: relative; padding-left: 1.1rem; font-size: .9rem; line-height: 1.6; }
.faq-a li::before { content: '•'; color: var(--blue-l); position: absolute; left: 0; font-weight: 900; }

/* ══════════════════════════
   PÁGINA PROYECTOS — FICHA TÉCNICA
══════════════════════════ */
.prj-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--sh-md);
  transition: transform .3s var(--ease), box-shadow .3s;
  display: flex; flex-direction: column;
  height: 100%;
}
.prj-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-xl);
}

/* Cabecera del proyecto */
.prj-head {
  padding: 2.5rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--g100);
}
.prj-sector {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; color: var(--g500); margin-bottom: .6rem; display: block;
}
.prj-title {
  font-size: 1.6rem; margin-bottom: 1rem; color: var(--charcoal);
  letter-spacing: -.03em; line-height: 1.15;
}

/* Stack Tecnológico (Chips) */
.prj-stack {
  display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem;
}
.tech-tag {
  font-size: .72rem; font-weight: 600; 
  padding: .3rem .75rem; border-radius: 6px;
  background: var(--off); color: var(--g700);
  border: 1px solid rgba(0,0,0,.05);
}
.tech-tag.ia {
  background: linear-gradient(135deg, rgba(79,142,247,.1), rgba(192,38,211,.1));
  color: var(--mag); border-color: rgba(192,38,211,.2);
}

/* Cuerpo del proyecto */
.prj-body {
  padding: 2.5rem;
  flex: 1;
  display: flex; flex-direction: column; gap: 2rem;
}

/* Grid Antes / Después */
.prj-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 700px) {
  .prj-grid { grid-template-columns: 1fr 1fr; }
}

.prj-col h4 {
  font-size: .95rem; margin-bottom: .8rem; display: flex; align-items: center; gap: .6rem;
}
.prj-col.bad h4 { color: #be123c; }
.prj-col.good h4 { color: #047857; }

.prj-list { display: flex; flex-direction: column; gap: .6rem; }
.prj-list li {
  font-size: .9rem; color: var(--g500); padding-left: 1.2rem; position: relative; line-height: 1.6;
}
.prj-list li::before {
  content: '—'; position: absolute; left: 0; color: var(--g300);
}

/* El Factor X (Destacado) */
.prj-factor {
  background: var(--navy);
  color: rgba(255,255,255,.9);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-top: auto; /* Empuja al fondo */
  position: relative; overflow: hidden;
}
.prj-factor::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--grad);
}
.prj-factor h5 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--blue-l); margin-bottom: .5rem;
}
.prj-factor p {
  font-size: .92rem; color: rgba(255,255,255,.8); margin: 0; line-height: 1.6;
}

/* ═════════════════════════════════════════════
   BLOG + ARTÍCULOS (Inyección por JS + lectura)
   Premium mobile/tablet
═════════════════════════════════════════════ */

/* Controles */
.blog-controls{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; margin-bottom:1.35rem; flex-wrap:wrap;
}
.filter-btns{ display:flex; gap:.55rem; flex-wrap:wrap; }
.filter-btn{
  appearance:none; border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.82);
  color: var(--g700);
  padding: .55rem .85rem;
  border-radius: 9999px;
  font-size: .86rem; font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.filter-btn.active{
  background: rgba(26,86,219,.10);
  border-color: rgba(26,86,219,.28);
  color: var(--blue);
  box-shadow: 0 10px 22px rgba(26,86,219,.12);
}
.sort-box{ display:flex; align-items:center; gap:.6rem; color: var(--g500); font-size:.9rem; }
.sort-select{
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.9);
  padding: .55rem .75rem;
  border-radius: 12px;
  font-weight: 700;
  color: var(--g700);
}

/* Tarjetas del blog (resiliente a estructura: a/article/div) */
#blog-container > *{
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  overflow:hidden;
  box-shadow: var(--sh-md);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
  height: 100%;
}
#blog-container > * a{ color: inherit; text-decoration: none; }
#blog-container > * .badge{ margin-bottom: .85rem; }
#blog-container > * .blog-body,
#blog-container > * .card-body{
  padding: 1.35rem 1.35rem 1.25rem;
  display:flex; flex-direction:column; gap:.65rem;
}
#blog-container > * h3,
#blog-container > * .blog-title{
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--charcoal);
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0;
}
#blog-container > * p,
#blog-container > * .blog-excerpt{
  color: var(--g500);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
}
#blog-container > * .blog-meta{
  margin-top: .25rem;
  color: var(--g300);
  font-size: .82rem;
  display:flex; gap:.6rem; flex-wrap:wrap;
}
#blog-container > * img{
  width:100%;
  height:auto;
  display:block;
}
#blog-container > * .blog-img,
#blog-container > * .thumb,
#blog-container > * .cover{
  width:100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--blue-pale);
}

/* Hover sólo en dispositivos con hover real */
@media (hover: hover) and (pointer: fine) {
  .filter-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.10); }
  #blog-container > *:hover{ transform: translateY(-6px); box-shadow: var(--sh-xl); }
}

/* Lectura de artículos */
.article-body{
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--g700);
}
.article-body p{ margin: 0 0 1.05rem; }
.article-body h1, .article-body h2, .article-body h3{
  font-family: 'Montserrat', sans-serif;
  color: var(--charcoal);
  letter-spacing: -.02em;
}
.article-body h1{ font-size: clamp(1.65rem, 3.2vw, 2.15rem); line-height:1.15; margin: 0 0 1.1rem; }
.article-body h2{ font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height:1.25; margin: 2rem 0 .75rem; }
.article-body h3{ font-size: clamp(1.1rem, 2.0vw, 1.35rem); line-height:1.3; margin: 1.4rem 0 .6rem; }
.article-body ul, .article-body ol{ padding-left: 1.15rem; margin: .2rem 0 1.1rem; }
.article-body li{ margin: .4rem 0; }
.article-body blockquote{
  margin: 1.3rem 0;
  padding: 1rem 1.1rem;
  background: rgba(79,142,247,.08);
  border: 1px solid rgba(79,142,247,.20);
  border-left: 4px solid rgba(26,86,219,.55);
  border-radius: 16px;
  color: var(--g700);
}
.article-body code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .92em;
  background: rgba(0,0,0,.06);
  padding: .15rem .35rem;
  border-radius: 8px;
}
.article-body pre{
  background: #0b1222;
  color: rgba(255,255,255,.86);
  padding: 1rem 1.05rem;
  border-radius: 16px;
  overflow:auto;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--sh-lg);
}
.article-body pre code{ background: transparent; padding: 0; color: inherit; }

/* ═════════════════════════════════════════════
   RESPONSIVE PREMIUM (móvil + tablet)
   Unifica experiencia (sin “encoger desktop”)
═════════════════════════════════════════════ */

/* Móvil amplio (hasta 767) */
@media (max-width: 767px) {
  .container{ padding-inline: 1.15rem; }
  .nav-links{ display:none; }
  .nav-burger{ display:block; }
  .hero{ min-height:auto; padding: 3.6rem 0 3.1rem; }
  .hero-sub{ max-width: 34rem; line-height: 1.75; }
  .ctas{ flex-direction: column; gap: .75rem; }
  .btn{ width:100%; justify-content:center; min-height: 46px; }
  .section{ padding: 3.1rem 0; }
  .g2, .g3{ grid-template-columns: 1fr !important; }
  .blog-controls{ align-items: stretch; }
  .sort-box{ justify-content: space-between; width:100%; }
  .sort-select{ width: 52%; min-width: 10rem; }
  .footer{ padding: 3.25rem 0 1.8rem; }
  /* Widget LIA: respeta safe-area en móviles */
  .lia{ right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .lia-win{ width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 180px)); }
}

/* Tablet (768–1024): sensación editorial y grids cómodos */
@media (min-width: 768px) and (max-width: 1024px) {
  .container{ padding-inline: 1.6rem; }
  .hero{ padding: 4.2rem 0 3.7rem; }
  .article-body{ max-width: 820px; font-size: 1.07rem; }
  #blog-container{ gap: 1.35rem; }
}

/* Reduce motion (PAS-friendly) */
@media (prefers-reduced-motion: reduce) {
  *{ scroll-behavior: auto !important; }
  .lia-btn, .lia-logo{ animation: none !important; }
  .reveal, .fade-in, .pop, .float, .pulse{ animation: none !important; transition: none !important; }
}


/* =============================================
   PATCH v2 — Ajustes tras revisión visual
   - Quita marco del logo
   - Footer más compacto
   - Menú hamburguesa también en tablet (evita solapes del CTA)
   ============================================= */

/* 1) Logo sin marco */
.logo-wrap{
  background: transparent;
  border: none;
}

/* 2) Footer más compacto (evita sensación 'largo') */
.footer{ padding: 3rem 0 1.6rem; }
.footer-top{ gap: 1.6rem; margin-bottom: 2rem; }

@media (max-width: 699px){
  .footer{ padding: 2.5rem 0 1.4rem; }
  .footer-top{ gap: 1.35rem; margin-bottom: 1.7rem; }
}

/* 3) Tablet: usar burger para no forzar wrap/solape */
@media (max-width: 1024px){
  .nav-links{ display: none; }
  .nav-burger{ display: block; }
}
/* FOOTER: 3 columnas (Navegación / Más / Legal) en móvil y tablet */
@media (max-width: 1024px) {
  /* Marca arriba + fila de 3 columnas debajo */
  footer.footer .footer-top{
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem 1.25rem !important;
    align-items: start !important;
  }

  /* Bloque marca/claim/desc/email ocupa toda la fila */
  footer.footer .footer-top > div:first-child{
    grid-column: 1 / -1 !important;
    padding-bottom: .75rem !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    margin-bottom: .25rem !important;
  }

  /* Compacta el texto largo para que el footer no se haga enorme */
  footer.footer .footer-desc{
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: .45rem 0 .2rem !important;
    opacity: .9;
  }

  /* Cada columna (Navegación/Más/Legal) */
  footer.footer .footer-top > div:nth-child(2),
  footer.footer .footer-top > div:nth-child(3),
  footer.footer .footer-top > div:nth-child(4){
    padding-top: .25rem !important;
  }

  footer.footer h5{
    margin: 0 0 .55rem !important;
    font-size: .9rem !important;
  }

  footer.footer ul.flinks{
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  footer.footer ul.flinks li{ margin: .25rem 0 !important; }
  footer.footer ul.flinks a{ display: inline-block !important; padding: .12rem 0 !important; }

  /* Footer bottom ordenado */
  footer.footer .footer-bottom{
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: .6rem !important;
  }
  footer.footer .footer-legal{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .6rem 1rem !important;
  }
}

/* Móvil MUY estrecho: si queda apretado, baja a 2 columnas automáticamente */
@media (max-width: 390px) {
  footer.footer .footer-top{
    grid-template-columns: repeat(2, 1fr) !important;
  }
  footer.footer .footer-top > div:first-child{
    grid-column: 1 / -1 !important;
  }
  footer.footer .footer-top > div:nth-child(4){
    grid-column: 1 / -1 !important; /* Legal abajo a lo ancho */
  }
}
/* HERO — Tablet: sin hueco abajo (control por padding, no por vh) */
@media (min-width: 700px) and (max-width: 1024px) {
  .hero{
    min-height: auto;        /* <- clave: elimina el “relleno” de abajo */
    padding: 4rem 0 2.25rem; /* ajusta el bottom aquí */
    align-items: flex-start;
  }
}

/* Si aun así queda aire, suele venir del contenedor interno */
@media (min-width: 700px) and (max-width: 1024px) {
  .hero .container{
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}
