* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #17233f;
  background: #ffffff;
  line-height: 1.5;
}

.contenedor {
  width: min(1180px, 90%);
  margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
  height: 82px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #edf1f7;
  background: rgba(255,255,255,.96);
}

.header-contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 260px;
  max-height: 65px;
  object-fit: contain;
}

.menu {
  display: flex;
  gap: 32px;
}

.menu a {
  text-decoration: none;
  color: #526078;
  font-weight: 600;
  font-size: 15px;
}

.menu a:hover {
  color: #2468e8;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 95px 0 115px;
  overflow: hidden;

  background:
    radial-gradient(circle at 85% 20%, #eaf4ff 0, transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.hero-contenido {
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  gap: 50px;
}

.etiqueta {
  display: inline-block;
  color: #2468e8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.03;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: #2468e8;
}

.hero-descripcion {
  max-width: 560px;
  font-size: 19px;
  color: #65718a;
  margin-bottom: 32px;
}

.hero-botones {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 14px 23px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 700;
  transition: .2s ease;
}

.btn-principal {
  background: #2468e8;
  color: white;
}

.btn-principal:hover {
  transform: translateY(-2px);
  background: #1959ca;
}

.btn-secundario {
  color: #2468e8;
  border: 1px solid #ccd9ef;
  background: white;
}

.btn-secundario:hover {
  border-color: #2468e8;
}

.beneficios-rapidos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #65718a;
  font-size: 14px;
}


/* =========================================================
   CAPTURAS HERO
   ========================================================= */

.hero-imagenes {
  position: relative;
  min-height: 470px;
}

.captura {
  position: absolute;
  display: block;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(22, 43, 82, .18);
  border: 1px solid #e0e6ef;
}

.captura-ventas {
  width: 96%;
  top: 0;
  right: 0;
  z-index: 1;
}

.captura-analisis {
  width: 78%;
  left: -12%;
  bottom: -45px;
  z-index: 2;
}


/* =========================================================
   POR QUÉ MERCATTO
   ========================================================= */

.porque {
  padding: 105px 0;
  background: #f7f9fc;
}

.titulo-seccion {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 55px;
}

.titulo-seccion h2 {
  font-size: 42px;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.titulo-seccion p {
  color: #6d788d;
  font-size: 18px;
}

.tarjetas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tarjeta {
  background: white;
  padding: 30px;
  border-radius: 14px;
  border: 1px solid #e8edf4;
  min-height: 205px;
  transition: .2s ease;
}

.tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(22, 43, 82, .08);
}

.icono {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #edf4ff;
  color: #2468e8;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.tarjeta h3 {
  font-size: 19px;
  margin-bottom: 9px;
}

.tarjeta p {
  color: #707b8e;
  font-size: 15px;
}


/* =========================================================
   FUNCIONES
   ========================================================= */

.funciones {
  padding: 105px 0;
  background: #ffffff;
}

.funcion-bloque {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  gap: 65px;

  padding: 65px 0;
  border-bottom: 1px solid #edf1f6;
}

.funcion-invertida {
  grid-template-columns: 60% 40%;
}

.funcion-invertida .funcion-imagen {
  order: 1;
}

.funcion-invertida .funcion-texto {
  order: 2;
}

.funcion-numero {
  display: block;

  color: #2468e8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;

  margin-bottom: 12px;
}

.funcion-texto h3 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.7px;
  margin-bottom: 18px;
}

.funcion-texto p {
  color: #6d788d;
  font-size: 17px;
  margin-bottom: 22px;
}

.funcion-texto ul {
  list-style: none;
}

.funcion-texto li {
  position: relative;

  padding-left: 24px;
  margin-bottom: 10px;

  color: #536078;
  font-size: 15px;
}

.funcion-texto li::before {
  content: "✓";

  position: absolute;
  left: 0;

  color: #2468e8;
  font-weight: bold;
}


/* IMÁGENES DE FUNCIONES */

.funcion-imagen img {
  display: block;
  width: 100%;

  border-radius: 12px;
  border: 1px solid #e0e6ef;

  box-shadow:
    0 22px 55px rgba(22, 43, 82, .14);
}


/* BLOQUE DE INFORMACIÓN */

.funcion-sin-imagen {
  display: block;
  border-bottom: none;
  padding-bottom: 10px;
}

.funcion-sin-imagen .funcion-texto {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.funcion-datos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;

  margin-top: 30px;
}

.funcion-datos span {
  padding: 11px 18px;

  background: #f1f6ff;
  border: 1px solid #dce8fa;
  border-radius: 30px;

  color: #3c557a;
  font-size: 14px;
  font-weight: 600;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contacto {
  padding: 75px 0;
  background: #2468e8;
  color: white;
}

.contacto-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.etiqueta-clara {
  color: #cfe0ff;
}

.contacto h2 {
  font-size: 38px;
  margin-bottom: 8px;
}

.contacto p {
  color: #dbe7ff;
  font-size: 17px;
}

.btn-whatsapp {
  background: white;
  color: #2468e8;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding: 28px 0;
  background: #14213d;
  color: #b8c2d6;
}

.footer-contenido {
  display: flex;
  justify-content: space-between;
}


/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */

.whatsapp-flotante {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 30px;

  background: #25d366;
  color: white;

  text-decoration: none;
  font-weight: 700;

  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);

  transition: .2s ease;
}

.whatsapp-flotante:hover {
  transform: translateY(-2px);
}

.whatsapp-icono {
  font-size: 20px;
}

.whatsapp-texto {
  font-size: 14px;
}


/* =========================================================
   TABLET / CELULAR
   ========================================================= */

@media (max-width: 850px) {

  .menu {
    display: none;
  }

  .hero {
    padding-top: 65px;
  }

  .hero-contenido {
    grid-template-columns: 1fr;
  }

  .hero-imagenes {
    min-height: 400px;
    margin-top: 25px;
  }

  .tarjetas {
    grid-template-columns: 1fr;
  }

  .contacto-contenido {
    flex-direction: column;
    align-items: flex-start;
  }


  /* FUNCIONES */

  .funcion-bloque,
  .funcion-invertida {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 45px 0;
  }

  .funcion-invertida .funcion-imagen,
  .funcion-invertida .funcion-texto {
    order: initial;
  }

  .funcion-texto h3 {
    font-size: 29px;
  }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 520px) {

  .hero h1 {
    font-size: 44px;
  }

  .hero-botones {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }


  /* CAPTURAS DEL HERO */

  .hero-imagenes {
    min-height: 310px;
  }

  .captura-ventas {
    width: 94%;
    right: 3%;
  }

  .captura-analisis {
    width: 82%;
    left: 3%;
    bottom: -20px;
  }


  .titulo-seccion h2 {
    font-size: 34px;
  }

  .contacto h2 {
    font-size: 32px;
  }

  .footer-contenido {
    flex-direction: column;
    gap: 5px;
  }


  /* WHATSAPP FLOTANTE */

  .whatsapp-flotante {
    width: 54px;
    height: 54px;

    right: 16px;
    bottom: 16px;

    padding: 0;
    justify-content: center;

    border-radius: 50%;
  }

  .whatsapp-texto {
    display: none;
  }

}