/* WebServi.Net — Hosting & Soluciones Digitales
   Misma marca que webservi.net (azul #0751A0 + naranja #F5811F), en versión clara y liviana. */
:root {
  --blue: #0751a0;
  --blue-600: #0a5fbd;
  --blue-soft: #eaf2fc;
  --orange: #f5811f;
  --orange-600: #dc6b0c;
  --orange-soft: #fff2e6;
  --ink: #13294b;
  --muted: #5a6a83;
  --bg: #fbfcfe;
  --soft: #f3f6fb;
  --line: #e1e8f2;
  --white: #fff;
  --green: #1fa855;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(19, 41, 75, .05), 0 8px 28px rgba(19, 41, 75, .07);
  --shadow-lg: 0 2px 6px rgba(19, 41, 75, .06), 0 24px 60px rgba(19, 41, 75, .12);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid rgba(7, 81, 160, .45); outline-offset: 3px; border-radius: 8px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 700 15px var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(7, 81, 160, .25); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-wa { background: var(--green); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 252, 254, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(19, 41, 75, .05); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 132px; height: auto; }
.brand-tag { font: 600 11px/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; max-width: 110px; border-left: 1px solid var(--line); padding-left: 12px; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.menu a:hover { background: var(--soft); color: var(--blue); }
.menu-ext { color: var(--muted) !important; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0 12px; }
.burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 18s ease-in-out infinite; }
.b1 { width: 460px; height: 460px; background: #cfe1f8; top: -140px; right: -80px; }
.b2 { width: 380px; height: 380px; background: #ffe2c6; bottom: -160px; left: -100px; animation-delay: -6s; }
.b3 { width: 260px; height: 260px; background: #dbe9ff; top: 40%; left: 45%; animation-delay: -12s; opacity: .4; }
.grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%); opacity: .55; }
@keyframes float { 50% { transform: translate(30px, -24px) scale(1.06); } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--orange-600); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 800; }
.hl-blue { color: var(--blue); }
.hl-orange { color: var(--orange); position: relative; white-space: nowrap; }
.hl-orange::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em; background: var(--orange-soft); z-index: -1; border-radius: 4px; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 22px 0 30px; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
.trust li::before { content: '✓'; color: var(--green); font-weight: 800; margin-right: 6px; }
.trust b { color: var(--ink); }

.chip-float { position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- Pilares ---------- */
.pillars { margin-top: -18px; position: relative; z-index: 2; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.pillar:hover { transform: translateY(-4px); border-color: #bcd2ee; }
.pillar b { font-size: 16px; }
.pillar small { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Íconos */
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-blue { background: var(--blue-soft); color: var(--blue); }
.ico-orange { background: var(--orange-soft); color: var(--orange-600); }
.ico-sm { width: 40px; height: 40px; border-radius: 12px; }
.ico-sm svg { width: 20px; height: 20px; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
.sec-lead { color: var(--muted); font-size: 1.06rem; margin: 16px 0 26px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .sec-head { margin-bottom: 0; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.plan h3 { font-size: 1.3rem; }
.plan-for { color: var(--muted); font-size: 14px; margin-top: 4px; }
.price { margin: 22px 0; display: flex; align-items: baseline; gap: 6px; min-height: 48px; }
.price b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price span { color: var(--muted); font-weight: 600; font-size: 1.05rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; flex: 1; font-size: 15px; }
.plan li { padding-left: 26px; position: relative; color: #33465f; }
.plan li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230751a0' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan-star { border: 2px solid var(--blue); box-shadow: 0 20px 50px rgba(7, 81, 160, .16); transform: translateY(-10px); }
.ribbon { position: absolute; top: -13px; left: 26px; background: var(--orange); color: #fff; font: 700 12px var(--font); padding: 5px 12px; border-radius: 999px; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }

/* Lista de características */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 16px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.feature-list b { display: block; font-size: 15.5px; }
.feature-list small { color: var(--muted); font-size: 14px; }

/* Tarjetas de IA */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.08rem; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span { font: 600 11.5px var(--mono); color: var(--blue); background: var(--blue-soft); padding: 4px 9px; border-radius: 999px; }

/* Proyectos */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.pj-body { padding: 24px 26px 26px; }
.pj-tag { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--orange-600); }
.project h3 { font-size: 1.25rem; margin: 8px 0 10px; }
.project p { color: var(--muted); font-size: 14.5px; }
.project-sm { grid-column: 1 / -1; background: linear-gradient(120deg, var(--blue-soft), var(--orange-soft)); border-style: dashed; }
.pj-visual { position: relative; margin: 0; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #f1f6fd, #fdf4ec); overflow: hidden; border-bottom: 1px solid var(--line); }
.pj-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .pj-visual img { transform: scale(1.04); }
/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 26px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: s; }
.steps li::before { content: '0' counter(s); display: block; font: 700 13px var(--mono); color: var(--orange-600); margin-bottom: 12px; }
.steps b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 14.5px; }
.stack { margin-top: 44px; 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); }
.stack span:not(.dup) { display: inline-block; margin-right: 10px; white-space: nowrap; font: 600 13px var(--mono); color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Contacto */
.section-contact { background: linear-gradient(180deg, var(--bg), var(--blue-soft)); }
.contact-in { align-items: start; }
.channels { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.channels a, .channels li > span:first-child + span { text-decoration: none; color: var(--ink); }
.channels li, .channels a { display: flex; align-items: center; gap: 14px; }
.channels span:last-child { display: flex; flex-direction: column; font-size: 14.5px; color: var(--muted); }
.channels b { color: var(--ink); font-size: 15px; }
.ch { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 800 13px var(--font); color: #fff; flex: none; }
.ch-wa { background: var(--green); } .ch-tg { background: #2aabee; } .ch-mail { background: var(--blue); } .ch-pin { background: var(--orange-soft); font-size: 18px; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; font: 15px var(--font); color: var(--ink); padding: 13px 14px; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7, 81, 160, .12); background: #fff; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 12px; font-size: 14.5px; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--green); } .form-msg.err { color: #c0392b; }

/* Pie */
.foot { background: var(--ink); color: #c8d3e3; padding: 64px 0 28px; font-size: 14.5px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot img { background: #fff; border-radius: 12px; padding: 8px 12px; width: 150px; margin-bottom: 16px; }
.foot b { display: block; color: #fff; margin-bottom: 12px; }
.foot a, .foot span { display: block; color: #c8d3e3; text-decoration: none; margin-bottom: 8px; }
.foot a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.foot-bottom span, .foot-bottom a { margin: 0; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--green); display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(31, 168, 85, .4); z-index: 40; transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
body { overflow-x: clip; }
@media (max-width: 1220px) {
  .brand-tag { display: none; }
  .menu-ext { display: none; }
  .menu a { padding: 8px 9px; }
}
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-rev > .sec-head { order: -1; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: flex; margin-left: auto; }
  .nav-cta { display: none; }
  .menu { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--white); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; box-shadow: 0 16px 30px rgba(19, 41, 75, .08); display: none; }
  .menu.open { display: flex; }
  .menu a { padding: 13px 12px; font-size: 16px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-star { transform: none; }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero { padding: 36px 0 56px; }
  .brand-tag { display: none; }
  .grid-4, .cards-3, .steps, .foot-in, .row-2 { grid-template-columns: 1fr; }
  .form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
/* =====================================================================
   v3 · Movimiento: portada con video, soluciones conectadas, medios y chat IA
   ===================================================================== */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* Logo con brillo */
.logo-shine { position: relative; display: block; line-height: 0; }
.logo-shine::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%); background-size: 260% 100%; background-position: 160% 0;
  -webkit-mask: url(../img/logo-webservi.png) center / contain no-repeat; mask: url(../img/logo-webservi.png) center / contain no-repeat;
  animation: shine 8s ease-in-out 1.6s infinite; }
@keyframes shine { 0%, 78% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

/* Portada */
.hero { min-height: min(88vh, 820px); display: flex; flex-direction: column; justify-content: center; padding: 48px 0 40px; }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; display: flex; align-items: center; }
.hero-video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%), linear-gradient(0deg, transparent 0, #000 16%, #000 86%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 28%), linear-gradient(0deg, transparent 0, #000 16%, #000 86%, transparent 100%); mask-composite: intersect; }
.hero-media .chip-float { z-index: 2; }
.c1 { left: 26%; top: 24%; } .c2 { right: 6%; bottom: 20%; animation-delay: -2.5s; } .c3 { right: 10%; top: 18%; animation-delay: -1.2s; }
.net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.hero-in { z-index: 2; display: block; }
.hero-copy { max-width: 600px; }
.stats { position: relative; z-index: 2; list-style: none; margin: 56px 0 0; padding: 18px 8px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); max-width: 900px; }
.stats li { padding: 4px 22px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }
.stats li:nth-child(even) b { color: var(--orange-600); }
.stats span { color: var(--muted); font-size: 13.5px; }
.stats b span { color: inherit; font-size: inherit; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; width: 24px; height: 38px; border: 2px solid #b9c8de; border-radius: 14px; transform: translateX(-50%); z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.js .hero [data-anim], .js .hero [data-split] { opacity: 0; }
.no-gsap .hero [data-anim], .no-gsap .hero [data-split] { opacity: 1; }

/* Pilares con imagen */
.pillars { margin-top: 0; padding-top: 24px; }
.pillar { align-items: flex-start; transform-style: preserve-3d; will-change: transform; }
.pillar img { width: 104px; height: 104px; border-radius: 22px; object-fit: cover; mix-blend-mode: multiply; margin: -6px 0 4px -6px; transition: transform .4s ease; }
.pillar:hover img { transform: translateY(-4px) scale(1.05) rotate(-2deg); }

/* Encabezado + video */
.head-media { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.head-media .sec-head { margin-bottom: 0; }
.head-media-rev { grid-template-columns: .95fr 1.05fr; }
.media-card { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #eef4fb; }
.media-card video, .flow-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-card figcaption { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 600 12px var(--mono); color: var(--ink); }
.media-card figcaption i, .ai-head small i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31, 168, 85, .5); animation: ping 2s infinite; display: inline-block; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(31, 168, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 168, 85, 0); } }
.float-img { width: 170px; height: 170px; border-radius: 30px; mix-blend-mode: multiply; margin-top: 30px; }

/* Plan destacado: borde animado */
.plan-star { border: 2px solid transparent; background: linear-gradient(var(--white), var(--white)) padding-box, conic-gradient(from var(--spin), var(--blue), #7fb2ea, var(--orange), #7fb2ea, var(--blue)) border-box;
  animation: spin 6s linear infinite; }
@keyframes spin { to { --spin: 360deg; } }

/* Tarjetas IA con brillo que sigue al cursor */
.card { position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(7, 81, 160, .09), transparent 70%); }
.card:hover::before { opacity: 1; }
.try-ai { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 22px 26px; border-radius: 22px;
  background: linear-gradient(120deg, var(--blue-soft), var(--orange-soft)); border: 1px solid var(--line); }
.try-ai b { color: var(--blue); }

/* ---------- Soluciones conectadas ---------- */
.section-connect { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg), #eef4fc 40%, var(--bg)); }
.connect-bg { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background: radial-gradient(40% 35% at 15% 30%, rgba(7, 81, 160, .08), transparent 70%), radial-gradient(35% 30% at 85% 70%, rgba(245, 129, 31, .08), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(3%, -3%, 0) scale(1.05); } }
.section-connect .wrap { position: relative; }
.connect-stage { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hub { position: relative; aspect-ratio: 600 / 480; width: 100%; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines path { fill: none; stroke: #cfdcee; stroke-width: 2; transition: stroke .4s, stroke-width .4s; }
.hub-lines path.on { stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 7 7; animation: flowdash .9s linear infinite; }
.hub-lines path.on:nth-of-type(even) { stroke: var(--orange); }
@keyframes flowdash { to { stroke-dashoffset: -14; } }
.pulses circle { fill: var(--blue); } .pulses circle.o { fill: var(--orange); }
.hub-core { position: absolute; left: 50%; top: 50%; width: 148px; height: 148px; margin: -74px 0 0 -74px; border-radius: 50%; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); z-index: 2; }
.hub-core img { width: 48px; height: 48px; border-radius: 12px; }
.hub-core b { font-size: 15px; } .hub-core small { font: 500 11px var(--mono); color: var(--muted); }
.core-ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(7, 81, 160, .25); animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.hub-node { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; width: 190px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); transform: translate(-50%, -50%); opacity: .55; transition: opacity .4s, box-shadow .4s, border-color .4s, transform .4s; }
.hub-node b { display: block; font-size: 13.5px; line-height: 1.25; } .hub-node small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.hub-node.on { opacity: 1; border-color: #9cc0ea; box-shadow: 0 0 0 4px rgba(7, 81, 160, .08), var(--shadow-lg); transform: translate(-50%, -50%) scale(1.05); }
.n1 { left: 19%; top: 15%; } .n2 { left: 81%; top: 15%; } .n3 { left: 16%; top: 50%; } .n4 { left: 84%; top: 50%; } .n5 { left: 19%; top: 85%; } .n6 { left: 81%; top: 85%; }
.story { position: relative; min-height: 520px; }
.story-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.story-dots i { width: 22px; height: 5px; border-radius: 3px; background: var(--line); transition: background .3s, width .3s; }
.story-dots i.on { width: 40px; background: var(--orange); }
.flow { position: absolute; left: 0; right: 0; top: 24px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.flow.on { opacity: 1; transform: none; pointer-events: auto; }
.flow-media { margin: 0 0 14px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #eef4fb; }
.flow-media img { width: 100%; height: 100%; object-fit: cover; }
.flow-when { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--orange-600); margin-bottom: 10px; }
.flow ol { margin: 0; padding: 0; list-style: none; counter-reset: f; display: grid; gap: 8px; font-size: 14.5px; }
.flow li { counter-increment: f; display: flex; gap: 10px; align-items: baseline; }
.flow li::before { content: counter(f); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font: 700 12px/22px var(--font); text-align: center; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.benefits div { padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); }
.benefits b { display: block; margin-bottom: 4px; color: var(--blue); }
.benefits span { color: var(--muted); font-size: 14px; }

/* Proceso: línea que se dibuja con el scroll */
.steps { position: relative; padding-top: 26px; }
.steps-line { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.steps-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); transform: scaleX(0); transform-origin: left; }
.marquee { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee .dup { display: contents; }
.stack:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chat IA flotante ---------- */
.ai-fab { position: fixed; right: 18px; bottom: 86px; z-index: 45; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 16px; border: 0; border-radius: 999px;
  background: var(--blue); color: #fff; font: 700 14.5px var(--font); cursor: pointer; box-shadow: 0 12px 30px rgba(7, 81, 160, .35); transition: transform .2s; }
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; order: -1; }
.ai-fab-dot { position: absolute; top: 6px; left: 34px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); border: 2px solid var(--blue); }
.ai-box { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 380px; height: min(580px, calc(100vh - 36px)); display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 80px rgba(19, 41, 75, .25); overflow: hidden; }
.ai-box[hidden] { display: none; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(120deg, var(--blue), #0a63c2); color: #fff; }
.ai-head img { border-radius: 10px; background: #fff; }
.ai-head b { display: block; font-size: 15px; } .ai-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .9; }
.ai-close { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .15); color: #fff; font-size: 22px; cursor: pointer; }
.ai-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); overscroll-behavior: contain; }
.ai-msgs .m { max-width: 85%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; animation: pop .3s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.ai-msgs .bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai-msgs .user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.ai-msgs .op { align-self: flex-start; background: var(--orange-soft); border: 1px solid #ffd2a8; border-bottom-left-radius: 4px; }
.ai-msgs .op::before { content: 'Lucas · WebServi.Net'; display: block; font: 700 11px var(--mono); color: var(--orange-600); margin-bottom: 3px; }
.ai-msgs .typing { color: var(--muted); font-style: italic; }
.ai-quick { display: flex; gap: 6px; padding: 10px 12px 0; flex-wrap: wrap; }
.ai-quick button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 11px; font: 600 12.5px var(--font); color: var(--blue); cursor: pointer; }
.ai-quick button:hover { border-color: var(--blue); }
.ai-form { display: flex; gap: 8px; padding: 12px; }
.ai-form input { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; font: 15px var(--font); color: var(--ink); background: var(--bg); }
.ai-form input:focus { outline: none; border-color: var(--blue); }
.ai-form button { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--orange); cursor: pointer; display: grid; place-items: center; }
.ai-form button svg { width: 20px; height: 20px; fill: #fff; }
.ai-foot { padding: 0 14px 12px; font-size: 11.5px; color: var(--muted); }
.ai-open .ai-fab { display: none; }

/* ---------- Responsive v3 ---------- */
@media (max-width: 1100px) {
  .hero { min-height: 0; padding: 28px 0 32px; }
  .hero-in { order: 1; }
  .hero-media { position: relative; order: 2; width: auto; margin: 26px auto 0; width: calc(100% - 40px); max-width: 760px; aspect-ratio: 16 / 9; border-radius: 22px; box-shadow: var(--shadow-lg); }
  .hero-video { height: 100%; -webkit-mask-image: none; mask-image: none; object-position: 72% center; }
  .hero-media { display: block; overflow: hidden; }
  .hero-stats { order: 3; }
  .scroll-cue { display: none; }
}
@media (max-width: 1020px) {
  .head-media, .head-media-rev { grid-template-columns: 1fr; gap: 28px; }
  .head-media-rev .media-card { order: 2; }
  .connect-stage { grid-template-columns: 1fr; }
  .story { min-height: 0; display: grid; gap: 16px; }
  .story-dots { display: none; }
  .flow { position: relative; top: 0; opacity: 1; transform: none; pointer-events: auto; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px 0; margin-top: 26px; }
  .stats li:nth-child(3) { border-left: 0; }
  .c3 { display: none; } .c1 { left: 6%; top: auto; bottom: 8%; }
  .hub-node { width: 150px; padding: 8px 9px; gap: 7px; }
  .hub-node .ico-sm { display: none; }
  .hub-core { width: 112px; height: 112px; margin: -56px 0 0 -56px; }
}
@media (max-width: 600px) {
  .stats b { font-size: 1.35rem; }
  .stats li { padding: 4px 14px; }
  .hub { aspect-ratio: 600 / 640; }
  .hub-node { width: 128px; } .hub-node small { display: none; }
  .n3 { left: 18%; } .n4 { left: 82%; }
  .benefits { grid-template-columns: 1fr; }
  .try-ai { flex-direction: column; align-items: flex-start; }
  .ai-fab { bottom: 84px; padding: 0 14px; } .ai-fab-txt { display: none; } .ai-fab-dot { left: 30px; }
  .ai-box { right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; }
  .float-img { width: 130px; height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero [data-anim], .hero [data-split] { opacity: 1 !important; }
}

.gsap-on .reveal { transition: none; }
