:root {
  --navy: #0a192f;
  --navy-light: #13294b;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-light: #f4f7fb;
  --border: rgba(10, 25, 47, 0.08);
  --accent: #2f80ed;

  --radius: 20px;

  --shadow:
    0 10px 40px rgba(10, 25, 47, 0.06);

  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  transition: var(--transition);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 3rem;
  border-radius: 999px;
  transition: var(--transition);
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: white;
}

.btn-primary-pr {
  background: var(--navy);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--navy-light);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: white;
}

/* MOBILE BUTTON */

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* HERO */

.hero {
  padding-top: clamp(1rem, 8vw, 2.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.008rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 1.5rem;
  max-width: 12ch;
}

.hero-description {
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background: white;
  box-shadow: var(--shadow);
}

.stat-box+.stat-box {
  margin-top: 1.5rem;
}

.stat-box h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

/* SECTIONS */

section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  /* Color y Tipografía */
  color: #4DA3FF;
  /* El azul brillante de la imagen */
  font-weight: 700;
  font-size: 1.2rem;
  /* Tamaño más equilibrado para etiquetas */
  letter-spacing: 2px;
  /* Un poco de aire entre letras para elegancia */
  text-transform: uppercase;
  /* Se ve más profesional en etiquetas de sección */

  /* Efectos de "Vida" */
  display: inline-block;
  margin-bottom: 0.5rem;
  position: relative;

  /* Degradado sutil para que no sea un color plano */
  background: linear-gradient(135deg, #4DA3FF 0%, #0076FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Animación sutil al cargar */
  animation: fadeInSlide 0.8s ease-out forwards;
}

.section-heading h2 {
  color: #0a192f;
  /* El azul muy oscuro de tu imagen */
  font-size: 35px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BRANDS */

.brands-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.brands-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll 22s linear infinite;
}

.brand-item {
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 700;
  color: #9ca3af;
  filter: grayscale(1);
  transition: var(--transition);
  white-space: nowrap;
}

.brand-item:hover {
  color: var(--navy);
  filter: grayscale(0);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* GRID */

.services-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card,
.why-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: var(--transition);
}

.service-card:hover,
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--gray-light);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
}

.icon-box svg {
  width: 28px;
  stroke: var(--navy);
  stroke-width: 1.8;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: start;
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* FOOTER */

.footer {
  background: var(--navy);
  color: white;
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ANIMATIONS */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contenedor del botón flotante */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  /* Verde oficial de WhatsApp */
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;

  /* Aplicar la animación de palpitación */
  animation: pulse-whatsapp 3s infinite;
}

/* Efecto Hover para que se vea más elegante */
.whatsapp-float:hover {
  background-color: #128c7e;
  /* Un verde más oscuro al pasar el mouse */
  transform: scale(1.1);
  box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.5);
}

/* Definición de la animación palpitante */
@keyframes pulse-whatsapp {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  20% {
    transform: scale(1.1);
    /* "Latido" hacia afuera */
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  40% {
    transform: scale(1);
    /* Regresa a su tamaño original */
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    /* Pausa antes del siguiente latido */
  }
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--border);

    max-height: 0;
    overflow: hidden;

    transition: max-height 0.4s ease;
  }

  .nav.active {
    max-height: 400px;
  }

  .nav-links {
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
  }

  .menu-toggle {
    display: block;
  }

  .desktop-btn {
    display: none;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .btn-primary-pr {
    padding: 0.19rem 2.5rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}

/* 4K */

@media (min-width: 1800px) {
  .container {
    width: min(1500px, calc(100% - 4rem));
  }

  body {
    font-size: 18px;
  }
}