:root {
  --p-900: #071a3a;
  --p-800: #0b2a5b;
  --p-700: #0b3b8c;
  --p-600: #1d4ed8;
  --p-500: #2563eb;
  --p-400: #38bdf8;
  --p-100: #dbeafe;
  --p-50: #eff6ff;
  --p-ink: #0b1b36;
  --p-muted: #5b6b84;
  --p-line: #dbe6f5;
  --p-white: #ffffff;
  --p-radius: 18px;
  --p-shadow: 0 1px 2px rgba(7, 26, 58, .04), 0 16px 40px rgba(7, 26, 58, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.pub {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f7faff;
  color: var(--p-ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.03em; }
p { margin: 0; }
a { color: var(--p-600); text-decoration: none; }
a:hover { text-decoration: none; }
.muted { color: var(--p-muted); }
.small { font-size: .86rem; }

/* ---------- nav ---------- */
.pub-nav {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.pub-brand { display: flex; align-items: center; gap: 11px; color: var(--p-900); }
.pub-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--p-400), var(--p-600));
  color: #fff; font-weight: 900; font-size: 1.3rem;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
}
.pub-mark.small { width: 30px; height: 30px; border-radius: 9px; font-size: 1rem; }
.pub-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.pub-brand-text strong { font-size: 1.05rem; letter-spacing: .16em; }
.pub-brand-text small { color: var(--p-muted); font-size: .68rem; letter-spacing: .04em; }
.pub-links { display: flex; gap: 26px; margin-left: auto; }
.pub-links a { color: #2b3b55; font-size: .9rem; font-weight: 600; }
.pub-links a:hover { color: var(--p-600); }

/* ---------- botones ---------- */
.pub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 11px; border: 1px solid transparent;
  font-size: .9rem; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform .12s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.pub-btn:hover { transform: translateY(-1px); text-decoration: none; }
.pub-btn.primary { background: var(--p-600); color: #fff; box-shadow: 0 10px 22px rgba(37, 99, 235, .25); }
.pub-btn.primary:hover { background: var(--p-700); }
.pub-btn.blue { background: var(--p-700); color: #fff; }
.pub-btn.ghost { background: transparent; border-color: #c9d8ee; color: var(--p-700); }
.pub-btn.ghost:hover { background: #fff; border-color: #9fbbdf; }
.pub-btn.big { padding: 14px 22px; font-size: .96rem; border-radius: 12px; }

/* ---------- hero ---------- */
.pub-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, .22), transparent 38%),
    radial-gradient(circle at 85% 10%, rgba(29, 78, 216, .35), transparent 42%),
    linear-gradient(135deg, var(--p-900) 0%, var(--p-800) 45%, var(--p-700) 100%);
  color: #f2f7ff;
  padding: 76px 24px 62px;
  overflow: hidden;
}
.pub-hero-copy, .pub-hero-visual {
  max-width: 1180px;
}
.pub-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.pub-hero-copy { max-width: 620px; justify-self: end; width: 100%; }
.pub-hero-visual { max-width: 480px; justify-self: start; width: 100%; position: relative; }
.pub-eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
  color: var(--p-400); margin-bottom: 12px;
}
.pub-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  letter-spacing: -.045em; line-height: 1.02; margin-bottom: 18px;
}
.pub-hero h1 em { color: var(--p-400); font-style: normal; }
.pub-hero p { color: #b9cbe4; font-size: 1.05rem; max-width: 540px; margin-bottom: 26px; }
.pub-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pub-hero-actions .pub-btn.ghost { color: #eaf3ff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); }
.pub-hero-actions .pub-btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.pub-hero-note { margin-top: 20px; color: #8fa9c9; font-size: .82rem; }

.status-window {
  background: rgba(10, 28, 58, .55);
  border: 1px solid rgba(140, 190, 255, .22);
  border-radius: 18px;
  padding: 18px 18px 14px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.status-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.status-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.status-bar i:first-child { background: #38bdf8; }
.status-bar span { margin-left: auto; color: #7e9cc2; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.status-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .86rem; color: #d6e6fb;
}
.status-row:last-of-type { border-bottom: 0; }
.status-row strong { margin-left: auto; font-size: .8rem; color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.dot.ok { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.dot.warn { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .18); }
.status-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); color: #7e9cc2; font-size: .7rem; }
.float-card {
  position: static;
  margin: 14px 0 0 auto;
  width: fit-content;
  background: #fff; color: var(--p-ink); border-radius: 14px;
  padding: 13px 17px; box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
  display: flex; flex-direction: column; gap: 1px; min-width: 132px;
}
.float-card span { color: var(--p-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.float-card strong { font-size: 1.4rem; letter-spacing: -.03em; }
.float-card small { color: #8a99ad; font-size: .7rem; }

/* ---------- trust ---------- */
.pub-trust {
  max-width: 1110px; margin: -26px auto 0; position: relative; z-index: 2;
  background: #fff; border: 1px solid var(--p-line); border-radius: 16px;
  box-shadow: var(--p-shadow); padding: 20px 26px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.pub-trust div { display: flex; flex-direction: column; gap: 2px; }
.pub-trust strong { font-size: .9rem; letter-spacing: -.01em; }
.pub-trust span { color: var(--p-muted); font-size: .78rem; }

/* ---------- secciones ---------- */
.pub-section { max-width: 1180px; margin: 0 auto; padding: 86px 24px; }
.pub-section.alt { max-width: none; background: #f0f6ff; padding-left: 24px; padding-right: 24px; }
.pub-section.alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.pub-section-head { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.pub-section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.pub-section-head p { color: var(--p-muted); font-size: 1rem; }

.pub-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pub-service {
  background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
  padding: 24px; box-shadow: var(--p-shadow);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s, border .15s;
}
.pub-service:hover { transform: translateY(-3px); border-color: #b9d1f2; }
.pub-service-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--p-50); color: var(--p-600);
  display: grid; place-items: center; margin-bottom: 4px;
}
.pub-service-icon svg { width: 24px; height: 24px; }
.pub-service h3 { font-size: 1.02rem; }
.pub-service p { color: var(--p-muted); font-size: .86rem; flex: 1; }
.pub-link { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 800; color: var(--p-600); }
.pub-link svg { width: 14px; height: 14px; }

/* ---------- pasos ---------- */
.pub-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pub-step { background: #fff; border: 1px solid var(--p-line); border-radius: 15px; padding: 22px; position: relative; }
.pub-step span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--p-600); color: #fff; font-weight: 800; font-size: .8rem; margin-bottom: 14px; }
.pub-step h4 { font-size: .98rem; margin-bottom: 6px; }
.pub-step p { color: var(--p-muted); font-size: .84rem; }

/* ---------- about ---------- */
.pub-about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.pub-about h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 14px; }
.pub-about p { color: var(--p-muted); margin-bottom: 14px; font-size: .98rem; }
.pub-checks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pub-checks li { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: #203754; }
.pub-checks svg { width: 18px; height: 18px; color: var(--p-600); flex: 0 0 18px; }
.pub-about-card {
  background: linear-gradient(145deg, var(--p-800), var(--p-600));
  color: #eef6ff; border-radius: 22px; padding: 30px;
  box-shadow: 0 24px 60px rgba(11, 59, 140, .22);
}
.about-badge { display: inline-block; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); padding: 5px 11px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #bfe1ff; margin-bottom: 16px; }
.pub-about-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pub-about-card p { color: #bcd4ee; font-size: .9rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.about-stats div { display: flex; flex-direction: column; }
.about-stats strong { font-size: 1.8rem; letter-spacing: -.03em; }
.about-stats span { color: #9fc0e4; font-size: .74rem; }

/* ---------- contacto ---------- */
.pub-contact { display: grid; grid-template-columns: .95fr 1.05fr; gap: 54px; align-items: start; }
.pub-contact h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 12px; }
.pub-contact-copy > p { color: var(--p-muted); font-size: .98rem; margin-bottom: 24px; }
.pub-contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
.pub-contact-info div { display: flex; flex-direction: column; gap: 2px; }
.pub-contact-info span { color: var(--p-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pub-contact-info strong { font-size: .9rem; }
.pub-contact-card { background: #fff; border: 1px solid var(--p-line); border-radius: 20px; padding: 26px; box-shadow: var(--p-shadow); }
.pub-form { display: flex; flex-direction: column; gap: 13px; }
.pub-form label { display: flex; flex-direction: column; gap: 5px; font-size: .76rem; font-weight: 800; color: #40526c; }
.pub-form input, .pub-form select, .pub-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--p-line); border-radius: 10px;
  font-family: inherit; font-size: .9rem; color: var(--p-ink); background: #fbfdff; outline: none;
}
.pub-form input:focus, .pub-form select:focus, .pub-form textarea:focus { border-color: var(--p-400); background: #fff; box-shadow: 0 0 0 3px rgba(56, 189, 248, .15); }
.pub-form textarea { resize: vertical; }
.pub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.pub-form-note { color: #8a99ad; font-size: .74rem; text-align: center; }
.pub-form.compact { margin-top: 10px; }
.pub-alert { border-radius: 12px; padding: 12px 14px; font-size: .86rem; margin-bottom: 15px; }
.pub-alert.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.pub-alert.bad { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ---------- footer ---------- */
.pub-footer {
  background: var(--p-900); color: #a9c0dc;
  padding: 34px 24px;
  margin-top: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  justify-content: space-between;
  max-width: none;
}
.pub-foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.pub-foot-brand div { display: flex; flex-direction: column; line-height: 1.2; }
.pub-foot-brand strong { letter-spacing: .14em; font-size: .92rem; }
.pub-foot-brand small { color: #7e9cc2; font-size: .7rem; }
.pub-foot-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .78rem; }
.pub-foot-links a { color: #bcd4ee; }
.pub-foot-links a:hover { color: #fff; }
.pub-copy { color: #6f8cae; font-size: .72rem; width: 100%; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; }

/* ---------- login ---------- */
.login-wrap {
  min-height: 62vh;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, .18), transparent 40%),
    linear-gradient(160deg, #eef6ff, #f8fbff 60%, #eaf2ff);
}
.login-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--p-line); border-radius: 22px; padding: 32px; box-shadow: 0 24px 60px rgba(7, 26, 58, .1); }
.login-logo { margin-bottom: 18px; }
.login-card h1 { font-size: 1.55rem; margin: 4px 0 8px; }
.login-sub { color: var(--p-muted); font-size: .9rem; margin-bottom: 20px; }
.login-form { display: flex; flex-direction: column; gap: 13px; }
.login-form label { display: flex; flex-direction: column; gap: 5px; font-size: .76rem; font-weight: 800; color: #40526c; }
.login-form input { padding: 11px 13px; border: 1px solid var(--p-line); border-radius: 10px; font-family: inherit; font-size: .95rem; outline: none; }
.login-form input:focus { border-color: var(--p-400); box-shadow: 0 0 0 3px rgba(56, 189, 248, .15); }
.login-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: .8rem; }

/* ---------- portal cliente ---------- */
.client-shell { max-width: 1180px; margin: 0 auto; padding: 40px 24px 70px; }
.client-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.client-top h1 { font-size: 2rem; margin: 2px 0 4px; }
.client-top-actions { display: flex; gap: 9px; }
.client-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.client-stat { background: #fff; border: 1px solid var(--p-line); border-radius: 15px; padding: 18px; box-shadow: var(--p-shadow); display: flex; flex-direction: column; gap: 2px; }
.client-stat span { color: var(--p-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.client-stat strong { font-size: 1.55rem; letter-spacing: -.03em; }
.client-stat small { color: #8a99ad; font-size: .74rem; }
.client-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.client-card { background: #fff; border: 1px solid var(--p-line); border-radius: 18px; padding: 20px; box-shadow: var(--p-shadow); }
.client-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.client-card-head h3 { font-size: .98rem; }
.pub-table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.pub-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: #8a99ad; padding: 7px 8px; border-bottom: 1px solid var(--p-line); }
.pub-table td { padding: 10px 8px; border-bottom: 1px solid #eef4fc; vertical-align: top; }
.pub-table tr:last-child td { border-bottom: 0; }
.client-abono { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef4fc; }
.client-abono:last-child { border-bottom: 0; }
.client-abono > div:first-child { display: flex; flex-direction: column; flex: 1; }
.client-abono strong { font-size: .9rem; }
.client-abono span { color: var(--p-muted); font-size: .76rem; }
.client-abono-monto { font-weight: 800; font-size: 1rem; }
.client-historial { list-style: none; margin: 0; padding: 0 0 0 6px; position: relative; }
.client-historial::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: #e2ecfa; }
.client-hist { position: relative; padding: 0 0 14px 20px; }
.client-hist:last-child { padding-bottom: 0; }
.client-hist-dot { position: absolute; left: -1px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--p-400); box-shadow: 0 0 0 3px #e0f2fe; }
.client-hist p { color: #40526c; font-size: .84rem; margin-top: 3px; }
.client-hist strong { font-size: .8rem; }
.client-cita { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 0; border-bottom: 1px solid #eef4fc; }
.client-cita:last-child { border-bottom: 0; }
.client-cita strong { font-size: .86rem; }
.client-cita span { color: var(--p-muted); font-size: .78rem; }

/* ---------- badges / vacío (portal cliente) ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; text-transform: capitalize; white-space: nowrap; }
.badge.ok { background: #ecfdf5; color: #047857; }
.badge.warn { background: #fffbeb; color: #b45309; }
.badge.bad { background: #fef2f2; color: #b91c1c; }
.badge.muted { background: #eef4fc; color: #5b6b84; }
.empty { text-align: center; padding: 22px 12px; color: #8a99ad; }
.empty-icon { font-size: 1.4rem; color: #c9d8ee; margin-bottom: 6px; }
.empty strong { display: block; color: #5b6b84; font-size: .88rem; margin-bottom: 3px; }
.empty p { font-size: .8rem; max-width: 400px; margin: 0 auto; }
.empty.small { padding: 10px; }

/* ===================== v2 · profesional ===================== */
body.pub {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  --p-muted: #465872;
}
h1, h2, h3, h4 { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; }
.pub-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: none;
  color: inherit;
  font-size: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
}
.pub-mark.small { width: 30px; height: 30px; border-radius: 9px; flex-basis: 30px; }
.login-logo .pub-mark { width: 48px; height: 48px; border-radius: 14px; flex-basis: 48px; }
.brand-dot { color: var(--p-400); }
.pub-links a { font-size: .95rem; }
.pub-btn { font-size: .95rem; }
.pub-eyebrow { font-size: .76rem; letter-spacing: .12em; }
.pub-hero p { font-size: 1.08rem; color: #c7d8ee; }
.pub-hero-note { font-size: .86rem; }
.pub-service h3 { font-size: 1.05rem; }
.pub-service p { font-size: .92rem; line-height: 1.6; color: #465872; }
.pub-trust span { font-size: .82rem; }
.pub-contact-info span { font-size: .78rem; }
.pub-contact-info strong { font-size: .95rem; }
.pub-form label { font-size: .8rem; }
.pub-form input, .pub-form select, .pub-form textarea { font-size: .95rem; }
.pub-form-note { font-size: .78rem; }
.pub-foot-links { font-size: .82rem; }
.pub-copy { font-size: .76rem; }
.login-sub { font-size: .95rem; }
.client-stat span { font-size: .78rem; }
.client-stat small { font-size: .8rem; }
.client-hist p { font-size: .88rem; }
.client-cita span { font-size: .82rem; }
.pub-table { font-size: .9rem; }

/* hero con fotos rotativas */
.pub-hero { position: relative; background: var(--p-900); grid-template-columns: 1.2fr .8fr; }
.pub-hero-copy { max-width: 720px; }
.pub-hero h1 { font-size: clamp(2.2rem, 4vw, 3.35rem); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  filter: saturate(.85) brightness(.62);
}
.hero-slide.active { opacity: 1; }
.pub-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg,
    rgba(4, 14, 35, .94) 0%,
    rgba(5, 26, 64, .86) 45%,
    rgba(7, 40, 95, .62) 100%);
}
.pub-hero-copy, .pub-hero-visual { position: relative; z-index: 2; }

/* nosotros: azul profundo + foto de oficina */
.pub-section.dark#nosotros {
  max-width: none;
  background:
    linear-gradient(110deg, rgba(4, 14, 35, .95) 0%, rgba(6, 28, 70, .90) 55%, rgba(9, 45, 110, .82) 100%),
    url('/static/img/nosotros-oficina.jpg') center / cover;
  color: #eaf3ff;
}
.pub-section.dark#nosotros > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.pub-section.dark .pub-about h2 { color: #fff; }
.pub-section.dark .pub-about p { color: #c3d5ea; }
.pub-section.dark .pub-checks li { color: #eaf3ff; }
.pub-section.dark .pub-checks svg { color: #7dd3fc; }
.pub-section.dark .pub-about-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  backdrop-filter: blur(12px);
}
.pub-section.dark .pub-about-card p { color: #c7d8ee; }
.pub-section.dark .about-stats { border-top-color: rgba(255, 255, 255, .16); }
.pub-section.dark .about-stats span { color: #9fc0e4; }

/* nuestros clientes */
.pub-section.clients {
  max-width: none;
  background:
    linear-gradient(115deg, rgba(4, 14, 35, .96) 0%, rgba(6, 28, 70, .90) 45%, rgba(10, 55, 130, .82) 100%),
    url('/static/img/clientes-local.jpg') center / cover;
  color: #eaf3ff;
}
.pub-section.clients > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.pub-section-head.light h2 { color: #fff; }
.pub-section-head.light p { color: #c3d5ea; }
.pub-section-head.light .pub-eyebrow { color: #7dd3fc; }
.client-showcase { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; align-items: start; }
.client-sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.client-sector {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(8px);
}
.sector-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(56, 189, 248, .12); color: #7dd3fc;
  display: grid; place-items: center; margin-bottom: 10px;
}
.sector-icon svg { width: 18px; height: 18px; }
.client-sector h4 { color: #fff; font-size: .94rem; margin-bottom: 4px; }
.client-sector p { color: #b9cbe4; font-size: .84rem; line-height: 1.5; }
.client-case {
  background: rgba(5, 20, 48, .78);
  border: 1px solid rgba(125, 211, 252, .28);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.case-tag {
  display: inline-block;
  background: rgba(56, 189, 248, .14);
  border: 1px solid rgba(125, 211, 252, .28);
  color: #7dd3fc;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.client-case h3 { color: #fff; font-size: 1.3rem; margin: 11px 0 8px; }
.client-case p { color: #c3d5ea; font-size: .9rem; }
.client-case ul { margin: 14px 0 18px; padding-left: 18px; color: #dbeafe; font-size: .86rem; }
.client-case li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .client-showcase { grid-template-columns: 1fr; }
  .client-sectors { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .pub-hero { padding: 50px 16px 40px; min-height: auto; }
  .pub-hero h1 { font-size: 2.45rem; }
  .pub-hero-visual { min-height: 300px; margin-top: 8px; }
  .hero-wordmark { font-size: 3.4rem; }
  .logo-3d { width: 170px; }
  .orb-glow { width: 280px; height: 280px; }
  .orbit { width: 270px; height: 270px; }
  .orbit-b { width: 220px; height: 220px; }
  .hero-badge { font-size: .68rem; bottom: 0; }
}

/* ===================== v3 · Grupo Tecna / 3D ===================== */
body.pub {
  --p-900: #040510;
  --p-800: #080b24;
  --p-700: #111642;
  --p-600: #4338ca;
  --p-500: #6366f1;
  --p-400: #22d3ee;
}
.brand-kicker {
  font-size: .64em;
  letter-spacing: .18em;
  color: #66758c;
  font-weight: 700;
  margin-right: .2em;
}
.pub-foot-brand .brand-kicker { color: #9fc0e4; }
.pub-brand-text strong { font-size: 1.04rem; letter-spacing: .11em; }

/* hero 3D */
.pub-hero {
  grid-template-columns: 1.05fr .95fr;
  min-height: 660px;
  padding: 92px 24px 88px;
  align-items: center;
  background:
    radial-gradient(circle at 16% 18%, rgba(139, 92, 246, .35), transparent 42%),
    radial-gradient(circle at 82% 8%, rgba(34, 211, 238, .16), transparent 40%),
    radial-gradient(circle at 50% 120%, rgba(67, 56, 202, .38), transparent 55%),
    linear-gradient(135deg, #040510 0%, #080b24 45%, #111642 100%);
}
.pub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(148, 163, 184, .13) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .45;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.pub-hero::after { display: none; }
.pub-hero-copy { max-width: 740px; }
.pub-hero h1 {
  font-size: clamp(2.6rem, 4.7vw, 4.05rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin-bottom: 22px;
}
.pub-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #67e8f9 0%, #818cf8 55%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pub-hero p { font-size: 1.08rem; color: #c7d8ee; max-width: 620px; }
.pub-hero .pub-btn.primary {
  background: linear-gradient(135deg, #4338ca 0%, #2563eb 58%, #0ea5e9 100%);
  box-shadow: 0 14px 34px rgba(67, 56, 202, .35);
}
.pub-hero .pub-btn.ghost {
  border-color: rgba(148, 190, 255, .28);
  background: rgba(255, 255, 255, .04);
  color: #eaf3ff;
}

.pub-hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 520px;
  justify-self: center;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.hero-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  text-align: center;
  font-weight: 900;
  font-size: clamp(4rem, 7vw, 6.6rem);
  line-height: .78;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .13);
  pointer-events: none;
  user-select: none;
}
.hero-wordmark span,
.hero-wordmark strong { display: block; }
.hero-wordmark strong { -webkit-text-stroke: 1px rgba(103, 232, 249, .28); }
.orb-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(139, 92, 246, .65), rgba(37, 99, 235, .35) 38%, rgba(6, 182, 212, .18) 58%, transparent 72%);
  filter: blur(34px);
  animation: pulseGlow 8s ease-in-out infinite alternate;
}
.orbit {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, .22);
  transform: rotateX(70deg) rotateZ(10deg);
  animation: spinOrbit 28s linear infinite;
}
.orbit-b {
  width: 350px;
  height: 350px;
  border-color: rgba(139, 92, 246, .35);
  transform: rotateX(72deg) rotateZ(-28deg);
  animation-duration: 20s;
  animation-direction: reverse;
}
.logo-3d {
  position: relative;
  z-index: 2;
  width: min(280px, 30vw);
  transform-style: preserve-3d;
  animation: float3d 9s ease-in-out infinite;
  filter: drop-shadow(0 35px 45px rgba(0, 0, 0, .55));
}
.logo-3d img { width: 100%; display: block; }
.hero-badge {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 14, 38, .62);
  border: 1px solid rgba(125, 211, 252, .22);
  color: #bcd4ee;
  font-size: .76rem;
  letter-spacing: .04em;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
@keyframes float3d {
  0%, 100% { transform: translateY(0) rotateY(-9deg) rotateX(5deg); }
  50% { transform: translateY(-16px) rotateY(9deg) rotateX(-5deg); }
}
@keyframes spinOrbit { to { transform: rotateX(70deg) rotateZ(370deg); } }
@keyframes pulseGlow {
  from { opacity: .75; transform: scale(.96); }
  to { opacity: 1; transform: scale(1.04); }
}

/* secciones más editoriales */
.pub-section-head { text-align: left; margin: 0 0 46px; max-width: 820px; }
.pub-section-head h2 { font-size: clamp(2rem, 3.6vw, 3.15rem); letter-spacing: -.045em; }
.pub-section-head p { max-width: 640px; font-size: 1.02rem; }
#servicios {
  max-width: none;
  background: radial-gradient(circle at 86% 12%, rgba(99, 102, 241, .09), transparent 38%), #f7faff;
}
#servicios > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.pub-section.dark#nosotros {
  background:
    linear-gradient(110deg, rgba(4, 5, 16, .96) 0%, rgba(10, 11, 36, .92) 55%, rgba(30, 27, 75, .88) 100%),
    url('/static/img/nosotros-oficina.jpg') center / cover;
}
.pub-section.clients {
  background:
    linear-gradient(115deg, rgba(4, 5, 16, .97) 0%, rgba(10, 11, 36, .93) 45%, rgba(30, 27, 75, .88) 100%),
    url('/static/img/clientes-local.jpg') center / cover;
}
.pub-footer { background: #040510; }

@media (max-width: 1080px) {
  .pub-hero { grid-template-columns: 1fr; }
  .pub-hero-visual { min-height: 460px; }
  .logo-3d { width: 240px; }
}
@media (max-width: 760px) {
  .pub-hero { padding: 54px 16px 64px; }
  .pub-hero h1 { font-size: 2.5rem; }
  .pub-hero-visual { min-height: 400px; }
  .hero-wordmark { font-size: 4.2rem; }
  .logo-3d { width: 210px; }
  .orb-glow { width: 320px; height: 320px; }
  .orbit { width: 310px; height: 310px; }
  .orbit-b { width: 250px; height: 250px; }
  .hero-badge { font-size: .7rem; }
  .brand-kicker { font-size: .58em; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pub-services { grid-template-columns: 1fr 1fr; }
  .pub-steps { grid-template-columns: 1fr 1fr; }
  .pub-hero { grid-template-columns: 1fr; gap: 44px; padding-top: 54px; }
  .pub-hero-copy { justify-self: start; max-width: 720px; }
  .pub-hero-visual { justify-self: start; max-width: 520px; }
  .pub-about, .pub-contact { grid-template-columns: 1fr; gap: 32px; }
  .pub-trust { grid-template-columns: 1fr 1fr; }
  .client-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .pub-nav { flex-wrap: wrap; gap: 14px; padding: 14px 16px; }
  .pub-links { order: 3; width: 100%; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
  .pub-nav .pub-btn { margin-left: auto; }
  .pub-hero { padding: 44px 16px 52px; }
  .pub-hero h1 { font-size: 2.2rem; }
  .pub-hero p { font-size: .95rem; }
  .pub-hero-actions .pub-btn { flex: 1; }
  .float-card { margin: 12px 0 0 auto; }
  .pub-trust { margin: -20px 16px 0; padding: 16px; gap: 14px; }
  .pub-section, .pub-section.alt { padding: 58px 16px; }
  .pub-services, .pub-steps, .pub-contact-info { grid-template-columns: 1fr; }
  .pub-about-card { padding: 24px; }
  .pub-contact-card { padding: 20px; }
  .pub-row { grid-template-columns: 1fr; }
  .pub-footer { padding: 26px 16px; }
  .pub-foot-links { gap: 12px; }
  .login-card { padding: 24px; }
  .client-shell { padding: 26px 16px 50px; }
  .client-top { flex-direction: column; align-items: flex-start; }
  .client-top h1 { font-size: 1.6rem; }
  .client-cards, .client-grid { grid-template-columns: 1fr; }
}

/* ajustes finales mobile · hero 3D */
@media (max-width: 760px) {
  .pub-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .pub-mark.small { width: 28px; height: 28px; flex-basis: 28px; }
  .client-sectors { grid-template-columns: 1fr; }
  .pub-section.dark#nosotros, .pub-section.clients { padding-left: 16px; padding-right: 16px; }
  .pub-hero { padding: 50px 16px 40px; min-height: auto; }
  .pub-hero h1 { font-size: 2.45rem; }
  .pub-hero-visual { min-height: 300px; margin-top: 8px; }
  .hero-wordmark { font-size: 3.4rem; }
  .logo-3d { width: 170px; }
  .orb-glow { width: 280px; height: 280px; }
  .orbit { width: 270px; height: 270px; }
  .orbit-b { width: 220px; height: 220px; }
  .hero-badge { font-size: .68rem; bottom: 0; }
}

/* ===================== v4 · header refinado ===================== */
.pub-nav {
  display: block;
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  height: auto;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid #e7eef9;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}
.pub-nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4338ca, #6366f1 48%, #22d3ee);
}
.pub-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 78px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.pub-brand { gap: 12px; flex: 0 0 auto; }
.pub-mark {
  width: 38px; height: 38px; flex-basis: 38px;
  border-radius: 11px;
  box-shadow: 0 6px 14px rgba(30, 27, 75, .18);
}
.pub-mark.small { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
.pub-brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-name {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .075em;
  color: #0b1b36;
  white-space: nowrap;
}
.brand-name strong { font-weight: 900; letter-spacing: .055em; }
.pub-brand-text .brand-name strong { font-size: inherit; letter-spacing: inherit; }
.pub-foot-brand .brand-name strong { font-size: inherit; letter-spacing: inherit; }
.brand-name-light, .brand-name-dark { color: #fff; }
.pub-brand-text small {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #7a8aa3;
  text-transform: uppercase;
}
.pub-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.pub-links a {
  position: relative;
  padding: 6px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: #334155;
}
.pub-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4338ca, #22d3ee);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.pub-links a:hover { color: #111642; }
.pub-links a:hover::after { transform: scaleX(1); }
.pub-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 10px;
  background: #111642;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(17, 22, 66, .18);
  transition: transform .15s ease, background .15s ease;
}
.pub-cta span { color: #22d3ee; font-size: 14px; line-height: 1; }
.pub-cta:hover { background: #1e1b4b; transform: translateY(-1px); }
.pub-footer .brand-name { font-size: 14px; }
.pub-foot-brand small { display: block; margin-top: 3px; font-size: 9px; letter-spacing: .1em; color: #9fc0e4; }

@media (max-width: 860px) {
  .pub-nav-inner { height: auto; padding: 14px 16px; flex-wrap: wrap; gap: 12px; }
  .pub-brand { margin-right: auto; }
  .pub-cta { margin-left: auto; padding: 9px 12px; font-size: 12.5px; }
  .pub-links { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; padding: 2px 0 0; }
  .pub-links a { font-size: 14px; }
  .pub-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .brand-name { font-size: 14.5px; }
  .pub-brand-text small { font-size: 8px; }
}

/* ===================== v5 · foco IT y pymes ===================== */
.pub-services { grid-template-columns: repeat(3, 1fr); }
#servicios .pub-service { padding: 26px; }
#servicios .pub-service p { min-height: 72px; }

.taller { max-width: none; background: #ffffff; }
.taller-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.taller-photo { position: relative; border-radius: 20px; overflow: hidden; min-height: 400px; box-shadow: 0 24px 60px rgba(15, 23, 42, .12); }
.taller-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); }
.taller-badge { position: absolute; left: 16px; bottom: 16px; background: rgba(8, 14, 38, .76); color: #eaf3ff; border: 1px solid rgba(125, 211, 252, .25); padding: 7px 12px; border-radius: 999px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; backdrop-filter: blur(8px); }
.taller-copy h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.045em; margin-bottom: 14px; }
.taller-copy p { color: var(--p-muted); font-size: 1rem; margin-bottom: 14px; }
.taller-copy .pub-checks { margin-bottom: 22px; }

.pymes { max-width: none; background: radial-gradient(circle at 86% 8%, rgba(67, 56, 202, .09), transparent 36%), #eef5ff; }
.pymes > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.pymes-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.pymes-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pyme-benefit { background: #fff; border: 1px solid var(--p-line); border-radius: 14px; padding: 20px; box-shadow: var(--p-shadow); }
.pyme-icon { width: 36px; height: 36px; border-radius: 10px; background: #eef2ff; color: #4338ca; display: grid; place-items: center; margin-bottom: 10px; }
.pyme-icon svg { width: 19px; height: 19px; }
.pyme-benefit h4 { font-size: .98rem; margin-bottom: 5px; }
.pyme-benefit p { color: var(--p-muted); font-size: .86rem; line-height: 1.55; }
.pymes-plan { background: linear-gradient(150deg, #0a0f2e, #1e1b4b 55%, #3730a3); color: #eef2ff; border-radius: 20px; padding: 28px; box-shadow: 0 24px 60px rgba(30, 27, 75, .25); }
.plan-tag { display: inline-block; background: rgba(34, 211, 238, .12); border: 1px solid rgba(34, 211, 238, .3); color: #67e8f9; padding: 5px 10px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.pymes-plan h3 { color: #fff; font-size: 1.35rem; margin-bottom: 12px; }
.pymes-plan ul { margin: 0 0 20px; padding-left: 18px; color: #c7d8ee; font-size: .88rem; }
.pymes-plan li { margin-bottom: 7px; }
.pymes-plan .pub-btn { background: linear-gradient(135deg, #4338ca, #2563eb); box-shadow: 0 12px 28px rgba(67, 56, 202, .3); }
.pymes-plan small { display: block; margin-top: 12px; color: #9fb3d1; font-size: .76rem; }

@media (max-width: 1040px) {
  .pub-nav-inner { gap: 20px; padding: 0 20px; }
  .pub-links { gap: 20px; }
  .pub-links a { font-size: 14px; }
  .pub-cta { padding: 9px 12px; font-size: 12.5px; }
}
@media (max-width: 1080px) {
  .pub-services { grid-template-columns: 1fr 1fr; }
  .taller-grid { grid-template-columns: 1fr; gap: 30px; }
  .taller-photo { min-height: 320px; }
  .pymes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pub-services { grid-template-columns: 1fr; }
  .taller-photo { min-height: 240px; }
  .taller-copy h2 { font-size: 2rem; }
  .pymes-benefits { grid-template-columns: 1fr; }
  .pymes-plan { padding: 22px; }
}

/* ===================== v6 · hero futurista ===================== */
.hero-aurora {
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(139, 92, 246, .28), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, .2), transparent 32%),
    radial-gradient(circle at 62% 82%, rgba(67, 56, 202, .28), transparent 38%);
  filter: blur(42px);
  animation: auroraShift 16s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
.pub-hero-visual {
  --px: 0px;
  --py: 0px;
  transform: translate3d(var(--px), var(--py), 0);
  transition: transform .25s ease-out;
}
.hero-grid {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -30px;
  height: 58%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 56, 202, .22) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(520px) rotateX(63deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 82%);
  mask-image: linear-gradient(to top, #000, transparent 82%);
  opacity: .5;
}
.hero-stars {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .8), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(125, 211, 252, .7), transparent 60%),
    radial-gradient(1px 1px at 40% 70%, rgba(192, 132, 252, .7), transparent 60%),
    radial-gradient(1px 1px at 85% 65%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(34, 211, 238, .6), transparent 60%);
  background-size: 340px 300px;
  opacity: .55;
  animation: starDrift 40s linear infinite;
}
@keyframes starDrift { to { background-position: 340px 300px; } }
.halo {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(34, 211, 238, .7) 74%, rgba(139, 92, 246, .9) 84%, transparent 94%);
  filter: blur(12px);
  -webkit-mask-image: radial-gradient(circle, transparent 56%, #000 58%, #000 63%, transparent 65%);
  mask-image: radial-gradient(circle, transparent 56%, #000 58%, #000 63%, transparent 65%);
  animation: spinHalo 16s linear infinite;
  opacity: .8;
}
@keyframes spinHalo { to { transform: rotate(360deg); } }
.orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 12px #22d3ee;
}
.logo-3d {
  filter: drop-shadow(0 35px 45px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(67, 56, 202, .4));
}
.logo-reflection {
  position: absolute;
  left: 50%;
  top: calc(50% + 120px);
  width: min(220px, 24vw);
  z-index: 1;
  transform: translateX(-50%) scaleY(-1);
  opacity: .13;
  filter: blur(6px) saturate(1.2);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 65%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 65%);
  pointer-events: none;
}
.hero-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, .18);
  background: rgba(8, 14, 38, .55);
  color: #a9c7e8;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.hero-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
}
.chip-a { top: 12%; left: 0; }
.chip-b { top: 26%; right: -2%; }
.pub-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(255, 255, 255, .02) 7px 8px);
  opacity: .35;
}
.hero-wordmark {
  transform: translate(-50%, -50%) perspective(700px) rotateY(-14deg);
  animation: wordTilt 12s ease-in-out infinite;
}
@keyframes wordTilt {
  0%, 100% { transform: translate(-50%, -50%) perspective(700px) rotateY(-14deg) rotateX(2deg); }
  50% { transform: translate(-50%, -50%) perspective(700px) rotateY(14deg) rotateX(-2deg); }
}

@media (max-width: 760px) {
  .halo { width: 340px; height: 340px; }
  .hero-grid { height: 50%; background-size: 36px 36px; }
  .hero-chip { font-size: .52rem; padding: 6px 9px; }
  .chip-a { top: 7%; left: 0; }
  .chip-b { top: 19%; right: 0; }
  .logo-reflection { width: 170px; top: calc(50% + 90px); }
}

/* centrado del halo y accesibilidad */
.halo { top: 50%; left: 50%; margin: -250px 0 0 -250px; }
@media (max-width: 760px) {
  .halo { margin: -170px 0 0 -170px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-aurora, .hero-stars, .halo, .orbit, .logo-3d, .hero-wordmark { animation: none !important; }
}

/* línea de horizonte del hero */
.pub-hero-visual::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 42px;
  height: 1px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .65) 30%, rgba(139, 92, 246, .6) 70%, transparent);
  box-shadow: 0 0 22px rgba(34, 211, 238, .35);
}
@media (max-width: 760px) {
  .pub-hero-visual::before { bottom: 34px; }
}

/* ===================== v7 · trust futurista + servicios ===================== */
.pub-trust {
  display: block;
  max-width: 1240px;
  margin: -38px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 6;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.trust-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(8, 14, 38, .92), rgba(16, 20, 52, .84));
  border: 1px solid rgba(125, 211, 252, .18);
  box-shadow: 0 24px 60px rgba(3, 7, 18, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px);
}
.trust-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 50%, rgba(34, 211, 238, .16), transparent 28%),
    radial-gradient(circle at 92% 50%, rgba(139, 92, 246, .18), transparent 30%);
}
.trust-shell::after {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, .6), rgba(139, 92, 246, .5), transparent);
}
.pub-trust .trust-label {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 18px;
  border-right: 1px solid rgba(125, 211, 252, .16);
  color: #67e8f9;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.pub-trust .trust-label .trust-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
  animation: pulseDot 2s ease-in-out infinite;
}
.pub-trust .trust-rail {
  position: relative;
  z-index: 1;
  flex: 1;
  display: block;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pub-trust .trust-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: max-content;
  animation: trustMarquee 42s linear infinite;
}
.pub-trust .trust-rail:hover .trust-track { animation-play-state: paused; }
.pub-trust .trust-clone { display: contents; color: inherit; font-size: inherit; }
.pub-trust .trust-chip {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 190, 255, .14);
  background: rgba(255, 255, 255, .045);
  color: #dbeafe;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.pub-trust .trust-chip svg { width: 15px; height: 15px; color: #67e8f9; }
.pub-trust .trust-chip b { font-weight: 600; }
@keyframes trustMarquee { to { transform: translateX(-50%); } }
@keyframes pulseDot {
  0%, 100% { opacity: .5; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* 8 servicios en 4 columnas */
.pub-services { grid-template-columns: repeat(4, 1fr); }
#servicios .pub-service { padding: 22px; }
#servicios .pub-service p { min-height: 84px; }

/* hero etéreo */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .8;
}
.hero-cursor {
  position: absolute;
  left: var(--gx, 50%);
  top: var(--gy, 50%);
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(circle, rgba(34, 211, 238, .12), rgba(139, 92, 246, .08) 40%, transparent 70%);
  filter: blur(10px);
}
.pub-hero:hover .hero-cursor { opacity: 1; }
.hero-beam {
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 18%;
  width: 160px;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(103, 232, 249, .14) 30%, rgba(139, 92, 246, .12) 70%, transparent);
  filter: blur(20px);
  animation: beamPulse 7s ease-in-out infinite;
}
@keyframes beamPulse {
  0%, 100% { opacity: .45; transform: translateX(-50%) scaleX(.9); }
  50% { opacity: .9; transform: translateX(-50%) scaleX(1.1); }
}
.hero-orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}
.orb-1 {
  width: 64px;
  height: 64px;
  left: 6%;
  top: 20%;
  background: radial-gradient(circle, rgba(34, 211, 238, .75), transparent 70%);
  animation: floatOrb 9s ease-in-out infinite;
}
.orb-2 {
  width: 86px;
  height: 86px;
  right: 2%;
  bottom: 28%;
  background: radial-gradient(circle, rgba(139, 92, 246, .65), transparent 70%);
  animation: floatOrb 13s ease-in-out infinite reverse;
}
@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.orbit-c {
  width: 380px;
  height: 380px;
  border-style: dashed;
  border-color: rgba(34, 211, 238, .2);
  transform: rotateX(66deg) rotateZ(55deg);
  animation-duration: 32s;
  animation-direction: reverse;
}
.platform {
  position: absolute;
  bottom: 82px;
  left: 50%;
  width: 320px;
  height: 90px;
  transform: translateX(-50%) rotateX(72deg);
  z-index: 1;
  pointer-events: none;
}
.platform i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, .28);
  box-shadow: 0 0 28px rgba(34, 211, 238, .12) inset;
}
.platform i:nth-child(2) { inset: 14px; border-color: rgba(139, 92, 246, .25); }
.platform i:nth-child(3) { inset: 28px; border-color: rgba(34, 211, 238, .16); }
.logo-tilt {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .15s ease-out;
  transform-style: preserve-3d;
}
.pub-hero h1 em {
  background-size: 200% 100%;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (max-width: 1080px) {
  .pub-services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .pub-services { grid-template-columns: 1fr; }
  .pub-trust { margin: -24px 0 0; padding: 0 16px; }
  .trust-shell { padding: 10px 12px; gap: 10px; }
  .pub-trust .trust-label { padding-right: 10px; font-size: .55rem; }
  .pub-trust .trust-chip { padding: 7px 10px; font-size: .72rem; }
  .hero-beam { width: 110px; }
  .orb-1 { width: 46px; height: 46px; }
  .orb-2 { width: 64px; height: 64px; }
  .orbit-c { width: 290px; height: 290px; }
  .platform { width: 240px; height: 70px; bottom: 64px; }
}
@media (max-width: 600px) {
  .pub-trust .trust-label { display: none; }
}
@media (hover: none) {
  .hero-cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pub-trust .trust-track, .hero-beam, .hero-orb, .orbit-c, .pub-hero h1 em { animation: none !important; }
}

/* corregir dirección de fila (hereda de .pub-trust div) */
.pub-trust .trust-shell { flex-direction: row; }
.pub-trust .trust-label { flex-direction: row; }

/* barra de servicios estática, sin recortes */
.pub-trust { max-width: 1280px; }
.pub-trust .trust-chips {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pub-trust .trust-chip {
  padding: 7px 10px;
  font-size: .74rem;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pub-trust .trust-chip:hover {
  background: rgba(34, 211, 238, .08);
  border-color: rgba(103, 232, 249, .4);
  box-shadow: 0 0 18px rgba(34, 211, 238, .12);
}
.trust-shell::after {
  background-size: 200% 100%;
  animation: trustSweep 8s linear infinite;
}
@keyframes trustSweep {
  from { background-position: -100% 0; }
  to { background-position: 200% 0; }
}
@media (max-width: 760px) {
  .pub-trust .trust-chips { gap: 6px; }
  .pub-trust .trust-chip { padding: 6px 9px; font-size: .7rem; }
}

/* ===================== v8 · red de servicios alrededor del logo ===================== */
.pub-hero-visual { min-height: 520px; }
.hero-net-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.net-spokes path {
  fill: none;
  stroke: url(#netGrad);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 3 7;
  opacity: .55;
  animation: netFlow 10s linear infinite;
}
.net-mesh path {
  fill: none;
  stroke: rgba(125, 211, 252, .22);
  stroke-width: .8;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2 6;
  opacity: .65;
}
@keyframes netFlow { to { stroke-dashoffset: -80; } }
.hero-network {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.net-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(8, 14, 38, .72);
  border: 1px solid rgba(125, 211, 252, .22);
  color: #dbeafe;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(3, 7, 18, .25);
  backdrop-filter: blur(8px);
}
.net-node svg { width: 14px; height: 14px; color: #67e8f9; }
.node-soporte { left: 0; top: 5%; }
.node-redes { left: 38%; top: 1%; }
.node-video { right: 0; top: 5%; }
.node-reparacion { left: 0; top: 33%; }
.node-alarmas { right: 0; top: 33%; }
.node-servidores { left: 7%; bottom: 9%; }
.node-pymes { left: 50%; bottom: 9%; transform: translateX(-50%); }
.node-porteros { right: 0; bottom: 9%; }
.logo-3d { width: min(250px, 25vw); }

@media (max-width: 760px) {
  .pub-hero-visual { min-height: 300px; }
  .hero-network, .hero-net-lines { display: none; }
  .logo-3d { width: 170px; }
}

/* líneas más presentes */
.net-spokes path {
  stroke-width: 1.5;
  opacity: .8;
  filter: drop-shadow(0 0 3px rgba(34, 211, 238, .5));
}
.net-mesh path { stroke-width: 1; opacity: .75; }
.net-node { font-size: .62rem; }

/* red en forma de árbol arriba del logo en celular */
@media (max-width: 760px) {
  .hero-network {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    inset: auto;
    z-index: 3;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 14px;
    padding-left: 20px;
    pointer-events: none;
  }
  .hero-network::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(34, 211, 238, .12), rgba(34, 211, 238, .55), rgba(139, 92, 246, .3));
  }
  .net-node {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    align-self: flex-start;
    font-size: .62rem;
    padding: 6px 9px;
  }
  .net-node::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 13px;
    height: 1px;
    background: rgba(34, 211, 238, .5);
  }
  .node-pymes { transform: none; }
}

/* mobile: red compacta, sin árbol gigante */
@media (max-width: 760px) {
  .hero-network, .hero-net-lines { display: none !important; }
  .pub-hero-visual { min-height: 280px; }
  .logo-3d { width: 160px; }
}
