.contenedor-principal-home {
  display: block;
}
.contenedor-izquierda,
.contenedor-derecha {
  box-sizing: border-box;
  max-height: 700px;
  display: flex;
}
.contenedor-izquierda {
  justify-content: flex-start;
  position: relative;
}
.contenedor-izquierda img {
  max-width: 100%;
  height: auto;
  display: block;
}
.contenedor-derecha {
  width: 100%;
  justify-content: flex-end;
  margin-right: 0;
}
.textos-home {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  box-sizing: border-box;
  right: 0;
  bottom: 0;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  max-width: 100%;
}
.texto-principal-home {
  font-family:  "Bebas Neue", sans-serif;
  margin: 0;
  color: #fff;
  font-size: 140px;
  font-weight: 700;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  line-height: 1.1;
}
.color-menorca {
  color: #00bfba;
}
.texto-secundario-home {
  margin-top: 10px;
  margin-bottom: 0;
  color: #fff;
  font-size: 2em;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  line-height: 1.3;
}
.bases-list-section-home {
  margin: 0 auto auto;
  padding: 0 20px 20px;
  text-align: center;
}
.bases-list-section-home h2 {
  margin-bottom: 30px;
  font-size: 2.2em;
  font-family: "Bebas Neue", sans-serif;
}
.bases-list-home {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.bases-list-home li {
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 250px;
  width: 100%;
  box-sizing: border-box;
}
.bases-list-home li:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.bases-list-home li a.base-card-link-home {
  background-color: #00bfba;
  text-decoration: none;
  display: block;
  color: inherit;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.base-card-link-home .base-card-img-home {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.bases-list-home li a.base-card-link-home:hover .base-card-img-home {
  transform: scale(1.05);
}
.base-card-link-home .base-card-text-overlay-home {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 5px;
  background-color: rgba(0, 191, 186, 0.7);
  color: #fff;
  font-weight: 700;
  font-size: 30px;
  text-align: center;
  z-index: 1;
  transition: background-color 0.3s;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.bases-list-home li a.base-card-link-home:hover .base-card-text-overlay-home {
  background-color: #00bfba;
}
.marcas-list-section-home {
  text-align: center;
  padding: 40px 0;
  background-color: #ededed;
}
.marcas-list-section-home h2 {
  font-size: 2em;
  margin: 0 10px;
}
.marcas-list-section-home p {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 30px;
}
.marcas-list-home {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-direction: row;
}
.marca-card-link-home {
  display: block;
  padding: 0 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.marca-logo-home {
  width: 75px;
  height: auto;
  object-fit: contain;
}
.error-message-box {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
  background-color: #e8c4c7;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px;
  text-align: center;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-message-box p {
  text-align: center;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 2.5rem;
  line-height: 1;
}
.alert-icon {
  margin-right: 10px;
  flex-shrink: 0;
}


@media (max-width: 767px) {
  .contenedor-izquierda,
  .contenedor-derecha {
    margin-left: 10px;
    margin-right: 10px;
    width: auto;
    flex: none;
    padding: 0;
    margin-bottom: 10px;
  }
  .contenedor-derecha {
    justify-content: center;
  }
  .contenedor-izquierda img {
    border-radius: 8px;
    display: block;
    height: 150px;
  }
  .textos-home {
    padding: 0 20px;
  }
  .texto-principal-home {
    margin-top: 0;
    font-size: 2.6em;
    line-height: 1.1;
    text-align: center;
  }
  .texto-secundario-home {
    font-size: 1em;
    margin-top: 5px;
    line-height: 1.3;
    text-align: center;
  }
  .bases-list-home li {
    max-width: 300px;
  }
  .bases-list-home li a.base-card-link-home {
    height: 150px;
  }
  .marcas-list-section-home p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    padding: 0 20px;
  }
  .marcas-list-home {
    flex-direction: column;
  }
  .error-message-box {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #e8c4c7;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 7px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  .error-message-box p {
    margin: 0;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  .alert-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
  }
}