body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  font-family: 'Proxima Nova Thin';
  color: #003366;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: url('../img/fondo.png');
  background-size: cover;          /* Abarca toda la pantalla */
  background-position: center;     /* Centrado */
  background-repeat: no-repeat;    /* Evita que se repita */
  background-attachment: fixed;  
}

main#contenedor {
  position: relative;
  height: calc(100vh - 120px);
  overflow: hidden;
  background-size: cover;
}

.pantalla {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgb(17, 17, 17);
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  box-sizing: border-box;
  padding: 40px;
  overflow-y: auto;
}

.pantalla.visible {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.contenido {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  width: 70%;
  height: 70%;
  max-width: 1000px;
  text-align: justify;
  animation: slideInZoom 0.8s ease both;
  overflow-y: auto;
}

@keyframes slideInZoom {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.boton-flecha {
  position: fixed;
  right: 20px;
  width: 50px;
  height: 50px;
  font-size: 24px;
  background-color: #ff3333;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.boton-flecha:hover {
  transform: scale(1.2) rotate(10deg);
  background-color: #ff5555;
}

#btnArriba {
  top: 45%;
}

#btnAbajo {
  top: 55%;
}

/*--Hexagono--*/

.hex-btn {
  position: fixed;
  top: 80px;
  left: 20px;
  width: 220px;
  max-width: 90vw;
  height: 120px;
  background-color: #82e36f;
  color: rgb(14, 1, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  text-align: center;
  line-height: 1.2;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 1s ease;
  cursor: pointer;
  z-index: 999;
}


.hex-btn:hover {
  background-color: #ff5500;
  transform: scale(1.05);
}

.menu-flotante {
  position: absolute;
  top: 110px;
  left: 0;
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.9);
  border-radius: 10px;
  padding: 10px;
  z-index: 20;
}

.menu-flotante a {
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s;
}

.menu-flotante a:last-child {
  border-bottom: none;
}

.menu-flotante a:hover {
  background: rgba(255,255,255,0.1);
}

.hex-btn:hover {
  background-color: #ff5555;
  transform: scale(1.05);
}

.menu-flotante {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.95);
  border-radius: 10px;
  padding: 20px;
  z-index: 20;
  min-width: 200px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.menu-flotante a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s;
  text-align: center;
}

.menu-flotante a:last-child {
  border-bottom: none;
}

.menu-flotante a:hover {
  background: rgba(255,255,255,0.1);
}

.cerrar-menu {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.hex-menu {
  display: block;
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}

.hex-menu:hover {
  transform: scale(1.05);
}

.hex-menu.home {
  background-color: #444;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hex-menu.aqua { background-color: #4dd0e1; }
.hex-menu.red { background-color: #e53935; }
.hex-menu.blue { background-color: #64b5f6; }
.hex-menu.indigo { background-color: #5c6bc0; }
.hex-menu.aqua { background-color: #4dd0e1; }
.hex-menu.green { background-color: #66bb6a; }
.hex-menu.teal { background-color: #26a69a; }
.hex-menu.sky { background-color: #4fc3f7; }
.hex-menu.orange { background-color: #ffb300; color: #000; }
.hex-menu.purple { background-color: #8e24aa; }


.mensaje-flotante {
  position: fixed;
  bottom: 120px;
  right: 20px;
  background-color: #82e36f;
  color: rgb(14, 1, 1);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: aparecer 0.5s ease-out;
  max-width: 250px;
  line-height: 1.4;
}

.cerrar-x {
  position: absolute;
  top: 6px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}




/* Estilos para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
  .hex-btn {
    width: 220px;
    height: 120px;
    font-size: 14px;
    line-height: 1.2;
   
  }

  .contenido {
    width: 95%;
    padding: 20px;
    font-size: 16px;
    overflow-y: auto;
  }

  .menu-flotante {
    width: 90%;
    max-width: 320px;
    padding: 16px;
  }

  .hex-menu {
    font-size: 14px;
    padding: 12px 16px;
  }

  .hex-menu.home {
    font-size: 18px;
  }

  .cerrar-menu {
    top: 10px;
    right: 14px;
    font-size: 24px;
  }
}


@media screen and (max-width: 768px) {
  .hex-btn {
    font-size: 12px;
    padding: 10px;
    top: 50px;
    left: 10px;
    width: 180px;
  }
}

 @media screen and (max-width: 768px) {
    .bloque-desktop {
      display: none !important;
    }

    .bloque-movil {
      display: block;
      background-color: #f0f7fb;
      padding: 20px;
      border-radius: 20px;
      width: 90%;
      height: 80%;
      max-height: 80vh;
      margin: 20px auto;
      overflow-y: auto;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      margin-top: 130px;
    }

    .bloque-movil img {
      width: 80%;
      border-radius: 15px;
      margin-bottom: 20px;
    }

    .bloque-movil p {
      font-size: 16px;
      color: #003366;
      text-align: justify;
      margin-bottom: 15px;
    }
  }

  @media screen and (min-width: 769px) {
    .bloque-movil {
      display: none !important;
    }

    .bloque-desktop {
      display: block;
    }
  }

 