/* ==========================================================================
   Appscreati — Estilos principales
   ========================================================================== */
:root {
  --bg: #070b1a;
  --bg-2: #0b1228;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --text: #f7f8ff;
  --muted: #98a4c3;
  --violet: #1d4ed8;
  --cyan: #06b6d4;
  --pink: #06b6d4;
  --orange: #cbd5e1;
  --green: #0891b2;
  --grad: linear-gradient(120deg, #60a5fa 0%, #1d4ed8 28%, #06b6d4 64%, #7dd3fc 100%);
  --shadow: 0 24px 70px rgba(2, 4, 16, .55);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand-name, .client-logo { font-family: 'Sora', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--violet); color: #fff; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.section { padding: 110px 0; position: relative; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Fondo animado ---------- */
.bg-effects { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 80%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .22; animation: drift 18s ease-in-out infinite alternate; }
.orb-a { width: 520px; height: 520px; background: #1d4ed8; top: -160px; left: -120px; }
.orb-b { width: 440px; height: 440px; background: #06b6d4; top: 38%; right: -140px; animation-delay: -6s; }
.orb-c { width: 380px; height: 380px; background: #22d3ee; top: 72%; left: 18%; animation-delay: -12s; }
@keyframes drift { to { transform: translate(70px, -60px) scale(1.12); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 18px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(7, 11, 26, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: transparent; color: #fff; position: relative; transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s;
}
.brand { perspective: 600px; }
.brand-mark .site-logo { width: 38px; height: 38px; display: block; filter: drop-shadow(0 8px 18px rgba(29,78,216,.45)); }
.brand-mark::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 25%) var(--my, 20%), rgba(255,255,255,.6), transparent 58%);
  opacity: 0; transition: opacity .3s;
}
.brand:hover .brand-mark {
  transform: rotateX(var(--lx, 0deg)) rotateY(var(--ly, 0deg)) scale(1.08);
  filter: drop-shadow(0 12px 26px rgba(29,78,216,.6));
}
.brand:hover .brand-mark::after { opacity: 1; }
.brand-name { font-size: 1.32rem; font-weight: 800; letter-spacing: -.045em; }
.brand-name span { color: var(--violet); }
.brand-name i { color: var(--cyan); font-style: normal; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: .92rem; font-weight: 500; color: #c8d0e6; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active { position: relative; }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 19px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.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); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 100px; font-weight: 700; font-size: .94rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-small { padding: 10px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-gradient { background: var(--grad); color: #fff; box-shadow: 0 12px 30px rgba(29,78,216,.32); }
.btn-gradient:hover { box-shadow: 0 18px 40px rgba(29,78,216,.48); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: #fff; }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.2); }
.play-icon { font-size: .7rem; color: var(--cyan); }
.btn-light { background: #fff; color: #0b1024; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.05); }
.text-link { color: var(--cyan); font-weight: 700; font-size: 1.05rem; }
.text-link span { display: inline-block; transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }

/* ---------- Hero ---------- */
.hero { padding: 158px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 50px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px;
  border-radius: 100px; border: 1px solid rgba(29,78,216,.35);
  background: rgba(29,78,216,.1); color: #cbd5e1; font-size: .8rem; font-weight: 600;
  letter-spacing: .01em;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(6,182,212,.14); }
.hero h1 {
  font-size: clamp(2.9rem, 5.3vw, 5.1rem); line-height: 1.05; letter-spacing: -.055em;
  font-weight: 800; margin: 22px 0 22px;
}
.hero-lead { color: var(--muted); font-size: 1.09rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 42px; }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: .68rem; font-weight: 700; color: #fff; border: 2px solid var(--bg);
  margin-left: -11px; background: linear-gradient(145deg, #1d4ed8, #06b6d4);
}
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack span:nth-child(2) { background: linear-gradient(145deg, #06b6d4, #1d4ed8); }
.avatar-stack span:nth-child(3) { background: linear-gradient(145deg, #cbd5e1, #06b6d4); }
.avatar-stack span:nth-child(4) { background: linear-gradient(145deg, #0891b2, #06b6d4); }
.hero-trust p { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.hero-trust strong { color: #fff; }

/* ---------- Mockups del hero ---------- */
.hero-visual { position: relative; height: 540px; }
.visual-glow {
  position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,.35), transparent 68%);
  top: 20px; left: 40px; filter: blur(20px);
}
.float-card {
  position: absolute; background: #111833; border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden;
}
.float-slow { animation: floaty 7s ease-in-out infinite; }
.float-medium { animation: floaty 5.5s ease-in-out infinite reverse; }
.float-fast { animation: floaty 4.5s ease-in-out infinite; animation-delay: -1s; }
.float-slower { animation: floaty 8s ease-in-out infinite reverse; animation-delay: -2s; }
@keyframes floaty { 50% { transform: translateY(-14px); } }

.browser-mock { width: min(100%, 500px); top: 35px; left: 0; }
.mock-bar { height: 30px; background: #1a2342; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; }
.mock-dots i:nth-child(2) { background: #cbd5e1; }
.mock-dots i:nth-child(3) { background: #0891b2; }
.mock-url { flex: 1; text-align: center; font-size: .6rem; color: #8b97b8; background: #0f1630; padding: 3px; border-radius: 5px; max-width: 220px; margin-inline: auto; }
.mock-lock { font-size: .55rem; }
.mock-site { padding: 18px; background: linear-gradient(160deg, #141d3c, #0d142c); }
.mock-site-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.mock-logo { width: 48px; height: 8px; border-radius: 3px; background: var(--grad); }
.mock-navline { width: 30px; height: 4px; border-radius: 3px; background: #35405f; }
.mock-navline.short { width: 20px; }
.mock-pill { width: 42px; height: 12px; border-radius: 10px; background: linear-gradient(90deg, #1d4ed8, #06b6d4); margin-left: auto; }
.mock-site-hero { display: flex; gap: 20px; align-items: center; }
.mock-copy { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.mock-kicker { width: 55px; height: 5px; border-radius: 3px; background: #06b6d4; }
.mock-title { width: 92%; height: 13px; border-radius: 4px; background: linear-gradient(90deg, #fff, #a9b6dc); }
.mock-title.w80 { width: 68%; }
.mock-text { width: 88%; height: 5px; border-radius: 3px; background: #3a466a; }
.mock-text.w60 { width: 60%; }
.mock-cta { width: 70px; height: 16px; border-radius: 10px; background: var(--grad); margin-top: 5px; }
.mock-art { position: relative; width: 140px; height: 130px; flex-shrink: 0; }
.mock-art-circle { position: absolute; inset: 12px; border-radius: 50%; background: linear-gradient(145deg, #1d4ed8, #06b6d4); opacity: .85; }
.mock-art-blob { position: absolute; width: 80px; height: 80px; right: 0; top: 0; border-radius: 22px; background: linear-gradient(145deg, #06b6d4, #1d4ed8); transform: rotate(22deg); opacity: .75; }
.mock-site-cards { display: flex; gap: 10px; margin-top: 20px; }
.mock-site-cards span { flex: 1; height: 42px; border-radius: 8px; background: #202b4d; }
.mock-site-cards span:nth-child(2) { background: #273258; }

.phone-mock { width: 156px; right: 10px; bottom: 5px; border-radius: 22px; padding: 7px; z-index: 3; }
.phone-notch { width: 46px; height: 6px; border-radius: 4px; background: #2b3557; margin: 0 auto 6px; }
.phone-app { background: linear-gradient(165deg, #1b2444, #101734); border-radius: 16px; padding: 10px; }
.phone-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.phone-avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); }
.phone-line { height: 4px; width: 28px; border-radius: 3px; background: #3b476c; }
.phone-line.short { width: 14px; }
.phone-hero { display: flex; flex-direction: column; gap: 6px; }
.phone-tag { align-self: flex-start; font-size: .48rem; font-weight: 700; letter-spacing: .04em; color: #0b1024; background: var(--cyan); padding: 2px 6px; border-radius: 5px; }
.phone-big { height: 10px; width: 95%; border-radius: 3px; background: #e7ecff; }
.phone-big.w70 { width: 65%; }
.phone-button { height: 16px; border-radius: 8px; background: var(--grad); margin-top: 5px; }
.phone-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 12px; }
.phone-grid i { height: 28px; border-radius: 7px; background: #283355; }
.phone-grid i:nth-child(2) { background: linear-gradient(145deg, #1d4ed855, #06b6d455); }

.metric-mock { width: 196px; right: 0; top: 40px; padding: 14px; z-index: 4; }
.metric-top { display: flex; align-items: center; gap: 7px; }
.metric-icon { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(6,182,212,.16); color: var(--green); font-size: .8rem; }
.metric-label { font-size: .65rem; color: #9aa6c8; }
.metric-value { font-family: 'Sora'; font-size: 1.7rem; font-weight: 800; letter-spacing: -.05em; margin: 8px 0 12px; color: var(--green); }
.metric-value span { font-size: .9rem; }
.metric-chart { display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.metric-chart i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #0891b2, #0891b222); }
.metric-chart i:nth-child(1) { height: 35%; } .metric-chart i:nth-child(2) { height: 55%; }
.metric-chart i:nth-child(3) { height: 42%; } .metric-chart i:nth-child(4) { height: 70%; }
.metric-chart i:nth-child(5) { height: 60%; } .metric-chart i:nth-child(6) { height: 85%; }
.metric-chart i:nth-child(7) { height: 100%; }
.metric-foot { font-size: .57rem; color: #7381a6; margin-top: 8px; }

.code-mock { width: 180px; left: -14px; bottom: 10px; padding: 11px; z-index: 5; }
.code-dots { display: flex; gap: 4px; margin-bottom: 9px; }
.code-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }
.code-dots i:nth-child(2) { background: #cbd5e1; } .code-dots i:nth-child(3) { background: #0891b2; }
.code-lines { display: flex; flex-direction: column; gap: 6px; }
.code-lines span { height: 5px; border-radius: 3px; }
.c1 { width: 80%; background: #1d4ed8; } .c2 { width: 55%; background: #06b6d4; }
.c3 { width: 68%; background: #06b6d4; } .c4 { width: 42%; background: #0891b2; }
.spark { position: absolute; color: var(--cyan); font-size: 1.1rem; opacity: .8; animation: twinkle 3s ease-in-out infinite; }
.spark.s1 { top: 10px; right: 120px; } .spark.s2 { bottom: 120px; right: -10px; animation-delay: -1s; color: var(--pink); }
.spark.s3 { top: 250px; left: -25px; animation-delay: -2s; color: var(--orange); }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.7) rotate(40deg); } }

/* ---------- Estadísticas ---------- */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 80px; padding-top: 36px; border-top: 1px solid var(--border);
}
.stat strong { display: block; font-family: 'Sora'; font-size: 2.5rem; font-weight: 800; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- Encabezados de sección ---------- */
.section-head { text-align: center; max-width: 700px; margin: 0 auto 55px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
.section-head h2, .process-intro h2, .cta-panel h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.16; letter-spacing: -.045em; font-weight: 800;
}
.section-head p, .process-intro p { color: var(--muted); margin-top: 16px; font-size: 1.02rem; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; padding: 32px 28px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s, border-color .3s, box-shadow .3s, background .3s;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(500px circle at 0% 0%, rgba(29,78,216,.14), transparent 60%);
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(29,78,216,.42); box-shadow: var(--shadow); background: var(--surface-2); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 22px; position: relative;
}
.service-icon svg { width: 26px; height: 26px; }
.icon-violet { background: rgba(29,78,216,.14); color: #93c5fd; }
.icon-cyan { background: rgba(6,182,212,.14); color: var(--cyan); }
.icon-pink { background: rgba(6,182,212,.14); color: var(--pink); }
.icon-orange { background: rgba(203,213,225,.14); color: var(--orange); }
.icon-green { background: rgba(6,182,212,.14); color: var(--green); }
.icon-blue { background: rgba(96,165,250,.14); color: #7dd3fc; }
.service-number { position: absolute; top: 26px; right: 28px; font-family: 'Sora'; font-size: .85rem; color: #4a5678; font-weight: 700; }
.service-card h3 { font-size: 1.22rem; letter-spacing: -.03em; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .92rem; }
.service-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.service-card li { font-size: .72rem; color: #c3ccea; background: rgba(255,255,255,.055); border: 1px solid var(--border); padding: 4px 10px; border-radius: 100px; }

/* ---------- Portafolio ---------- */
.portfolio { background: linear-gradient(180deg, transparent, rgba(11,18,40,.6), transparent); }
.portfolio-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 38px; }
.filter-btn {
  padding: 9px 20px; border-radius: 100px; cursor: pointer; font-size: .87rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: .25s;
}
.filter-btn:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.filter-btn.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 24px rgba(29,78,216,.3); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.project-card:hover { transform: translateY(-8px); border-color: rgba(6,182,212,.35); box-shadow: var(--shadow); }
.project-card.is-hidden { display: none; }
.project-visual { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; }
.project-visual-photo { background: #0b1228; }
.project-visual-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .5s ease; }
.project-card:hover .project-visual-photo img { transform: scale(1.04); }
.pv-bar { height: 20px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: rgba(8,12,28,.45); }
.pv-bar i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.4); }
.pv-bar span { font-size: .48rem; color: rgba(255,255,255,.6); margin-left: auto; margin-right: auto; }
.pv-content { height: calc(100% - 20px); padding: 11px 13px; position: relative; }
.pv-nav { display: flex; align-items: center; gap: 9px; font-size: .52rem; }
.pv-nav b { font-family: 'Sora'; font-size: .6rem; letter-spacing: .02em; }
.pv-nav span { width: 18px; height: 3px; border-radius: 2px; background: currentColor; opacity: .3; }
.pv-nav span:nth-of-type(2) { width: 12px; }
.pv-nav em { font-style: normal; margin-left: auto; opacity: .75; }
.pv-hero { display: flex; align-items: center; gap: 8px; height: calc(100% - 22px); }
.pv-copy { flex: 1; z-index: 2; }
.pv-copy h4 { font-size: clamp(.85rem, 1.35vw, 1.15rem); line-height: 1.13; letter-spacing: -.045em; margin: 10px 0 5px; }
.pv-copy p { font-size: .48rem; opacity: .7; }
.pv-btn { display: block; width: 38px; height: 11px; border-radius: 7px; margin-top: 8px; background: currentColor; opacity: .9; }
.pv-row { position: absolute; bottom: 11px; left: 13px; right: 13px; display: flex; gap: 6px; }
.pv-row i { flex: 1; height: 14px; border-radius: 4px; background: rgba(255,255,255,.16); }
.pv-blob { width: 46%; height: 72%; border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; background: linear-gradient(145deg, var(--t1), var(--t2)); position: relative; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.pv-blob::after { content: ''; position: absolute; width: 45%; height: 45%; right: -8%; top: -8%; border-radius: 12px; background: var(--accent); opacity: .85; transform: rotate(18deg); }
.pv-phone { width: 33%; height: 88%; border-radius: 12px; background: linear-gradient(160deg, #fff, #e8eefc); box-shadow: 0 8px 22px rgba(0,0,0,.25); position: relative; overflow: hidden; border: 2px solid rgba(255,255,255,.5); }
.pv-phone::before { content: ''; position: absolute; top: 6%; left: 15%; right: 15%; height: 5%; border-radius: 4px; background: var(--t1); }
.pv-phone::after { content: ''; position: absolute; top: 20%; left: 12%; right: 12%; height: 32%; border-radius: 6px; background: linear-gradient(145deg, var(--t1), var(--t2)); }
.pv-phone.alt::after { background: linear-gradient(145deg, var(--t2), var(--accent)); }
.pv-product { width: 40%; height: 82%; border-radius: 10px; background: linear-gradient(150deg, var(--t1), var(--t2)); position: relative; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.pv-product::after { content: ''; position: absolute; width: 55%; height: 18%; left: 22%; bottom: 12%; border-radius: 4px; background: rgba(255,255,255,.7); }
.pv-dashboard { width: 44%; height: 76%; border-radius: 8px; background: rgba(255,255,255,.1); display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 7px; }
.pv-dashboard i { border-radius: 4px; background: linear-gradient(145deg, var(--t1), var(--t2)); }
.pv-dashboard i:nth-child(3), .pv-dashboard i:nth-child(4) { background: rgba(255,255,255,.18); }
.pv-shapes { width: 44%; height: 80%; position: relative; }
.pv-shapes i { position: absolute; border-radius: 10px; }
.pv-shapes i:nth-child(1) { width: 60%; height: 55%; left: 0; top: 0; background: var(--t1); }
.pv-shapes i:nth-child(2) { width: 55%; height: 50%; right: 0; bottom: 0; background: var(--t2); }
.pv-shapes i:nth-child(3) { width: 35%; height: 35%; right: 5%; top: 5%; background: var(--accent); opacity: .9; }

.theme-a { --t1: #1d4ed8; --t2: #93c5fd; --accent: #e2e8f0; background: linear-gradient(150deg, #f8fafc, #f1f5f9); color: #0f2a5a; }
.theme-b { --t1: #06b6d4; --t2: #1d4ed8; --accent: #0891b2; background: linear-gradient(150deg, #111a38, #1b2a52); color: #eaf3ff; }
.theme-c { --t1: #06b6d4; --t2: #06b6d4; --accent: #cbd5e1; background: linear-gradient(150deg, #f8fafc, #f1f5f9); color: #0f2a5a; }
.theme-d { --t1: #3b82f6; --t2: #1d4ed8; --accent: #06b6d4; background: linear-gradient(150deg, #0e1734, #182557); color: #e9f0ff; }
.theme-e { --t1: #06b6d4; --t2: #0891b2; --accent: #cbd5e1; background: linear-gradient(150deg, #edfbf5, #e6f7ff); color: #064e5a; }
.theme-f { --t1: #1d4ed8; --t2: #06b6d4; --accent: #cbd5e1; background: linear-gradient(150deg, #071f3f, #0b2f52); color: #f8fafc; }

.project-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 20px; }
.project-info h3 { font-size: 1.05rem; letter-spacing: -.025em; }
.project-info span { font-size: .78rem; color: var(--muted); }
.project-arrow { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: #fff !important; font-size: .9rem; transition: .25s; flex-shrink: 0; }
.project-card:hover .project-arrow { background: var(--grad); border-color: transparent; transform: rotate(45deg); }
.portfolio-cta { text-align: center; margin-top: 45px; color: var(--muted); }
.portfolio-cta p { margin-bottom: 8px; font-size: .95rem; }

/* ---------- Proceso ---------- */
.process-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.process-intro .btn { margin-top: 28px; }
.steps { position: relative; display: flex; flex-direction: column; gap: 26px; }
.steps::before { content: ''; position: absolute; left: 25px; top: 30px; bottom: 30px; width: 1px; background: linear-gradient(var(--violet), var(--cyan), transparent); }
.step { display: flex; gap: 22px; position: relative; }
.step-num {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center;
  font-family: 'Sora'; font-weight: 800; font-size: .9rem; color: #fff;
  background: linear-gradient(145deg, #1d4ed8, #06b6d4); box-shadow: 0 10px 28px rgba(29,78,216,.3); z-index: 1;
}
.step:nth-child(2) .step-num { background: linear-gradient(145deg, #06b6d4, #1d4ed8); }
.step:nth-child(3) .step-num { background: linear-gradient(145deg, #cbd5e1, #06b6d4); }
.step:nth-child(4) .step-num { background: linear-gradient(145deg, #0891b2, #06b6d4); }
.step h3 { font-size: 1.1rem; margin: 5px 0 5px; }
.step p { color: var(--muted); font-size: .9rem; max-width: 460px; }

/* ---------- Testimonios ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.quote-mark { font-family: Georgia, serif; font-size: 3.2rem; line-height: .7; color: var(--violet); opacity: .65; }
.testimonial blockquote { margin: 14px 0 26px; font-size: .96rem; color: #dbe2f5; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: linear-gradient(145deg, #1d4ed8, #06b6d4); }
.t-avatar-2 { background: linear-gradient(145deg, #06b6d4, #1d4ed8); }
.t-avatar-3 { background: linear-gradient(145deg, #cbd5e1, #06b6d4); }
.testimonial figcaption strong { display: block; font-size: .9rem; }
.testimonial figcaption small { color: var(--muted); font-size: .78rem; }

/* ---------- Clientes ---------- */
.clients { padding: 70px 0; background: linear-gradient(180deg, transparent, rgba(148,163,184,.045), transparent); }
.clients-label { text-align: center; color: #dbe4f5; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 28px; }
.logo-marquee {
  overflow: hidden; padding: 26px 0;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(90deg, #d7e0ea, #eef3f8 50%, #d7e0ea);
  border-color: rgba(255,255,255,.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 18px 50px rgba(0,0,0,.28);
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.logo-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: #334155; white-space: nowrap; transition: color .25s; }
.client-logo:hover { color: #1d4ed8; }
.client-logo-img {
  height: 54px; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s;
}
.client-logo-img img { max-height: 48px; width: auto; max-width: 150px; object-fit: contain; opacity: 1; filter: none; transition: transform .25s; }
.client-logo-img:hover { transform: translateY(-3px); }
.client-logo-img:hover img { transform: scale(1.04); }
.client-logo i { font-style: normal; color: var(--cyan); }
.clients-hint { text-align: center; color: #a8b5d1; font-size: .92rem; margin-top: 24px; }

/* ---------- CTA ---------- */
.cta-section { padding: 40px 0 110px; }
.cta-panel {
  position: relative; overflow: hidden; border-radius: 34px; padding: 72px 60px; text-align: center;
  background: linear-gradient(125deg, #1e3a8a 0%, #1d4ed8 35%, #06b6d4 70%, #0891b2 100%);
  box-shadow: 0 30px 90px rgba(92, 60, 200, .35);
}
.cta-panel::before, .cta-panel::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.cta-panel::before { width: 460px; height: 460px; right: -130px; top: -210px; }
.cta-panel::after { width: 320px; height: 320px; left: -120px; bottom: -200px; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.22), transparent 60%); }
.cta-content { position: relative; z-index: 1; }
.eyebrow-light { color: rgba(255,255,255,.8); }
.cta-panel h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 3.2rem); }
.cta-panel h2 span { color: #e2e8f0; }
.cta-panel p { color: rgba(255,255,255,.86); max-width: 620px; margin: 18px auto 32px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cta-phone { margin-top: 22px; font-size: .9rem; color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.cta-phone a { font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }
.cta-phone a:hover { border-color: #fff; }

/* ---------- Cotizador ---------- */
.cotizador { background: linear-gradient(180deg, transparent, rgba(11,18,40,.5), transparent); }
.quote-layout { display: grid; grid-template-columns: 1.35fr .75fr; gap: 30px; align-items: start; }
.quote-form { display: flex; flex-direction: column; gap: 16px; }
.quote-step { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.quote-step > h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; letter-spacing: -.025em; }
.quote-step > h3 span { font-size: .72rem; color: var(--cyan); background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.2); width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.service-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--border); cursor: pointer; transition: .2s; }
.option-card:hover { border-color: rgba(29,78,216,.45); background: rgba(29,78,216,.07); }
.option-card:has(input:checked) { border-color: var(--violet); background: rgba(29,78,216,.12); box-shadow: 0 0 0 1px rgba(29,78,216,.3) inset; }
.option-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.option-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(29,78,216,.16); color: #93c5fd; font-size: 1.05rem; flex-shrink: 0; }
.option-text { display: flex; flex-direction: column; min-width: 0; }
.option-text strong { font-size: .85rem; font-weight: 600; }
.option-text small { font-size: .68rem; color: var(--muted); line-height: 1.3; }
.chip-group { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); font-size: .83rem; font-weight: 600; transition: .2s; }
.chip span small { font-size: .68rem; color: var(--muted); font-weight: 400; }
.chip:hover span { border-color: rgba(29,78,216,.45); }
.chip input:checked + span { border-color: var(--violet); background: rgba(29,78,216,.14); }
.chip input:checked + span small { color: #cbd5e1; }
.extra-chip span { flex-direction: row; align-items: center; gap: 8px; }
.extra-chip em { font-style: normal; color: var(--cyan); font-size: .7rem; }
.quote-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: .78rem; color: var(--muted); }
.quote-note::before { content: '✦'; color: var(--cyan); line-height: 1.3; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 600; color: #c9d2ec; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; color: #fff;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); outline: none; transition: .2s; font-size: .9rem;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #64708f; }
.field input:focus, .field textarea:focus { border-color: var(--violet); background: rgba(29,78,216,.07); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.quote-summary { position: sticky; top: 100px; }
.summary-card { position: relative; overflow: hidden; padding: 30px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(29,78,216,.16), rgba(244,63,94,.08)); border: 1px solid rgba(29,78,216,.3); box-shadow: var(--shadow); }
.summary-card::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(29,78,216,.2); filter: blur(50px); right: -100px; top: -100px; }
.summary-eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: #cbd5e1; font-weight: 700; position: relative; }
.summary-total { font-family: 'Sora'; font-size: clamp(2.1rem, 3.2vw, 2.9rem); font-weight: 800; letter-spacing: -.06em; margin: 10px 0 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.summary-note { font-size: .78rem; color: var(--muted); position: relative; }
.summary-lines { list-style: none; margin: 22px 0; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 9px; position: relative; }
.summary-lines li { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: #cbd4ee; }
.summary-lines li b { color: #fff; font-weight: 600; }
.summary-lines li.total-line { border-top: 1px dashed rgba(255,255,255,.15); padding-top: 10px; font-weight: 700; color: #fff; }
.summary-secure { text-align: center; font-size: .7rem; color: var(--muted); margin-top: 14px; position: relative; }

/* ---------- Avisos flash ---------- */
.toast-stack { position: fixed; top: 90px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #121b36; border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .87rem; animation: toastIn .35s ease both; }
.toast.success { border-color: rgba(6,182,212,.45); }
.toast.error { border-color: rgba(244,63,94,.45); }
.toast .toast-icon { font-weight: 700; color: var(--green); }
.toast.error .toast-icon { color: #fb7185; }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } }

/* ---------- Footer ---------- */
.site-footer { background: #050813; border-top: 1px solid var(--border); padding: 70px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: .88rem; max-width: 300px; margin: 18px 0; }
.socials { display: flex; gap: 9px; }
.socials a { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-size: .72rem; font-weight: 700; color: #b8c2df; transition: .2s; }
.socials a:hover { background: var(--grad); color: #fff; border-color: transparent; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.footer-col a, .footer-col p { color: var(--muted); font-size: .85rem; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); margin-top: 50px; padding-top: 22px; color: #6b7696; font-size: .78rem; }
.heart { color: var(--pink); }

/* ---------- Modal de proyectos ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,5,14,.82); backdrop-filter: blur(8px); }
.modal-card { position: relative; z-index: 1; width: min(880px, 100%); max-height: 90vh; overflow: auto; border-radius: 24px; background: #0d142c; border: 1px solid var(--border); box-shadow: var(--shadow); animation: modalIn .3s ease both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: rgba(0,0,0,.4); color: #fff; cursor: pointer; }
.modal-visual { aspect-ratio: 16 / 8; overflow: hidden; }
.modal-visual .pv-content { height: calc(100% - 20px); padding: 22px 26px; }
.modal-visual .pv-copy h4 { font-size: clamp(1.3rem, 3vw, 2.3rem); margin-top: 24px; }
.modal-visual .pv-copy p { font-size: .8rem; }
.modal-visual .pv-btn { width: 64px; height: 18px; }
.modal-body { padding: 30px; }
.modal-body h2 { font-size: 1.7rem; letter-spacing: -.04em; margin: 8px 0; }
.modal-body p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Logo interactivo ---------- */
.logo-ray { stroke-dasharray: 14; stroke-dashoffset: 0; }
.brand:hover .ray-1 { animation: logoDraw .5s ease both; }
.brand:hover .ray-2 { animation: logoDraw .5s ease .06s both; }
.brand:hover .ray-3 { animation: logoDraw .5s ease .12s both; }
.brand:hover .ray-4 { animation: logoDraw .5s ease .18s both; }
@keyframes logoDraw { from { stroke-dashoffset: 14; } to { stroke-dashoffset: 0; } }
.logo-spark { transform-box: view-box; transform-origin: 48px 22px; animation: logoSpark 2.4s ease-in-out infinite; }
.logo-orbit { transform-box: view-box; transform-origin: 48px 22px; animation: logoOrbit 2.4s ease-in-out infinite; }
@keyframes logoSpark { 50% { transform: scale(1.4); opacity: .7; } }
@keyframes logoOrbit { 0%, 100% { transform: scale(.65); opacity: .75; } 75% { transform: scale(1.55); opacity: 0; } }
.brand-mark.is-bursting { animation: logoBurst .62s cubic-bezier(.2,.8,.2,1); }
@keyframes logoBurst { 35% { transform: scale(.84) rotate(-9deg); } 70% { transform: scale(1.16) rotate(6deg); } }
.logo-particle {
  position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--c, #fff); pointer-events: none; z-index: 4;
  animation: particleFly .78s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes particleFly { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }

/* Revelación a pantalla completa del logo */
.logo-overlay {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px;
  background: rgba(4, 7, 18, .93); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
}
.logo-overlay.is-open { opacity: 1; visibility: visible; }
.logo-overlay-bg {
  position: absolute; width: min(900px, 130vw); height: min(900px, 130vw); border-radius: 50%;
  background: radial-gradient(circle, rgba(29,78,216,.32), rgba(6,182,212,.12) 40%, transparent 68%);
  filter: blur(20px); animation: overlayBreath 5s ease-in-out infinite;
}
@keyframes overlayBreath { 50% { transform: scale(1.18); opacity: .75; } }
.overlay-rays {
  position: absolute; width: min(760px, 120vw); height: min(760px, 120vw); border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 12deg, rgba(29,78,216,.16) 14deg 18deg, transparent 22deg 42deg, rgba(6,182,212,.12) 44deg 48deg, transparent 52deg 72deg);
  animation: overlaySpin 26s linear infinite; mask-image: radial-gradient(circle, transparent 22%, #000 45%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, transparent 22%, #000 45%, transparent 72%);
}
@keyframes overlaySpin { to { transform: rotate(360deg); } }
.logo-overlay-inner { position: relative; text-align: center; z-index: 1; }
.overlay-logo-wrap { width: min(240px, 50vw); margin: 0 auto 18px; animation: overlayFloat 4s ease-in-out infinite; }
.overlay-logo-wrap .site-logo { width: 100%; height: 100%; filter: drop-shadow(0 0 50px rgba(29,78,216,.7)); }
@keyframes overlayFloat { 50% { transform: translateY(-12px); } }
.overlay-wordmark {
  font-family: 'Sora', sans-serif; font-size: clamp(2.2rem, 7vw, 4.6rem); font-weight: 800;
  letter-spacing: -.07em; line-height: 1; animation: overlayRise .7s ease .15s both;
}
.overlay-wordmark span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.overlay-wordmark i { color: var(--cyan); font-style: normal; }
.overlay-tags { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; animation: overlayRise .7s ease .3s both; }
.overlay-tags span { font-size: .74rem; font-weight: 700; letter-spacing: .22em; color: #cbd4ee; }
.overlay-tags i { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.logo-overlay-inner > p { color: var(--muted); margin-top: 16px; font-size: .95rem; animation: overlayRise .7s ease .45s both; }
@keyframes overlayRise { from { opacity: 0; transform: translateY(18px); } }
.overlay-close {
  position: absolute; top: 24px; right: 24px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 1rem;
  transition: .2s;
}
.overlay-close:hover { background: var(--grad); border-color: transparent; transform: rotate(90deg); }
.overlay-particle {
  position: absolute; left: 50%; top: 42%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c, #fff); pointer-events: none;
  animation: overlayParticle 2.6s ease-out var(--d, 0s) infinite;
}
@keyframes overlayParticle {
  0% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
  25% { opacity: .9; }
  100% { transform: translate(calc(var(--dx) * 2.6), calc(var(--dy) * 2.6)) scale(.2); opacity: 0; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .42);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; position: relative; z-index: 1; }
.whatsapp-float::before, .whatsapp-float::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .5); animation: waPulse 2.4s ease-out infinite;
}
.whatsapp-float::after { animation-delay: -1.2s; }
@keyframes waPulse { 0% { transform: scale(.92); opacity: .75; } 100% { transform: scale(1.55); opacity: 0; } }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 18px 42px rgba(37, 211, 102, .55); }
.whatsapp-tooltip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  padding: 9px 13px; border-radius: 11px; white-space: nowrap; font-size: .78rem; font-weight: 600;
  background: #0d142c; border: 1px solid var(--border); box-shadow: 0 10px 28px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(-4px); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--delay, 0s), transform .7s cubic-bezier(.2,.7,.2,1) var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 480px; max-width: 560px; width: 100%; margin-inline: auto; }
  .hero h1 { font-size: clamp(2.8rem, 7vw, 4.2rem); }
  .services-grid, .portfolio-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .process-layout { grid-template-columns: 1fr; gap: 40px; }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-summary { position: relative; top: 0; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .main-nav {
    position: absolute; top: 100%; left: 4%; right: 4%; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 18px; border-radius: 18px; background: rgba(11,17,38,.97);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: 10px 12px; }
  .nav-link.active::after { display: none; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: flex; }
  .section { padding: 80px 0; }
  .hero { padding-top: 130px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cta-panel { padding: 56px 26px; }
}
@media (max-width: 640px) {
  .services-grid, .portfolio-grid, .testimonial-grid, .service-options, .field-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 410px; }
  .browser-mock { width: 100%; }
  .metric-mock { width: 150px; right: -6px; top: -10px; }
  .phone-mock { width: 120px; right: 0; }
  .code-mock { width: 140px; left: -6px; bottom: 0; }
  .hero-stats { margin-top: 55px; }
  .stat strong { font-size: 2rem; }
  .quote-step { padding: 20px; }
  .summary-card { padding: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .toast-stack { left: 16px; right: 16px; max-width: none; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .whatsapp-tooltip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
