body {
  overflow-x: hidden;
}

model-viewer {
  width: 40%;
  height: 500px;
  margin: auto;
}

@media (max-width: 992px) {
  model-viewer {
    width: 75%;
    height: 900px;
    order: 1;
  }
}

.portada {
  width: 100%;
}

.portada img {
  width: 100%;
}

#modelo3d {
  width: 100%;
  height: 800px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: row;
  margin: auto;
  background: #ffa500;
  position: relative;
}

#modelo3d .flipbook-viewport {
  width: 50%;
}

@media (max-width: 992px) {
  #modelo3d {
    flex-direction: column;
  }
}

.dbanner {
  width: 80%;
}

.dbanner h1 {
  text-shadow: 3px 1px 10px gray;
  color: white;
  font-size: 80px;
}

.dbanner p {
  text-shadow: 3px 1px 10px gray;
  color: white;
  font-size: 30px;
}

.dbanner a {
  font-size: 30px;
  border: none;
  text-shadow: 3px 1px 14px white;
  color: white;
  background: #b43803;
  padding: 8px 35px;
  border-radius: 5px;
}

.dbanner a:hover {
  color: white;
  background: #a63404;
}

@media (max-width: 992px) {
  .dbanner {
    width: 100%;
    margin: auto;
    text-align: center;
  }
}

@media (max-width: 992px) {
  .dbanner h1 {
    font-size: 35px;
  }
}

@media (max-width: 992px) {
  .dbanner p {
    font-size: 18px;
    padding: 10px;
  }
}

.izq {
  text-align: left;
}

.izquierda {
  width: 25%;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  align-items: flex-end;
}

@media (max-width: 992px) {
  .izquierda {
    width: 80%;
    justify-content: center;
    align-items: center;
    order: 2;
  }
}

.derecha {
  width: 25%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .derecha {
    width: 80%;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    order: 3;
  }
}

.der {
  text-align: right;
}

.izq {
  background: orange;
  border-radius: 10px;
  padding: 10px;
  color: white;
}

.der {
  background: orange;
  border-radius: 10px;
  padding: 10px;
  color: white;
}

.texto-observable {
  width: 90%;
  background: orange;
  border-radius: 10px;
  padding: 8px;
  text-align: left;
  margin: 2px;
}

/* pa los dos */

.texto-observable {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-align: left;
  color: white;
}

/* Entrada desde la izquierda */

.fade-left {
  transform: translateX(-50px);
}

.texto-observable.active.fade-left {
  opacity: 1;
  transform: translateX(0);
}

/* Entrada desde la derecha */

.fade-right {
  transform: translateX(50px);
}

.texto-observable.active.fade-right {
  opacity: 1;
  transform: translateX(0);
}

/* Desaparece hacia donde vino */

.fade-out-left {
  opacity: 0;
  transform: translateX(-50px);
}

.fade-out-right {
  opacity: 0;
  transform: translateX(50px);
}

.fade-out-right {
  opacity: 0;
  transform: translateX(50px);
}

.fade-out-left {
  opacity: 0;
  transform: translateX(-50px);
}

#formulario {
  max-width: 99%;
  height: 400px;
  background: url("./pform.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: row;
  margin: auto;
}

@media (max-width: 992px) {
  #formulario {
    flex-direction: column;
    padding: 10px;
    height: 480px;
  }
}

#miform {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#miform button {
  background: #e39404;
  color: white;
  border: none;
  border-radius: 15px;
}

#miform button:hover {
  background: #cc8606;
}

@media (max-width: 992px) {
  #miform {
    order: 2;
    width: 100%;
  }
}

#miform form {
  width: 60%;
}

#textform {
  width: 50%;
  color: white;
}

@media (max-width: 992px) {
  #textform {
    width: 90%;
    text-align: center;
  }
}

#textform h1 {
  text-shadow: 3px 2px 10px gray;
  font-size: 60px;
}

@media (max-width: 992px) {
  #textform h1 {
    font-size: 35px;
  }
}

#textform p {
  font-size: 25px;
  text-shadow: 3px 1px 10px gray;
}

@media (max-width: 992px) {
  #textform p {
    font-size: 20px;
  }
}

.columnas {
  width: 100%;
  margin-bottom: 30px;
}

.columna {
  max-width: 800px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: auto;
  margin-top: 10px;
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .columna {
    flex-direction: column;
  }
}

.columna img {
  width: 50%;
  border-radius: 10px;
}

@media (max-width: 992px) {
  .columna img {
    width: 80%;
    order: 2;
  }
}

.columna p {
  margin: 10px;
  font-size: 18px;
}

.columna2 {
  max-width: 800px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: auto;
  margin-top: 10px;
}

@media (max-width: 992px) {
  .columna2 {
    flex-direction: column;
  }
}

.columna2 img {
  width: 50%;
  border-radius: 10px;
  order: 1;
}

@media (max-width: 992px) {
  .columna2 img {
    width: 80%;
    order: 1;
  }
}

.columna2 p {
  margin: 10px;
  font-size: 18px;
}

/* ocultar descripciones3d */

@media (max-width: 992px) {
  .izquierda {
    display: none;
  }
}

@media (max-width: 992px) {
  .derecha {
    display: none;
  }
}

