/* Tipografías Poppins */
.poppins-thin { font-family: "Poppins", sans-serif; font-weight: 100; font-style: normal; }
.poppins-extralight { font-family: "Poppins", sans-serif; font-weight: 200; font-style: normal; }
.poppins-light { font-family: "Poppins", sans-serif; font-weight: 300; font-style: normal; }
.poppins-regular { font-family: "Poppins", sans-serif; font-weight: 400; font-style: normal; }
.poppins-medium { font-family: "Poppins", sans-serif; font-weight: 500; font-style: normal; }
.poppins-semibold { font-family: "Poppins", sans-serif; font-weight: 600; font-style: normal; }
.poppins-bold { font-family: "Poppins", sans-serif; font-weight: 700; font-style: normal; }
.poppins-extrabold { font-family: "Poppins", sans-serif; font-weight: 800; font-style: normal; }
.poppins-black { font-family: "Poppins", sans-serif; font-weight: 900; font-style: normal; }

.poppins-thin-italic { font-family: "Poppins", sans-serif; font-weight: 100; font-style: italic; }
.poppins-extralight-italic { font-family: "Poppins", sans-serif; font-weight: 200; font-style: italic; }
.poppins-light-italic { font-family: "Poppins", sans-serif; font-weight: 300; font-style: italic; }
.poppins-regular-italic { font-family: "Poppins", sans-serif; font-weight: 400; font-style: italic; }
.poppins-medium-italic { font-family: "Poppins", sans-serif; font-weight: 500; font-style: italic; }
.poppins-semibold-italic { font-family: "Poppins", sans-serif; font-weight: 600; font-style: italic; }
.poppins-bold-italic { font-family: "Poppins", sans-serif; font-weight: 700; font-style: italic; }
.poppins-extrabold-italic { font-family: "Poppins", sans-serif; font-weight: 800; font-style: italic; }
.poppins-black-italic { font-family: "Poppins", sans-serif; font-weight: 900; font-style: italic; }

/* Canvas */
canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  background: transparent;
}

/* Global */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #000 url('/img/futuristic-bg.webp') no-repeat center center;
  background-size: cover;
  background-size: 400% 400%;
  color: white;
  font-family: 'Poppins', sans-serif;
}

/* Links */
a {
  text-decoration: none;
}
p a {
  color: #ccddffeb;
}
p a:hover {
  color: white;
  text-decoration: none;
}

/* Botón primario */
.btn-primary {
  background: #1062fe;
  border: none;
  padding: 16px 28px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;

  display: inline-flex;       /* convierte el botón en flex container */
  align-items: center;        /* centra ícono y texto verticalmente */
  justify-content: center;    /* centra horizontal */
  gap: 8px;                   /* espacio entre ícono y texto */
}

/* Ajustes del ícono dentro del botón */
.btn-primary svg,
.btn-primary i {
  width: 18px;
  height: 18px;
  display: block;
}

/* Logo */
.logo img {
  height: 40px;
}

/* Sección principal */
section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
  box-sizing: border-box;
}

/* Cuadrícula de servicios */
.services-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* móvil: 2 columnas */
  gap: 16px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* En móvil, la tercera caja (Asistencia / Soporte) va debajo ocupando todo el ancho */
.services-boxes > .service:nth-child(3) {
  grid-column: 1 / -1;
}

/* Servicio */
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(16, 98, 254, 0.1);
  color: #FFFFFF;
  padding: 1em;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.service img {
  display: block;
  margin: 0 auto 8px;
}

.service a {
  margin: 1em;
}
.icon-top {
  font-size: 1.8rem;
  line-height: 1;
}

.icon-top svg {
  width: 48px !important;
  height: 48px !important;
}

/* Hover para escritorio */
@media (hover: hover) {
  .service:hover {
    transform: scale(1.05);
    background-color: rgba(16, 98, 254, 0.2);
    border-color: #ccddffeb;
    color: #ccddffeb;
  }
}

/* Animación de fondo */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Escritorio (>= 992px aprox.) */
@media (min-width: 992px) {
  .services-boxes {
    grid-template-columns: repeat(3, 1fr); /* 3 alineadas */
    max-width: 960px; /* ajusta si quieres más ancho */
  }
  /* Volver a su posición normal en desktop */
  .services-boxes > .service:nth-child(3) {
    grid-column: auto;
  }
}

/* Animación en pantallas grandes */
@media (min-width: 769px) {
  html, body {
    animation: gradientFlow 15s ease infinite;
  }
}

/* Móvil */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem !important;
  }
  p {
    font-size: 1rem !important;
    padding: 0 1rem;
  }
  .btn-primary {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
  .logo img {
    height: 32px;
  }
  .hide-on-mobile {
    display: none !important;}
h1,h2 {
    font-size:16px!important;
    }
}
