html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #e8f5ff 0%, #f4fbf3 50%, #fff9f0 100%);
  color: #1f2d3d;
}

.jumbotron.vertical-center {
  margin-bottom: 0;
  background: transparent;
}

.vertical-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px 12px;
}

.panel-caja {
  max-width: 1024px;
  width: 100%;
  margin: 0 auto 16px;
  background: #ffffff;
  border: 1px solid #dbe7f2;
  border-radius: 18px;
  box-shadow: 0 14px 45px rgba(13, 45, 92, 0.12);
}

.caja {
  padding: 24px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.visual-placeholder {
  min-height: 300px;
  border-radius: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.placeholder-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  max-width: 100%;
  max-height: 320px;
  height: auto;
  border-radius: 10px;
  display: block;
}

.form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.titulo-buscador {
  color: #12263b;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 20px;
  text-align: left;
  font-weight: 600;
}

.form-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contenedor-input-codigo,
.contenedor-boton-codigo {
  padding: 0;
}

.contenedor-input-codigo {
  flex: 1;
}

.form-control {
  border: 2px solid #d4e4f1;
  border-radius: 10px;
  width: 100% !important;
  margin-right: 0;
  height: 50px;
  font-size: 16px;
  box-shadow: none;
}

.btn {
  height: 50px;
  min-width: 110px;
  font-size: 18px;
  border-radius: 10px;
}

.btn-primary {
  color: #fff;
  background-color: #1273d4;
  border-color: #1273d4;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0e61b2;
  border-color: #0e61b2;
}

#cargando,
#respuesta {
  margin-top: 14px;
  text-align: left;
}

.alert {
  margin-top: 12px;
}

.alert-danger {
  color: #8a1f1f;
  background-color: #ffe0e0;
  border-color: #f3bbbb;
}

@media (max-width: 991px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .visual-placeholder {
    min-height: 220px;
  }

  .titulo-buscador {
    text-align: center;
    font-size: 26px;
  }

  #cargando,
  #respuesta {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .caja {
    padding: 18px;
  }

  .form-row {
    flex-direction: column;
    gap: 8px;
  }

  .contenedor-input-codigo,
  .contenedor-boton-codigo,
  .btn {
    width: 100%;
  }

  .btn {
    min-width: 0;
  }

  .placeholder-inner {
    font-size: 18px;
  }
}
