/* =========================================================
   PCL Stack - estilos
   Colores del logo (correcaminos): azul marino #022f5e y naranja #fd6d01.
   ========================================================= */
:root {
  --bg: #050d1a;
  --bg-alt: #071426;
  --surface: #0b1b31;
  --surface-2: #11253f;
  --border: rgba(148, 197, 255, 0.1);
  --border-strong: rgba(253, 109, 1, 0.45);
  --text: #eaf3ff;
  --muted: #94a6c0;
  --navy: #022f5e;
  --accent: #ff8a2b;
  --orange: #fd6d01;
  --green: #22c55e;
  --grad: linear-gradient(120deg, #fd6d01 0%, #ffa53d 100%);
  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: rgba(253, 109, 1, 0.08);
  color: #ffc08f;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(253, 109, 1, 0.7);
}
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(253, 109, 1, 0.9); }
.btn--ghost { border-color: var(--border); background: rgba(255, 255, 255, 0.03); color: var(--text); }
.btn--ghost:hover { border-color: var(--border-strong); background: rgba(253, 109, 1, 0.06); }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 44px; width: auto; }
.logo__text { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.logo__text b { color: var(--orange); margin-left: 3px; }
.logo--footer { margin-bottom: 16px; }
.logo--footer img { height: 52px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.4s, visibility 0.4s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__track { position: relative; width: min(420px, 80vw); height: 90px; overflow: hidden; border-bottom: 2px solid var(--border); }
.preloader { grid-template-rows: auto auto; align-content: center; gap: 28px; }
.preloader__bird { position: absolute; bottom: 4px; left: 0; width: 110px; }
.preloader__dust { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--grad); }
.preloader.go .preloader__bird { animation: run 0.9s cubic-bezier(.5,0,.5,1) forwards; }
.preloader.go .preloader__dust { animation: dust 0.9s cubic-bezier(.5,0,.5,1) forwards; }
/* Esperando en la línea de partida */
.preloader--wait { cursor: pointer; }
.preloader--wait .preloader__bird { left: 0; animation: ready 0.6s ease-in-out infinite alternate; }
@keyframes ready { to { transform: translateY(-4px) rotate(-3deg); } }
.preloader__enter {
  visibility: hidden; opacity: 0;
  padding: 13px 30px; border: 0; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 1rem;
  box-shadow: 0 10px 30px -10px rgba(253, 109, 1, 0.7);
  transition: opacity 0.3s, transform 0.2s;
}
.preloader__enter:hover { transform: translateY(-2px); }
.preloader--wait .preloader__enter { visibility: visible; opacity: 1; }
@keyframes run { to { left: calc(100% + 10px); } }
@keyframes dust { to { width: 100%; } }
.nav__links { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: 0.95rem; }
.nav__links a:not(.btn) { color: var(--muted); transition: color 0.2s; position: relative; }
.nav__links a:not(.btn):hover, .nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav__toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 90px; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 197, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
}
.hero__glow {
  position: absolute; right: -200px; top: -200px;
  width: 750px; height: 750px;
  background: radial-gradient(circle, rgba(253, 109, 1, 0.2), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.hero__glow::after {
  content: ""; position: absolute; left: -800px; top: 380px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 60%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.07; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin-bottom: 34px; }
.hero p b { color: var(--text); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.stats { display: flex; gap: 0; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 28px; }
.stats > div { padding-right: 34px; margin-right: 34px; border-right: 1px solid var(--border); }
.stats > div:last-child { border: 0; margin: 0; padding: 0; }
.stats strong { font-size: 2.1rem; font-weight: 800; display: block; line-height: 1.1; }
.stats > div > span { color: var(--muted); font-size: 0.88rem; }

/* Visual del hero */
.hero__visual { position: relative; }
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow), 0 0 90px -25px rgba(253, 109, 1, 0.55);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(-12px); } }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mock__bar i:nth-child(2) { background: #febc2e; }
.mock__bar i:nth-child(3) { background: #28c840; }
.mock__bar span { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; font: 500 0.72rem var(--mono); color: var(--muted); background: var(--bg); padding: 3px 12px; border-radius: 6px; }
.mock__bar span img { border-radius: 3px; }
.mock__logo { width: 100%; height: auto; margin-bottom: 6px; }
.mock__body { display: grid; grid-template-columns: 64px 1fr; min-height: 330px; }
.mock__side { border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.mock__side b { height: 10px; border-radius: 4px; background: var(--surface-2); }
.mock__side b:first-child { background: var(--grad); }
.mock__main { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__cards div { height: 60px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.mock__cards div:first-child { background: linear-gradient(135deg, rgba(253, 109, 1,.45), rgba(37, 99, 235,.3)); }
.mock__chart { display: flex; align-items: flex-end; gap: 9px; height: 128px; padding: 12px; background: var(--surface-2); border-radius: 10px; }
.mock__chart span { flex: 1; border-radius: 5px 5px 0 0; background: var(--grad); opacity: 0.9; transform-origin: bottom; animation: grow 1.2s ease-out both; }
.mock__chart span:nth-child(2n) { animation-delay: 0.15s; }
.mock__chart span:nth-child(3n) { animation-delay: 0.3s; }
@keyframes grow { from { transform: scaleY(0); } }
.mock__rows { display: flex; flex-direction: column; gap: 8px; }
.mock__rows div { height: 12px; border-radius: 4px; background: var(--surface-2); }
.mock__rows div:nth-child(2) { width: 80%; }
.mock__rows div:nth-child(3) { width: 60%; }

.code {
  position: absolute; left: -40px; bottom: -34px;
  padding: 16px 20px;
  font: 500 0.8rem/1.7 var(--mono);
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: float2 6s ease-in-out infinite;
}
.code .k { color: #c792ea; }
.code .f { color: #60a5fa; }
.code .n { color: #f78c6c; }
.code .s { color: #c3e88d; }
.float-badge {
  position: absolute; right: -14px; top: 40px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(10, 16, 28, 0.92); border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow);
  animation: float2 5s ease-in-out infinite reverse;
}
.float-badge b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.75rem; }
@keyframes float2 { 50% { transform: translateY(-10px); } }

/* ---------- Franja de tecnologías ---------- */
.tech { padding: 34px 0 40px; border-block: 1px solid var(--border); background: var(--bg-alt); }
.tech__label { text-align: center; font: 500 0.75rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.marquee {
  display: flex; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee ul { display: flex; flex-shrink: 0; gap: 54px; padding-right: 54px; list-style: none; animation: scroll 40s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { display: flex; align-items: center; gap: 10px; font: 600 0.95rem var(--mono); color: #c5d2e4; white-space: nowrap; transition: color 0.2s; }
.marquee li:hover { color: var(--accent); }
@keyframes scroll { to { transform: translateX(-100%); } }

/* Iconos monocromos (Simple Icons) */
.si {
  display: inline-block; width: 26px; height: 26px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* ---------- Secciones ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head h2, .contact h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 16px; }
.section__head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.service:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.service:hover::before { transform: scaleX(1); }
.service__icon {
  width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 12px; margin-bottom: 18px;
  background: rgba(253, 109, 1, 0.1); border: 1px solid rgba(253, 109, 1, 0.25);
}
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service__kicker { font: 500 0.72rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.service h3 { font-size: 1.2rem; margin: 4px 0 10px; }
.service p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }

.techs { display: flex; flex-wrap: wrap; gap: 6px; }
.techs span { font: 500 0.72rem var(--mono); padding: 4px 9px; border-radius: 6px; background: var(--surface-2); color: #b3c2d6; border: 1px solid var(--border); }

/* Bloque destacado */
.feature {
  margin-top: 60px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
  padding: 50px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(253, 109, 1, 0.08), rgba(37, 99, 235, 0.05));
  border: 1px solid var(--border);
}
.feature h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
.feature p { color: var(--muted); margin-bottom: 22px; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(34, 197, 94, 0.15); color: var(--green); font-size: 0.75rem; font-weight: 700; margin-top: 2px; }
.migrate { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.migrate__box {
  width: 100%; padding: 22px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.migrate__box small { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.migrate__box b { font-size: 1.15rem; }
.migrate__box span { font-size: 0.88rem; }
.migrate__box--old span { color: #f87171; }
.migrate__box--old { opacity: 0.75; }
.migrate__box--new { border-color: var(--border-strong); box-shadow: 0 0 50px -20px rgba(253, 109, 1, 0.6); }
.migrate__box--new span { color: var(--green); }
.migrate__arrow { position: relative; width: 2px; height: 48px; background: var(--border); overflow: hidden; }
.migrate__arrow i { position: absolute; left: 0; width: 2px; height: 16px; background: var(--grad); animation: drop 1.4s linear infinite; }
@keyframes drop { from { top: -16px; } to { top: 48px; } }

/* ---------- Demos ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.search {
  padding: 10px 16px 10px 40px; min-width: 260px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238fa1ba' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E") 14px center no-repeat;
  color: var(--text); font: inherit;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow), 0 0 40px -20px rgba(253, 109, 1, 0.5); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card__media img, .card:hover .cover span { transform: scale(1.1); }
.cover {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 50%),
    linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 35%, #050d1a));
}
.cover span { font-size: 3.6rem; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); transition: transform 0.5s; }
.badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(5, 13, 26, 0.8); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; color: #fde68a;
}
.live {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(5, 13, 26, 0.8); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
}
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.live--ask i { background: var(--orange); animation: none; }
.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tag { font: 500 0.72rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.card h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.card p { color: var(--muted); font-size: 0.93rem; margin-bottom: 14px; }
.card .techs { margin-bottom: 18px; }
.card__actions { display: flex; gap: 10px; margin-top: auto; }
.card__actions .btn { flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.custom-cta, .banner {
  margin-top: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: 18px;
  border: 1px dashed var(--border-strong);
  background: rgba(253, 109, 1, 0.04);
}
.custom-cta h3, .banner h3 { font-size: 1.25rem; margin-bottom: 4px; }
.custom-cta p, .banner p { color: var(--muted); }

/* ---------- Casos de éxito ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}
.case:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.case__metric { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__label { color: var(--muted); font-size: 0.9rem; margin: 6px 0 20px; }
.case h3 { font-size: 1.2rem; padding-top: 18px; border-top: 1px solid var(--border); margin-bottom: 14px; }
.case dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 0.92rem; }
.case dt { font: 500 0.72rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.case dd { color: var(--muted); }

.quote {
  margin: 50px auto 0; max-width: 820px; text-align: center;
  padding: 44px 40px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(253, 109, 1, 0.08), rgba(37, 99, 235, 0.05));
  border: 1px solid var(--border);
  position: relative;
}
.quote::before { content: "“"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 6rem; line-height: 1; color: var(--accent); opacity: 0.3; }
.quote blockquote { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; line-height: 1.5; margin-bottom: 22px; }
.quote figcaption { display: inline-flex; align-items: center; gap: 12px; text-align: left; font-size: 0.9rem; color: var(--muted); }
.quote figcaption b { color: var(--text); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; }

/* ---------- Equipo ---------- */
#equipo { position: relative; overflow: hidden; }
#equipo::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 900px; height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(253, 109, 1, 0.12), transparent 65%);
  pointer-events: none;
}
.team { position: relative; display: flex; flex-direction: column; align-items: center; }
.team__area {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
  margin-bottom: 10px;
}
.team__area i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.team__bio { color: #c3cfdf; line-height: 1.7; margin-bottom: 20px; }
/* Frase personal */
.team__quote {
  position: relative; margin: 0 0 18px; padding: 14px 18px 14px 46px;
  border-radius: 14px; background: rgba(253, 109, 1, 0.06); border: 1px solid rgba(253, 109, 1, 0.18);
  font-size: 1rem; font-style: italic; font-weight: 600; line-height: 1.5; color: var(--text);
  text-align: left;
}
.team__quote::before {
  content: "“"; position: absolute; left: 12px; top: 2px;
  font: 800 3rem/1 "Plus Jakarta Sans", sans-serif; font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.team__quote--lead { font-size: 1.18rem; padding: 18px 22px 18px 58px; }
.team__quote--lead::before { font-size: 4rem; left: 14px; top: 4px; }

/* Líder (CEO): tarjeta ancha y destacada */
.lead {
  position: relative; width: 100%; max-width: 960px;
  display: grid; grid-template-columns: 280px 1fr; gap: 52px; align-items: center;
  padding: 48px 52px; border-radius: 28px;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, rgba(253,109,1,.8), rgba(255,165,61,.25) 40%, rgba(148,197,255,.12)) border-box;
  box-shadow: var(--shadow), 0 0 80px -30px rgba(253, 109, 1, 0.5);
}
.lead__photo { position: relative; justify-self: center; }
.lead__ring {
  position: relative; width: 260px; height: 260px; border-radius: 50%; padding: 6px;
  isolation: isolate;
}
.lead__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, #fd6d01, #ffa53d, #022f5e, #2563eb, #fd6d01);
  animation: spin 6s linear infinite;
}
.lead__ring::after {
  content: ""; position: absolute; inset: -18px; border-radius: 50%; z-index: -2;
  background: radial-gradient(circle, rgba(253, 109, 1, 0.35), transparent 70%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.lead__ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid var(--surface); }
.lead__badge {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  padding: 7px 18px; border-radius: 999px; white-space: nowrap;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em;
  box-shadow: 0 10px 24px -8px rgba(253, 109, 1, 0.8);
}
.lead h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px; }
.lead__role { display: block; font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; }
.lead__role { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead .team__bio { font-size: 1.04rem; }
.lead .techs { margin-bottom: 24px; }
.lead__links { display: flex; gap: 10px; flex-wrap: wrap; }
.lead__links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.lead__links a:hover { border-color: var(--border-strong); color: var(--accent); transform: translateY(-2px); }
.lead__links .si { width: 18px; height: 18px; }

/* Línea de organigrama */
.team__connector { position: relative; width: 2px; height: 64px; background: linear-gradient(var(--orange), rgba(253, 109, 1, 0.15)); }
.team__connector::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange);
}

/* Miembros: tarjetas más compactas */
.team__row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; width: 100%; }
.member {
  width: 100%; max-width: 560px; text-align: center;
  padding: 40px 36px 34px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.member:hover { transform: translateY(-4px); border-color: var(--border-strong); }
/* Foto del miembro: efectos más sutiles que los del líder (jerarquía) */
.member__photo { position: relative; width: 170px; height: 170px; margin: 0 auto 30px; }
.member__photo::before {
  /* anillo punteado que gira lento */
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px dashed rgba(253, 109, 1, 0.55);
  animation: spin 22s linear infinite reverse;
}
.member__ring {
  width: 100%; height: 100%; padding: 3px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, rgba(253, 109, 1, 0.9), rgba(37, 99, 235, 0.7));
  transition: box-shadow 0.4s;
}
.member__ring img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  border-radius: 50%; border: 4px solid var(--surface);
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}
.member:hover .member__ring { box-shadow: 0 0 40px -8px rgba(253, 109, 1, 0.55); }
.member:hover .member__ring img { transform: scale(1.07); }
.member__badge {
  position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--orange); color: var(--accent);
  font: 700 0.75rem var(--mono); letter-spacing: 0.06em;
}
.member h3 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 8px; }
.member__role {
  display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 8px;
  border: 1px solid var(--border-strong); color: var(--accent);
  font-size: 0.85rem; font-weight: 700;
}
.member .techs { justify-content: center; margin-bottom: 20px; }
.member__links { display: flex; justify-content: center; gap: 8px; }
.member__links a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.member__links a:hover { color: var(--accent); border-color: var(--border-strong); transform: translateY(-2px); }
.member__links .si { width: 18px; height: 18px; }

/* ---------- Metodología ---------- */
.method-kpis { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: -20px 0 44px; }
.method-kpis div { display: flex; flex-direction: column; align-items: center; padding: 14px 28px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); min-width: 160px; }
.method-kpis b { font-size: 1.2rem; }
.method-kpis span { font: 500 0.72rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.steps li:hover { border-color: var(--border-strong); }
.steps li span { font: 700 2.2rem var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin: 6px 0 6px; font-size: 1.12rem; }
.steps p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Promesa ---------- */
.promise {
  padding: 100px 0; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(253, 109, 1, 0.14), transparent 65%);
}
.promise__inner { max-width: 860px; }
.promise h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 18px; }
.promise p { color: var(--muted); font-size: 1.08rem; margin: 0 auto 32px; max-width: 620px; }
.promise__road { position: relative; height: 90px; margin-bottom: 30px; overflow: hidden; }
.promise__road::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 24px, transparent 24px 48px);
}
.promise__bird { position: absolute; bottom: 8px; left: -140px; width: 120px; animation: cross 7s linear infinite; }
@keyframes cross { to { left: 100%; } }
.speed-facts { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.speed-facts div { display: flex; flex-direction: column; padding: 16px 26px; min-width: 180px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.speed-facts b { font-size: 1.5rem; color: var(--accent); }
.speed-facts span { font-size: 0.85rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ---------- Contacto ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: start;
  padding: 54px; border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact__info p { color: var(--muted); margin-bottom: 26px; }
.contact__info p b { color: var(--text); }
.contact__list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__list a:hover { color: var(--accent); }
.ci { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(253, 109, 1, 0.1); color: var(--accent); font-size: 1rem; }
.contact__note { font-size: 0.88rem; padding: 12px 16px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text);
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border); resize: vertical;
  transition: border-color 0.2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form__hint { color: var(--muted); text-align: center; font-size: 0.8rem; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 0; border-top: 1px solid var(--border); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__brand .logo { display: inline-flex; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 300px; margin-bottom: 20px; }
.footer h4 { font: 500 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; color: var(--muted); }
.footer ul a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.footer__social a:hover { color: var(--accent); border-color: var(--border-strong); }
.footer__social .si { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s;
}
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.modal__box {
  position: relative; width: min(620px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  animation: pop 0.25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(5, 13, 26, 0.7); color: #fff; border: 0; font-size: 1.4rem;
}
.modal__cover { aspect-ratio: 16 / 7; overflow: hidden; }
.modal__cover img { width: 100%; height: 100%; object-fit: cover; }
.modal__content { padding: 26px; }
.modal__content h3 { font-size: 1.5rem; margin: 4px 0 8px; }
.modal__content > p { color: var(--muted); margin-bottom: 20px; }
.modal__content h4 { font-size: 0.9rem; margin-bottom: 10px; }
.modules { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.modules li { font-size: 0.85rem; padding: 5px 12px; border-radius: 8px; background: var(--surface-2); }
.modules li::before { content: "✓ "; color: var(--green); }
.creds { margin-bottom: 22px; }
.creds:empty { display: none; }
.creds__row {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: var(--bg); margin-bottom: 8px;
}
.creds__row span { color: var(--muted); font-size: 0.85rem; }
.creds__row code { font-family: var(--mono); overflow-wrap: anywhere; }
.creds__row button { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; }
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal__actions .btn { flex: 1; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services, .cases, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero__inner, .contact, .feature { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin: 20px auto 40px; width: 100%; }
  .code { left: -8px; }
  .float-badge { right: -6px; }
  .contact, .feature { padding: 34px 24px; }
}
@media (max-width: 1024px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px; background: rgba(5, 13, 26, 0.97); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 6px; }
  .nav__links a.active::after { display: none; }
  .nav__links .btn { margin-top: 8px; }
}
@media (max-width: 760px) {
  .logo img { height: 38px; }
  .hero { padding: 120px 0 60px; }
  .section { padding: 76px 0; }
  .services, .cases, .steps, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 1fr; gap: 34px; padding: 40px 24px 32px; text-align: center; }
  .lead__ring { width: 210px; height: 210px; }
  .lead .techs, .lead__links { justify-content: center; }
  .member { padding: 34px 22px 30px; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .stats > div { padding: 0 10px; margin: 0; }
  .stats > div:first-child { padding-left: 0; }
  .stats > div:last-child { padding: 0 0 0 10px; border: 0; }
  .stats strong { font-size: 1.5rem; }
  .stats > div > span { font-size: 0.78rem; line-height: 1.3; display: block; }
  .search { width: 100%; min-width: 0; }
  .custom-cta, .banner { padding: 24px; }
  .custom-cta .btn, .banner .btn { width: 100%; }
  .code { font-size: 0.7rem; padding: 12px 14px; bottom: -40px; }
  .quote { padding: 40px 22px; }
}
