/* ============================================================
   Sentra Security — Estilos principales
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --bg-base: #08090d;
  --bg-soft: #0c0e14;
  --bg-elevated: #10131c;

  --card-bg: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover-border: rgba(255, 255, 255, 0.16);

  --text: #f3f5fa;
  --muted: #98a2b3;
  --muted-2: #6b7486;

  --blue: #4d8dff;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --green: #34d399;
  --red: #f87171;

  --gradient: linear-gradient(135deg, var(--blue) 0%, var(--violet) 55%, var(--cyan) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(77, 141, 255, 0.18), rgba(139, 92, 246, 0.18));

  --glow-blue: 0 0 60px rgba(77, 141, 255, 0.25);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --nav-h: 72px;
  --tr: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
}

.container-narrow {
  width: min(780px, 100% - 48px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 120px);
}

::selection {
  background: rgba(77, 141, 255, 0.35);
  color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #232837;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2f3547;
}

/* ---------- Elementos compartidos ---------- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: clamp(44px, 6vw, 68px);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Tarjetas ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}

.card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), var(--glow-blue);
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr), border-color var(--tr);
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1rem;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(77, 141, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--card-hover-border);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ---------- State chips ---------- */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
}

.status-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.status-online {
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.3);
}

.status-active {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.3);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gradient);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1001;
}

/* ---------- Reveal al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--tr), border-color var(--tr), backdrop-filter var(--tr);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8, 9, 13, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--card-border);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 0 22px rgba(77, 141, 255, 0.2);
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-name em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 10px;
  transition: color var(--tr), background var(--tr);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 10px;
}

.nav-cta-inline {
  display: none;
}

/* ---------- Hamburguesa ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--tr), opacity var(--tr);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 90px));
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 420px at 12% 8%, rgba(77, 141, 255, 0.14), transparent 65%),
    radial-gradient(560px 420px at 88% 30%, rgba(139, 92, 246, 0.13), transparent 65%),
    radial-gradient(480px 360px at 55% 100%, rgba(34, 211, 238, 0.07), transparent 60%);
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(700px 460px at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(700px 460px at 50% 40%, #000, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(2.2rem, 5.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 520px;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

/* ---------- Tarjeta dashboard ficticia ---------- */
.hero-visual {
  position: relative;
}

.dash-card {
  position: relative;
  background: linear-gradient(160deg, rgba(23, 27, 39, 0.92), rgba(12, 14, 20, 0.95));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dash-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(77, 141, 255, 0.08), transparent 40%, rgba(139, 92, 246, 0.08));
  pointer-events: none;
}

.dash-card-glow {
  position: absolute;
  top: -40%;
  right: -25%;
  width: 70%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(77, 141, 255, 0.22), transparent);
  pointer-events: none;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  display: inline-block;
}

.dash-head-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.dash-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  transition: border-color var(--tr), background var(--tr);
}

.dash-stat:hover {
  border-color: var(--card-hover-border);
  background: rgba(255, 255, 255, 0.06);
}

.dash-stat-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dash-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 84px;
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}

.dash-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 5px;
  background: var(--gradient);
  opacity: 0.85;
  transform-origin: bottom;
  animation: barGrow 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  transition: opacity var(--tr);
}

.dash-chart span:hover {
  opacity: 1;
}

.dash-chart span:nth-child(1) { animation-delay: 0.08s; }
.dash-chart span:nth-child(2) { animation-delay: 0.16s; }
.dash-chart span:nth-child(3) { animation-delay: 0.24s; }
.dash-chart span:nth-child(4) { animation-delay: 0.32s; }
.dash-chart span:nth-child(5) { animation-delay: 0.4s; }
.dash-chart span:nth-child(6) { animation-delay: 0.48s; }
.dash-chart span:nth-child(7) { animation-delay: 0.56s; }
.dash-chart span:nth-child(8) { animation-delay: 0.64s; }

@keyframes barGrow {
  from { transform: scaleY(0.1); }
  to { transform: scaleY(1); }
}

.dash-systems {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.dash-system {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--tr), background var(--tr);
}

.dash-system:hover {
  border-color: var(--card-hover-border);
  background: rgba(255, 255, 255, 0.05);
}

.dash-system-name {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ============================================================
   CARACTERÍSTICAS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 30px 26px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: var(--gradient-soft);
  border: 1px solid var(--card-border);
  margin-bottom: 22px;
  filter: grayscale(0.4) contrast(1.05);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Retrasos de aparición para las tarjetas */
.features-grid .feature-card:nth-child(2),
.features-grid .feature-card:nth-child(5) { transition-delay: 0.08s; }
.features-grid .feature-card:nth-child(3),
.features-grid .feature-card:nth-child(6) { transition-delay: 0.16s; }

/* ============================================================
   POR QUÉ
   ============================================================ */
.why-section {
  background:
    radial-gradient(520px 360px at 0% 50%, rgba(77, 141, 255, 0.08), transparent 65%),
    radial-gradient(520px 360px at 100% 50%, rgba(139, 92, 246, 0.08), transparent 65%),
    var(--bg-soft);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.why-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.02rem;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.why-point {
  display: flex;
  gap: 20px;
  padding: 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform var(--tr), border-color var(--tr), background var(--tr);
}

.why-point:hover {
  transform: translateX(6px);
  border-color: var(--card-hover-border);
  background: rgba(255, 255, 255, 0.06);
}

.why-point-num {
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-top: 4px;
  flex-shrink: 0;
}

.why-point h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.why-point p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ============================================================
   SEGURIDAD
   ============================================================ */
.security-section {
  overflow: hidden;
}

.security-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 480px at 50% 0%, rgba(139, 92, 246, 0.1), transparent 65%);
  pointer-events: none;
}

.security-panel {
  position: relative;
  max-width: 940px;
  margin-inline: auto;
  background: linear-gradient(165deg, rgba(19, 23, 34, 0.9), rgba(10, 12, 18, 0.95));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.security-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--card-border);
}

.security-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.security-system {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: transform var(--tr), border-color var(--tr), background var(--tr);
}

.security-system:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  background: rgba(255, 255, 255, 0.05);
}

.security-system h4 {
  font-size: 0.98rem;
  font-weight: 700;
}

.security-system p {
  font-size: 0.82rem;
  color: var(--muted-2);
  margin-top: 3px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--tr), background var(--tr);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.faq-item.open {
  border-color: rgba(77, 141, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--cyan);
  border-radius: 2px;
  transition: transform var(--tr);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.faq-answer p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================
   SOPORTE
   ============================================================ */
.support-card {
  text-align: center;
  padding: clamp(40px, 6vw, 64px);
}

.support-icon {
  width: 58px;
  height: 58px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 300;
  color: #fff;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 14px 34px rgba(77, 141, 255, 0.3);
  margin-bottom: 24px;
}

.support-card h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.support-card p {
  max-width: 520px;
  margin: 14px auto 30px;
  color: var(--muted);
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-section {
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 420px at 50% 100%, rgba(77, 141, 255, 0.16), transparent 65%),
    radial-gradient(640px 420px at 85% 20%, rgba(139, 92, 246, 0.1), transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  text-align: center;
  background: linear-gradient(165deg, rgba(24, 29, 44, 0.8), rgba(12, 14, 20, 0.92));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 7vw, 78px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(77, 141, 255, 0.14), transparent);
  pointer-events: none;
}

.cta-inner h2 {
  position: relative;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.cta-inner p {
  position: relative;
  margin: 18px auto 34px;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--card-border);
  background: var(--bg-soft);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text);
  font-size: 0.94rem;
  transition: color var(--tr);
  opacity: 0.85;
}

.footer-col a:hover {
  color: var(--cyan);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-block: 22px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: rgba(16, 19, 28, 0.95);
  border: 1px solid var(--card-hover-border);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 1100;
  transition: opacity var(--tr), transform var(--tr);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .why-copy {
    text-align: center;
    max-width: 560px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-cta-inline {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: rgba(8, 9, 13, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--tr), opacity var(--tr), visibility var(--tr);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    display: block;
    padding: 14px 12px;
    border-radius: 10px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }

  .dash-stat {
    padding: 14px 10px;
  }

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

@media (max-width: 560px) {
  .dash-stats {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dash-card {
    padding: 22px;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .nav-cta-inline {
    display: none;
  }
}

/* ---------- Preferencias de movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}