:root {
  --bg: #f6f7fb;
  --dark: #111827;
  --text: #374151;
  --muted: #6b7280;
  --primary: #2457ff;
  --primary-dark: #173bb3;
  --secondary: #00b3a4;
  --card: #ffffff;
  --border: #e5e7eb;
  --accent: #eef3ff;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 251, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  font-size: 1.1rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(36, 87, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid rgba(36, 87, 255, 0.18);
  transition: 0.2s ease;
}

.nav-phone:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(36, 87, 255, 0.16);
}

.nav-phone-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.nav-phone-text {
  line-height: 1;
}

.nav-phone-text strong {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(36, 87, 255, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: var(--dark);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(36, 87, 255, 0.16), transparent 68%);
  right: -170px;
  top: -180px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  background: var(--accent);
  border: 1px solid rgba(36, 87, 255, 0.12);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
  margin-bottom: 22px;
}

h1, h2, h3 {
  color: var(--dark);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
}

.hero-point {
  font-size: 0.92rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.visual-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: auto -70px -100px auto;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(0, 179, 164, 0.2), transparent 70%);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-label {
  color: var(--muted);
  font-weight: 650;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
}

.chart {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 24px 0 4px;
  position: relative;
  z-index: 1;
}

.bar {
  flex: 1;
  min-width: 26px;
  height: 0;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  opacity: 0.9;
  transition: height 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .visual-card .bar {
    transition: none;
  }
}

section {
  padding: 80px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Rejilla flexible y centrada: queda bien con 2, 3, 4 o 6 tarjetas */
.grid-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.grid-flex > .card {
  flex: 1 1 320px;
  max-width: 360px;
}

/* Estilo diferenciado para las tarjetas de "¿Por qué?" */
.grid-flex > .card {
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
  border-color: rgba(36, 87, 255, 0.16);
}

.grid-flex > .card::before {
  display: none;
}

.grid-flex > .card .icon {
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(36, 87, 255, 0.2);
  box-shadow: 0 10px 24px rgba(36, 87, 255, 0.14);
}

.grid-flex > .card h3 {
  justify-content: center;
}

.grid-flex > .card:hover {
  border-color: rgba(36, 87, 255, 0.4);
  box-shadow: 0 24px 48px rgba(36, 87, 255, 0.16);
}

.grid-flex > .card:hover .icon {
  transform: scale(1.08);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 30px 28px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.04);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(36, 87, 255, 0.35);
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.1);
}

.card:hover::before {
  transform: scaleX(1);
}

.icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  margin-bottom: 20px;
  box-shadow: 0 12px 24px rgba(36, 87, 255, 0.22);
  transition: transform 0.25s ease;
}

.card:hover .icon {
  transform: scale(1.06) rotate(-3deg);
}

.card h3 {
  font-size: 1.22rem;
  line-height: 1.3;
  margin-bottom: 14px;
  min-height: 2.6em;
  display: flex;
  align-items: flex-end;
}

.card p, .card li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 12px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 87, 255, 0.35);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 24px rgba(36, 87, 255, 0.22);
}

.step h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  line-height: 1.7;
}

.logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.logo-pill {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  transition: 0.25s ease;
}

.logo-pill img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: 0.25s ease;
}

.logo-pill:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  transform: translateY(-3px);
}

.logo-pill:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.quote {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 34px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 28px;
  align-items: center;
  border: 1px solid rgba(122, 162, 255, 0.18);
  box-shadow: var(--shadow), 0 0 0 1px rgba(36, 87, 255, 0.05) inset;
  background:
    radial-gradient(460px 460px at 88% 12%, rgba(36, 87, 255, 0.32), transparent 60%),
    radial-gradient(420px 420px at 72% 130%, rgba(0, 179, 164, 0.24), transparent 60%),
    linear-gradient(135deg, #0b1220, #111827 45%, #1f2a44);
}

/* Rejilla tipo datacenter */
.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 162, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 162, 255, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(circle at 82% 20%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 82% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}

.quote > div {
  position: relative;
  z-index: 1;
}

.quote h2, .quote p {
  color: #fff;
}

.quote p {
  opacity: 0.82;
}

.quote-stats {
  display: grid;
  gap: 14px;
}

.quote-stat {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(122, 162, 255, 0.22);
  border-radius: 22px;
  padding: 22px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.quote-stat::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.quote-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #7aa2ff, #4be3d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quote-stat span {
  opacity: 0.82;
  font-size: 0.95rem;
}

/* Panel tecnológico (columna derecha del bloque de liderazgo) */
.tech-panel {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(122, 162, 255, 0.22);
  border-radius: 24px;
  padding: 24px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.tech-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.tech-server-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  flex: none;
  display: grid;
  place-items: center;
}

.tech-server-wrap::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 87, 255, 0.55), transparent 70%);
  filter: blur(6px);
  animation: techPulse 2.6s ease-in-out infinite;
}

.tech-server-wrap img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 16px rgba(36, 87, 255, 0.45));
}

.tech-head-text strong {
  display: block;
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
}

.tech-head-text span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.tech-rows {
  display: grid;
  gap: 10px;
}

.tech-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tech-row .dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #4be3d0;
  box-shadow: 0 0 0 0 rgba(75, 227, 208, 0.6);
  animation: dotPulse 1.8s ease-out infinite;
}

.tech-row .ok {
  margin-left: auto;
  color: #4be3d0;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

@keyframes techPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(75, 227, 208, 0.55); }
  100% { box-shadow: 0 0 0 9px rgba(75, 227, 208, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .tech-server-wrap::before,
  .tech-row .dot {
    animation: none;
  }
}

.contact {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
}

form {
  display: grid;
  gap: 14px;
}

.form-status {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.form-status.ok {
  color: #0f7a55;
  padding: 18px 20px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  font-weight: 600;
  text-align: center;
}

.form-status.err {
  color: #b42318;
  padding: 14px 16px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 16px;
}

/* Tras envío correcto: solo el mensaje de confirmación */
form.form-sent > *:not(.form-status) {
  display: none;
}

form.form-sent .form-status.ok {
  display: block;
  padding: 28px 24px;
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0;
}

input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font: inherit;
  background: #fbfbfd;
  color: var(--dark);
}

input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(36,87,255,0.16);
  border-color: var(--primary);
}

footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-meta {
  display: grid;
  gap: 4px;
}

.footer-legal {
  font-size: 0.88rem;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.form-legal {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
  padding: 2px 0;
}

.form-legal input[type="checkbox"] {
  margin-top: 2px;
}

.form-legal span {
  flex: 1;
  min-width: 0;
}

.form-legal a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-legal a:hover {
  color: var(--primary-dark);
}

/* ===== Páginas legales ===== */

.legal-page {
  padding: 56px 0 72px;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-head {
  margin-bottom: 36px;
  position: static;
}

.legal-head h1 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal-body {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
}

.legal-body p {
  margin: 0 0 1.1rem;
}

.legal-body .legal-heading {
  margin: 2.2rem 0 1rem;
  font-size: 1.25rem;
  color: var(--dark);
  line-height: 1.35;
}

.legal-body h3.legal-heading {
  font-size: 1.05rem;
  margin-top: 1.6rem;
}

.legal-body .legal-list {
  margin: 0 0 1.2rem 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.legal-body .legal-list li {
  line-height: 1.75;
}

.legal-body a {
  color: var(--primary);
}

.legal-body strong {
  color: var(--dark);
}

/* ===== Banner de cookies ===== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 16px;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner-inner {
  width: min(100% - 8px, 920px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.cookie-banner-inner p {
  margin: 0;
  flex: 1 1 280px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.cookie-banner-inner a {
  color: var(--primary);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Componentes de páginas de estudio ===== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 48px;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(36, 87, 255, 0.14), transparent 68%);
  right: -160px;
  top: -200px;
  pointer-events: none;
}

.page-hero .inner {
  position: relative;
  max-width: 820px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: stretch;
}

/* Contenedor de las tarjetas de dashboard (sin fondo: las tarjetas van solas) */
.page-hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  container-type: size;
}

/* Tarjeta de barras animadas tipo dashboard */
.page-hero-visual .pv-vbars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
  height: 116px;
  padding-bottom: 8px;
  margin: 2px 0 14px;
  border-bottom: 1px solid rgba(36, 87, 255, 0.12);
}

.page-hero-visual .pv-vbar {
  flex: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.page-hero-visual .pv-vbar > i {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #6d97ff, #2457ff);
  transition: height 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-hero-visual .pv-vbar:nth-child(even) > i {
  background: linear-gradient(180deg, #4ad6c7, #00b3a4);
}

/* Tarjetas tipo dashboard (barras y rosco) */
.page-hero-visual .pv-bars,
.page-hero-visual .pv-donut {
  position: relative;
  z-index: 1;
  width: min(82%, 280px);
  padding: 18px 20px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(36, 87, 255, 0.1);
  box-shadow: 0 22px 48px rgba(36, 87, 255, 0.14);
}

.page-hero-visual .pv-bars { display: block; }
.page-hero-visual .pv-donut { display: none; }

.page-hero-visual .pv-donut-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.page-hero-visual .pv-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18c08a;
  box-shadow: 0 0 0 0 rgba(24, 192, 138, 0.5);
  animation: pvBlink 1.6s ease-in-out infinite;
}

@keyframes pvBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24, 192, 138, 0.5); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(24, 192, 138, 0); opacity: 0.6; }
}

.page-hero-visual .pv-gauge {
  position: relative;
  width: 150px;
  margin: 0 auto 6px;
}

.page-hero-visual .pv-gauge svg {
  width: 100%;
  height: auto;
  display: block;
}

.page-hero-visual .pv-ring {
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-hero-visual .pv-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.page-hero-visual .pv-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.page-hero-visual .pv-unit {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.page-hero-visual .pv-cap {
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-hero-visual .pv-legend {
  display: grid;
  gap: 9px;
  margin-top: 6px;
}

.page-hero-visual .pv-stat-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text);
  margin-bottom: 4px;
}

.page-hero-visual .pv-stat-top b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.page-hero-visual .pv-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex: none;
}

.page-hero-visual .pv-dot.dot-a { background: #2457ff; }
.page-hero-visual .pv-dot.dot-b { background: #5b8cff; }
.page-hero-visual .pv-dot.dot-c { background: #00b3a4; }

.page-hero-visual .pv-bar {
  display: block;
  height: 7px;
  border-radius: 6px;
  background: rgba(36, 87, 255, 0.1);
  overflow: hidden;
}

.page-hero-visual .pv-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #2457ff, #00b3a4);
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Solo mostramos el rosco cuando el panel es alto (mucho texto al lado) */
@container (min-height: 540px) {
  .page-hero-visual .pv-donut { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-visual .pv-live { animation: none; }
  .page-hero-visual .pv-ring,
  .page-hero-visual .pv-bar > i,
  .page-hero-visual .pv-vbar > i { transition: none; }
}

.page-hero p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.highlight {
  margin: 26px 0 30px;
  background: var(--accent);
  border: 1px solid rgba(36, 87, 255, 0.16);
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
}

.roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}

/* Sección "¿Quién debería...?" a dos columnas: roles a la izquierda, texto a la derecha */
.who-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}

.who-grid .roles {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0;
}

.who-grid .section-head {
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  margin-bottom: 0;
}

.role {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 18px;
  font-weight: 800;
  color: var(--dark);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.role::after {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(36, 87, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.role:hover {
  border-color: rgba(36, 87, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(36, 87, 255, 0.12);
}

.role .role-ic {
  width: 66px;
  height: 66px;
  flex: none;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(36, 87, 255, 0.16);
  box-shadow: 0 10px 22px rgba(36, 87, 255, 0.12);
  object-fit: contain;
  padding: 11px;
  transition: transform 0.25s ease;
}

.role:hover .role-ic {
  transform: scale(1.08) rotate(-3deg);
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 900;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}

.card .feature-list {
  margin-top: 4px;
}

.card .feature-list li {
  font-size: 0.95rem;
}

.subhero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .split,
  .quote,
  .contact {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-points,
  .logos {
    grid-template-columns: 1fr 1fr;
  }

  .roles {
    grid-template-columns: 1fr 1fr;
  }

  .who-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .who-grid .roles,
  .who-grid .section-head {
    grid-column: 1;
    grid-row: auto;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-visual {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 58px;
  }

  .hero-points,
  .logos {
    grid-template-columns: 1fr;
  }

  .contact, .quote, .visual-card {
    padding: 24px;
    border-radius: 26px;
  }

  .nav-cta {
    gap: 10px;
  }

  .nav-phone {
    padding: 6px 10px 6px 6px;
  }

  .nav-phone-text strong {
    font-size: 0.92rem;
  }
}
