@font-face {
  font-family: 't';
  src: url('https://francocitera.com/t.woff2') format('woff2'),
       url('https://francocitera.com/t.woff') format('woff'),
       url('https://francocitera.com/t.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: fixed;
}

body.modo-dia {
  background-color: #ffffff;
}

body.modo-noche {
  background-color: #262626;
}

.enlaces {
  min-height: 100vh;
  width: 100%;
  position: relative;
  padding: 10px;
}

.enlaces main {
  position: relative;
  width: 100%;
  height: 100%;
}

.logos {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.logos a,
.logos img.c-aleatorio {
  position: absolute;
  display: block;
  transition: transform 0.2s ease;
}

.logos a:nth-child(1) { top: 60%; left: 10%; transform: rotate(8deg); }
.logos a:nth-child(2) { top: 25%; right: 20%; transform: rotate(8deg); }
.logos a:nth-child(3) { bottom: 60%; left: 20%; transform: rotate(-8deg); }
.logos a:nth-child(4) { top: 40%; right: 10%; transform: rotate(-8deg); }
.logos a:nth-child(5) { bottom: 15%; left: 40%; transform: rotate(-8deg); }
.logos a:nth-child(6) { top: 10%; right: 15%; transform: rotate(8deg); }
.logos a:nth-child(7) { bottom: 10%; right: 10%; transform: rotate(-8deg); }
.logos img.c-aleatorio { top: 10%; left: 15%; transform: rotate(-8deg); }

.logos a img {
  max-width: 69px;
  width: 100%;
  height: auto;
  vertical-align: middle;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.2s ease;
}

.logos img.c-aleatorio {
  max-width: 69px;
  width: 100%;
  height: auto;
  vertical-align: middle;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.2s ease;
  cursor: pointer;
}

.imagenes-cargando .logos a img,
.imagenes-cargando .logos img.c-aleatorio {
  opacity: 0;
  visibility: hidden;
}

.imagenes-cargadas .logos a img,
.imagenes-cargadas .logos img.c-aleatorio {
  opacity: 1;
  visibility: visible;
}

.logos a:hover img {
  transform: scale(1.1);
}

.logos img.c-aleatorio:hover {
  transform: scale(1.1) rotate(-8deg);
}

.logos img.c-aleatorio:active {
  transform: scale(1.05) rotate(-8deg);
}

.nombre {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 't', sans-serif;
  font-size: 48px;
  text-align: center;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  z-index: 10;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.modo-dia .nombre {
  color: #4d4d4d;
}

.modo-noche .nombre {
  color: #cbcbcb;
}

.cargando-fuentes .nombre {
  opacity: 0;
  visibility: hidden;
}

.fuentes-cargadas .nombre {
  opacity: 1;
  visibility: visible;
}

.nombre::selection {
  background: transparent;
}

.nombre span {
  display: inline-block;
  position: relative;
}

.nombre span:nth-child(1) { top: -2px; left: -3px; transform: rotate(-2deg); }
.nombre span:nth-child(2) { top: 1px; left: -1px; transform: rotate(1deg); }
.nombre span:nth-child(3) { top: -1px; left: 2px; transform: rotate(-3deg); }
.nombre span:nth-child(4) { top: 2px; left: 0; transform: rotate(2deg); }
.nombre span:nth-child(5) { top: -1px; left: 1px; transform: rotate(-1deg); }
.nombre span:nth-child(6) { top: 1px; left: 3px; transform: rotate(3deg); }
.nombre span:nth-child(7) { top: -2px; left: 10px; transform: rotate(-2deg); }
.nombre span:nth-child(8) { top: 1px; left: 11px; transform: rotate(1deg); }
.nombre span:nth-child(9) { top: -1px; left: 12px; transform: rotate(-3deg); }
.nombre span:nth-child(10) { top: 2px; left: 13px; transform: rotate(2deg); }
.nombre span:nth-child(11) { top: -1px; left: 14px; transform: rotate(-1deg); }
.nombre span:nth-child(12) { top: 1px; left: 15px; transform: rotate(3deg); }

.movil {
  display: none;
}

@media only screen and (max-width: 768px) {
  .escritorio {
    display: none;
  }

  .movil {
    display: block;
    text-align: center;
    padding: 0;
  }

  .enlaces {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    overflow: hidden;
    padding: 5px;
  }

  .enlaces ul {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .enlaces ul li {
    list-style: none;
    margin-bottom: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .enlaces ul li a,
  .enlaces ul li img.c-aleatorio {
    margin: 0;
  }

  .enlaces ul li a img,
  .enlaces ul li img.c-aleatorio {
    max-width: 67px;
    height: auto;
    opacity: 1;
    visibility: visible;
    transition: none;
    pointer-events: auto;
  }

  .imagenes-cargando .enlaces ul li a img,
  .imagenes-cargando .enlaces ul li img.c-aleatorio {
    opacity: 1;
    visibility: visible;
  }

  .imagenes-cargadas .enlaces ul li a img,
  .imagenes-cargadas .enlaces ul li img.c-aleatorio {
    opacity: 1;
    visibility: visible;
  }

  .enlaces ul li a:hover img,
  .enlaces ul li img.c-aleatorio:hover {
    transform: none;
  }

  .enlaces ul li img.c-aleatorio {
    position: relative;
    top: -2px;
  }

  .apple {
    position: relative;
    bottom: 5px;
  }
}

.safari-ios .enlaces main {
  margin-bottom: 62px !important;
}

@media (prefers-reduced-motion: reduce) {
  .logos a,
  .logos img.c-aleatorio,
  .logos a img,
  .logos img.c-aleatorio {
    transition: none;
  }
}