/* Fuentes de Google */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@100;400&family=Zen+Dots&display=swap');

/* Fuente personalizada generada en Font Squirrel */
@font-face {
  font-family: 'mi_comic';
  src: url('tipos/fuente1.woff2') format('woff2'),
    url('tipos/fuente1.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

/* ICONOS DE ICOMOON */
@font-face {
  font-family: 'iconos';
  src: url('tipos/icomoon.eot?t4ltvc');
  src: url('tipos/icomoon.eot?t4ltvc#iefix') format('embedded-opentype'),
    url('tipos/icomoon.ttf?t4ltvc') format('truetype'),
    url('tipos/icomoon.woff?t4ltvc') format('woff'),
    url('tipos/icomoon.svg?t4ltvc#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"],
[class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'iconos' !important;

  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-checkbox-checked:before {
  content: "\ea52";
}

.icon-whatsapp:before {
  content: "\ea93";
}

.icon-windows8:before {
  content: "\eac2";
}

.icon-firefox:before {
  content: "\eada";
  color: green;
}

.icon-html-five:before {
  content: "\eae4";
}

/* Estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 20px;
  font-family: 'Kanit', sans-serif;
}

h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-family: 'Zen Dots', cursive;
}

h2,
h3,
h4 {
  font-family: 'Zen Dots', cursive;
}

.contenedor {
  box-shadow: 0 0 10px darkgrey;
  width: 85%;
  margin: 0 auto;
  border-radius: .8rem;
  overflow: hidden;
}

.cabecera {
  background-color: darkcyan;
  text-align: center;
  color: aliceblue;
}
.cabecera h1, .cabecera h2{
  position: relative;
  z-index: 1;
  transition: all 0.5s;
  text-shadow: 3px 3px 0 darkslategrey;
}
.cabecera h1::after {
  font-family: iconos;
  content: "\eae4";
  font-size: 11rem;
  display: block;
  transition: all 0.5s cubic-bezier(0.43, -1.05, 0.51, 1.35);
  position: absolute;
  left:0;
  color: aliceblue;
  z-index: -1;
  top: 0;
  line-height: 9rem;
 
}
.cabecera:hover h1::after {
  left: calc(50% - 5.5rem);
  color: darkorange;

}
.cabecera:hover h1, .cabecera:hover h2 {
  text-shadow: 2px 2px 0 darkslategrey, 3px 3px 20px white;
}

.contenido h2 {
  font-size: 2.5rem;
  color: darkcyan;
  margin: 1rem 0;
  text-align: center;
}

/* MENÚ SUPERIOR */
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  height: 160px;
  border-top: 1px solid;
  margin-top: 2rem;
  background-color: lightcyan;
  box-shadow: 0px 1px 8px darkcyan;
}

.item-menu {
  width: 25%;
  list-style: none;
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 3px;
}

.item-menu span {
  border: 1px solid;
  height: 40px;
  transition: all .5s;
  background-color: darkorange;
  width: 100%;
  display: block;
}

.item-menu span:hover {
  background-color: lightblue;
  opacity: 1;
}

.submenu {
  display: none;
  position: absolute;
  width: 100%;
  top: 42px;
  left: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  text-transform: capitalize;
  font-size: 1rem;
  letter-spacing: normal;
}

.item-menu:hover .submenu {
  display: flex;
  /* height: 64px; */
}

.item-submenu {
  width: 20%;
  background-color: lightblue;
  border: 1px solid darkcyan;
  list-style: none;
  position: relative;
}

.item-submenu a {
  text-decoration: none;
  display: block;
  color: darkcyan;
  transition: all 0.5s;
}

.item-submenu a:hover {
  background-color: darkorange;
  color: white;
}

.submenu-2 {
  box-shadow: 0 0 8px lightcyan;
  display: none;
  position: absolute;
  bottom: -50%;
  left: 80%;
  background-color: lightcyan;
  width: 100%;
  z-index: 99;
  overflow: hidden;
  border-radius: 0.3rem;
  opacity: 0.9;
  border: 1px solid darkcyan;
  font-size: 0.85rem;
}

.item-submenu:hover .submenu-2 {
  display: inherit;
}

/* CONTENIDO */
.enlaces li {
  font-size: 2.2rem;
  background-color: lightcyan;
  margin: 1rem;
  box-shadow: 1px 1px 2px darkcyan;
  list-style: none;
  border-radius: 6px;
  overflow: hidden;
  transition: all .5s;
}

.enlaces > li:hover {
  box-shadow: 1px 1px 4px inset gray;
  background-color: darkcyan;
}

.enlaces a {
  text-decoration: none;
  color: darkcyan;
  font-weight: 100;
  letter-spacing: -1px;
  padding: 0.5rem 2rem;
  display: block;
  transition: all 0.5s;
}
.enlaces li:hover .subapuntes {
  height: 200px;
}
.enlaces li:hover a {
  color: white;
}

.enlaces a::before {
  font-family: iconos;
  content: "\eae4";
  font-size: 1.5rem;
  margin-right: 1rem;
  display: inline-block;
  transition: all 0.5s;
}

.enlaces a:hover::before {
  color: white;
  transform: rotate(90deg);
}
.subapuntes {
  border-top: 1px solid white;
  background-color: darkorange;
  height: 0;
  transition: all 0.5s 0.5s;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
.subapuntes li {
  border: none;
  margin: 0 2rem;
  font-size: 1.5rem;
  box-shadow: none;
  background-color: transparent;
}

.subapuntes li:hover {
  box-shadow: none;
}

.enlaces li:hover .subapuntes a {
  color: white;
}

.subapuntes a::before {
  content: "\ea52";
  font-size: 1rem;

}

.subapuntes a:hover::before {
  transform: rotate(0) scale(1.3);
}