/*Fuentes*/
@font-face {
  font-family: "TrebuchetMS";
  src: url("fonts/TrebuchetMS.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "BebasNeue";
  src: url("fonts/BebasNeue.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "WebSymbolsRegular";
  src: url("fonts/websymbols-regular-webfont.eot");
  src: url("fonts/websymbols-regular-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("fonts/websymbols-regular-webfont.woff") format("woff"),
    url("fonts/websymbols-regular-webfont.ttf") format("truetype"),
    url("fonts/websymbols-regular-webfont.svg#WebSymbolsRegular") format("svg");
  font-weight: normal;
  font-style: normal;
}

/*Estilos generales*/
* {
  margin: 0;
  padding: 0;
  font-family: "TrebuchetMS";
}

body {
  background-image: url(../images/pattern.png);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "BebasNeue";
}

.enlace {
  text-decoration: none;
  color: #2f86a6;
}

.enlace:hover {
  text-decoration: underline !important;
}

.icon {
  font-family: "WebSymbolsRegular";
}

.clearfix {
  clear: both;
  float: none;
}

/*Cabecera*/
#header {
  display: flex;
  position: sticky;
  height: 75px;
  width: 100%;
  align-items: center;
  justify-content: space-around;
  background-color: #2fdd92;
  box-shadow: 0 2px 6px #ccc;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  background-color: #2f86a6;
  border: none;
  margin: 3px;
  padding: 3px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  text-shadow: 0 1px 1px #ccc;
  transition: 500ms, transform 1000ms;
  -webkit-transition: 500ms, transform 1000ms;
  -moz-transition: 500ms, transform 1000ms;
  -ms-transition: 500ms, transform 1000ms;
  -o-transition: 500ms, transform 1000ms;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  background-color: #34be82;
}

/*banner en la cabecera*/
#header {
  position: sticky;
  z-index: 1;
  top: 0px;
}

#header #banner {
  display: flex;
  align-items: center;
  font-family: "BebasNeue";
  font-size: 50px;
  letter-spacing: 3px;
  text-decoration: none;
  color: black;
}

#header #banner img {
  height: 60px;
  width: auto;
}

/*menú principal en la capecera*/
#header #nav-principal ul li {
  font-size: 24px;
  display: inline-block;
  margin: 0px 20px 0px 20px;
  letter-spacing: 1px;
  line-height: 70px;
}

#header #nav-principal > nav {
  display: none;
}

#header #nav-principal ul li a {
  display: block;
  color: #2f86a6;
  text-decoration: none;
  transform: all 200ms;
  -webkit-transform: all 200ms;
  -moz-transform: all 200ms;
  -ms-transform: all 200ms;
  -o-transform: all 200ms;
}

#header #nav-principal ul li a:hover {
  color: #2f86a6;
  transform: scale(1.2, 1.2);
  -webkit-transform: scale(1.2, 1.2);
  -moz-transform: scale(1.2, 1.2);
  -ms-transform: scale(1.2, 1.2);
  -o-transform: scale(1.2, 1.2);
}

/*Slider*/
#slider {
  display: flex;
  width: 100%;
  height: calc(100vh - 75px);
  flex-direction: column;
  gap: 100px;
  justify-content: center;
  align-items: center;
  background: url(../images/fondoSlider.jpg);
  background-size: cover;
}

#slider h1 {
  color: #34be82;
  font-size: 60px;
  letter-spacing: 3px;
  text-shadow: 0 1px 1px #ccc;
}

#slider button {
  font-size: 60px;
  border-radius: 40px;
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  -ms-border-radius: 40px;
  -o-border-radius: 40px;
  padding-left: 30px;
  padding-right: 30px;
  box-shadow: 3px 3px 3px black;
}

#slider button:hover {
  transform: scale(1.2, 1.2);
  -webkit-transform: scale(1.2, 1.2);
  -moz-transform: scale(1.2, 1.2);
  -ms-transform: scale(1.2, 1.2);
  -o-transform: scale(1.2, 1.2);
}

/*MINE - CONTENIDO PRINCIPAL*/
main {
  display: flex;
  min-height: calc(100vh - 470px - 75px);
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

main > div {
  width: 60%;
}

main > div:first-child {
  margin-top: 30px;
}

#cards {
  display: flex;
  column-gap: 50px;
  justify-content: center;
}

#cards .card {
  width: 205px;
  height: 305px;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 2px #ddd;
  background: white;
  overflow: hidden;
  margin-top: 40px;
  padding: 5px;
  flex-shrink: 0;
  cursor: pointer;
}

#cards .card:last-child {
  margin-right: 0px;
}

#cards .card .icon {
  display: block;
  width: 100%;
  height: 130px;
  font-size: 50px;
  line-height: 110px;
  text-align: center;
  margin: 0px auto;
}

#cards .card .category {
  width: 100%;
  height: 50px;
  font-family: "TrebuchetMS";
  font-size: 21px;
  font-weight: bold;
  text-align: center;
  color: #00538c;
}

#cards .card .description {
  font-family: "TrebuchetMS";
  text-align: center;
  color: #0370b9;
  font-size: 15px;
}

main .section {
  height: auto;
  border: 1px solid #ccc;
  margin: 40px auto;
  padding: 10px;
  font-family: "TrebuchetMS";
  background: white;
  color: black;
  box-shadow: 1px 1px 2px #ddd;
}

main .recomendados {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 20px 1fr;
  gap: 20px;
}

main .recomendados img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

main .recomendados > h2 {
  grid-row: 1 / 2;
  grid-column: 1 / 5;
}

main .recomendados .article {
  display: flex;
  flex-direction: column;
  grid-row: 2 / 3;
}

main .resenas {
  display: flex;
  margin: 30px;
  flex-direction: column;
  gap: 20px;
}

main .resenas .resena {
  padding: 10px;
  border: 1px solid #ccc;
  box-shadow: 1px 1px 2px #ddd;
}

main .resenas .resena > a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

main .resenas .resena > a > img:first-child {
  width: 50px;
  height: 50px;
  border: 1px solid #ccc;
  border-radius: 50% 50% 50% 50%;
  -webkit-border-radius: 50% 50% 50% 50%;
  -moz-border-radius: 50% 50% 50% 50%;
  -ms-border-radius: 50% 50% 50% 50%;
  -o-border-radius: 50% 50% 50% 50%;
}

main > .content {
  min-height: calc(100vh - 470px - 75px - 33px - 44px - 15px);
}

/*FOOTER*/
#footer {
  width: 100%;
  min-height: 470px;
  background-color: #2fdd92;
  color: white;
  overflow: hidden;
}

#footer .wrap {
  display: flex;
  justify-content: center;
}

#footer .wrap > div {
  display: flex;
  width: 320px;
  height: 370px;
  margin: 40px;
  text-align: center;
  color: white;
  font-family: "TrebuchetMS";
  flex-direction: column;
  gap: 10px;
}

#footer a {
  text-decoration: none;
  color: #2f86a6;
  transition: all 300ms;
}

#footer h5 {
  display: block;
  background: url("../img/pxgray.png"), white;
  height: 50px;
  letter-spacing: 2px;
  text-align: center;
  font-family: "BebasNeue";
  font-size: 40px;
  line-height: 55px;
  color: black;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  margin-bottom: 15px;
}

#footer ul {
  text-align: left;
  margin: 20px;
  font-size: 25px;
}

#footer ul li {
    display: block;
  margin-top: 10px;
  padding: 5px;
  border-bottom: 1px solid #ccc;
}

#footer ul li a {
  display: block;
  height: 40px;
}

#footer ul li a:hover {
  text-decoration: underline;
}

#footer iframe {
  width: 100%;
  height: 300px;
  margin-top: 10px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  border: 5px solid white;
  box-shadow: 0px 0px 5px gray;
}

#footer img {
  margin-bottom: 15px;
}

#info {
  display: flex;
  flex-direction: column;
  row-gap: 5px;
}

#info p {
  text-align: left;
  padding-left: 20px;
}

#footer #follow {
  font-size: 40px;
  padding-bottom: 24px;
}

#follow {
  text-align: center !important;
}

#footer #follow img {
  width: 45px;
}

/*PAGINA PRODUCTOS*/
main .productos {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 40px repeat(10, 1fr);
  gap: 40px;
}

main .productos h1 {
  grid-column: 1 / 5;
}

main .productos .pr {
  grid-row: auto;
  grid-column: auto;
}

/*FORMULARIO*/
.mid-form {
  width: 50%;
  margin: 0px auto;
}

.mid-form label {
  display: block;
  float: left;
  text-align: left;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 17px;
}

input[type="text"],
textarea,
select {
  width: 100%;
  min-height: 30px;
  border: 1px solid #ccc;
  padding: 3px;
  margin-bottom: 5px;
  transition: 300ms all;
}

select {
  width: 101%;
  padding: 5px;
}

input[type="text"]:focus,
textarea:focus {
  box-shadow: 0px 0px 5px #eee inset;
}

textarea {
  width: 100%;
  height: 150px;
  min-width: 100%;
  max-width: 100%;
  min-height: 150px;
  max-height: 300px;
}

.mid-form p {
  margin-top: 5px;
  margin-bottom: 5px;
}

/*FICHA PRODUCTO*/
main > .producto {
  padding: 20px;
}

main > .producto img {
  height: 400px;
  width: auto;
  float: left;
}

main > .producto p {
  margin-top: 5px;
  margin-bottom: 10px;
}

/*Responsive*/
@media (max-width: 1292px) {
  #cards {
    flex-direction: column;
  }

  #cards .card {
    width: 100%;
  }
}

@media (max-width: 1030px) {
  #footer .wrap {
    flex-direction: column;
    align-items: center;
  }

  #footer .wrap > div {
    width: 70%;
  }
}

@media (max-width: 810px){
    main > .producto img {
        height: auto;
        width: 95%;
        float: none;
      }
}

@media (max-width: 690px) {
  main .recomendados {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 20px;
  }

  main .recomendados > h2,
  main .recomendados > h1 {
    grid-column: 1 / 3;
  }

  main .recomendados .article {
    grid-row: auto;
  }
}

@media (max-width: 648px) {
  #header #nav-principal > ul {
    display: none;
  }

  #header #nav-principal ul li{
      display: block;
  }

  #header #nav-principal > nav {
    display: block;
  }

  #nav-principal nav ul {
    display: none;
  }

  #nav-principal nav input:checked ~ ul {
    display: block;
    position: absolute;
    top: 79px;
    right: 0px;
  }

  #nav-principal nav input {
    display: none;
  }

  #nav-principal nav label {
    box-sizing: border-box;
    display: inline-block;
    border: 1px solid black;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-weight: bold;
    text-align: center;
    user-select: none;
  }

  #nav-principal nav li {
    display: block;
    background: #2FDD92;
    margin: 0;
    padding: 10px;
    list-style: none;
    border-bottom: 1px solid grey;
  }
}
