* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de Colores Principal (Azul Real) */
  --primary: #2563eb;         /* Azul sofisticado */
  --primary-hover: #1d4ed8;   /* Azul más profundo para hovers */
  --primary-light: #eff6ff;   /* Fondo muy suave para badges/chips */
  
  /* Textos y Estructura */
  --dark: #0f172a;            /* Texto oscuro elegante */
  --text-muted: #475569;      /* Texto secundario */
  
  /* Fondo general de la pantalla */
  --bg-page: #f8fafc;         /* Gris/Azul ultrasuave */
  
  /* Exclusivo WhatsApp */
  --whatsapp: #25D366;
  --whatsapp-hover: #1eb954;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--dark);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
}

/* Reglas generales para resalte de color */
.green, span.highlight {
  color: var(--primary);
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  transition: .25s;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-salir {
  background: #f8d7da;
  color: #721c24 !important;
  border: 1px solid #f5c6cb;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s;
}

.btn-salir:hover {
  background: #f5c6cb;
}

/* HEADER Y NAV */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 20px 0;
  border-bottom: 1px solid #eef2f6;
  margin-bottom: 25px;
}

.header-nav .btn-login {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: .25s;
}

.header-nav .btn-login:hover {
  background: var(--primary);
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #465467;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* HERO */
.hero {
  padding: 20px 0 40px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 25%),
    linear-gradient(to bottom, #ffffff, var(--bg-page));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-light);
  color: #1b2a3a;
  padding: 14px 22px;
  border-radius: 18px;
  font-weight: 700;
  margin-bottom: 28px;
  font-size: .95rem;
}

.badge span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.3rem);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 28px;
  color: var(--dark);
}

h1 .green, h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 650px;
  color: #465467;
  margin-bottom: 38px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 28px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.18));
}

/* FEATURES */
.features {
  margin-top: 40px;
  margin-bottom: 80px;
}

.features-box {
  background: linear-gradient(135deg, var(--dark), #001b35);
  border-radius: 28px;
  padding: 45px;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature {
  text-align: center;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #fff;
}

.feature p {
  color: #c4cfdb;
  line-height: 1.6;
  font-size: .96rem;
}

.icon {
  font-size: 2rem;
  margin-bottom: 18px;
}

/* SECCIÓN DASHBOARDS & KPIs */
.dashboards-section {
  padding: 70px 0;
  background: #ffffff;
}

.dashboards-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.badge-mini {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.dashboards-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.dashboards-text p {
  color: #566579;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.dashboards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboards-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.icon-check {
  background: var(--primary);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.dashboards-list strong {
  color: var(--dark);
  font-size: 1rem;
  display: block;
  margin-bottom: 3px;
}

.dashboards-list p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.dashboards-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(7, 24, 44, 0.12);
  border: 1px solid #eef2f6;
  object-fit: cover;
}

/* SECCIÓN SOLUCIONES */
.section-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 18px;
  color: var(--dark);
}

.section-title span {
  color: var(--primary);
}

.section-sub {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
  color: #5b697b;
  line-height: 1.7;
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 90px;
}

.card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15,35,60,.08);
  transition: .25s;
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-content {
  padding: 28px;
}

.card h3 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.card p {
  line-height: 1.7;
  color: #566579;
}

/* CLIENTES */
.clientes {
  padding: 60px 0 30px;
  background: var(--bg-page);
}

.clientes-carrusel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.logo-cliente {
  height: 80px;         /* Fijamos la misma altura para que todos formen una línea perfecta */
  width: auto;          /* El ancho se adapta a la proporción original sin deformar ni recortar */
  max-width: 240px;     /* Límite de seguridad por si algún logo es extremadamente largo */
  object-fit: cover;    
  
  /* Se eliminó el padding y el background-color blanco */
  
  border-radius: 12px;  /* Redondea las esquinas de la imagen directamente */
  border: 1px solid rgba(37, 99, 235, 0.25); /* Borde azul fino directamente sobre el color del logo */
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05); /* Sombra muy sutil */
  transition: all 0.3s ease;
}

.logo-cliente:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--primary); /* El azul se enciende al pasar el mouse */
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

/* RESEÑAS / TESTIMONIOS */
.reviews-section {
  padding: 60px 0;
  background-color: var(--bg-page);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: stretch;
}

.review-card {
  background: #ffffff;
  padding: 28px 24px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-card h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.review-card p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

.no-reviews {
  grid-column: 1 / -1;
  text-align: center;
  color: #718096;
  font-style: italic;
}

/* CTA & WHATSAPP */
/* SECCIÓN CTA */
.cta {
  padding: 90px 0;
}

.cta-box {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 40%),
    linear-gradient(135deg, #020d1a, #0b1e36);
  border-radius: 32px;
  padding: 70px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  color: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.cta h2 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -2px;
  color: #ffffff;
}

/* "Más control." en azul */
.cta h2 span {
  color: var(--primary); 
}

.cta p {
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 600px;
}

.cta p strong {
  color: #ffffff;
}

/* BOTÓN RECTANGULAR SÓLIDO (Misma forma que el verde original) */
.cta-btn {
  background-color: var(--primary);  /* Fondo Azul */
  color: #ffffff !important;         /* Texto Blanco */
  padding: 18px 32px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;               /* Forma rectangular con esquinas suavemente redondeadas */
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
  border: none;
}

.cta-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
  color: #ffffff !important;
}

.whatsapp-btn {
  background: var(--whatsapp);
  color: white;
  padding: 22px 34px;
  font-size: 1.1rem;
  border-radius: 18px;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.25);
  transition: transform 0.25s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.03);
}

.floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 68px;
  height: 68px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 2rem;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: .25s;
}

.floating:hover {
  transform: scale(1.08);
}

/* FOOTER */
footer {
  padding: 50px 0 60px;
}

.footer-box {
  border-top: 1px solid #e7edf4;
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}

.logo span {
  color: var(--primary);
}

.footer-contact {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  color: #4b5a6b;
  font-weight: 500;
}

/* MODALES & FORMULARIOS */
.modal {
  display: none; 
  position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}

.modal-content {
  background: #fff; width: min(420px, 90%); padding: 30px; border-radius: 20px;
  position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close-modal {
  position: absolute; right: 20px; top: 15px; font-size: 1.5rem; cursor: pointer; color: #888;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 1.1rem;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 5px;
  font-size: 1.8rem;
}

.star-rating input { display: none; }
.star-rating label { color: #ccc; cursor: pointer; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #ffb400; }

.modal-content.modal-info {
  width: min(580px, 92%);
  padding: 40px 35px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(7, 24, 44, 0.15);
  border: 1px solid #eef2f6;
  text-align: left;
}

.modal-info h3 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 16px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.modal-info h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 6px;
}

.modal-info p {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* RESPONSIVE */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--dark);
  cursor: pointer;
  padding: 5px 10px;
}

@media (max-width: 980px) {
  .header-nav {
    flex-wrap: wrap;
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    z-index: 1000;
    gap: 15px;
    text-align: center;
    border: 1px solid #eef2f6;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links .btn-login,
  .nav-links .btn-salir {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-grid,
  .dashboards-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .dashboards-image {
    order: -1;
  }

  .features-box {
    grid-template-columns: 1fr 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 50px 30px;
  }
}

@media (max-width: 768px) {
  .cta-box {
    grid-template-columns: 1fr; /* Cambia de 2 columnas a 1 sola fila vertical */
    padding: 35px 20px;         /* Reducimos el padding para dar espacio al contenido */
    text-align: center;         /* Centramos el texto para que se vea equilibrado */
  }

  .cta p {
    font-size: 1rem;            /* Un tamaño de texto más cómodo para mobile */
  }

  .cta-btn {
    width: 100%;                /* El botón ocupa el ancho disponible de la tarjeta */
    white-space: normal;        /* Permite que el texto baje si la pantalla es muy angosta */
    padding: 16px 20px;
    font-size: 0.95rem;
    justify-content: center;
  }    
  .clientes-carrusel {
    gap: 25px;
  }
  .logo-cliente {
    max-height: 45px;
  }
}

@media (max-width: 640px) {
  h1 {
    letter-spacing: -2px;
  }

  .features-box {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 40px 20px;
  }

  .cta h2 {
    font-size: 2.2rem;
  }

  .whatsapp-btn {
    white-space: normal;
    padding: 18px 20px;
    font-size: 1rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-box {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    padding-top: 20px;
  }

  .modal-content.modal-info {
    padding: 30px 22px;
    border-radius: 18px;
  }

  .modal-info h3 {
    font-size: 1.35rem;
  }

  .modal-info p {
    font-size: 0.98rem;
    line-height: 1.65;
  }
}