* {
  font-family: "Allianze";
}

body {
  color: #464646;
  margin: 0; /* Elimina cualquier margen por defecto */
  padding: 0; /* Elimina cualquier padding por defecto */
}

header {
  position: relative;
  height: 7vh;
  background: #333;
  color: white;
  padding: 10px; /* Asegúrate de que el padding no cause espacios no deseados */
  margin: 0; /* Elimina cualquier margen adicional */
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('https://moncub.neocities.org/static/renfe/banner.png');
  background-size: cover;
  background-position: center;
}

main {
  margin: 0;
  background-color: #EFF3F6;
}
@media (max-width: 768px) {
  body {
    background-color: #EFF3F6;
  }
}

hr {
  width: 70%;
  margin-top: 5vh;
  margin-bottom: 5vh;
  border: 1px solid #DADADA;
}

button {
  cursor: pointer;
  font-weight: bold;
  border: 0 solid;
  font-size: 2vh;
  padding: 2vh 3vh;
  border-radius: 5px;
  background-color: #81005E;
  color: white;
  transition: background-color 0.3s ease, color 0.3s ease; /* Transición suave en el color de fondo y color de texto */
}

button:hover {
  background-color: #CE2B5D;
}

button#btnIfercub {
  background-color: #0BB182;
}

button:hover#btnIfercub {
  background-color: #34E3B2;
}

.banner {
  display: flex;
  justify-content: center;
  position: relative;
  height: 50vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  margin: 0;
  margin-bottom: 6vh;
  padding: 0;
}

.banner h1 {
  font-family: "Vialog LT" !important;
  font-weight: normal;
  font-size: 4vh;
  margin: 3vh;
  padding: 0;
}

div.menuOptions {
  margin: auto;
  width: 90%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2%;
}
@media (max-width: 768px) {
  div.menuOptions {
    width: 100%;
    align-content: center;
    flex-direction: column;
  }
}

div.optionPic {
  box-shadow: 0 0 20px 6px rgba(0, 0, 0, 0.07);
  width: 400px;
  display: flex;
  flex-direction: column;
  align-content: center;
  background-color: white;
  border-radius: 1vh;
  margin-bottom: 2%;
}
@media (max-width: 768px) {
  div.optionPic {
    width: 320px;
    margin-bottom: 15%;
  }
}

div.optionPic img {
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
@media (max-width: 768px) {
  div.optionPic img {
    width: 320px;
  }
}

div.optionPic h2 {
  padding: 10px;
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: -10px;
}

div.optionPic p {
  padding: 10px;
  margin-left: 5%;
  margin-right: 5%;
}

div.optionPic a {
  padding: 10px;
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 5%;
  text-align: right;
  text-decoration: none;
  color: #81005E;
  font-weight: bold;
}

div.linia {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: center;
}

div.linia p:nth-child(2) {
  margin-left: 1vh;
}

div.linia:hover p:nth-child(2), div.linia.active p:nth-child(2) {
  font-weight: bold;
}

div.linia:hover hr, div.linia.active hr { 
  border: 3px solid var(--hover-border-color);
}

hr.small {
  width: 100%;
  margin: 0;
  border: 0.5px solid #D8D8D8;
}

div.termo {
  display: flex;
  flex-direction: column;
  width: 100%;
}

div.termo div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: -5px 0;
}

div.termo div:nth-child(even) {
  background: linear-gradient(90deg, #EFF3F6 0%, #FFFFFF 10%, #FFFFFF 90%, #EFF3F6 100%);
}

div.termo div img:first-child {
  height: 16vh;
  width: 8vh;
}

div.termo div img:first-child.single {
  height: 8vh;
}

div.termo div p {
  font-weight: bold;
  font-size: 2.5vh;
  cursor: pointer;
}

@media (max-width: 768px) {
  div.termo div p {
      width: 75%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
}

div.termo div div {
  margin: 0;
  margin-top: -3vh;
  margin-left: 8%;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 1vh;
}

@media (max-width: 768px) {
  div.termo div div {
    margin-left: 20%;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.iconalinia {
  display: flex;
  height: 5vh;
  width: 5vh;
  color: white;
  justify-content: center;
  align-items: center;
  border-radius: 1vh;
}

img.iconalinia {
  height: 5vh !important;
  width: 5vh !important;
  border-radius: 1vh;
}

.paginaTermo {
  margin: auto;
  margin-top: 3%;
  display: flex;
  flex-direction: row;
  width: 70%;
  gap: 3%;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .paginaTermo {
    flex-direction: column;
  }
}

.paginaTermoDreta {
  width: 20%;
  background-color: white;
  border-radius: 1vh;
  padding: 5vh;
}

@media (max-width: 768px) {
  .paginaTermoDreta {
    width: auto;
    padding: 5vh;
    margin: 0;
    margin-bottom: 3vh;
    flex: 0;
  }
}

div.divSortida {
  display: flex;
  background-color: #F7F7F7;
  justify-items: normal;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  gap: 3vh;
  padding: 2vh;
  margin-bottom: 2vh;
}

div.divSortida b {
  margin-left: 2vh;
}

div.divSortida p {
  flex: 1;
}

div.divSortida span:last-child {
  margin-right: 2vh;
}

div.divSortida span:not(:last-child) {
  padding: 1vh;
  color: white;
  font-weight: bold;
}

div.miniDiv {
  width: 55%;
  margin: 10vh auto auto auto;
  background-color: white;
  padding: 5vh 15vh;
}

@media (max-width: 768px) {
  div.miniDiv {
    width: auto;
    margin: auto;
    background-color: white;
    padding: 5vh 5vh;
  }
}

div.miniDiv select {
  padding: 2.25vh;
  width: 40%;
  border-color: #767676;
  border-radius: 0.5vh;
  color: #767676;
  font-size: 1.75vh;
}

@media (max-width: 768px) {
  div.miniDiv select {
    width: 100%;
  }

  div.miniDiv a button {
    width: auto !important;
  }
}