:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --navy-light: #1a3257;
  --electric: #00d4ff;
  --electric-dim: #0099bb;
  --amber: #f5a623;
  --amber-dim: #c87d0e;
  --white: #f0f4ff;
  --white-dim: #a8b8d8;
  --success: #00e5a0;
  --card-bg: rgba(17, 34, 64, 0.85);
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
      ellipse 80% 60% at 10% 10%,
      rgba(0, 212, 255, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 90% 80%,
      rgba(245, 166, 35, 0.07) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 50% 50%,
      rgba(0, 229, 160, 0.04) 0%,
      transparent 60%
    );
  pointer-events: none;
}

/* ============================================================
   NAV - VERSIÓN MEJORADA CON MENÚ HAMBURGUESA
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6%;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: background 0.3s;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.logo-svg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-text {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  line-height: 1;
}
.logo-text span {
  color: var(--electric);
}

/* Menú de navegación - desktop */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-menu a {
  text-decoration: none;
  color: var(--white-dim);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-menu a:hover {
  color: var(--electric);
}

.nav-cta {
  background: var(--electric);
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover {
  background: #33ddff !important;
  transform: translateY(-1px);
}

/* ============================================================
   MENÚ HAMBURGUESA
   ============================================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   ESTILOS DEL MENU DESPLEGABLE (DROPDOWN)
   ============================================================ */
.nav-menu li {
  position: relative;
}

.dropdown-toggle {
  color: var(--white-dim) !important;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.dropdown-toggle .arrow {
  font-size: 0.7em;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-mid);
  min-width: 220px;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 8px 0;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 1000;
}

.dropdown-menu li a {
  color: var(--white-dim) !important;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--electric) !important;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 6% 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 30px;
  animation: fadeUp 0.8s ease both;
}
.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--electric);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}

h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 900px;
  animation: fadeUp 0.9s 0.1s ease both;
}
h1 .accent {
  color: var(--electric);
}
h1 .amber {
  color: var(--amber);
}

.hero-sub {
  margin-top: 24px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--white-dim);
  max-width: 620px;
  line-height: 1.7;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-btns {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.9s 0.3s ease both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--electric) 0%, #0099bb 100%);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 36px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(0, 212, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 34px;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid rgba(240, 244, 255, 0.25);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  border-color: var(--electric);
  color: var(--electric);
}

/* Dashboard Mockup */
.hero-mockup {
  position: relative;
  margin-top: 70px;
  animation: fadeUp 1s 0.5s ease both;
  max-width: 920px;
  width: 100%;
}
.mockup-shell {
  background: var(--card-bg);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.07);
  backdrop-filter: blur(10px);
}
.mockup-bar {
  background: rgba(10, 22, 40, 0.9);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  flex-wrap: wrap;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-r {
  background: #ff5f57;
}
.dot-y {
  background: #ffbd2e;
}
.dot-g {
  background: #28ca41;
}
.mockup-url {
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 0.78rem;
  color: var(--white-dim);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.mockup-body {
  padding: 28px 28px 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  min-height: 360px;
}
.mock-sidebar {
  background: rgba(10, 22, 40, 0.6);
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 4px;
}
.mock-logo-dot {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--electric), #0055aa);
}
.mock-logo-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  font-family: "Syne", sans-serif;
}
.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--white-dim);
}
.mock-nav-item.active {
  background: rgba(0, 212, 255, 0.12);
  color: var(--electric);
}
.mock-nav-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.7;
}
.mock-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mock-stat {
  background: rgba(10, 22, 40, 0.6);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.mock-stat-val {
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}
.mock-stat-val.blue {
  color: var(--electric);
}
.mock-stat-val.amber {
  color: var(--amber);
}
.mock-stat-val.green {
  color: var(--success);
}
.mock-stat-label {
  font-size: 0.72rem;
  color: var(--white-dim);
  margin-top: 3px;
}
.mock-map {
  flex: 1;
  background: rgba(10, 22, 40, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
  min-height: 160px;
}
.mock-map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(0, 212, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.mock-map-label {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 0.75rem;
  color: var(--electric);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.rdot {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}
.rdot-a {
  width: 10px;
  height: 10px;
  background: var(--electric);
  color: var(--electric);
  top: 40%;
  left: 20%;
}
.rdot-b {
  width: 10px;
  height: 10px;
  background: var(--amber);
  color: var(--amber);
  top: 55%;
  left: 55%;
}
.rdot-c {
  width: 10px;
  height: 10px;
  background: var(--success);
  color: var(--success);
  top: 25%;
  left: 70%;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  position: relative;
  z-index: 1;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 6%;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 14px;
}
.eyebrow.amber {
  color: var(--amber);
}

h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 700px;
}
.section-desc {
  margin-top: 16px;
  color: var(--white-dim);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 580px;
}

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.2),
    transparent
  );
  margin: 0 6%;
}

/* ============================================================
   FEATURES
   ============================================================ */
#features .features-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feat-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--electric), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.feat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.feat-card:hover::before {
  opacity: 1;
}
.feat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.feat-icon.blue {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.2);
}
.feat-icon.amber {
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.2);
}
.feat-icon.green {
  background: rgba(0, 229, 160, 0.12);
  border: 1px solid rgba(0, 229, 160, 0.2);
}
.feat-card h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feat-card p {
  color: var(--white-dim);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how {
  background: rgba(17, 34, 64, 0.5);
}
.steps-wrap {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}
.steps-wrap::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--electric),
    var(--amber),
    var(--success)
  );
  opacity: 0.35;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 40px;
}
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  border: 2px solid;
}
.step-num.s1 {
  border-color: var(--electric);
  color: var(--electric);
  background: rgba(0, 212, 255, 0.08);
}
.step-num.s2 {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(245, 166, 35, 0.08);
}
.step-num.s3 {
  border-color: var(--success);
  color: var(--success);
  background: rgba(0, 229, 160, 0.08);
}
.step-num.s4 {
  border-color: #cc88ff;
  color: #cc88ff;
  background: rgba(204, 136, 255, 0.08);
}
.step h3 {
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step p {
  color: var(--white-dim);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ============================================================
   CUSTOMER SERVICE
   ============================================================ */
#cs-highlight .inner {
  background: linear-gradient(
    135deg,
    rgba(245, 166, 35, 0.08) 0%,
    rgba(0, 212, 255, 0.06) 100%
  );
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 22px;
  padding: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cs-text .eyebrow {
  margin-bottom: 12px;
}
.cs-text h2 {
  margin-bottom: 18px;
}
.cs-text p {
  color: var(--white-dim);
  font-size: 1rem;
  line-height: 1.8;
}
.cs-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs-card {
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.25s;
}
.cs-card:hover {
  border-color: rgba(245, 166, 35, 0.3);
}
.cs-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.cs-card h4 {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.cs-card p {
  color: var(--white-dim);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================================
   STATS
   ============================================================ */
#stats {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05),
    rgba(245, 166, 35, 0.05)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 60px 20px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.stat-val {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--electric), var(--white));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  color: var(--white-dim);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials .testi-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.testi-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 30px 28px;
  backdrop-filter: blur(8px);
}
.stars {
  color: var(--amber);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testi-text {
  color: var(--white-dim);
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--electric-dim), var(--navy-light));
}
.testi-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.testi-role {
  color: var(--white-dim);
  font-size: 0.78rem;
}

/* ============================================================
   CTA
   ============================================================ */
#cta {
  background: linear-gradient(
    135deg,
    var(--navy-mid) 0%,
    rgba(0, 212, 255, 0.05) 100%
  );
}
#cta .inner {
  text-align: center;
  background: radial-gradient(
    ellipse 70% 80% at 50% 100%,
    rgba(0, 212, 255, 0.07) 0%,
    transparent 70%
  );
  padding: 100px 6%;
}
#cta h2 {
  margin: 0 auto 20px;
  max-width: 700px;
}
#cta .section-desc {
  margin: 0 auto 44px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: rgba(5, 12, 25, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 6% 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p {
  color: var(--white-dim);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-top: 14px;
  max-width: 300px;
}
.footer-col h4 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--white);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: var(--electric);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--white-dim);
}
.footer-bottom a {
  color: var(--white-dim);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--electric);
}

/* ============================================================
   SCROLL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CHECK-LIST (BULLETS PERSONALIZADOS)
   ============================================================ */
.check-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #ffffff;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #00d4ff;
  font-weight: bold;
  font-size: 18px;
}

/* ============================================================
   SECCIÓN MOBILE-APP - GRID DE DOS COLUMNAS
   ============================================================ */
.claseDosColumnas {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  justify-content: center;
  align-items: center;
}

/* ============================================================
   ESTILOS UNIFICADOS PARA claseDosColumnasFlex (SOLO UNA VEZ)
   ============================================================ */
.claseDosColumnasFlex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 auto !important;
  margin-bottom: 60px;
}

/* BLOQUE 2: Invertir con RTL (solo desktop) */
.claseDosColumnasFlex:nth-child(2) {
  direction: rtl;
  text-align: left;
}

/* Resetear direction de los hijos del bloque 2 */
.claseDosColumnasFlex:nth-child(2) > div {
  direction: ltr;
}

.claseDosColumnas img,
.claseDosColumnasFlex img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.claseDosColumnas img:hover,
.claseDosColumnasFlex img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.divdescription {
  padding-top: 0;
  display: flex;
  align-items: auto;
  height: 100%;
}

.description {
  display: grid;
  grid-template-columns: 1fr;
  text-align: left;
  direction: ltr;
}

/* ============================================================
   LISTA DE MOBILE-APP - VERSIÓN MEJORADA
   ============================================================ */
.check-list.description {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.check-list.description li {
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px 24px 20px 60px;
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  transition: all 0.25s ease;
  margin-bottom: 0;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
}

.check-list.description li:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(6px);
  background: rgba(10, 22, 40, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.check-list.description li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--electric);
  font-weight: 700;
  font-size: 1.2rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.15);
  flex-shrink: 0;
}

/* ============================================================
   ESTILOS PARA IMÁGENES DE APPS
   ============================================================ */
.mobile-app-img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.mobile-app-img:hover {
  transform: scale(1.02);
}

.cust-img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.cust-img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

/* ============================================================
   CAJASENSUAL - CONTENEDOR DESTACADO
   ============================================================ */
.cajasensual {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05),
    rgba(245, 166, 35, 0.05)
  );
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 22px;
  padding: 60px 70px !important;
  transition: all 0.3s ease;
  gap: 50px !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 800px) {
  #web-app {
    direction: rtl;
    text-align: left;
  }

  .claseDosColumnasFlex img.big {
    grid-column: span 2;
  }
}
/* --- Tablets y pantallas medianas (hasta 1024px) --- */

@media (max-width: 1024px) {
  .cajasensual {
    padding: 50px 40px !important;
    gap: 40px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  #cs-highlight .inner {
    padding: 50px 40px;
    gap: 40px;
  }
}

/* --- Tablets pequeñas y móviles grandes (hasta 900px) --- */
@media (max-width: 900px) {
  /* Menú Hamburguesa */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 30px 30px;
    gap: 8px;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(0, 212, 255, 0.1);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .nav-menu a:hover {
    background: rgba(0, 212, 255, 0.08);
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  /* Dropdown en móvil */
  .dropdown-menu {
    position: static;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    box-shadow: none;
    padding: 0;
    margin: 4px 0 0 16px;
    border: none;
    display: none;
  }

  .dropdown-menu li a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-toggle .arrow {
    transition: transform 0.3s ease;
  }

  .dropdown.active .dropdown-toggle .arrow {
    transform: rotate(180deg);
  }

  /* Ocultar hover en móvil */
  .dropdown:hover .dropdown-menu {
    display: none;
  }
  .dropdown.active .dropdown-menu {
    display: block;
  }

  /* CS Highlight */
  #cs-highlight .inner {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item + .stat-item::before {
    display: none;
  }
  .stat-item:nth-child(2)::before {
    display: none;
  }

  /* Mockup */
  .mockup-body {
    grid-template-columns: 1fr;
  }
  .mock-sidebar {
    display: none;
  }
  .mock-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Steps */
  .steps-wrap::before {
    display: none;
  }

  /* Columnas */
  .claseDosColumnas {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .images-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Móviles pequeños (hasta 768px) --- */
@media (max-width: 768px) {
  /* Hero */
  #hero {
    padding: 100px 5% 60px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
    max-width: 350px;
    text-align: center;
  }

  /* Secciones */
  .section-inner {
    padding: 60px 5%;
  }

  /* Mockup */
  .mockup-body {
    padding: 16px;
    min-height: auto;
  }
  .mock-stats {
    grid-template-columns: 1fr 1fr;
  }
  .mock-stat:last-child {
    grid-column: span 2;
  }
  .mockup-url {
    max-width: 120px;
    font-size: 0.7rem;
  }

  /* CS Highlight */
  #cs-highlight .inner {
    padding: 30px 22px;
    gap: 32px;
    border-radius: 16px;
  }

  .cs-card {
    padding: 16px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  /* Stats */
  .stat-item {
    padding: 40px 16px;
  }

  /* Features */
  #features .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Steps */
  .steps-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .step {
    padding: 0 12px 30px;
  }

  /* Testimonials */
  #testimonials .testi-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  #cta .inner {
    padding: 60px 5%;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  /* Aplicaciones */
  .cajasensual {
    padding: 30px 20px !important;
    border-radius: 16px;
    gap: 30px !important;
  }

  .cajasensual > div:last-child {
    order: 1;
  }

  .check-list.description li {
    padding: 16px 18px 16px 50px;
    font-size: 0.9rem;
    min-height: 56px;
  }

  .check-list.description li::before {
    left: 14px;
    font-size: 1rem;
    width: 24px;
    height: 24px;
  }

  .images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* ============================================================
     MOBILE: RESETEAR RTL Y FORZAR 1 COLUMNA
     ============================================================ */
  .claseDosColumnasFlex {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    max-width: 100% !important;
    direction: ltr !important;
    margin-bottom: 40px !important;
  }

  /* Resetear RTL del bloque 2 en mobile */
  .claseDosColumnasFlex:nth-child(2) {
    direction: ltr !important;
  }

  /* Forzar orden: Imagen arriba, Texto abajo */
  .claseDosColumnasFlex > div:first-child {
    order: 1 !important;
  }

  .claseDosColumnasFlex > div:last-child {
    order: 2 !important;
  }

  .claseDosColumnasFlex .divdescription {
    order: 2 !important;
  }

  .claseDosColumnasFlex .images-grid {
    order: 1 !important;
  }
}

/* --- Móviles muy pequeños (hasta 480px) --- */
@media (max-width: 480px) {
  /* Hero */
  h1 {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 5px 14px;
  }

  .btn-primary,
  .btn-outline {
    font-size: 0.9rem;
    padding: 12px 24px;
  }

  /* Mockup */
  .mockup-shell {
    border-radius: 12px;
  }
  .mockup-bar {
    padding: 8px 12px;
  }
  .mockup-url {
    max-width: 80px;
    font-size: 0.6rem;
    padding: 2px 8px;
  }
  .mock-stat-val {
    font-size: 1.1rem;
  }
  .mock-stat {
    padding: 10px 12px;
  }

  /* Features */
  #features .features-grid {
    grid-template-columns: 1fr;
  }

  .feat-card {
    padding: 24px 20px;
  }

  /* Steps */
  .steps-wrap {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 0 0 30px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    padding: 30px 12px;
  }
  .stat-val {
    font-size: 1.8rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }

  /* CS Highlight */
  .cs-text h2 {
    font-size: 1.6rem;
  }

  /* CTA */
  #cta h2 {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Aplicaciones */
  .cajasensual {
    padding: 20px 14px !important;
    border-radius: 12px;
    gap: 20px !important;
  }

  .check-list.description {
    gap: 12px;
  }

  .check-list.description li {
    padding: 14px 14px 14px 44px;
    font-size: 0.85rem;
    line-height: 1.5;
    min-height: 48px;
    border-radius: 10px;
  }

  .check-list.description li::before {
    left: 12px;
    font-size: 0.9rem;
    width: 20px;
    height: 20px;
  }

  .images-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .claseDosColumnasFlex {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    direction: ltr !important;
    margin-bottom: 30px !important;
  }

  .claseDosColumnasFlex > div:first-child {
    order: 1 !important;
  }

  .claseDosColumnasFlex > div:last-child {
    order: 2 !important;
  }

  .claseDosColumnasFlex .divdescription {
    order: 2 !important;
  }

  .claseDosColumnasFlex .images-grid {
    order: 1 !important;
  }

  .cust-img,
  .mobile-app-img {
    border-radius: 10px;
  }
}

/* --- Ajustes para pantallas muy pequeñas (menos de 360px) --- */
@media (max-width: 360px) {
  .logo-text {
    font-size: 0.95rem;
  }

  .mock-stats {
    grid-template-columns: 1fr;
  }
  .mock-stat:last-child {
    grid-column: span 1;
  }

  .images-grid {
    grid-template-columns: 1fr;
  }

  .check-list.description li {
    font-size: 0.8rem;
    padding: 12px 12px 12px 38px;
  }

  .check-list.description li::before {
    width: 18px;
    height: 18px;
    font-size: 0.8rem;
    left: 10px;
  }

  .claseDosColumnasFlex {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
  }

  .claseDosColumnasFlex > div:first-child {
    order: 1 !important;
  }

  .claseDosColumnasFlex > div:last-child {
    order: 2 !important;
  }

  .claseDosColumnasFlex .divdescription {
    order: 2 !important;
  }

  .claseDosColumnasFlex .images-grid {
    order: 1 !important;
  }
}

/* --- Mejoras para tablets en horizontal --- */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-mockup {
    max-width: 80%;
  }

  .mockup-body {
    min-height: 300px;
  }

  .mock-sidebar {
    display: flex;
  }
}

/* --- Mejoras para pantallas táctiles (eliminar hover que causan problemas) --- */
@media (hover: none) {
  .feat-card:hover {
    transform: none;
  }

  .feat-card:hover::before {
    opacity: 0;
  }

  .check-list.description li:hover {
    transform: none;
  }

  .cs-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
  }

  .claseDosColumnas img:hover,
  .claseDosColumnasFlex img:hover {
    transform: none;
  }

  .cust-img:hover {
    transform: none;
  }

  .mobile-app-img:hover {
    transform: none;
  }
}

/* ============================================================
   ESTILOS DEL MODAL PARA IMÁGENES
   ============================================================ */

/* === Fondo del modal === */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease;
  backdrop-filter: blur(4px);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === Imagen dentro del modal === */
.modal-content {
  max-width: 92%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* === Botón cerrar (X) === */
.modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 44px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
}

.modal-close:hover {
  color: #f5a623;
  transform: rotate(90deg) scale(1.1);
  background: rgba(245, 166, 35, 0.15);
  border-color: #f5a623;
}

/* === Pie de foto / caption === */
#modalCaption {
  position: absolute;
  bottom: 32px;
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  max-width: 80%;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 28px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "DM Sans", sans-serif;
}

/* === Estilo para imágenes clickeables === */
.modal-trigger {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  border-radius: 8px;
}

.modal-trigger:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.35);
  filter: brightness(1.05);
}

/* === RESPONSIVE DEL MODAL === */
@media (max-width: 992px) {
  .modal-content {
    max-width: 95%;
    max-height: 82vh;
  }
  .modal-close {
    top: 18px;
    right: 20px;
    font-size: 36px;
    width: 44px;
    height: 44px;
  }
  #modalCaption {
    font-size: 0.85rem;
    padding: 8px 20px;
    bottom: 24px;
    max-width: 85%;
  }
}

@media (max-width: 768px) {
  .modal {
    padding: 12px;
  }
  .modal-content {
    max-width: 98%;
    max-height: 75vh;
    border-radius: 8px;
  }
  .modal-close {
    top: 12px;
    right: 14px;
    font-size: 30px;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.5);
  }
  #modalCaption {
    font-size: 0.75rem;
    padding: 6px 16px;
    bottom: 16px;
    max-width: 90%;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 6px;
  }
  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 26px;
    width: 34px;
    height: 34px;
  }
  #modalCaption {
    font-size: 0.7rem;
    padding: 5px 14px;
    bottom: 12px;
    max-width: 92%;
  }
}

/* === Ajuste para pantallas muy grandes === */
@media (min-width: 1600px) {
  .modal-content {
    max-width: 75%;
    max-height: 85vh;
  }
}

/* === Evitar scroll del body cuando el modal está abierto === */
body.modal-open {
  overflow: hidden !important;
}
