/* Caribbean Computers Services (C.C.S.) - Global Styles */
:root {
  --bg: #0b1220;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #1e7bc4; /* Azul logo */
  --secondary: #e50058; /* Magenta logo */
  --accent: #5cb946; /* Verde logo */
  --warm: #f4a300; /* Amarillo logo */
  --shadow: 0 10px 45px rgba(30, 123, 196, 0.18);
  --blur: blur(12px);
  --radius: 18px;
  /* --nav-height: 72px; */
  --nav-height: 0px;
}

[data-theme="light"] {
  --bg: #f5f7fb;
  --surface: rgba(0, 0, 0, 0.04);
  --surface-strong: rgba(0, 0, 0, 0.08);
  --text: #0f172a;
  --muted: #475569;
  --primary: #1e7bc4;
  --secondary: #e50058;
  --accent: #4fa63c;
  --warm: #f2a900;
  --shadow: 0 10px 35px rgba(30, 123, 196, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

.text-muted,
.text-secondary {
  color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="light"] .text-muted,
[data-theme="light"] .text-secondary {
  color: #475569 !important;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section {
  padding: 80px 0;
}

.section-separator {
  position: relative;
  height: 46px;
  width: 100%;
  margin: 44px 0 32px;
  overflow: hidden;
}

.section-separator::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(30, 123, 196, 0.1), rgba(30, 123, 196, 0.45), rgba(30, 123, 196, 0.1));
  transform: skewY(-3deg) translateY(12%);
  transform-origin: center;
  filter: blur(0.2px);
}

.section-separator::after {
  content: '';
  position: absolute;
  inset: 8px -10% -14px;
  background: radial-gradient(circle at 50% 0%, rgba(30, 123, 196, 0.28), rgba(30, 123, 196, 0));
  opacity: 0.9;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

.navbar-glass {
  backdrop-filter: var(--blur);
  background: rgba(11, 18, 32, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200; /* stay above page sections */
}

.navbar-glass .navbar-brand,
.navbar-glass .nav-link {
  color: var(--text) !important;
  font-weight: 600;
}

.navbar-glass .nav-link:hover,
.navbar-glass .nav-link:focus {
  color: var(--primary) !important;
}

.navbar .nav-link.active {
  color: var(--primary) !important;
  font-weight: 700;
  position: relative;
}

.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: var(--primary);
  border-radius: 8px;
}

.brand-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 229, 255, 0.22));
}

.brand-logo-light {
  display: none;
}

.brand-logo-dark {
  display: none;
}

[data-theme="light"] .brand-logo-light {
  display: inline-block;
}

[data-theme="light"] .brand-logo-dark {
  display: none;
}

[data-theme="dark"] .brand-logo-dark {
  display: inline-block;
}

[data-theme="dark"] .brand-logo-light {
  display: none;
}

[data-theme="light"] .navbar-glass {
  background: rgba(245, 247, 251, 0.8);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .navbar-glass .navbar-brand,
[data-theme="light"] .navbar-glass .nav-link {
  color: #0f172a !important;
}

[data-theme="light"] .navbar-glass .nav-link:hover,
[data-theme="light"] .navbar-glass .nav-link:focus {
  color: #0ea5e9 !important;
}

[data-theme="light"] .navbar-glass .navbar-toggler-icon {
  filter: invert(1) grayscale(100%);
}

[data-theme="light"] .theme-toggle {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
  background: rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .brand-logo-dark {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.btn-primary-custom {
  background: linear-gradient(120deg, #1e7bc4, #145a96);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow);
}

.btn-primary-custom:hover {
  transform: translateY(-1px);
  color: #ffffff;
  background: linear-gradient(120deg, #145a96, #0f436f);
  filter: brightness(0.96);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface);
}

.card-glass {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

[data-theme="light"] .card-glass {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  color: #070707;
}

.card-glass h6, .card-glass p {
  color: var(--text);
}

[data-theme="light"] .card-glass h6, [data-theme="light"] .card-glass p {
  color: #0f172a; /* Negro en tema claro */
}

[data-theme="dark"] .card-glass h6, [data-theme="dark"] .card-glass p {
  color: #ffffff; /* Blanco en tema oscuro */
}

.hero-panel {
  background: rgba(11, 18, 32, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .hero-panel {
  background: rgba(245, 247, 251, 0.3);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.hero-panel ul li {
  padding: 8px 0;
}

.hero-panel ul li + li {
  margin-top: 10px;
}

.badge-soft {
  background: rgba(0, 229, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.hero {
  position: relative;
  padding: 120px 0 80px;
  min-height: 520px;
  overflow: hidden;
  --hero-image: url('https://images.unsplash.com/photo-1484417894907-623942c8ee29?auto=format&fit=crop&w=1800&q=80');
  --hero-mask-strong: rgba(11, 18, 32, 0.94);
  --hero-mask-mid: rgba(11, 18, 32, 0.72);
  --hero-mask-soft: rgba(11, 18, 32, 0.14);
  background-image:
    linear-gradient(90deg, var(--hero-mask-strong) 0%, var(--hero-mask-mid) 40%, var(--hero-mask-soft) 60%, rgba(11, 18, 32, 0) 78%),
    var(--hero-image);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

[data-theme="light"] .hero {
  --hero-mask-strong: rgba(245, 247, 251, 0.96);
  --hero-mask-mid: rgba(245, 247, 251, 0.82);
  --hero-mask-soft: rgba(245, 247, 251, 0.2);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
}

.hero::before {
  background: var(--primary);
  top: -80px;
  left: -120px;
}

.hero::after {
  background: var(--secondary);
  bottom: -120px;
  right: -90px;
}

.hero-mock {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
}

.hero-mock-image {
  padding: 0;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-mock-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(11, 18, 32, 0.78), rgba(30, 123, 196, 0.24));
  mix-blend-mode: normal;
}

.hero-glass {
  border-radius: var(--radius);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 991.98px) {
  .hero-glass {
    background: rgba(11, 18, 32, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
    padding: 18px 18px 20px;
  }

  [data-theme="light"] .hero-glass {
    background: rgba(245, 247, 251, 0.72);
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  }
}

.blurred-topbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #0b1220;
}

.metric-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1 1 auto;
  min-height: 320px;
}

.service-card .service-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.service-card .service-footer {
  margin-top: auto;
  width: 100%;
}

/* Fuerza que cada columna en la grilla de servicios estire el contenido para que el CTA quede en el mismo nivel */
#servicios .row.g-4.align-items-stretch > [class*="col-"] {
  display: flex;
}

#servicios .row.g-4.align-items-stretch > [class*="col-"] .service-card {
  width: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 123, 196, 0.42);
  box-shadow: var(--shadow);
}

.service-card .icon-circle {
  width: 56px;
  height: 56px;
  font-size: 22px;
  margin: 0 auto 16px;
}

.service-card h5 {
  margin: 16px 0 14px;
  text-align: center;
}

.service-card .cta-row {
  margin-top: auto;
}

.service-card p,
.service-card .chip {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.parallax-section {
  background: linear-gradient(120deg, rgba(30, 123, 196, 0.18), rgba(244, 163, 0, 0.16)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1600&q=80') center/cover fixed;
  position: relative;
  overflow: hidden;
}

.parallax-section .parallax-content h2,
.parallax-section .parallax-content p,
.parallax-section .parallax-content .chip {
  color: #ffffff !important;
}

.parallax-section .parallax-content .chip {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.parallax-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.6);
}

.parallax-content {
  position: relative;
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  z-index: 0;
}

.blob-1 {
  width: 240px;
  height: 240px;
  background: var(--primary);
  top: 10%;
  left: 10%;
}

.blob-2 {
  width: 320px;
  height: 320px;
  background: var(--secondary);
  bottom: 5%;
  right: 12%;
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
  position: relative;
  margin-bottom: 18px;
  padding-left: 18px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 123, 196, 0.18);
}

#stack .card-glass {
  min-height: 170px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#stack .card-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 123, 196, 0.4);
  box-shadow: 0 18px 40px rgba(30, 123, 196, 0.26), 0 0 18px rgba(229, 0, 88, 0.22);
}

#porque .card-glass {
  min-height: 170px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#porque .card-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 123, 196, 0.4);
  box-shadow: 0 18px 40px rgba(30, 123, 196, 0.26), 0 0 18px rgba(229, 0, 88, 0.22);
}

#valores .card-glass,
#porqueelegirnos .card-glass,
#objetivos .card-glass {
  min-height: 170px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

#valores .card-glass:hover,
#porqueelegirnos .card-glass:hover,
#objetivos .card-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 123, 196, 0.4);
  box-shadow: 0 18px 40px rgba(30, 123, 196, 0.26), 0 0 18px rgba(229, 0, 88, 0.22);
}

#proceso .card-glass {
  min-height: 150px;
  box-shadow: none;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.32));
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  position: relative;
  padding: 18px 22px 18px 32px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%, 14px 50%);
}

#proceso .step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
}

#proceso .step-number-col {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#proceso .step-text-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#proceso .step-heading {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}

#proceso .card-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 123, 196, 0.4);
  filter: drop-shadow(0 18px 36px rgba(30, 123, 196, 0.26)) drop-shadow(0 0 14px rgba(229, 0, 88, 0.2));
}

#casos .card-glass {
  padding: 40px 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#casos .card-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 18px 40px rgba(0, 229, 255, 0.22), 0 0 14px rgba(124, 58, 237, 0.18);
}

#proceso .card-glass:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -18px;
  top: 50%;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, rgba(30, 123, 196, 0.16), rgba(30, 123, 196, 0.9));
  box-shadow: 0 0 10px rgba(30, 123, 196, 0.5);
  transform: translateY(-50%);
}

#proceso .card-glass:not(:last-child)::before {
  content: '';
  position: absolute;
  right: -18px;
  top: 50%;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--primary);
  transform: translate(10px, -50%);
}

@media (max-width: 992px) {
  #proceso .card-glass:not(:last-child)::after,
  #proceso .card-glass:not(:last-child)::before {
    display: none;
  }
}

.footer {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(30, 123, 196, 0.12);
  color: var(--primary);
}

.testimonial {
  min-height: 160px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, opacity 0.35s ease;
}

.testimonial:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 123, 196, 0.35);
  box-shadow: 0 18px 40px rgba(30, 123, 196, 0.22), 0 0 14px rgba(229, 0, 88, 0.18);
}

.testimonial.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

.testimonial.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.slider-controls button {
  background: rgba(30, 123, 196, 0.12);
  border: 1px solid rgba(30, 123, 196, 0.35);
  color: #ffffff;
  padding: 10px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-controls button:hover {
  background: linear-gradient(140deg, #1e7bc4, #145a96);
  box-shadow: 0 12px 28px rgba(20, 90, 150, 0.32);
  transform: translateY(-3px);
  color: #ffffff;
}

/* Base testimonial layout */
#testimonios .row.align-items-center {
  position: relative;
}

#testimonios .slider-controls {
  opacity: 0.8;
}

#testimonios .slider-controls button {
  padding: 10px;
}

@media (max-width: 576.98px) {
  /* Overlay arrows on mobile */
  #testimonios .testimonial {
    width: 100%;
  }

  #testimonios .row.align-items-center > .col-auto {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  #testimonios .row.align-items-center > .col-auto:first-of-type {
    left: 6px;
  }

  #testimonios .row.align-items-center > .col-auto:last-of-type {
    right: 6px;
  }

  #testimonios .slider-controls button {
    padding: 8px;
  }
}

@media (min-width: 577px) {
  /* Keep arrows fixed at mid-height and flanking the card on larger viewports */
  #testimonios .row.align-items-center > .col-auto {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  #testimonios .row.align-items-center > .col-auto:first-of-type {
    left: 10px;
  }

  #testimonios .row.align-items-center > .col-auto:last-of-type {
    right: 10px;
  }
}

.accordion-button {
  background: var(--surface);
  color: var(--text);
}

.accordion-button:not(.collapsed) {
  color: var(--primary);
  box-shadow: none;
}

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: var(--surface);
}

.accordion-body {
  color: var(--text);
  background: var(--surface);
}

.table-custom {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 123, 196, 0.12), rgba(229, 0, 88, 0.08));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

[data-theme="light"] .table-custom {
  background: linear-gradient(135deg, rgba(30, 123, 196, 0.08), rgba(229, 0, 88, 0.06));
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.table-custom table {
  color: var(--text);
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  padding: 12px;
}

.table-custom thead th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--muted);
  border: none;
  padding: 12px;
}

.table-custom tbody tr {
  position: relative;
  background: rgba(0, 0, 0, 0.08); /* Restaurar fondo original */
  border: none;
  border-radius: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] .table-custom tbody tr {
  background: rgba(255, 255, 255, 0.82);
  border-color: transparent;
}

.table-custom tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  border-color: rgba(30, 123, 196, 0.35);
}

.table-custom tbody td {
  padding: 14px 16px;
  border: none;
  vertical-align: middle;
}

.table-custom tbody tr td:first-child {
  font-weight: 600;
  color: #ffffff;
}

[data-theme="light"] .table-custom tbody tr td:first-child {
  color: #0f172a;
}

.table-custom tbody tr::after {
  content: none;
}

/* Futuristic stack table */
.stack-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.stack-table thead th {
  background: transparent;
  color: #ffffff;
  border-radius: 0;
  padding: 30px 16px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.stack-table thead th:first-child {
  background: #051226;
  color: #ffffff;
}

.stack-table thead th:nth-child(2) {
  background: #3c4556;
  color: #ffffff;
}

[data-theme="light"] .stack-table thead th {
  background: transparent;
  color: #0f172a;
}

[data-theme="light"] .stack-table thead th:first-child {
  background: #051226;
  color: #e5e7eb;
}

[data-theme="light"] .stack-table thead th:nth-child(2) {
  background: #3c4556;
  color: #ffffff;
}

.stack-row {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 14px;
  overflow: visible;
  color: #ffffff;
  isolation: isolate;
  box-shadow: none;
  transform-origin: center;
  transition: background 0.18s ease, color 0.18s ease, filter 0.18s ease;
}

[data-theme="light"] .stack-row {
  background: transparent;
  color: #0f172a;
}

.stack-row td {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  border: none;
  vertical-align: middle;
}

.stack-row td:first-child {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.95rem;
  background: transparent; /* Restaurar fondo transparente */
  clip-path: polygon(0 0, 100% 0, 105% 50%, 100% 100%, 0 100%);
  padding-left: 20px;
  padding-right: 0;
  padding-top: 30px;
  padding-bottom: 30px;
  min-width: 220px;
  position: relative;
  z-index: 2;
  /* Evita que la opacidad del fondo afecte el texto */
  isolation: isolate;
}


.stack-row td:first-child::before {
  content: '';
  position: absolute;
  inset: 0 -55px 0 0;
  background: var(--row-accent, #1e7bc4);
  clip-path: polygon(0 0, 90% 0, 104% 50%, 90% 100%, 0 100%);
  opacity: 0.5!important; /* Restaurar transparencia */
  z-index: -1;
}

.stack-row td:last-child {
  font-weight: 500;
  background: rgba(11, 18, 32, 0.78); /* Restaurar fondo original */
  color: #e5e7eb;
  border-radius: 0 14px 14px 0;
  padding-left: 38px;
}

[data-theme="light"] .stack-row td:last-child {
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
}

.stack-row:hover {
  transform: none !important;
  border-bottom: none;
}

.stack-row:hover::before {
  opacity: 1;
}

.stack-row:hover td:first-child {
  filter: brightness(1.04);
}

.stack-row:hover td:last-child {
  background: rgba(11, 18, 32, 0.86);
  color: #ffffff;
}

[data-theme="light"] .stack-row:hover td:last-child {
  background: rgba(255, 255, 255, 0.98);
  color: #0b1220;
}

.stack-frontend { --row-accent: linear-gradient(135deg, #5cb946, #4aa23a); }
.stack-backend { --row-accent: linear-gradient(135deg, #1e7bc4, #145a96); }
.stack-datos { --row-accent: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.stack-devops { --row-accent: linear-gradient(135deg, #f4a300, #d98800); }
.stack-seguridad { --row-accent: linear-gradient(135deg, #e50058, #b80045); }

.badge-stock-low {
  background: rgba(255, 99, 132, 0.15);
  color: #ff6384;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

@media (max-width: 992px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 100%;
}

.sidebar a {
  display: block;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.sidebar a.active,
.sidebar a:hover {
  background: rgba(30, 123, 196, 0.12);
  color: var(--primary);
}

.topbar {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.kpi-card {
  background: linear-gradient(160deg, rgba(30, 123, 196, 0.14), rgba(229, 0, 88, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px;
}

.chart-placeholder {
  background: linear-gradient(135deg, rgba(30, 123, 196, 0.1), rgba(229, 0, 88, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 260px;
}

.scroll-top {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1e7bc4, #145a96);
  color: #ffffff;
  border: none;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  z-index: 900;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-4px);
}

.scroll-top:hover {
  background: linear-gradient(160deg, #145a96, #0f436f);
  box-shadow: 0 14px 32px rgba(20, 90, 150, 0.42);
  transform: translateY(-6px) scale(1.03);
}

.whatsapp-btn {
  position: fixed;
  bottom: 80px;
  right: 18px;
  background: #25d366;
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
  z-index: 900;
}

.whatsapp-btn:hover {
  background: #1da851;
  color: #ffffff;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 1100;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* allow clicks to reach navbar/content */
}

.loader .spinner {
  width: 56px;
  height: 56px;
  border: 5px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 12px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-control, .form-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(30, 123, 196, 0.2);
  background: var(--surface);
  color: var(--text);
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .parallax-section {
    background-attachment: scroll;
  }
}

/* Revertir cambios recientes */
.table-custom tbody tr {
  background: rgba(0, 0, 0, 0.08); /* Restaurar fondo original */
}

.stack-row td:first-child {
  background: transparent; /* Restaurar fondo transparente */
  opacity: 1; /* Mantener visibilidad del texto */
}

.stack-row td:first-child::before {
  background: var(--row-accent, #1e7bc4); /* Restaurar fondo original */
  opacity: 0.8; /* Restaurar transparencia */
}

.stack-row td:last-child {
  background: rgba(11, 18, 32, 0.78); /* Restaurar fondo original */
  opacity: 1; /* Mantener visibilidad del texto */
}

/* Efectos de neón para las tarjetas en la sección de comparativas */
#comparativas .card-glass {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#comparativas .card-glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(30, 123, 196, 0.26), 0 0 14px rgba(229, 0, 88, 0.18);
}

#contacto .card-glass {
  backdrop-filter: var(--blur);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

/* Pricing Section Styles */


.card{
  border: none!important;
}


.pricing-section {
  background: #f5f7fb;
  padding: 50px 0;
}

.pricing-section .card {
  background: #000;
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease; /* Suavizar la transición */
}

.pricing-section .card-header {
  color: #fff;
  border-radius: 15px 15px 0 0;
  padding: 20px;
  position: relative;
  text-align: center;
  background: inherit;
}

.pricing-section .card-header .bubble {
  background: inherit;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 25px;
  border-radius: 50px;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pricing-section .card-header .bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid inherit;
}

.pricing-section .card-header.basic {
  background: #43A047;
}

.pricing-section .card-header.professional {
  background: #1E88E5;
}

.pricing-section .card-header.enterprise {
  background: #FBC02D;
}

.pricing-section .card-header.premium {
  background: #E53935;
}

.pricing-section .card-header h3 {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0 5px;
}

.pricing-section .card-header p {
  font-size: 14px;
  color: #ddd;
}

.pricing-section .card-body {
  padding: 20px;
}

.pricing-section .card-footer {
  padding: 0; /* Eliminar el padding */
  margin: 0; /* Eliminar el margen */
  border: none; /* Eliminar el borde */
  border-radius: 0 0 12px 12px; /* Esquinas inferiores redondeadas como la tarjeta */
}

.pricing-section .card-footer a {
  width: 100%; /* Hacer que el enlace ocupe el 100% del ancho */
  border-radius: 0 0 12px 12px; /* Esquinas inferiores redondeadas como la tarjeta */
  transition: box-shadow 0.3s ease, transform 0.3s ease; /* Suavizar la transición */
}

/* Final Bubble Design for Pricing Section */
.pricing-section .card-header {
  display: none;
}

.pricing-section .bubble {
  background: inherit;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 20px 30px;
  border-radius: 30px;
  position: relative;
  margin: 0 auto;
  text-align: center;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
  left: 50%!important; /* Centrar horizontalmente */
  margin-left: 1%;
}

.pricing-section .bubble::after {
  content: '';
  position: absolute;
  bottom: -15px; /* Ajustar la posición para el tamaño más grande */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent; /* Incrementar tamaño */
  border-right: 15px solid transparent; /* Incrementar tamaño */
  border-top: 15px solid inherit; /* Incrementar tamaño */
}

.pricing-section .bubble.basic {
  background: #43A047;
}

.pricing-section .bubble.professional {
  background: #1E88E5;
}

.pricing-section .bubble.enterprise {
  background: #FBC02D;
}

.pricing-section .bubble.premium {
  background: #E53935;
}

.pricing-section .bubble h3 {
  font-size: 24px;
  font-weight: bold;
  margin: 5px 0;
}

.pricing-section .bubble p {
  font-size: 14px;
  color: #ddd;
  margin: 0;
}

.bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 8px; /* Reducir el borde redondeado */
  padding: 10px;
  position: absolute; /* Cambiar a posición absoluta */
  left: 50%; /* Centrar horizontalmente */
  transform: translate(-50%, -50%); /* Ajustar verticalmente y horizontalmente */
  width: 85%; /* Ajustar el ancho al 85% del contenedor */
  height: auto; /* Ajustar el alto automáticamente */
}

.bubble.basic {
  background-color: #43A047; /* Verde */
}

.bubble.professional {
  background-color: #1E88E5; /* Azul */
}

.bubble.enterprise {
  background-color: #FBC02D; /* Amarillo */
}

.bubble.premium {
  background-color: #E53935; /* Magenta */
}

.bubble.basic::after {
  border-top-color: #43A047; /* Verde */
}

.bubble.professional::after {
  border-top-color: #1E88E5; /* Azul */
}

.bubble.enterprise::after {
  border-top-color: #FBC02D; /* Amarillo */
}

.bubble.premium::after {
  border-top-color: #E53935; /* Magenta */
}

.bubble::after {
  content: '';
  position: absolute;
  bottom: -15px; /* Ajustar la posición para el tamaño más grande */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent; /* Incrementar tamaño */
  border-right: 15px solid transparent; /* Incrementar tamaño */
  border-top: 16px solid currentColor; /* Incrementar tamaño */
}

.pricing-section {
  background-color: var(--dark-bg-color); /* Asegurar fondo oscuro */
  color: var(--dark-text-color); /* Asegurar texto claro */
}

.pricing-section #basic-card:hover {
  box-shadow: 0 0 15px 5px rgba(67, 160, 71, 0.9); /* Neon green */
  transform: scale(1.05); /* Ligeramente más grande al pasar el mouse */
}

.pricing-section #professional-card:hover {
  box-shadow: 0 0 15px 5px rgba(30, 136, 229, 0.9); /* Neon blue */
  transform: scale(1.05); /* Ligeramente más grande al pasar el mouse */
}

.pricing-section #enterprise-card:hover {
  box-shadow: 0 0 15px 5px rgba(251, 192, 45, 0.9); /* Neon yellow-orange */
  transform: scale(1.05); /* Ligeramente más grande al pasar el mouse */
}

.pricing-section #premium-card:hover {
  box-shadow: 0 0 15px 5px rgba(229, 57, 53, 0.9); /* Neon red */
  transform: scale(1.05); /* Ligeramente más grande al pasar el mouse */
}

/* Adjust spacing for the title in the pricing section */
.pricing-section h2 {
  margin-bottom: 2rem; /* Increase spacing below the title */
  position: relative; /* Ensure it stays above other elements */
  z-index: 1; /* Prevent overlap with cards */
}


/* Variables CSS para temas */
body[data-theme="dark"] {
  --bs-table-striped-bg: rgba(0, 0, 0, 0.2);
  --bs-table-striped-bg-alt: rgba(255, 255, 255, 0.1);
  --bs-table-color: #ffffff;
}

body[data-theme="light"] {
  --bs-table-striped-bg: rgba(240, 240, 240, 1);
  --bs-table-striped-bg-alt: rgba(255, 255, 255, 1);
  --bs-table-color: #000000;
}
/* Ajuste para tablas con soporte de tema oscuro y claro */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--bs-table-striped-bg, rgba(0, 0, 0, 0.1)); /* Color ajustado según tema */
}
.table-striped tbody tr:nth-of-type(even) {
  background-color: var(--bs-table-striped-bg-alt, rgba(255, 255, 255, 0.05)); /* Color ajustado según tema */
}
.table-striped tbody tr {
  color: var(--bs-table-color, #000); /* Texto ajustado según tema */
}