/* ============================================================
   Mauro León — Portfolio v3
   Claro · Premium · Consultor de alto nivel
   Inspiración: Stripe · Linear · Vercel
   ============================================================ */

:root {
  --bg:        #FAFAF8;
  --bg-2:      #F2F0EB;
  --bg-3:      #E8E5DE;
  --card:      #FFFFFF;
  --card-2:    #F7F6F2;

  --border:    rgba(15,15,15,0.09);
  --border-2:  rgba(15,15,15,0.16);

  --text:      #0F0F0F;
  --text-2:    #3A3A3A;
  --muted:     #6E6B64;
  --dim:       #A09C94;

  --accent:    #1D4ED8;        /* blue-700 — trustworthy, premium */
  --accent-2:  #1E40AF;        /* blue-800 — hover */
  --accent-light: #EFF6FF;     /* blue-50  — fondo soft */
  --accent-rgb: 29,78,216;

  --green:     #16A34A;        /* disponible */

  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.04);
  --shadow-accent: 0 8px 30px rgba(29,78,216,.22);

  --container: 1160px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* Fondo con textura muy sutil */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: 100px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* Eyebrow/tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(29,78,216,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.section-head { margin-bottom: 64px; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}
.section-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.65;
}
.section-head.center .section-subtitle { margin: 0 auto; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
/* El fondo y el desenfoque van en un pseudo-elemento: con backdrop-filter en el header mismo, el menú
   del celular (position: fixed) quedaba atrapado dentro del header y se abría como una tira de 60 px. */
.site-header::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgba(250,250,248,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background .25s;
}
/* main.js pone .scrolled al bajar: recién ahí aparecen el borde y la sombra */
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(15,15,15,.06);
}
.site-header.scrolled::before { background: rgba(250,250,248,0.92); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  transition: padding .25s;
}
@media (min-width: 901px) { .site-header.scrolled .nav { padding: 10px 28px; } }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, #0F172A 100%);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  border-radius: 12px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), .25);
  transition: transform .25s, box-shadow .25s;
}
.brand:hover .brand-mark {
  transform: translateY(-1px) rotate(-4deg);
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), .34);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.brand-text small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand-dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links > li > a:not(.nav-cta) {
  position: relative;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: color .18s;
}
/* Subrayado que crece desde la izquierda: en hover y en la página actual */
.nav-links > li > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #60A5FA);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-links > li > a:not(.nav-cta):hover { color: var(--text); }
.nav-links > li > a.active { color: var(--accent); }
.nav-links > li > a:not(.nav-cta):hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }

.nav-cta {
  margin-left: 12px;
  padding: 10px 20px !important;
  background: linear-gradient(135deg, var(--accent), #3B82F6) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), .28) !important;
  transition: transform .2s, box-shadow .2s, filter .2s !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 10px 26px rgba(var(--accent-rgb), .36) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  width: 40px; height: 40px;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--text); transition: all .25s; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 70px 0 0 0;
    background: rgba(250,250,248,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px 28px;
    gap: 0;
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links > li > a { display: block; padding: 18px 0; font-size: 18px; }
  .nav-links > li > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 20px !important; display: inline-block; }
}

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .22s ease;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(29,78,216,.30);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-lg { padding: 16px 30px; font-size: 16px; border-radius: 12px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
/* Decoración sutil hero */
.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,.06) 0%, transparent 70%);
  right: -200px; top: -200px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot-green {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
  animation: blink 2s infinite;
}
@keyframes blink { 50% { opacity: .4; } }
.hero-badge span { color: var(--text-2); font-weight: 500; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 28px;
  color: var(--text);
}
.hero h1 .accent {
  color: var(--accent);
  display: inline-block;
  text-align: left;
  vertical-align: bottom;
}
.hero h1 .underwave {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underwave svg {
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  width: 100%; height: 10px;
}

.hero .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 40px;
}
.hero .lead strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-proof {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proof-item {}
.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 4px;
}
.proof-item strong em { color: var(--accent); font-style: normal; }
.proof-item span { color: var(--muted); font-size: 13px; }

/* Card lateral hero */
.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}
.hero-card .card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.card-stat {
  background: var(--bg-2);
  border-radius: 8px;
  padding: 14px;
}
.card-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 2px;
}
.card-stat strong em { color: var(--accent); font-style: normal; }
.card-stat small { color: var(--muted); font-size: 12px; }

/* ── Clients Static ──────────────────────────────────────── */
.clients-static {
  padding: 80px 0 72px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.clients-static .container { text-align: center; }
.clients-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* ── Clients Marquee (legacy, mantenido por si acaso) ────── */
.clients-marquee {
  padding: 80px 0 72px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.clients-marquee .container {
  text-align: center;
  margin-bottom: 48px;
}
.clients-marquee-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--dim);
  margin-bottom: 12px;
}
.clients-marquee-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.025em;
}
.clients-marquee-title em { color: var(--accent); font-style: normal; }
.clients-marquee-sub {
  margin-top: 10px;
  font-size: .95rem;
  color: var(--dim);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Marquee wrapper con fades laterales */
.marquee-outer {
  position: relative;
}
.marquee-outer::before,
.marquee-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.marquee-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 10%, transparent 100%);
}
.marquee-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 10%, transparent 100%);
}

.marquee-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee-slide-left 34s linear infinite;
}
.marquee-track.marquee-reverse {
  animation: marquee-slide-right 30s linear infinite;
}
.marquee-rows:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track.marquee-portales {
  animation: marquee-slide-left 44s linear infinite;
}
.marquee-pill-portal {
  background: #EEF4FF;
  border-color: rgba(29,78,216,.18);
}
.marquee-pill-portal strong { color: #1E40AF; }
.marquee-pill-portal em { color: #3B82F6; }
.marquee-pill-portal .marquee-pill-sep { background: rgba(29,78,216,.20); }
.marquee-pill-portal:hover {
  background: #DBEAFE;
  border-color: var(--accent);
  color: var(--accent);
}

/* Pills */
.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 13px 22px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.08);
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,.045);
  text-decoration: none;
  color: var(--text);
  transition: border-color .25s, box-shadow .25s, transform .25s, color .25s;
}
.marquee-pill:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 22px rgba(29,78,216,.14);
  transform: translateY(-3px) scale(1.02);
  color: var(--accent);
  text-decoration: none;
}
.marquee-pill strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: -0.01em;
}
.marquee-pill-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(0,0,0,.15);
  margin: 0 10px;
  flex-shrink: 0;
}
.marquee-pill em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--dim);
  letter-spacing: .04em;
  transition: color .25s;
}
.marquee-pill:hover em { color: rgba(29,78,216,.65); }
.marquee-pill:hover .marquee-pill-sep { background: rgba(29,78,216,.25); }
.marquee-pill .flag { margin-right: 6px; font-size: .95rem; line-height: 1; }

@keyframes marquee-slide-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-slide-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Legado — mantener por si se usa en otro lugar */
.clients-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.client { text-decoration: none; cursor: pointer; }

/* ── Servicios — grid de cards limpio ───────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  display: block;
  color: inherit;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: var(--accent-light);
  opacity: 0;
  transition: opacity .25s;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}
.service-card:hover::after { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }

.service-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
/* ── Iconos SVG ──────────────────────────────────────────────
   sitio/src/includes/iconos.php. Heredan el color del contenedor
   con `currentColor`: el color lo decide el bloque, no el icono. */
.ico { display: block; flex: none; }

.service-card .icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.25;
}
.service-card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.service-card .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.service-card .link span { transition: transform .2s; }
.service-card:hover .link span { transform: translateX(4px); }

/* ── Stack grid ─────────────────────────────────────────── */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
.stack-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.stack-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stack-item strong { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.stack-item small { color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Timeline proceso ───────────────────────────────────── */
.timeline { display: grid; gap: 16px; }
/* Cada paso es una fila: número · texto · foto pegada al borde derecho */
.t-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 300px;
  gap: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 0 0 0 30px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  align-items: center;
  transition: all .2s;
}
.t-step:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.t-step-body { padding: 26px 0; }
.t-num {
  width: 48px; height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.t-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.t-step p { color: var(--muted); font-size: 15px; line-height: 1.65; }
@media (max-width: 900px) {
  .t-step { grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 24px; }
  .t-step-body { padding: 0; }
}
@media (max-width: 600px) { .t-step { grid-template-columns: 1fr; gap: 14px; } }

/* ── Testimonios ────────────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;              /* el pie (cite) queda abajo aunque el texto tenga menos líneas */
  flex-direction: column;
}
.testimonial cite { margin-top: auto; }
.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
  color: #F59E0B;
  font-size: 15px;
}
.testimonial blockquote {
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}
.testimonial blockquote strong { color: var(--accent); font-weight: 700; }
.testimonial cite {
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: normal;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.cite-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.cite-avatar.v2 { background: #7C3AED; }
.cite-avatar.v3 { background: var(--green); }
.cite-info strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text); }
.cite-info small { color: var(--muted); font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ── Portfolio ──────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.project {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
}
.project:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.project-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.project-thumb-mock {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  background: var(--accent-light);
  width: 75%; height: 70%;
  display: grid; place-items: center;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.project-thumb-mock::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 10px 10px 0 0;
}
.project-thumb-mock.v2 { color: #7C3AED; background: #F5F3FF; }
.project-thumb-mock.v2::before { background: #7C3AED; }
.project-thumb-mock.v3 { color: var(--green); background: #F0FDF4; }
.project-thumb-mock.v3::before { background: var(--green); }
.project-thumb-mock.v4 { color: #D97706; background: #FFFBEB; }
.project-thumb-mock.v4::before { background: #D97706; }
.project-thumb-mock.v5 { color: #DB2777; background: #FDF2F8; }
.project-thumb-mock.v5::before { background: #DB2777; }
.project-thumb-mock.v6 { color: #0891B2; background: #ECFEFF; }
.project-thumb-mock.v6::before { background: #0891B2; }

.project-body { padding: 24px; }
.project-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.project h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.project p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.project-meta .highlight { color: var(--accent); font-weight: 600; }

/* ── CTA Block ──────────────────────────────────────────── */
.cta-block {
  background: var(--text);
  border-radius: var(--r-xl);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,.25) 0%, transparent 65%);
  right: -200px; top: -200px;
  pointer-events: none;
}
.cta-block .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #93C5FD; }
.cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  max-width: 720px;
  margin: 0 auto 18px;
}
.cta-block p {
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 17px;
  line-height: 1.65;
}
.cta-block .btn-primary { background: #fff; color: var(--text); border-color: #fff; }
.cta-block .btn-primary:hover { background: #F0F7FF; border-color: #F0F7FF; box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.cta-block .btn-ghost { border-color: rgba(255,255,255,.25); color: #fff; }
.cta-block .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
@media (max-width: 600px) { .cta-block { padding: 56px 24px; } }

/* ── Page head ──────────────────────────────────────────── */
.page-head {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--border);
}
.page-head .crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 900px;
  margin-bottom: 20px;
}
.page-head h1 em { font-style: normal; color: var(--accent); }
.page-head p { color: var(--muted); font-size: 18px; max-width: 660px; line-height: 1.65; }

/* ── Sobre mí ────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 70px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

.about-aside { position: sticky; top: 90px; }
.about-photo {
  aspect-ratio: 4/5;
  background: var(--accent-light);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.about-photo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.about-meta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.about-meta div {
  display: flex;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.about-meta div:last-child { border-bottom: none; }
.about-meta .lbl { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }
.about-meta .val { color: var(--text); font-weight: 600; }

.about-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 36px 0 12px;
}
.about-content h3:first-child { margin-top: 0; }
.about-content p { color: var(--text-2); margin-bottom: 14px; font-size: 16px; line-height: 1.7; max-width: 640px; }
.about-content strong { color: var(--text); font-weight: 700; }
.about-content em { color: var(--accent); font-style: normal; }
.about-content ul li {
  padding: 9px 0 9px 22px;
  position: relative;
  color: var(--text-2);
  font-size: 15.5px;
  border-bottom: 1px solid var(--border);
  max-width: 640px;
}
.about-content ul li:last-child { border-bottom: none; }
.about-content ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}

.skills-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; max-width: 640px; }
.skills-list span {
  padding: 7px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

/* ── Servicios detalle ──────────────────────────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-detail:nth-child(even) > div:first-child { order: 2; }
@media (max-width: 900px) {
  .service-detail { grid-template-columns: 1fr; gap: 30px; padding: 50px 0; }
  .service-detail:nth-child(even) > div:first-child { order: 0; }
}
.service-detail .service-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.service-detail h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.service-detail h2 em { font-style: normal; color: var(--accent); }
.service-detail .desc { color: var(--muted); font-size: 16.5px; line-height: 1.7; margin-bottom: 28px; }
.service-detail .desc strong { color: var(--text); font-weight: 600; }
.service-detail ul li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text-2);
}
.service-detail ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.service-mock {
  aspect-ratio: 5/4;
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: grid; place-items: center;
  font-size: 72px;
  position: relative;
  overflow: hidden;
}
.service-mock::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}

/* ── Contacto ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  align-self: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.contact-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.contact-item:last-of-type { border-bottom: none; }
.contact-item-icon {
  width: 38px; height: 38px;
  background: var(--accent-light);
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-item small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-item a, .contact-item span { color: var(--text); font-weight: 600; font-size: 15px; }
.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 500;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ── Footer ─────────────────────────────────────────────────
   Oscuro, con una sola luz de acento. Orden: marca y estado ·
   frase + contacto · cuatro columnas · barra legal · nombre en
   grande. El nombre va último a propósito: los botones flotantes
   (chat y "Live") quedan encima de algo decorativo y no tapan
   ni el © ni "Volver arriba". */
.site-footer {
  --ft-bg:     #0A0F1C;
  --ft-text:   #fff;
  --ft-2:      rgba(255,255,255,.66);
  --ft-3:      rgba(255,255,255,.42);
  --ft-line:   rgba(255,255,255,.09);
  --ft-accent: #93C5FD;
  position: relative;
  overflow: hidden;
  color: var(--ft-text);
  background:
    radial-gradient(900px 420px at 8% -12%, rgba(29,78,216,.26), transparent 62%),
    radial-gradient(640px 360px at 100% 100%, rgba(96,165,250,.07), transparent 60%),
    var(--ft-bg);
  border-top: 1px solid var(--ft-line);
  padding: 76px 0 0;
}
.site-footer a { color: inherit; }

/* Marca + estado */
.ft-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 52px;
}
.site-footer .brand-text { color: #fff; }
.site-footer .brand-text small { color: var(--ft-3); }
.ft-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px 8px 13px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  font-size: 13px; color: rgba(255,255,255,.8);
}
.ft-status .pulse-dot { background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

/* Frase de marca + contacto */
.ft-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--ft-line);
}
.ft-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.13;
  letter-spacing: -.028em;
  color: #fff;
  max-width: 15.5em;
}
.ft-statement em { font-style: normal; color: var(--ft-accent); }

.ft-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ft-3);
  margin-bottom: 18px;
}
.ft-contact .ft-label { margin-bottom: 12px; }
.ft-mail {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 25px);
  letter-spacing: -.015em;
  color: #fff;
  padding-bottom: 5px;
  background: linear-gradient(var(--ft-accent), var(--ft-accent)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .35s ease;
}
.ft-mail:hover { background-size: 100% 1.5px; }
.ft-mail .ico { color: var(--ft-accent); transition: transform .25s ease; }
.ft-mail:hover .ico { transform: translate(3px, -3px); }
.ft-wa {
  display: flex; align-items: center; gap: 9px;
  margin-top: 16px;
  font-size: 14.5px; color: var(--ft-2);
  transition: color .2s;
}
.ft-wa .ico { color: #4ADE80; }
.ft-wa:hover { color: #fff; }

/* Columnas */
.ft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr);
  gap: 40px;
  padding: 56px 0 60px;
}
.ft-col ul { display: grid; gap: 11px; }
.ft-col ul a {
  font-size: 14.5px;
  color: var(--ft-2);
  padding-bottom: 2px;
  background: linear-gradient(var(--ft-accent), var(--ft-accent)) 0 100% / 0 1px no-repeat;
  transition: color .2s, background-size .3s ease;
}
.ft-col ul a:hover { color: #fff; background-size: 100% 1px; }
.ft-col .ft-more { color: var(--ft-accent); }
.ft-nw { white-space: nowrap; }
.ft-col .ft-more .ico { display: inline-block; vertical-align: -2px; margin-left: 6px; transition: transform .25s; }
.ft-col .ft-more:hover .ico { transform: translateX(3px); }

.ft-hora {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ft-hora small { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; color: var(--ft-3); white-space: nowrap; }
.ft-horario { margin-top: 10px; font-size: 13.5px; color: var(--ft-2); }
.ft-social { display: flex; gap: 10px; margin-top: 24px; }
.ft-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: rgba(255,255,255,.78);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.ft-social a:hover { background: #fff; color: var(--ft-bg); border-color: #fff; transform: translateY(-2px); }

/* Barra legal */
.ft-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--ft-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ft-3);
}
.ft-top {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: inherit; color: var(--ft-2);
  transition: color .2s;
}
.ft-top:hover { color: #fff; }
.ft-top .ico { transition: transform .25s; }
.ft-top:hover .ico { transform: translateY(-3px); }

/* Nombre en grande: firma decorativa al final */
.ft-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(58px, 15.6vw, 208px);
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
  text-align: center;
  padding-top: 14px;
  margin-bottom: -.07em;   /* apoya las letras sobre el borde sin cortarlas */
  background: linear-gradient(180deg, rgba(255,255,255,.13) 10%, rgba(255,255,255,.015) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 900px) {
  /* aire al final: el chat y el botón Live flotan sobre el nombre, no sobre la barra legal */
  .site-footer { padding-bottom: 64px; }
  .ft-lead { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
}
@media (max-width: 560px) {
  .site-footer { padding-top: 56px; }
  .ft-head { padding-bottom: 40px; }
  .ft-lead { padding-bottom: 44px; }
  .ft-grid { padding: 44px 0 48px; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.social { display: flex; gap: 8px; margin-top: 16px; }
.social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }

.pulse-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 3px rgba(22,163,74,.15); animation: blink 2s infinite; }

/* ── WhatsApp flotante ───────────────────────────────────── */
.wa-float { position: fixed; bottom: 110px; right: 28px; z-index: 9999; display: flex; align-items: center; gap: 12px; flex-direction: row-reverse; }
.wa-float a {
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float a:hover { transform: scale(1.08); }
.wa-tooltip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(10px);
  transition: all .3s;
  pointer-events: none;
  white-space: nowrap;
}
.wa-float.show-tooltip .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ── Reveal ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="100"].visible { transition-delay: .1s; }
.reveal[data-delay="200"].visible { transition-delay: .2s; }
.reveal[data-delay="300"].visible { transition-delay: .3s; }

/* ── Compat ─────────────────────────────────────────────── */
.gradient-text { color: var(--accent); font-weight: 800; }
.section-tag { display: none; }
.bg-grid, .bg-glow, .code-card { display: none; }

/* ══════════════════════════════════════════════════════════
   AGENCY COMPONENTS — imágenes CSS, stats, sectores
   ══════════════════════════════════════════════════════════ */

/* ── Browser Mockup ──────────────────────────────────────── */
.browser {
  background: var(--card);
  border: 1.5px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  background: #F0EEE9;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #D1CEC8;
}
.browser-dots span:nth-child(1) { background: #FF5F57; }
.browser-dots span:nth-child(2) { background: #FEBC2E; }
.browser-dots span:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.browser-url::before {
  content: '🔒';
  font-size: 10px;
}
.browser-screen {
  aspect-ratio: 16/10;
  background: linear-gradient(160deg, #f8f9ff 0%, #eef2ff 100%);
  overflow: hidden;
  position: relative;
}

/* Screen contenidos */
.bscreen-ecom {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.bscreen-ecom-card {
  background: white;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bscreen-ecom-img {
  border-radius: 6px;
  height: 70px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}
.bscreen-ecom-card:nth-child(2) .bscreen-ecom-img { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.bscreen-ecom-card:nth-child(3) .bscreen-ecom-img { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.bscreen-ecom-name { height: 8px; background: #E5E7EB; border-radius: 4px; }
.bscreen-ecom-price { height: 10px; width: 60%; background: #1D4ED8; border-radius: 4px; opacity: .7; }

.bscreen-landing {
  padding: 24px 20px;
}
.bscreen-landing-badge {
  display: inline-block;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.bscreen-landing-h1 {
  height: 14px; width: 85%;
  background: #0F0F0F;
  border-radius: 4px;
  margin-bottom: 6px;
}
.bscreen-landing-h1-2 {
  height: 14px; width: 65%;
  background: #0F0F0F;
  border-radius: 4px;
  margin-bottom: 10px;
}
.bscreen-landing-p { height: 8px; background: #D1D5DB; border-radius: 3px; margin-bottom: 4px; }
.bscreen-landing-p:last-of-type { width: 70%; }
.bscreen-landing-btn {
  margin-top: 12px;
  display: inline-block;
  background: #1D4ED8;
  height: 32px;
  width: 130px;
  border-radius: 6px;
}
.bscreen-news {
  padding: 0;
}
.bscreen-news-nav {
  background: #1a1a1a;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}
.bscreen-news-logo {
  height: 12px; width: 80px;
  background: white;
  border-radius: 3px;
  opacity: .9;
}
.bscreen-news-nav-links {
  display: flex;
  gap: 10px;
}
.bscreen-news-nav-links span {
  height: 8px; width: 40px;
  background: rgba(255,255,255,.4);
  border-radius: 3px;
  display: block;
}
.bscreen-news-body {
  padding: 14px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.bscreen-news-main {
  background: linear-gradient(160deg, #e2e8f0, #cbd5e1);
  border-radius: 6px;
  height: 110px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.bscreen-news-main-title {
  height: 10px; width: 80%;
  background: white;
  border-radius: 3px;
  margin-bottom: 4px;
}
.bscreen-news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bscreen-news-item {
  height: 30px;
  background: #F1F5F9;
  border-radius: 5px;
  border-left: 3px solid #1D4ED8;
}

/* ── Phone Mockup ────────────────────────────────────────── */
.phone {
  background: #1A1A1A;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.1);
  width: 140px;
  flex-shrink: 0;
}
.phone-screen {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 9/19;
}
.phone-screen-content {
  height: 100%;
  background: linear-gradient(160deg, #f0f4ff 0%, #e8ecff 100%);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.phone-screen-bar {
  height: 7px;
  background: #CBD5E1;
  border-radius: 4px;
}
.phone-screen-bar.accent { background: #1D4ED8; width: 60%; }
.phone-screen-bar.short { width: 40%; }
.phone-screen-img {
  height: 60px;
  background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
  border-radius: 8px;
  margin: 4px 0;
}
.phone-screen-cta {
  height: 28px;
  background: #25D366;
  border-radius: 6px;
  margin-top: auto;
}

/* ── Device Pair (hero visual) ───────────────────────────── */
.device-pair {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0;
}
.device-pair .browser {
  flex: 1;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}
.device-pair:hover .browser {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}
.device-pair .phone {
  position: absolute;
  right: -30px;
  bottom: -20px;
  transform: perspective(800px) rotateY(6deg);
  z-index: 2;
}

/* ── Stats Showcase ──────────────────────────────────────── */
.stats-showcase {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: #060D1A;
}
.stats-showcase-bg {
  position: absolute;
  inset: 0;
}
.stats-showcase-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: .08;
  filter: grayscale(100%);
}
.stats-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,13,26,.60) 0%, rgba(6,13,26,.30) 50%, rgba(6,13,26,.60) 100%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
}
.stat-card {
  padding: 52px 40px 44px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
  transition: background .35s ease;
  cursor: default;
}
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: rgba(96,165,250,.06); }
.stat-accent-line {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #60A5FA, transparent);
  transition: width .5s ease;
  border-radius: 2px;
}
.stat-card:hover .stat-accent-line,
.stat-card.visible .stat-accent-line { width: 72%; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 5.5vw, 5.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.stat-num em {
  color: #60A5FA;
  font-style: normal;
  font-size: .62em;
  vertical-align: super;
}
.stat-label {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.stat-desc {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: rgba(255,255,255,.32);
  letter-spacing: .04em;
  line-height: 1.7;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(3) { border-right: 1px solid rgba(255,255,255,.08); }
  .stat-card:nth-child(1),
  .stat-card:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; border-radius: 14px; }
  .stat-card { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.08); padding: 36px 28px; }
  .stat-card:last-child { border-bottom: none; }
}

/* Legacy results-bar — por si se usa en otra página */
.results-bar { background: #0A0A0A; padding: 60px 0; }
.results-bar .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.08); }
.results-stat { background: #0A0A0A; padding: 36px 32px; text-align: center; }
.results-stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem,4vw,3.5rem); font-weight: 800; color: #fff; line-height: 1; margin-bottom: 8px; letter-spacing: -0.04em; }
.results-stat strong em { color: #60A5FA; font-style: normal; }
.results-stat span { display: block; font-size: 13px; color: rgba(255,255,255,.45); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

/* ── Why Grid ────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.why-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: box-shadow .25s, border-color .25s, transform .2s;
}
.why-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(29,78,216,.25);
  transform: translateY(-3px);
}
.why-icon {
  width: 48px; height: 48px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.why-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Industries Grid ─────────────────────────────────────── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.industry-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .2s, border-color .2s;
}
.industry-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-2);
}
.industry-icon { display: block; line-height: 0; color: var(--accent); }
.industry-card strong {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
}
.industry-card small {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Portfolio Agency Grid ───────────────────────────────── */
/* ══ PORTFOLIO V2 — Stats, filters, browser chrome ══════════ */

/* Stats strip */
.portfolio-stats-row {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  background: rgba(255,255,255,.025);
}
.portfolio-stat-item {
  flex: 1;
  text-align: center;
  padding: 22px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.portfolio-stat-item:last-child { border-right: none; }
.portfolio-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -.03em;
}
.portfolio-stat-num em { color: #60A5FA; font-style: normal; }
.portfolio-stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.42);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.4;
}

/* Filter buttons */
.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  align-items: center;
}
.portfolio-filter-btn {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.52);
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.portfolio-filter-btn .f-count {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: .65rem;
  margin-left: 5px;
  vertical-align: middle;
}
.portfolio-filter-btn:hover {
  background: rgba(96,165,250,.1);
  border-color: rgba(96,165,250,.35);
  color: rgba(96,165,250,.9);
}
.portfolio-filter-btn.active {
  background: rgba(96,165,250,.15);
  border-color: rgba(96,165,250,.55);
  color: #60A5FA;
}
.portfolio-filter-btn.active .f-count {
  background: rgba(96,165,250,.25);
}

/* ── Proyectos que hablan solos (home) ─────────────────────
   Captura real de cada sitio dentro de una ventana de navegador.
   Hasta sep-2026 era una franja de 26 px con fotos de stock: el
   HTML del home había quedado con la estructura vieja del portfolio. */
.obras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.obra {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .35s ease, border-color .3s ease, box-shadow .35s ease;
}
.obra.hidden { display: none; }
.obra:hover { transform: translateY(-6px); border-color: rgba(147,197,253,.35); box-shadow: 0 30px 60px -22px rgba(0,0,0,.65); }
.obra-ventana {
  display: block; margin: 10px 10px 0;
  border-radius: 11px; overflow: hidden;
  background: #0D1627; border: 1px solid rgba(255,255,255,.08);
}
.obra-barra {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.obra-barra i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
.obra-url {
  flex: 1; min-width: 0; margin-left: 8px;
  font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.05); border-radius: 6px; padding: 3px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.obra-img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  transition: transform .7s ease;
}
.obra:hover .obra-img { transform: scale(1.035); }
.obra-cuerpo { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.obra-tags {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: #93C5FD; margin-bottom: 10px;
}
.obra h3 {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  letter-spacing: -.015em; line-height: 1.3; color: #fff; margin-bottom: 8px;
}
.obra h3 small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,.42); white-space: nowrap; }
.obra-desc { flex: 1; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.obra-pie {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08);
}
.obra-resultado { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.82); }
.obra-resultado .ico { color: #93C5FD; }
.obra-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }
.obra-link .ico { color: #93C5FD; transition: transform .25s; }
.obra-link:hover .ico { transform: translate(2px, -2px); }
@media (max-width: 1000px) { .obras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .obras { grid-template-columns: 1fr; } }

/* ── Del blog (home): los 3 artículos más nuevos ─────────── */
.notas-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.notas-cab .btn { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.notas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.nota {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .3s ease;
}
.nota:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(var(--accent-rgb), .25); }
.nota-img { display: block; overflow: hidden; background: #0A0F1C; }
.nota-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transform: scale(1.28); transition: transform .7s ease; }
.nota:hover .nota-img img { transform: scale(1.33); }
.nota-cuerpo { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.nota-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.nota-meta span { color: var(--accent); font-weight: 600; }
.nota h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin-bottom: 10px; }
.nota h3 a { color: var(--text); }
.nota h3 a:hover { color: var(--accent); }
.nota-ext { font-size: 14.5px; line-height: 1.65; color: var(--text-2); margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nota-leer { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.nota-leer .ico, .nota-leer svg { transition: transform .25s; }
.nota:hover .nota-leer svg { transform: translateX(3px); }
.notas-temas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; font-size: 14px; }
.notas-temas span { color: var(--muted); margin-right: 4px; }
.notas-temas a { color: var(--text-2); background: var(--card); border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px; transition: border-color .2s, color .2s; }
.notas-temas a:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), .35); }
@media (max-width: 1000px) { .notas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nota:nth-child(3) { display: none; } }
@media (max-width: 640px)  { .notas { grid-template-columns: 1fr; } .nota:nth-child(3) { display: flex; } }

/* El botón fantasma sobre fondo oscuro: texto blanco (antes quedaba casi invisible) */
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section-dark .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

/* ── Tech marquee ──────────────────────────────────────────── */
.tech-marquee-wrap {
  background: #060D1A;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  padding: 14px 0;
}
.tech-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-slide 28s linear infinite;
  gap: 0;
}
.tech-marquee-track:hover { animation-play-state: paused; }
.tech-marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  white-space: nowrap;
  transition: color .2s;
}
.tech-marquee-item:hover { color: rgba(255,255,255,.75); }
.tech-marquee-item::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(96,165,250,.5);
  flex-shrink: 0;
}
@keyframes marquee-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Portales & Directorios V2 ───────────────────────────── */
.portales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.portal-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.22,.68,0,1.2), box-shadow .35s ease, border-color .3s ease;
  text-decoration: none;
  overflow: hidden;
}
.portal-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  border-color: rgba(96,165,250,.40);
  text-decoration: none;
}
.portal-card-inner {
  padding: 24px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.portal-live-dot {
  width: 7px; height: 7px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34D399;
  flex-shrink: 0;
  margin-top: 6px;
  animation: live-pulse 2.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #34D399; }
  50%       { opacity: .5; box-shadow: 0 0 3px #34D399; }
}
.portal-domain {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: #60A5FA;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.4;
}
.portal-domain small {
  display: block;
  font-size: .68rem;
  color: rgba(96,165,250,.5);
  margin-top: 2px;
}
.portal-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.50);
  background: rgba(255,255,255,.06);
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  white-space: nowrap;
  margin-top: 2px;
}
.portal-card h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}
.portal-card p {
  color: rgba(255,255,255,.46);
  font-size: .81rem;
  line-height: 1.65;
  flex: 1;
  margin: 0;
}
.portal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 22px 15px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
}
.portal-stat {
  font-size: .72rem;
  color: #34D399;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.portal-arrow {
  font-size: .75rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,.35);
  transition: color .2s, transform .2s;
  letter-spacing: .04em;
}
.portal-card:hover .portal-arrow {
  color: #60A5FA;
  transform: translateX(4px);
}
@media (max-width: 1100px) { .portales-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .portales-grid { grid-template-columns: 1fr; } }

/* ── Hero Visual Split ───────────────────────────────────── */
.hero-visual {
  position: relative;
  padding: 20px 20px 20px 0;
}
.hero-visual-glow {
  position: absolute;
  top: 10%;
  right: 0;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(29,78,216,.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

/* ── Floating labels on device pair ─────────────────────── */
.device-label {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.device-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.device-label-1 { top: 15px; left: -10px; }
.device-label-2 { bottom: 40px; left: 10px; }

/* ── Tech Stack Strip ────────────────────────────────────── */
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.tech-pill {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  font-family: var(--font-mono);
}

/* Responsive agency components */
@media (max-width: 1100px) {
  .portfolio-stats-row { flex-wrap: wrap; }
  .portfolio-stat-item { flex: 1 1 calc(50% - 1px); border-bottom: 1px solid rgba(255,255,255,.08); }
  .portfolio-stat-item:nth-child(3), .portfolio-stat-item:nth-child(4) { border-bottom: none; }
  .portfolio-stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 768px) {
  .results-bar .container { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .device-pair .phone { display: none; }
  .portfolio-stat-item { flex: 1 1 calc(50% - 1px); }
}
@media (max-width: 480px) {
  .results-bar .container { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════
   IMAGE BACKGROUNDS — hero + sections
   ══════════════════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; }

/* Hero video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .40;
  display: block;
  z-index: 0;
}
.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(250,250,248,.72) 0%,
    rgba(250,250,248,.58) 50%,
    rgba(250,250,248,.40) 100%
  );
}
.hero .container.hero-grid { position: relative; z-index: 2; }

/* Generic section photo background */
.section-bg-photo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.section-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: .18;
}
.section-bg-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(250,250,248,.82) 0%,
    rgba(250,250,248,.72) 100%
  );
}
/* Sections with bg-2 base color overlay */
.section-bg-photo.on-bg2::after {
  background: linear-gradient(
    160deg,
    rgba(242,240,235,.80) 0%,
    rgba(232,229,222,.72) 100%
  );
}
/* Section must be position:relative + overflow:hidden for this to work */
.has-bg-photo {
  position: relative;
  overflow: hidden;
}
.has-bg-photo > .container { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════
   PROCESO CON FOTOS
   ══════════════════════════════════════════════════════════ */
.t-step-img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  align-self: stretch;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .t-step-img {
    grid-column: 1 / -1;
    height: 180px;
    min-height: 0;
    border-radius: var(--r-lg);
  }
}
@media (max-width: 600px) { .t-step-img { height: 160px; } }

/* ══════════════════════════════════════════════════════════
   SOBRE MÍ — FOTO REAL
   ══════════════════════════════════════════════════════════ */
.about-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  display: block;
}
.about-photo-caption {
  font-size: 12px;
  color: var(--dim);
  text-align: center;
  margin-top: -16px;
  margin-bottom: 24px;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   CTA CON FOTO DE FONDO
   ══════════════════════════════════════════════════════════ */
.cta-with-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
}
.cta-with-photo .cta-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .06;
  z-index: 0;
  border-radius: var(--r-xl);
}
.cta-with-photo .cta-block { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════
   SECCIÓN PAGE-HEAD CON IMAGEN BG
   ══════════════════════════════════════════════════════════ */
.page-head-video {
  position: relative;
  overflow: hidden;
}
.page-head-video .page-head-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .10;
  z-index: 0;
  display: block;
}
.page-head-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,60,.82) 0%, rgba(13,27,60,.70) 100%);
  z-index: 0;
}
/* Hero con VIDEO de fondo: el movimiento tiene que notarse, así que el clip
   va con más presencia y el velo oscuro se afloja (con foto quedaba plano). */
.page-head-motion .page-head-bg-video { opacity: .38; }
.page-head-motion::after {
  background: linear-gradient(135deg, rgba(13,27,60,.76) 0%, rgba(13,27,60,.58) 100%);
}
/* Respeta a quien pidió menos animación: se congela en el poster */
@media (prefers-reduced-motion: reduce) {
  .page-head-motion .page-head-bg-video { animation: none; }
}

.page-head-video .container { position: relative; z-index: 1; }
.page-head-video .crumb { color: rgba(255,255,255,.65); }
.page-head-video h1 { color: #fff; }
.page-head-video h1 em { color: #93C5FD; }
.page-head-video p { color: rgba(255,255,255,.72); }

/* ══════════════════════════════════════════════════════════
   GALERÍA WORKSPACE (sobre-mi)
   ══════════════════════════════════════════════════════════ */
.workspace-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.workspace-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.workspace-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.workspace-gallery img:first-child {
  grid-column: span 2;
  height: 200px;
}

/* ══════════════════════════════════════════════════════════
   SECTION BLUE — fondo azul vibrante con glassmorphism
   ══════════════════════════════════════════════════════════ */
.section-blue {
  background: linear-gradient(135deg, #1a3bcc 0%, #1a3068 55%, #0a1628 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.section-blue::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 70%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(99,130,255,.22) 0%, transparent 65%);
  pointer-events: none;
}
.section-blue::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 55%;
  height: 130%;
  background: radial-gradient(ellipse, rgba(0,208,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.section-blue .container { position: relative; z-index: 1; }
.section-blue .eyebrow {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.25);
}
.section-blue .section-title { color: #fff; }
.section-blue .section-subtitle { color: rgba(255,255,255,.72); }

/* ══════════════════════════════════════════════════════════
   INCLUDED GRID — servicios incluidos
   ══════════════════════════════════════════════════════════ */
.included-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 52px;
}
@media (max-width: 960px)  { .included-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .included-grid { grid-template-columns: 1fr; } }

.included-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-xl);
  padding: 28px 22px 24px;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.included-item:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.32);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.included-check {
  /* la sección es azul oscura: el acento no contrasta, va el azul claro */
  color: #93C5FD;
  margin-bottom: 14px;
  display: block;
  line-height: 0;
}
.included-item h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.included-item p {
  font-size: 13.5px;
  color: rgba(255,255,255,.68);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   SECTION DARK PHOTO — sección con foto de fondo oscura
   ══════════════════════════════════════════════════════════ */
.section-photo-bg {
  position: relative;
  overflow: hidden;
}
.section-photo-bg .spb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .12;
  z-index: 0;
  pointer-events: none;
}
.section-photo-bg .container { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════
   CTA AZUL VIBRANTE
   ══════════════════════════════════════════════════════════ */
.cta-blue {
  background: linear-gradient(135deg, #1D4ED8 0%, #1a3068 100%);
  border-radius: var(--r-xl);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-blue h2 { color: #fff; position: relative; z-index: 1; }
.cta-blue p  { color: rgba(255,255,255,.75); position: relative; z-index: 1; max-width: 580px; margin: 0 auto 28px; }
.cta-blue .hero-cta { position: relative; z-index: 1; }
.cta-blue .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.cta-blue .btn-ghost:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.7); }
@media (max-width: 640px) { .cta-blue { padding: 48px 28px; } }

/* ══════════════════════════════════════════════════════════
   SECTION DARK — azul noche profundo
   ══════════════════════════════════════════════════════════ */
.section-dark {
  background: #0B1629;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 55%; height: 140%;
  background: radial-gradient(ellipse, rgba(29,78,216,.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.section-dark > .container { position: relative; z-index: 1; }

/* Tipografía en dark */
.section-dark .section-title { color: #fff; }
.section-dark .section-title em { color: #60A5FA; }
.section-dark .section-subtitle { color: rgba(255,255,255,.60); }
.section-dark .eyebrow {
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.18);
}

/* Image overlay para secciones oscuras */
.section-dark .section-bg-photo img { opacity: .07; }
.section-dark .section-bg-photo::after {
  background: linear-gradient(160deg, rgba(11,22,41,.92) 0%, rgba(11,22,41,.84) 100%);
}

/* Clients marquee legacy overrides — vacío */

/* Why cards en dark */
.section-dark .why-card {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
}
.section-dark .why-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(96,165,250,.45);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.section-dark .why-card h3 { color: #fff; }
.section-dark .why-card p { color: rgba(255,255,255,.58); }
.section-dark .why-icon {
  background: rgba(29,78,216,.25);
  border-color: rgba(29,78,216,.4);
  color: #93C5FD;
}

/* Testimonials en dark */
.section-dark .testimonial {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
}
.section-dark .testimonial:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(96,165,250,.4);
}
.section-dark .stars { color: #FBBF24; }
.section-dark blockquote { color: rgba(255,255,255,.78); }
.section-dark .cite-info strong { color: #fff; }
.section-dark .cite-info small { color: rgba(255,255,255,.45); }
.section-dark .cite-avatar {
  background: linear-gradient(135deg, #1D4ED8, #1a3bcc);
  color: #fff;
  border: none;
}
.section-dark .cite-avatar.v2 { background: linear-gradient(135deg, #059669, #047857); }
.section-dark .cite-avatar.v3 { background: linear-gradient(135deg, #7C3AED, #6D28D9); }

/* Portfolio cards — las nuevas cards ya usan dark por defecto, sin overrides extra */

/* Service detail articles en has-bg-photo */
.has-bg-photo .service-detail {
  border-color: rgba(0,0,0,.08);
}

/* Contact grid en section-accent */
.section-accent .contact-info h3 { color: var(--text); }
.section-accent .contact-item {
  border-color: rgba(29,78,216,.15);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section-accent .contact-item:hover {
  background: rgba(255,255,255,.85);
  border-color: rgba(29,78,216,.35);
}
.section-accent .contact-form {
  background: rgba(255,255,255,.75);
  border-color: rgba(29,78,216,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.section-accent .contact-form input,
.section-accent .contact-form select,
.section-accent .contact-form textarea {
  background: rgba(255,255,255,.9);
  border-color: rgba(29,78,216,.20);
}
.section-accent .contact-form input:focus,
.section-accent .contact-form select:focus,
.section-accent .contact-form textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

/* ══════════════════════════════════════════════════════════
   SPLIT SHOWCASE — 50/50 imagen grande + contenido
   ══════════════════════════════════════════════════════════ */
.split-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  overflow: hidden;
  padding: 0; /* la sección es transparente: sin padding para que el panel oscuro y la foto lleguen a los bordes (evita franjas blancas arriba/abajo) */
}
.split-content {
  background: #0B1629;
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.split-content .eyebrow {
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.18);
}
.split-content h2 {
  color: #fff;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  margin: 20px 0 16px;
}
.split-content h2 em { color: #60A5FA; font-style: normal; }
.split-content > p {
  color: rgba(255,255,255,.60);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
}
.split-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.split-check-list li {
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.split-check-list li::before {
  content: '✓';
  color: #34D399;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.split-image {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .7s ease;
}
.split-showcase:hover .split-image img { transform: scale(1.05); }
/* Gradient que fusiona imagen con el content oscuro */
.split-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    #0B1629 0%,
    rgba(11,22,41,.45) 30%,
    transparent 65%
  );
}
/* Variante: imagen a la izquierda */
.split-showcase.img-left .split-image { order: -1; }
.split-showcase.img-left .split-image::before {
  background: linear-gradient(
    to left,
    #0B1629 0%,
    rgba(11,22,41,.45) 30%,
    transparent 65%
  );
}
@media (max-width: 900px) {
  .split-showcase { grid-template-columns: 1fr; }
  .split-showcase.img-left .split-image { order: 0; }
  .split-image { min-height: 280px; order: -1; }
  .split-image::before { background: linear-gradient(to bottom, transparent 40%, #0B1629 100%) !important; }
  .split-content { padding: 48px 28px 56px; }
}

/* ══════════════════════════════════════════════════════════
   IMG BREAK — sección full-bleed imagen protagonista
   ══════════════════════════════════════════════════════════ */
.img-break {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.img-break-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.img-break-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(8,15,32,.92) 0%,
    rgba(8,15,32,.78) 50%,
    rgba(8,15,32,.55) 100%
  );
  z-index: 1;
}
.img-break > .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}
.img-break-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.45rem, 3.2vw, 2.3rem);
  color: #fff;
  font-weight: 700;
  max-width: 680px;
  line-height: 1.38;
  margin-bottom: 28px;
  padding-left: 36px;
  position: relative;
}
.img-break-quote::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 6rem;
  color: rgba(96,165,250,.22);
  line-height: 0;
  position: absolute;
  top: 38px;
  left: -8px;
  font-style: normal;
}
.img-break-cite {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 36px;
  color: rgba(255,255,255,.50);
  font-size: .82rem;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.img-break-cite::before {
  content: '';
  width: 36px;
  height: 2px;
  background: #60A5FA;
  opacity: .5;
  display: block;
  flex-shrink: 0;
}
/* Stats row en img-break */
.img-break-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-left: 36px;
  flex-wrap: wrap;
}
.img-break-stat strong {
  display: block;
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.img-break-stat strong em { color: #60A5FA; font-style: normal; }
.img-break-stat span {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  font-family: var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Results bar dark — legacy */
.results-bar.results-dark { background: #091222; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.results-bar.results-dark .results-stat strong { color: #fff; }
.results-bar.results-dark .results-stat span { color: rgba(255,255,255,.45); }
.results-bar.results-dark .results-stat { border-color: rgba(255,255,255,.08); }
.results-bar.results-dark .results-stat strong em { color: #60A5FA; }

/* ══════════════════════════════════════════════════════════
   SECTION ACCENT — tinte azul cielo suave
   ══════════════════════════════════════════════════════════ */
.section-accent {
  background: linear-gradient(180deg, #EFF6FF 0%, #DBEAFE 100%);
  position: relative;
  overflow: hidden;
}
.section-accent::before {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 60%; height: 120%;
  background: radial-gradient(ellipse, rgba(29,78,216,.08) 0%, transparent 65%);
  pointer-events: none;
}
.section-accent > .container { position: relative; z-index: 1; }
.section-accent .eyebrow {
  background: rgba(29,78,216,.10);
  color: var(--accent);
  border-color: rgba(29,78,216,.20);
}
.section-accent .section-title em { color: var(--accent); }
.section-accent .section-subtitle { color: var(--muted); }

/* Industry cards sobre accent */
.section-accent .industry-card {
  background: rgba(255,255,255,.75);
  border-color: rgba(29,78,216,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section-accent .industry-card:hover {
  background: #fff;
  border-color: rgba(29,78,216,.40);
  box-shadow: 0 8px 28px rgba(29,78,216,.12);
}

/* Image overlay para accent */
.section-accent .section-bg-photo::after {
  background: linear-gradient(160deg, rgba(239,246,255,.86) 0%, rgba(219,234,254,.80) 100%);
}

/* ── BLOG ─────────────────────────────────────────────────── */

.blog-filters { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:48px; }
.blog-filter-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 18px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05); color:rgba(255,255,255,.60); font-size:13px; font-weight:600; text-decoration:none; transition:all .2s; font-family:var(--font-mono); letter-spacing:.03em; }
.blog-filter-btn:hover { background:rgba(255,255,255,.10); color:#fff; }
.blog-filter-btn.active { background:rgba(96,165,250,.14); border-color:rgba(96,165,250,.35); color:#93C5FD; }
.blog-filter-count { background:rgba(255,255,255,.10); border-radius:20px; padding:1px 7px; font-size:11px; }

.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:1000px) { .blog-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px)  { .blog-grid { grid-template-columns:1fr; } }

.blog-card { text-decoration:none; display:block; }
.blog-card-inner { display:flex; flex-direction:column; height:100%; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:26px 24px 22px; transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease,background .3s; }
.blog-card:hover .blog-card-inner { transform:translateY(-6px); box-shadow:0 22px 56px rgba(0,0,0,.45); border-color:rgba(96,165,250,.28); background:rgba(255,255,255,.06); }
.blog-card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.blog-cat-badge { font-size:11px; font-weight:700; font-family:var(--font-mono); text-transform:uppercase; letter-spacing:.09em; padding:4px 12px; border-radius:999px; border:1px solid; }
.blog-read-time { font-size:11px; color:rgba(255,255,255,.30); font-family:var(--font-mono); }
.blog-card-title { font-family:var(--font-display); font-size:1.08rem; font-weight:700; color:#fff; line-height:1.38; margin-bottom:12px; letter-spacing:-.015em; flex-grow:1; }
.blog-card-excerpt { font-size:14px; color:rgba(255,255,255,.50); line-height:1.65; margin-bottom:20px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.blog-card-foot { display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:16px; border-top:1px solid rgba(255,255,255,.07); }
.blog-card-date { font-size:12px; color:rgba(255,255,255,.28); font-family:var(--font-mono); }
.blog-card-cta  { font-size:12px; color:#60A5FA; font-weight:600; }

.blog-pagination { display:flex; justify-content:center; gap:8px; margin-top:60px; flex-wrap:wrap; }
.page-btn { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 14px; border-radius:10px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); color:rgba(255,255,255,.60); text-decoration:none; font-size:14px; font-weight:600; transition:all .2s; }
.page-btn:hover { background:rgba(255,255,255,.10); color:#fff; }
.page-btn.active { background:rgba(96,165,250,.18); border-color:rgba(96,165,250,.45); color:#93C5FD; }

/* Artículo individual */
.articulo-layout { display:grid; grid-template-columns:1fr 300px; gap:56px; align-items:start; }
@media (max-width:1000px) { .articulo-layout { grid-template-columns:1fr; } .articulo-sidebar { order:-1; } }

.articulo-body { color:rgba(255,255,255,.78); font-size:17px; line-height:1.8; max-width:72ch; }
.articulo-body h2 { font-family:var(--font-display); font-size:clamp(1.35rem,2.8vw,1.75rem); font-weight:800; color:#fff; margin:48px 0 16px; letter-spacing:-.02em; line-height:1.25; }
.articulo-body h3 { font-family:var(--font-display); font-size:1.1rem; font-weight:700; color:#e2e8f0; margin:32px 0 12px; }
.articulo-body p { margin-bottom:20px; }
.articulo-body strong { color:#fff; font-weight:600; }
.articulo-body em { color:#93C5FD; font-style:italic; }
.articulo-body ul,.articulo-body ol { margin:16px 0 24px 0; display:flex; flex-direction:column; gap:8px; padding-left:0; }
.articulo-body ul li { list-style:none; padding-left:24px; position:relative; line-height:1.7; }
.articulo-body ul li::before { content:'→'; position:absolute; left:0; color:#60A5FA; font-weight:700; }
.articulo-body ol { list-style:decimal; padding-left:22px; }
.articulo-body ol li { line-height:1.7; }
.articulo-body blockquote { border-left:3px solid #60A5FA; padding:16px 24px; margin:32px 0; background:rgba(96,165,250,.07); border-radius:0 10px 10px 0; }
.articulo-body blockquote p { margin:0; font-size:1.05em; font-style:italic; }

.art-faq { margin:16px 0 32px; }
.art-faq details { border-bottom:1px solid rgba(255,255,255,.08); }
.art-faq summary { padding:16px 0; font-weight:600; color:#fff; cursor:pointer; list-style:none; display:flex; align-items:center; gap:12px; font-size:15px; }
.art-faq summary::-webkit-details-marker { display:none; }
.art-faq summary::before { content:'+'; color:#60A5FA; font-size:1.3em; font-weight:300; line-height:1; transition:transform .2s; flex-shrink:0; }
details[open] .art-faq summary::before,.art-faq details[open] summary::before { content:'−'; }
.art-faq details p { padding:0 0 16px 28px; color:rgba(255,255,255,.60); font-size:15px; line-height:1.7; margin:0; }

.art-cta-inline { margin:40px 0 0; padding:28px 32px; background:linear-gradient(135deg,rgba(96,165,250,.12),rgba(14,165,233,.08)); border:1px solid rgba(96,165,250,.22); border-radius:16px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.art-cta-inline p { margin:0; font-size:16px; font-weight:600; color:rgba(255,255,255,.85); }
@media (max-width:640px) { .art-cta-inline { flex-direction:column; align-items:flex-start; } }

.articulo-sidebar { position:sticky; top:100px; }
.sidebar-card { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09); border-radius:16px; padding:22px 20px; }

/* Blog card image */
.blog-card-img { width:calc(100% + 48px); height:180px; background-size:cover; background-position:center; border-radius:10px 10px 0 0; margin:-26px -24px 20px; position:relative; overflow:hidden; flex-shrink:0; transition:filter .3s; }
.blog-card-img::after { content:''; position:absolute; inset:0; background:linear-gradient(to bottom, transparent 40%, rgba(11,22,41,.85) 100%); }
.blog-card:hover .blog-card-img { filter:brightness(1.12); }

/* Article featured image */
.art-featured-img-wrap { position:relative; width:100%; overflow:hidden; max-height:460px; }
.art-featured-img { width:100%; max-height:460px; object-fit:cover; display:block; }
.art-featured-img-overlay { position:absolute; inset:0; pointer-events:none; }

/* ══════════════════════════════════════════════════════════
   STATS WIDGET — contador flotante bottom-left
   ══════════════════════════════════════════════════════════ */

.stats-widget {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-mono);
}

/* ── Botón toggle ─────────────────────────────────────────── */
.stats-widget-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(10, 18, 38, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .18s;
  color: rgba(255,255,255,.75);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.stats-widget-btn:hover {
  background: rgba(15, 26, 54, 0.92);
  border-color: rgba(52, 211, 153, .35);
  transform: translateY(-1px);
}
.stats-widget-btn[aria-expanded="true"] {
  border-color: rgba(52, 211, 153, .45);
  background: rgba(15, 26, 54, 0.95);
}

/* Punto live pulsante */
.stats-live-dot {
  width: 8px;
  height: 8px;
  background: #34D399;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(52,211,153,.7);
  animation: stats-pulse 2.2s ease-in-out infinite;
}
@keyframes stats-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
  60%  { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.stats-btn-label { color: rgba(255,255,255,.55); }
.stats-btn-online {
  color: #34D399;
  font-weight: 800;
  min-width: 18px;
  text-align: right;
}

/* ── Panel ────────────────────────────────────────────────── */
.stats-widget-panel {
  background: rgba(8, 16, 34, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  width: 230px;
  box-shadow: 0 16px 48px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset;
  overflow: hidden;
  /* Aparece debajo del botón (columna, orden visual) */
  order: -1;
  /* Animación de entrada */
  animation: stats-panel-in .22s cubic-bezier(.22,.68,0,1.2);
  transform-origin: bottom left;
}
@keyframes stats-panel-in {
  from { opacity:0; transform: scale(.92) translateY(8px); }
  to   { opacity:1; transform: scale(1)   translateY(0); }
}

.stats-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 11px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
}
.stats-panel-title {
  font-size: .70rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.stats-panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.35);
  font-size: .85rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  line-height: 1;
}
.stats-panel-close:hover {
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.08);
}

/* Filas de stats */
.stats-panel-body {
  padding: 10px 0;
}
.stats-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  transition: background .15s;
}
.stats-row:hover { background: rgba(255,255,255,.03); }

.stats-row-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, #60A5FA);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--dot, #60A5FA);
}
.stats-row-label {
  flex: 1;
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .02em;
}
.stats-row-val {
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  min-width: 36px;
  text-align: right;
  transition: color .3s;
}
.stats-row-val.stat-flash {
  color: #60A5FA;
}

/* Footer del panel */
.stats-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  font-size: .65rem;
  color: rgba(255,255,255,.28);
  letter-spacing: .04em;
}

/* Botón refresh */
.stats-refresh-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: rgba(255,255,255,.45);
  cursor: pointer;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.stats-refresh-btn:hover {
  background: rgba(96,165,250,.18);
  color: #60A5FA;
}
.stats-refresh-btn.spinning svg {
  animation: spin-once .6s linear;
}
@keyframes spin-once {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Responsive: ocultar en mobile muy pequeño ─────────────── */
@media (max-width: 480px) {
  .stats-widget { bottom: 80px; left: 12px; }
  .stats-widget-panel { width: 210px; }
}


/* ══════════════════════════════════════════════════════════
   HERO DEL INICIO — oscuro, con trabajos reales a la vista (oct-2026).
   Misma paleta que el footer y la banda de números (#0A0F1C + luz azul); el acento
   pasa a #60A5FA, como en .section-dark. Escritorio: pared de capturas de clientes
   que se desliza sola (.hero-wall). Celular: tira que se desliza con el dedo (.hero-shots).
   ══════════════════════════════════════════════════════════ */

/* Header encima del hero: oscuro y con letras claras. header.php lo arranca con .sobre-hero
   y main.js se la saca cuando el hero queda atrás. */
.site-header.sobre-hero { border-bottom-color: #0A0F1C; }   /* transparente dejaba ver una línea crema */
.site-header.sobre-hero::before { background: #0A0F1C; }
.site-header.sobre-hero.scrolled { border-bottom-color: rgba(255,255,255,.08); box-shadow: none; }
.site-header.sobre-hero.scrolled::before { background: rgba(10,15,28,.82); }
.site-header.sobre-hero .brand-text { color: #fff; }
.site-header.sobre-hero .brand-text small { color: rgba(255,255,255,.55); }
.site-header.sobre-hero .nav-toggle { border-color: rgba(255,255,255,.28); }
.site-header.sobre-hero .nav-toggle span { background: #fff; }
@media (min-width: 901px) {
  .site-header.sobre-hero .nav-links > li > a:not(.nav-cta) { color: rgba(255,255,255,.72); }
  .site-header.sobre-hero .nav-links > li > a:not(.nav-cta):hover { color: #fff; }
  .site-header.sobre-hero .nav-links > li > a.active { color: #93C5FD; }
}

.hero { background: #0A0F1C; border-bottom: 0; }
.hero::after { background: radial-gradient(circle, rgba(59,130,246,.34) 0%, transparent 68%); }
.hero-video-bg video { opacity: .5; }
.hero-video-bg::after {
  background: linear-gradient(100deg, rgba(10,15,28,.9) 0%, rgba(10,15,28,.74) 48%, rgba(10,15,28,.92) 100%);
}

.hero-badge {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
}
.hero-badge span { color: rgba(255,255,255,.86); }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #60A5FA; }
.hero .lead { color: rgba(255,255,255,.74); }
.hero .lead strong { color: #fff; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn-primary { box-shadow: 0 10px 34px rgba(59,130,246,.38); }
.hero .tech-pill { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.66); }

.hero-wall, .hero-shots { display: none; }

/* ── Escritorio (≥ 901 px): texto a la izquierda, pared de capturas a la derecha ── */
@media (min-width: 901px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: min(calc(100vh - 73px), 880px);   /* la primera pantalla entera, sin pasarse en monitores altos */
    padding: clamp(40px, 8vh, 72px) 0;            /* en notebooks de 720 px de alto, menos aire */
  }
  .hero::after { width: 900px; height: 900px; right: -240px; top: -280px; }
  /* El texto termina en el centro + 30 px; la pared arranca en el centro + 78 px */
  .hero .hero-grid { width: 100%; grid-template-columns: minmax(0, min(582px, calc(50vw - 6px))); }
  /* El contenedor ocupa todo el ancho por encima de la pared: que no le robe el mouse */
  .hero .hero-grid { pointer-events: none; }
  .hero .hero-grid > * { pointer-events: auto; }
  .hero-badge { margin-bottom: 28px; }
  .hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.15rem); margin-bottom: 24px; }
  .hero .lead { margin-bottom: 36px; }
  .hero .tech-strip { gap: 8px; }
  .hero .tech-pill { padding: 5px 11px; font-size: 12px; }   /* las seis en una línea */

  .hero-wall {
    display: block;
    position: absolute; z-index: 1;
    top: 0; bottom: 0;
    left: calc(50% + 78px); right: -80px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  }
  .hero-wall-inner {
    position: absolute; inset: -14% 0;
    display: flex; gap: 20px;
    transform: rotate(-5deg);
  }
  .hero-wall-col { flex: 1 1 0; min-width: 0; }
  .hero-wall-col:nth-child(2) { margin-top: -120px; }   /* desfasada: que no queden filas parejas */
  .hero-wall-track {
    display: flex; flex-direction: column; gap: 20px;
    animation: wall-sube 70s linear infinite;
  }
  .hero-wall-col:nth-child(2) .hero-wall-track { animation-name: wall-baja; }
  .hero-wall:hover .hero-wall-track { animation-play-state: paused; }

  .hero-wall-shot {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #111A2E;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 50px rgba(0,0,0,.45);
    transition: border-color .2s;
  }
  .hero-wall-shot:hover, .hero-wall-shot:focus-visible { border-color: rgba(147,197,253,.6); }
  .hero-wall-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
  .hero-wall-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding: 28px 14px 11px;
    background: linear-gradient(180deg, transparent, rgba(10,15,28,.94));
    color: #fff;
    opacity: 0; transform: translateY(6px);
    transition: opacity .2s, transform .2s;
  }
  .hero-wall-shot:hover .hero-wall-cap, .hero-wall-shot:focus-visible .hero-wall-cap { opacity: 1; transform: none; }
  .hero-wall-cap strong { font-family: var(--font-display); font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-wall-cap em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,255,255,.6); white-space: nowrap; }
}
/* Cada pista lleva su lista dos veces: -50% menos medio gap es exactamente una vuelta */
@keyframes wall-sube { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 10px)); } }
@keyframes wall-baja { from { transform: translateY(calc(-50% - 10px)); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero-wall-track { animation: none; } }

/* ── Celular (≤ 900 px): todo en una columna y la tira de capturas abajo ── */
@media (max-width: 900px) {
  .hero { padding: 16px 0 44px; }
  .hero::after { width: 520px; height: 520px; right: -170px; top: -130px; }
  .hero-video-bg::after {
    background: linear-gradient(180deg, rgba(10,15,28,.42) 0%, rgba(10,15,28,.84) 52%, #0A0F1C 100%);
  }
  .hero-badge { margin-bottom: 16px; }
  .hero-badge .hb-loc { display: none; }   /* "Buenos Aires" ya está en la marca y en el texto: el badge entra en una línea */
  .hero h1 { font-size: clamp(2.3rem, 10.6vw, 3.1rem); margin-bottom: 18px; }
  .hero .lead { font-size: 16px; line-height: 1.6; margin-bottom: 22px; }
  .hero .hero-cta { gap: 10px; }
  .hero .hero-cta .btn { width: 100%; justify-content: center; padding-top: 14px; padding-bottom: 14px; }
  .tech-strip { display: none; }

  /* Tira de capturas reales: se desliza con el dedo y asoma la siguiente */
  .hero-shots { display: block; position: relative; z-index: 2; margin-top: 26px; }
  .hero-shots-label {
    padding: 0 28px;
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
  }
  .hero-shots-track {
    display: flex;
    gap: 14px;
    padding: 0 28px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-shots-track::-webkit-scrollbar { display: none; }
  .hero-shot {
    flex: 0 0 76%;
    max-width: 330px;
    scroll-snap-align: start;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #111A2E;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
  }
  .hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
  .hero-shot-cap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px 12px;
    color: #fff;
  }
  .hero-shot-cap strong { font-family: var(--font-display); font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-shot-cap em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,255,255,.55); white-space: nowrap; }
}
