/* ============================================================
       VARIABLES Y RESET
    ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0/0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0/0.1), 0 2px 4px -2px rgb(0 0 0/0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0/0.1), 0 4px 6px -4px rgb(0 0 0/0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0/0.1), 0 8px 10px -6px rgb(0 0 0/0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* ============================================================
       UTILIDADES
    ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* ============================================================
       SCROLL REVEAL
    ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.12s;
}
.reveal-delay-2 {
  transition-delay: 0.24s;
}
.reveal-delay-3 {
  transition-delay: 0.36s;
}
.reveal-delay-4 {
  transition-delay: 0.48s;
}

/* ============================================================
       BOTONES
    ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 14px rgb(37 99 235/0.35);
}
.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgb(37 99 235/0.45);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-outline:hover {
  background: var(--blue-600);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
       NAVEGACIÓN
    ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease;
}
nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gray-900);
  user-select: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-600), var(--green-500));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.logo .accent {
  color: var(--blue-600);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: var(--blue-600);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a.active-link {
  color: var(--blue-600);
}
.nav-links a.active-link::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  padding: 12px 24px 24px;
  gap: 4px;
  z-index: 999;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: var(--blue-600);
}

/* ============================================================
       HERO
    ============================================================ */
#inicio {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(155deg, #eef4ff 0%, #ffffff 45%, #ecfdf5 100%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Decorative orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.orb-blue {
  background: var(--blue-500);
  width: 420px;
  height: 420px;
  top: 5%;
  left: -120px;
}
.orb-green {
  background: var(--green-500);
  width: 320px;
  height: 320px;
  bottom: 5%;
  right: -80px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 72px;
}

/* Hero text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green-500);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-title .hl {
  background: linear-gradient(135deg, var(--blue-600), var(--green-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}
.stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.browser-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgb(0 0 0/0.2);
  animation: levitate 6s ease-in-out infinite;
}
@keyframes levitate {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.browser-bar {
  background: #1e293b;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.b-dots {
  display: flex;
  gap: 6px;
}
.b-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.bd-r {
  background: #ef4444;
}
.bd-y {
  background: #f59e0b;
}
.bd-g {
  background: #10b981;
}
.b-url {
  flex: 1;
  background: #334155;
  border-radius: 5px;
  padding: 5px 11px;
  font-size: 0.72rem;
  color: var(--gray-400);
  font-family: monospace;
}

/* Dashboard inside browser */
.db {
  display: flex;
  height: 380px;
  background: #f8fafc;
}
.db-sidebar {
  width: 170px;
  background: #0f172a;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.db-logo {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 8px 14px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 6px;
}
.db-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--gray-400);
}
.db-item.act {
  background: var(--blue-600);
  color: #fff;
}
.db-item svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.db-main {
  flex: 1;
  padding: 14px;
  overflow: hidden;
}
.db-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 10px;
}
.db-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.db-sc {
  background: #fff;
  border-radius: 7px;
  padding: 9px 10px;
  border: 1px solid var(--gray-200);
}
.db-sc .lbl {
  font-size: 0.56rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.db-sc .val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
}
.db-sc .chg {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--green-500);
}
.db-sc .chg.red {
  color: #dc2626;
}

.db-tbl {
  background: #fff;
  border-radius: 7px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.db-th {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 7px 10px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.57rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.db-tr {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 7px 10px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.63rem;
  color: var(--gray-700);
  align-items: center;
}
.db-tr:last-child {
  border-bottom: none;
}

/* Status badges */
.bOK {
  background: #dcfce7;
  color: #16a34a;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 0.54rem;
  font-weight: 700;
}
.bLow {
  background: #fef9c3;
  color: #ca8a04;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 0.54rem;
  font-weight: 700;
}
.bCri {
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 0.54rem;
  font-weight: 700;
}

/* Floating cards */
.float-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-xl);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}
.float-card-1 {
  bottom: -18px;
  left: -28px;
  animation: fc 5s ease-in-out infinite;
  animation-delay: 0.5s;
}
.float-card-2 {
  top: 30px;
  right: -18px;
  animation: fc 5s ease-in-out infinite;
  animation-delay: 1.2s;
}
@keyframes fc {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* ============================================================
       SERVICIOS
    ============================================================ */
#servicios {
  padding: 100px 0;
  background: var(--white);
}

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

.srv-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  cursor: default;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.srv-card:hover {
  border-color: var(--blue-200);
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgb(37 99 235/0.1);
}

.srv-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}
.srv-card:hover .srv-icon {
  background: var(--blue-600);
  transform: scale(1.1) rotate(6deg);
}
.srv-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--blue-600);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.3s;
}
.srv-card:hover .srv-icon svg {
  stroke: #fff;
}

.srv-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.srv-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 0;
}

/* Service tag badge */
.srv-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.srv-tag-blue   { background: var(--blue-50);  color: var(--blue-600); }
.srv-tag-green  { background: #dcfce7; color: #059669; }
.srv-tag-purple { background: #f3e8ff; color: #7c3aed; }

/* Service feature list */
.srv-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 18px 0 22px;
  text-align: left;
}
.srv-feats li {
  font-size: 0.84rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.srv-feats li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Service CTA link */
.srv-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: gap 0.2s ease, color 0.2s ease;
}
.srv-cta:hover {
  gap: 10px;
  color: var(--blue-700);
}

/* Note below pricing plans */
.otros-servicios-note {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  max-width: 620px;
  margin: 0 auto;
}
.osn-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.osn-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}
.osn-green  { background: #dcfce7; color: #059669; }
.osn-purple { background: #f3e8ff; color: #7c3aed; }
.osn-sep {
  color: var(--gray-300);
  font-weight: 300;
  font-size: 1.2rem;
}
.otros-servicios-note p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
       PRODUCTO
    ============================================================ */
#producto {
  padding: 100px 0;
  background: var(--gray-50);
}

.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.prod-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  cursor: default;
  transition: all 0.3s ease;
}
.feat:hover {
  border-color: var(--blue-500);
  box-shadow: 0 4px 16px rgb(37 99 235/0.08);
  transform: translateX(5px);
}

.feat-ic {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--blue-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.feat:hover .feat-ic {
  background: var(--blue-600);
}
.feat-ic svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue-600);
  stroke-width: 2;
  fill: none;
  transition: stroke 0.3s;
}
.feat:hover .feat-ic svg {
  stroke: #fff;
}

.feat-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1px;
}
.feat-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Product browser */
.prod-browser {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 70px rgb(0 0 0/0.18);
}

.db2 {
  background: #f1f5f9;
  padding: 16px;
}
.db2-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.db2-card {
  background: #fff;
  border-radius: 9px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  position: relative;
}
.db2-lbl {
  font-size: 0.53rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.db2-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
}
.db2-ic {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ic-b {
  background: #dbeafe;
}
.ic-g {
  background: #dcfce7;
}
.ic-y {
  background: #fef9c3;
}
.ic-r {
  background: #fee2e2;
}
.db2-ic svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
  fill: none;
}

.db2-ttl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 7px;
}
.db2-tbl {
  background: #fff;
  border-radius: 9px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.db2-th {
  background: var(--gray-800);
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
  padding: 7px 12px;
  gap: 6px;
}
.db2-th span {
  font-size: 0.53rem;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.db2-tr {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
  padding: 8px 12px;
  gap: 6px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.62rem;
  color: var(--gray-700);
  align-items: center;
}
.db2-tr:last-child {
  border: none;
}
.db2-tr strong {
  color: var(--gray-800);
}

/* ============================================================
       PLANES / PRECIOS
    ============================================================ */
#planes {
  padding: 100px 0;
  background: var(--white);
}

.pricing-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

.p-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.p-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgb(0 0 0/0.1);
}

.p-card.featured {
  border-color: var(--blue-600);
  background: linear-gradient(160deg, #eff6ff 0%, #fff 100%);
}
.p-card.featured:hover {
  box-shadow: 0 30px 60px rgb(37 99 235/0.14);
}

.p-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--blue-600);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

.p-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.p-price {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}
.p-price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-500);
}
.p-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin: 12px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.p-feats {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 30px;
}
.p-feat {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--gray-700);
}
.p-feat svg {
  width: 17px;
  height: 17px;
  stroke: var(--green-500);
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ============================================================
       TESTIMONIOS
    ============================================================ */
#testimonios {
  padding: 100px 0;
  background: var(--gray-50);
}

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

.t-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.4s ease;
  cursor: default;
}
.t-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.t-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}
.t-stars span {
  color: #f59e0b;
  font-size: 1rem;
}

.t-text {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 22px;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}
.av-blue {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-700));
}
.av-green {
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
}
.av-purple {
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
}

.t-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gray-900);
}
.t-role {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ============================================================
       CTA FINAL
    ============================================================ */
#cta {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #0d9488 100%);
  overflow: hidden;
}

#cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}

.cta-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.btn-cw {
  background: #fff;
  color: var(--blue-700);
  font-weight: 700;
  padding: 15px 34px;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgb(0 0 0/0.2);
  transition: all 0.3s ease;
}
.btn-cw:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgb(0 0 0/0.28);
}

.btn-co {
  background: transparent;
  color: #fff;
  font-weight: 600;
  padding: 15px 34px;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.btn-co:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* ============================================================
       FOOTER
    ============================================================ */
footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 72px 0 32px;
}

.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

.ft-brand .logo {
  color: #fff;
  margin-bottom: 14px;
}
.ft-brand .logo-icon {
  background: linear-gradient(135deg, var(--blue-600), var(--green-500));
}

.ft-desc {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.75;
  margin-bottom: 22px;
}

.ft-social {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 36px;
  height: 36px;
  background: var(--gray-800);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.social-btn:hover {
  background: var(--blue-600);
  transform: translateY(-3px);
}
.social-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--gray-400);
  transition: fill 0.3s;
}
.social-btn:hover svg {
  fill: #fff;
}

.ft-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.ft-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ft-links a {
  font-size: 0.88rem;
  color: var(--gray-400);
  transition: color 0.2s;
}
.ft-links a:hover {
  color: #fff;
}

.ft-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--gray-400);
  margin-bottom: 10px;
}
.ft-contact-item svg {
  width: 17px;
  height: 17px;
  stroke: var(--blue-400);
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
  margin-top: 1px;
}

.ft-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ft-copy {
  font-size: 0.82rem;
  color: var(--gray-500);
}
.ft-bottom-links {
  display: flex;
  gap: 22px;
}
.ft-bottom-links a {
  font-size: 0.82rem;
  color: var(--gray-500);
  transition: color 0.2s;
}
.ft-bottom-links a:hover {
  color: #fff;
}

/* ============================================================
       RESPONSIVE
    ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    max-width: 580px;
    margin: 0 auto;
  }
  .srv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prod-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .srv-grid {
    grid-template-columns: 1fr;
  }
  .pricing-wrap {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
  .ft-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ft-bottom {
    flex-direction: column;
    text-align: center;
  }
  .db-sidebar {
    display: none;
  }
  .float-card {
    display: none;
  }
  /* Ocultar mockups de browser en móvil */
  .hero-visual {
    display: none;
  }
  #producto .prod-grid > div:last-child {
    display: none;
  }
  /* Reducir gap del hero al quedar solo el texto */
  .hero-inner {
    gap: 0;
    padding-bottom: 56px;
  }
}

/* ============================================================
   DARK MODE TOGGLE BUTTON
============================================================ */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
  outline: none;
}
.theme-toggle:hover {
  background: var(--gray-100);
  transform: scale(1.1) rotate(15deg);
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ============================================================
   DARK MODE – [data-theme="dark"] aplicado en <html>
============================================================ */
[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="dark"] body {
  background: #0d1117;
  color: #c9d1d9;
}

/* Variable overrides para elementos con estilos inline usando var() */
[data-theme="dark"] #producto {
  --gray-900: #e6edf3;
  --gray-500: #8b949e;
}
[data-theme="dark"] #planes {
  --gray-500: #8b949e;
}
[data-theme="dark"] #servicios {
  --gray-600: #8b949e;
}

/* ── NAVEGACIÓN ── */
[data-theme="dark"] nav {
  background: rgba(13, 17, 23, 0.92);
  border-bottom-color: #21262d;
}
[data-theme="dark"] .nav-inner .logo img {
  filter: brightness(0) invert(1);
}
[data-theme="dark"] .nav-links a {
  color: #8b949e;
}
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active-link {
  color: #58a6ff;
}
[data-theme="dark"] .nav-links a::after {
  background: #58a6ff;
}
[data-theme="dark"] .hamburger span {
  background: #c9d1d9;
}
[data-theme="dark"] .mobile-menu {
  background: #161b22;
  border-bottom-color: #21262d;
}
[data-theme="dark"] .mobile-menu a {
  color: #8b949e;
  border-bottom-color: #21262d;
}
[data-theme="dark"] .mobile-menu a:hover {
  color: #58a6ff;
}
[data-theme="dark"] .theme-toggle {
  background: #21262d;
  border-color: #30363d;
  color: #c9d1d9;
}
[data-theme="dark"] .theme-toggle:hover {
  background: #30363d;
}
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── HERO ── */
[data-theme="dark"] #inicio {
  background: linear-gradient(155deg, #060d1f 0%, #0d1117 45%, #030d0a 100%);
}
[data-theme="dark"] .orb { opacity: 0.22; }
[data-theme="dark"] .hero-badge {
  background: #161b22;
  border-color: #21262d;
  color: #58a6ff;
}
[data-theme="dark"] .hero-title  { color: #e6edf3; }
[data-theme="dark"] .hero-sub    { color: #8b949e; }
[data-theme="dark"] .hero-stats  { border-top-color: #21262d; }
[data-theme="dark"] .stat-num    { color: #e6edf3; }
[data-theme="dark"] .stat-label  { color: #8b949e; }
[data-theme="dark"] .float-card {
  background: #161b22;
  color: #c9d1d9;
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.5);
}

/* ── UTILIDADES ── */
[data-theme="dark"] .section-tag {
  background: rgba(56, 139, 253, 0.12);
  color: #58a6ff;
}
[data-theme="dark"] .section-title    { color: #e6edf3; }
[data-theme="dark"] .section-subtitle { color: #8b949e; }

/* ── BOTONES ── */
[data-theme="dark"] .btn-outline {
  color: #58a6ff;
  border-color: #388bfd;
}
[data-theme="dark"] .btn-outline:hover {
  background: #388bfd;
  color: #0d1117;
}

/* ── SERVICIOS ── */
[data-theme="dark"] #servicios { background: #0d1117; }
[data-theme="dark"] .srv-card {
  background: #161b22;
  border-color: #30363d;
}
[data-theme="dark"] .srv-card:hover { border-color: #388bfd; }
[data-theme="dark"] .srv-icon  { background: rgba(56, 139, 253, 0.1); }
[data-theme="dark"] .srv-title { color: #e6edf3; }
[data-theme="dark"] .srv-desc  { color: #8b949e; }

/* ── PRODUCTO ── */
[data-theme="dark"] #producto { background: #0a0e14; }
[data-theme="dark"] .feat {
  background: #161b22;
  border-color: #30363d;
}
[data-theme="dark"] .feat:hover { border-color: #388bfd; }
[data-theme="dark"] .feat-ic   { background: rgba(56, 139, 253, 0.1); }
[data-theme="dark"] .feat-name { color: #c9d1d9; }
[data-theme="dark"] .feat-desc { color: #8b949e; }

/* Dashboard hero (browser mock) */
[data-theme="dark"] .db        { background: #0d1117; }
[data-theme="dark"] .db-main   { background: #0d1117; }
[data-theme="dark"] .db-header { color: #c9d1d9; }
[data-theme="dark"] .db-sc {
  background: #161b22;
  border-color: #30363d;
}
[data-theme="dark"] .db-sc .val { color: #e6edf3; }
[data-theme="dark"] .db-tbl {
  background: #161b22;
  border-color: #30363d;
}
[data-theme="dark"] .db-th {
  background: #0d1117;
  border-bottom-color: #30363d;
}
[data-theme="dark"] .db-tr {
  color: #8b949e;
  border-bottom-color: #21262d;
}

/* Dashboard producto */
[data-theme="dark"] .db2 { background: #161b22; }
[data-theme="dark"] .db2-card {
  background: #0d1117;
  border-color: #30363d;
}
[data-theme="dark"] .db2-val  { color: #e6edf3; }
[data-theme="dark"] .db2-lbl  { color: #8b949e; }
[data-theme="dark"] .db2-ttl  { color: #8b949e; }
[data-theme="dark"] .db2-tbl {
  background: #0d1117;
  border-color: #30363d;
}
[data-theme="dark"] .db2-th { background: #161b22; }
[data-theme="dark"] .db2-tr {
  color: #8b949e;
  border-bottom-color: #21262d;
}
[data-theme="dark"] .db2-tr strong { color: #c9d1d9; }

/* ── PLANES ── */
[data-theme="dark"] #planes { background: #0d1117; }
[data-theme="dark"] .p-card {
  background: #161b22;
  border-color: #30363d;
}
[data-theme="dark"] .p-card.featured {
  background: linear-gradient(160deg, #0d1f3c 0%, #161b22 100%);
  border-color: #388bfd;
}
[data-theme="dark"] .p-name         { color: #8b949e; }
[data-theme="dark"] .p-price        { color: #e6edf3; }
[data-theme="dark"] .p-price small  { color: #8b949e; }
[data-theme="dark"] .p-desc {
  color: #8b949e;
  border-bottom-color: #30363d;
}
[data-theme="dark"] .p-feat { color: #c9d1d9; }

/* ── TESTIMONIOS ── */
[data-theme="dark"] #testimonios { background: #0a0e14; }
[data-theme="dark"] .t-card {
  background: #161b22;
  border-color: #30363d;
}
[data-theme="dark"] .t-card:hover {
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.4);
}
[data-theme="dark"] .t-text { color: #8b949e; }
[data-theme="dark"] .t-name { color: #e6edf3; }
[data-theme="dark"] .t-role { color: #8b949e; }

/* ── NUEVOS ELEMENTOS DE SERVICIOS ── */
[data-theme="dark"] .srv-tag-blue   { background: rgba(56,139,253,0.12);  color: #58a6ff; }
[data-theme="dark"] .srv-tag-green  { background: rgba(16,185,129,0.12);  color: #34d399; }
[data-theme="dark"] .srv-tag-purple { background: rgba(167,139,250,0.12); color: #a78bfa; }
[data-theme="dark"] .srv-feats li   { color: #8b949e; }
[data-theme="dark"] .srv-cta        { color: #58a6ff; }
[data-theme="dark"] .srv-cta:hover  { color: #79b8ff; }

[data-theme="dark"] .otros-servicios-note {
  background: #161b22;
  border-color: #30363d;
}
[data-theme="dark"] .otros-servicios-note p { color: #8b949e; }
[data-theme="dark"] .osn-sep { color: #30363d; }
[data-theme="dark"] .osn-green  { background: rgba(16,185,129,0.12);  color: #34d399; }
[data-theme="dark"] .osn-purple { background: rgba(167,139,250,0.12); color: #a78bfa; }
