/* DEFINICION VARIABLES */
:root {
  --color-background: #ffffff;
  --color-principal: #bf282e;

  --color-navhober: #fce1e0;
  --color-niveleshover: #d18888;

  --color-icons: #b5b6b7;
}

/* ESTILOS GENERALES */
@font-face {
  font-family: "cambria";
  src: url("../fonts/cambria/cambria.ttf") format("truetype");
}
@font-face {
  font-family: "cambriabold";
  src: url("../fonts/cambria/cambria_bold.ttf") format("truetype");
}
@font-face {
  font-family: "verdana";
  src: url("../fonts/verdana/verdana_4.ttf") format("truetype");
}
@font-face {
  font-family: "verdanabold";
  src: url("../fonts/verdana/verdana_bold_3.ttf") format("truetype");
}

@font-face {
  font-family: "calibri";
  src: url("../fonts/calibri/calibri.ttf") format("truetype");
}

.menu-toggle {
  display: none;
}
.barra-logo {
  display: none;
}
body {
  width: 100%;
  height: 100%;
  border: 0px solid black;
  margin-left: auto;
  margin-right: auto;
}
/* Este es el contenedor fijo del logo y el nav, que va en la capa primera o superior */
#baselogo {
  width: 16%;
  height: 15%;
  border: 0px solid blue;
  margin-left: 1%;
  position: fixed;
  z-index: 100;
}
/* imagen del logo */
#logo {
  width: 100%;
  max-width: 100%; /* Garantiza que no se hará más grande que el contenedor */
  max-height: 100%; /* Garantiza que no se hará más grande que el contenedor */
  object-fit: contain; /* Ajusta la imagen manteniendo su relación de aspecto */
  border: 0px solid black;
}

/* contenedor del navegador */

.navegador {
  position: fixed;
  width: 10rem;
  height: 27rem;
  border: 0px solid blue;
  background-color: var(--color-background);
  margin-top: 7rem;
  margin-left: 1rem;
  display: flex;
  align-items: left;
  justify-content: space-evenly;
  flex-direction: column;
  transition: all 300ms ease-in-out;
  z-index: 90;
}

.menu {
  width: 10rem;
  height: 1.3rem;
  text-align: left;
  font-family: "cambriabold";
}
.menu:hover {
  background-color: #f18a8a;
  color: var(--color-background);
}
.menu-sub {
  width: 8rem;
  height: 1.3rem;
  margin-left: 4rem;
  text-align: left;
  font-family: "cambriabold";
}
.menu-sub:hover {
  background-color: #f18a8a;
}
.menu__icon {
  display: none;
  color: var(--color-principal);
  font-size: 1.5rem;
}
.menu__link {
  text-decoration: none;
}
#titulonav {
  color: var(--color-principal);
  font-size: 1.3rem;
}
#titulonav2 {
  font-size: 1.1rem;
  color: var(--color-principal);
}
#titulonav:hover,
#titulonav2:hover {
  color: var(--color-background);
}

.navegador--visible {
  width: 100%;
  margin-right: 0;
  opacity: 1;
}
.navegador--hidden {
  margin-right: -100%;
  opacity: 0;
}

/* Footer que contiene: politicas, redes sociales y contacto */
footer {
  width: 100%;
  height: 20rem;
  border: 0px solid black;
  background-color: var(--color-principal);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: row;
}
/* políticas */
#politicas {
  width: 20%;
  height: 65%;
  border: 0px solid white;
  margin-left: 1rem;
}
#avisolegal,
#privacidad,
#cookies,
#condiciones {
  font-family: "calibri";
  color: white;
  font-size: 1.2rem;
  text-decoration-line: none;
}
a {
  text-decoration: none;
}

/* redes sociales */
.redessociales {
  width: 40%;
  height: 60%;
  border: 0px solid white;
  margin-left: 13%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}
/* Efectos y condiciones de las redes sociales */
.wrapper {
  width: 90%;
  height: 70%;
  border: 0px solid blue;
  display: inline-flex;
  list-style: none;
}

.icon {
  position: relative;
  width: 9%;
  height: 30%;
  font-size: 3.2rem;
  border: 0px solid yellow;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  cursor: pointer;
  margin: 4% 5% 0 5%;
  padding-top: 1%;
}

.facebook:hover {
  color: #3b5998;
  background: #ffffff;
}

.instagram:hover {
  background: #fd1d1d;
  color: #ffffff;
}

.linkedin:hover {
  background: #0e76a8;
  color: #ffffff;
}

.telegram:hover {
  background: #ffffff;
  color: #0088cc;
}
.copy {
  width: 70%;
  color: yellow;
  border: 0px solid white;
  margin-left: 12%;
}
/* Contacto */
#contacto {
  width: 25%;
  height: 75%;
  border: 0px solid yellow;
  margin-left: 6%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#titulocontacto {
  font-size: 1.1rem;
}

#telefono {
  width: 73%;
  height: 95%;
  border: 0px solid blue;
  font-family: "calibri";
  font-size: 1.2rem;
  color: white;
  margin-top: 2%;
}

/* PARA DISPOSITIVOS CON RESOLUCION HASTA 1024PX DE ANCHO  */
@media screen and (max-width: 1024px) {
  /* Este es el contenedor fijo del logo y el nav, que va en la capa primera o superior */
  #baselogo {
    width: 20%;
    height: 18%;
  }
  /* imagen del logo */
  #logo {
    width: 100%;
    max-width: 100%; /* Garantiza que no se hará más grande que el contenedor */
    max-height: 100%; /* Garantiza que no se hará más grande que el contenedor */
    object-fit: contain; /* Ajusta la imagen manteniendo su relación de aspecto */
    border: 0px solid black;
  }

  /* contenedor del navegador */

  .navegador {
    position: fixed;
    width: 10rem;
    height: 27rem;
  }

  .menu {
    width: 10rem;
    height: 1.3rem;
    text-align: left;
    font-family: "cambriabold";
  }
  .menu:hover {
    background-color: #f18a8a;
    color: var(--color-background);
  }
  .menu-sub {
    width: calc(100 - 4rem);
    height: 1.3rem;
    margin-left: 4rem;
    text-align: left;
    font-family: "cambriabold";
  }
  .menu-sub:hover {
    background-color: #f18a8a;
  }
  .menu__icon {
    display: none;
    color: var(--color-principal);
    font-size: 1.5rem;
  }
  .menu__link {
    text-decoration: none;
  }
  #titulonav {
    color: var(--color-principal);
    font-size: 1.2rem;
  }
  #titulonav2 {
    font-size: 1rem;
    color: var(--color-principal);
  }
  #titulonav:hover,
  #titulonav2:hover {
    color: var(--color-background);
  }

  .navegador--visible {
    width: 100%;
    opacity: 1;
  }
  .navegador--hidden {
    opacity: 0;
  }

  /* Footer que contiene: politicas, redes sociales y contacto */
  footer {
    height: 17rem;
  }
  /* políticas */
  #politicas {
    width: 27%;
    height: 65%;
  }
  #avisolegal,
  #privacidad,
  #cookies,
  #condiciones {
    font-size: 1rem;
  }

  /* redes sociales */
  .redessociales {
    width: 60%;
    height: 70%;
    margin-left: 1%;
  }
  /* Efectos y condiciones de las redes sociales */
  .wrapper {
    width: 90%;
    height: 70%;
  }

  .icon {
    width: 17%;
    height: 33%;
    font-size: 3.1rem;
    border-radius: 45%;
    margin: 4% 9% 0 5%;
    padding-top: 1%;
  }

  .copy {
    width: 95%;
    margin-left: 12%;
  }
  /* Contacto */
  #contacto {
    width: 35%;
    height: 75%;
    margin-left: 0;
  }
  #titulocontacto {
    font-size: 1.1rem;
  }

  #telefono {
    width: 85%;
    height: 95%;
    font-size: 1rem;
    margin-top: 2%;
  }
}

/* PARA DISPOSITIVOS CON RESOLUCION HASTA 768PX DE ANCHO  */
@media screen and (max-width: 768px) {
  /* Contenedor fijo del logo y el nav */
  .menu-toggle {
    display: block;
    position: fixed;
    right: 1.3rem;
    margin-top: 0.5rem;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    font-size: 1.1rem;
    text-align: center;
    background-color: var(--color-principal);
    color: var(--color-background);
    border-radius: 2.5rem;
    cursor: pointer;
    transition: all 500ms ease-in-out;
    z-index: 100;
  }

  .menu-toggle__icon {
    color: var(--color-background);
    display: block;
    position: absolute;
    top: 25%;
    left: 27%;
  }
  .fa-bars {
    opacity: 1;
  }
  .fa-xmark {
    opacity: 0;
  }

  /* Barra superior para que se esconda el resto de la pagina,se verá el logo y el icono del menu hamburguesa */
  .barra-logo {
    display: block;
    position: fixed;
    background: var(--color-background);
    width: 100%;
    height: 5rem;
    margin-top: -1rem;
    z-index: 90;
    opacity: 1;
  }
  /* Contenedor fijo del logo  */
  #baselogo {
    width: 20%;
    height: 18%;
    z-index: 100;
  }
  /* contenedor del navegador */

  .navegador {
    position: fixed;
    inset: 0 0 0 0; /* en pruebas */
    width: 100%;
    height: 90vh;
    margin-top: 5rem;
    margin-left: 0;
    display: flex;
    align-items: left;
    justify-content: space-evenly;
    flex-direction: column;
    transition: all 300ms ease-in-out;
    z-index: -1;
  }

  .menu {
    width: 12rem;
    height: 1.7rem;
    margin-left: 30%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    font-family: "cambriabold";
  }
  .menu:hover {
    background-color: #f18a8a;
    color: var(--color-background);
  }
  .menu-sub {
    width: 8rem;
    height: 1.3rem;
    margin-left: 45%;
    text-align: left;
    font-family: "cambriabold";
  }
  .menu-sub:hover {
    background-color: #f18a8a;
  }
  .menu__content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .menu__icon {
    width: 1.7rem;
    display: block;
    color: var(--color-principal);
    font-size: 1.5rem;
    margin-right: 0.5rem;
  }
  .menu__link {
    text-decoration: none;
  }
  #titulonav {
    color: var(--color-principal);
    font-size: 1.2rem;
  }
  #titulonav2 {
    font-size: 1rem;
    color: var(--color-principal);
  }
  #titulonav:hover,
  #titulonav2:hover {
    color: var(--color-background);
  }

  .navegador--visible {
    width: 100%;
  }
  .navegador--hidden {
    width: 0%;
  }
  /* Footer que contiene: politicas, redes sociales y contacto */
  footer {
    width: 100%;
    height: 14rem;
    margin-top: -3rem;
  }
  /* políticas */
  #politicas {
    width: 40%;
    height: 75%;
    margin-left: 1%;
  }
  #avisolegal,
  #privacidad,
  #cookies,
  #condiciones {
    font-size: 0.7rem;
  }

  /* redes sociales */
  .redessociales {
    width: 80%;
    height: 45%;
    margin-left: 3%;
    margin-top: 1%;
  }
  /* Efectos y condiciones de las redes sociales */
  .wrapper {
    width: 85%;
    height: 70%;
    display: inline-flex;
    list-style: none;
  }

  .icon {
    width: 10%;
    height: 40%;
    font-size: 1.7rem;
    border-radius: 45%;
    margin: 4% 5% 0 5%;
    padding-top: 1%;
  }
  .copy {
    width: 75%;
    font-size: 0.6rem;
    margin-left: 0.1%;
  }

  /* Contacto */
  #contacto {
    width: 60%;
    height: 85%;
    margin-left: 3%;
  }
  #titulocontacto {
    font-size: 0.8rem;
  }

  #telefono {
    width: 73%;
    height: 95%;
    font-size: 0.8rem;
    margin-top: 2%;
  }
}

/* PARA DISPOSITIVOS  MOVILES CON RESOLUCION HASTA  480PX DE ANCHO  */

@media screen and (max-width: 480px) {
  /* Barra del logo en @media de movil */
  .barra-logo {
    height: 4.5rem;
    margin-top: -1rem;
  }
  /* Contenedor fijo del logo y el nav */
  #baselogo {
    width: 28%;
    height: 20%;
    margin-left: 1%;
  }

  /* contenedor del navegador */

  .navegador {
    margin-left: 0.1rem;
  }

  /* Footer que contiene: politicas, redes sociales y contacto */
  footer {
    width: 100%;
    height: 17rem;
  }
  /* políticas */
  #politicas {
    width: 50%;
    height: 85%;
    margin-left: 1%;
  }
  #avisolegal,
  #privacidad,
  #cookies,
  #condiciones {
    font-size: 0.5rem;
  }

  /* redes sociales */
  .redessociales {
    width: 75%;
    height: 25%;
    margin-left: 9%;
    margin-top: 0;
  }
  /* Efectos y condiciones de las redes sociales */
  .wrapper {
    width: 95%;
    height: 50%;
    display: inline-flex;
    list-style: none;
    padding-right: 0;
  }

  .icon {
    width: 23%;
    height: 50%;
    font-size: 1.2rem;
    border-radius: 45%;
    margin: 4% 5% 0 5%;
    padding-top: 1%;
  }
  .copy {
    width: 90%;
    font-size: 0.4rem;
    margin-left: 1%;
  }

  /* Contacto */
  #contacto {
    width: 75%;
    height: 75%;
    margin-left: 5%;
  }
  #titulocontacto {
    font-size: 0.6rem;
  }

  #telefono {
    width: 73%;
    height: 95%;
    font-size: 0.6rem;
    margin-top: 2%;
  }
}
