* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

html {
  background-color: #eef5fd;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;

  font-family: Arial, Helvetica, sans-serif;

  background-color: #eef5fd;
  background-image: url('../imagestmp/BACKGROUND_DESKTOP.jpeg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}


/* =========================================================
   CABECERA
   ========================================================= */

.site-header {
  position: relative;
  z-index: 20;
}


/* =========================================================
   REDES SOCIALES
   ========================================================= */

.social-container {
  position: fixed;
  top: 16px;
  right: 18px;

  display: flex;
  align-items: center;
  gap: 9px;

  z-index: 30;
}

.social-container a {
  display: inline-flex;
  line-height: 0;
  border-radius: 50%;
}

.small-logo {
  display: block;
  width: 30px;
  height: 30px;

  object-fit: contain;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.social-container a:hover .small-logo,
.social-container a:focus .small-logo {
  opacity: 0.76;
  transform: translateY(-2px);
}


/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */

.page-content {
  min-height: 100vh;
  min-height: 100svh;

  padding: 52.2vh 3.3% 24px;

  display: flex;
  align-items: flex-start;
  justify-content: center;
}


/* =========================================================
   BOTONES DE SERVICIOS
   ========================================================= */

.button-panel {
  width: 100%;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  gap: 1.05vw;
}

.service-button {
  display: block;

  width: calc((100% - 4.2vw) / 5);

  line-height: 0;
  text-decoration: none;
  outline-offset: 4px;
}

.service-button img {
  display: block;
  width: 100%;
  height: auto;
}

.service-button:focus-visible {
  outline: 3px solid #00549b;
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 1000px) {

  body {
    background-position: center center;
    background-size: cover;
  }

  .page-content {
    padding: 50vh 4% 24px;
  }

  .service-button {
    width: min(28vw, 260px);
  }
}


/* =========================================================
   CELULARES Y TABLETS PEQUEÑAS
   ========================================================= */

@media (max-width: 800px) {

  body {
    min-height: 100vh;
    min-height: 100svh;

    /*
      Usa la imagen adaptada específicamente para móviles.
    */
    background-image: url('../imagestmp/BACKGROUND_MOBILE.png');

    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
  }

  .social-container {
    position: absolute;

    top: 10px;
    right: 10px;

    gap: 5px;
  }

  .small-logo {
    width: 24px;
    height: 24px;
  }

  .page-content {
    min-height: 100vh;
    min-height: 100svh;

    /*
      La imagen móvil ya tiene el logo arriba,
      por eso dejamos espacio suficiente antes de los botones.
    */
    padding: 54vh 5% 30px;
  }

  .button-panel {
    gap: 12px;
  }

  .service-button {
    width: min(42vw, 300px);
  }
}


/* =========================================================
   CELULARES
   ========================================================= */

@media (max-width: 480px) {

  body {
    min-height: 100vh;
    min-height: 100svh;

    background-image: url('../imagestmp/BACKGROUND_MOBILE.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
  }

  .social-container {
    top: 6px;
    right: 6px;

    gap: 3px;
  }

  .small-logo {
    width: 18px;
    height: 18px;
  }

  .page-content {
    min-height: 100vh;
    min-height: 100svh;

    /*
      Ubica los botones debajo del encabezado/logo móvil.
    */
    padding: 56vh 8% 24px;
  }

  .button-panel {
    gap: 10px;
  }

  .service-button {
    width: min(100%, 330px);
  }
}


/* =========================================================
   CELULARES MUY PEQUEÑOS
   ========================================================= */

@media (max-width: 360px) {

  .small-logo {
    width: 16px;
    height: 16px;
  }

  .social-container {
    gap: 2px;
    right: 4px;
    top: 5px;
  }

  .page-content {
    padding-left: 6%;
    padding-right: 6%;
  }

  .service-button {
    width: 100%;
    max-width: 300px;
  }
}