:root {
  --azul: #1E3A8A;
  --azul-sec: #2563EB;
  --gris: #6B7280;
  --fondo: #F4F6F9;
  --blanco: #FFFFFF;
  --oscuro: #111827;
  --verde: #10B981;
  --borde: #E5E7EB;
  --sombra: 0 10px 30px rgba(0, 0, 0, .06);
  --sombra-hover: 0 18px 40px rgba(0, 0, 0, .10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--fondo);
  color: var(--oscuro);
  line-height: 1.6;
}

/* ================= UTILIDADES ================= */

.section-badge,
.clientes-badge,
.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.10);
  color: var(--azul-sec);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.section-heading.centered {
  text-align: center;
  margin-bottom: 40px;
}

section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: auto;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--azul);
  line-height: 1.2;
}

section p {
  color: var(--gris);
  line-height: 1.8;
  max-width: 900px;
}

/* ================= NAVBAR ================= */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.brand img,
.navbar img {
  height: 48px;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.navbar a {
  text-decoration: none;
  font-weight: 500;
  color: var(--oscuro);
  transition: .3s ease;
}

.navbar a:hover {
  color: var(--azul-sec);
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* ================= HERO ================= */

.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(17, 24, 39, 0.82), rgba(30, 58, 138, 0.55)),
    url('./images/hero-bg.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 40px;
  color: white;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 900px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #E5E7EB;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.hero p {
  font-size: 1.08rem;
  margin-bottom: 35px;
  color: #d1d5db;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: .3s ease;
}

.btn-primary {
  background: var(--azul-sec);
  color: white;
}

.btn-primary:hover {
  background: #1D4ED8;
}

.btn-secondary {
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--oscuro);
}

/* ================= SERVICIOS ================= */

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.servicio {
  background: var(--blanco);
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .06);
  border-top: 4px solid var(--azul-sec);
}

.servicio h3 {
  margin-bottom: 15px;
  color: var(--azul-sec);
  font-size: 1.1rem;
}

/* ================= ENTORNOS ================= */

.entornos-section {
  padding: 110px 40px;
  max-width: 1200px;
  margin: auto;
}

.entornos-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px;
}

.entornos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 35px;
}

.entorno-card {
  background: var(--blanco);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 1px solid var(--borde);
  transition: transform .3s ease, box-shadow .3s ease;
}

.entorno-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}

.entorno-img {
  height: 260px;
  overflow: hidden;
}

.entorno-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.entorno-body {
  padding: 26px;
}

.entorno-card h3 {
  font-size: 1.6rem;
  color: var(--azul);
  margin-bottom: 12px;
}

/* ================= PLANES ================= */

.planes-section {
  padding: 110px 40px;
  max-width: 1280px;
  margin: auto;
}

.planes-header {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 60px;
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 30px;
}

.plan-card {
  background: var(--blanco);
  border: 1px solid #D1D5DB;
  border-radius: 18px;
  padding: 38px 30px;
  box-shadow: var(--sombra);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}

.plan-card.destacado {
  border: 2px solid var(--verde);
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--verde);
  color: white;
  text-align: center;
  padding: 12px;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 16px 16px 0 0;
}

.plan-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 18px;
  margin-top: 10px;
}

.plan-card h3 {
  text-align: center;
  color: var(--azul);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.plan-subtitle {
  text-align: center;
  color: var(--gris);
  margin-bottom: 28px;
  font-weight: 500;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.plan-card ul li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid #F3F4F6;
  color: #374151;
  position: relative;
}

.plan-card ul li::before {
  content: "✔";
  color: var(--azul-sec);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 10px;
}

.plan-btn {
  display: block;
  text-align: center;
  background: var(--azul);
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: 600;
  transition: .3s ease;
}

.plan-btn:hover {
  background: var(--azul-sec);
}

/* ================= ESTADISTICAS ================= */

.estadisticas {
  background: #EEF2FF;
  text-align: center;
  padding: 120px 40px;
  max-width: 100%;
}

.estadisticas-grid {
  max-width: 1200px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.estadistica-card {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  padding: 30px 20px;
}

.estadisticas h3,
.estadistica-card h3 {
  font-size: 2.5rem;
  color: var(--azul-sec);
  margin-bottom: 8px;
}

/* ================= CLIENTES ================= */

.clientes-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 40px;
}

.clientes-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.cliente-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 16px;
  min-height: 130px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cliente-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
}

.cliente-card img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.cliente-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

/* ================= TESTIMONIOS ================= */

.testimonios {
  background: var(--blanco);
  text-align: center;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.testimonio {
  background: #F9FAFB;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
  text-align: left;
}

.testimonio p {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--gris);
}

.testimonio h4 {
  color: var(--azul-sec);
  font-size: 14px;
}

/* ================= PROCESO ================= */

.proceso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.paso {
  background: var(--blanco);
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .06);
  border-top: 4px solid var(--azul-sec);
}

.paso h3 {
  margin-bottom: 12px;
  color: var(--azul-sec);
}

/* ================= TECNOLOGIAS ================= */

.tecnologias {
  background: var(--blanco);
  text-align: center;
}

.tecnologias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.tecnologia-item {
  background: #F9FAFB;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
  font-weight: 600;
  color: var(--azul);
}

/* ================= CONTACTO ================= */

.contacto-section a {
  color: var(--azul-sec);
  text-decoration: none;
}

.contacto-section a:hover {
  text-decoration: underline;
}

/* ================= CTA ================= */

.cta {
  background: #F1F5F9;
  padding: 120px 40px;
  max-width: 100%;
}

.cta-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-text h2 {
  margin-bottom: 18px;
}

.formulario {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
}

.formulario input,
.formulario textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid var(--borde);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.formulario textarea {
  min-height: 130px;
  resize: vertical;
}

.formulario input:focus,
.formulario textarea:focus {
  outline: none;
  border-color: var(--azul-sec);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.formulario button {
  width: 100%;
  padding: 14px;
  background: var(--azul-sec);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: .3s ease;
}

.formulario button:hover {
  background: #1D4ED8;
}

/* ================= FOOTER ================= */

footer {
  background: #0B0F19;
  color: #9CA3AF;
  padding: 50px 20px 30px;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-grid h4 {
  color: white;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.footer-grid p,
.footer-grid a {
  color: #9CA3AF;
  text-decoration: none;
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: .85rem;
  color: #6B7280;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

/* ================= WHATSAPP ================= */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  font-size: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform .3s ease, box-shadow .3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .30);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .entornos-grid,
  .planes-grid,
  .cta-container {
    grid-template-columns: 1fr;
  }

  .entorno-img {
    height: 230px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    color: var(--oscuro);
  }

  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    display: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .10);
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    min-height: 90vh;
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  section,
  .entornos-section,
  .planes-section,
  .clientes-section {
    padding: 80px 20px;
  }

  .estadisticas,
  .cta {
    padding: 90px 20px;
  }

  .entornos-grid,
  .planes-grid {
    grid-template-columns: 1fr;
  }

  .entornos-header h2,
  .planes-header h2,
  section h2 {
    font-size: 1.8rem;
  }

  .plan-card h3 {
    font-size: 1.5rem;
  }

  .entorno-card h3 {
    font-size: 1.4rem;
  }

  .tecnologias-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
  }

  .clientes-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .cliente-card {
    min-height: 110px;
    padding: 18px;
  }

  .cliente-card img {
    max-height: 55px;
  }

  .formulario {
    padding: 28px 22px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    font-size: 20px;
    bottom: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 14px 18px;
  }

  .navbar img {
    height: 42px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .servicio,
  .paso,
  .testimonio,
  .plan-card {
    padding: 24px 20px;
  }

  .entorno-img {
    height: 200px;
  }

  .estadisticas h3,
  .estadistica-card h3 {
    font-size: 2rem;
  }
}

.planes-categorias {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.categoria-bloque {
  background: transparent;
}

.categoria-header {
  text-align: center;
  margin-bottom: 30px;
}

.categoria-header h3 {
  font-size: 2rem;
  color: var(--azul);
  margin-bottom: 10px;
}

.categoria-header p {
  color: var(--gris);
  max-width: 700px;
  margin: auto;
}

.planes-grid.una-columna {
  grid-template-columns: minmax(320px, 700px);
  justify-content: center;
}

.planes-grid.tres-columnas {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.plan-price {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 8px;
  line-height: 1.2;
}

.plan-card.destacado .plan-price {
  color: #0F766E;
}

@media (max-width: 992px) {
  .planes-grid.tres-columnas,
  .planes-grid.una-columna {
    grid-template-columns: 1fr;
  }
}

.plan-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.plan-icon i {
  font-size: 2.2rem;
  color: var(--azul);
}

.plan-card.destacado .plan-icon i {
  color: #0F766E;
}

.plan-icon-desktop {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
}

.plan-icon-landing {
  background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
}

.plan-icon-corporativa {
  background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
}

.plan-icon-sistema {
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
}

.hero-mini-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 28px;
}

.hero-mini-points span {
  background: rgba(255, 255, 255, 0.10);
  color: #E5E7EB;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}

.para-quien-section {
  max-width: 1200px;
  margin: auto;
  padding: 100px 40px;
}

.para-quien-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.para-quien-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
}

.para-quien-card h3 {
  color: var(--azul);
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.para-quien-card p {
  color: var(--gris);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hero-mini-points {
    flex-direction: column;
    align-items: center;
  }

  .para-quien-section {
    padding: 80px 20px;
  }
}