body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9fb;
}

.espacio{
  margin-bottom: 20px;
}

.contenedor {
  display: flex;
  flex-wrap: wrap; /* Importante para que se adapte en pantallas pequeñas */
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0,0,0,0.1);
  background: white;
}

.imagen-lateral {
  flex: 1;
  background: #cce3f8;
  display: flex;
  align-items: center;
  justify-content: center;
}



.imagen-lateral img {
  height: 100%;
  width: 90%;
  max-width: 450px;
  border-radius: 20px;
}

.formulario {
  flex: 1;
  padding: 40px;
  background: #fefefe;
}

h1 {
  margin-top: 0;
  color: #444;
  margin-bottom: 20px;
}

label {
  display: block;
  margin: 10px 0 5px;
  color: #333;
  font-weight: 600;
}

input[type="text"], select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.opciones {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

button {
  margin-top: 15px;
  width: 100%;
  background-color: #004aad; /* Azul */
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #00358a;
}

.preview {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.preview-contenedor {
  margin: 10px 0;
}


.imagen-forma{
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
#total {
  font-weight: bold;
  margin-top: 10px;
  text-align: right;
  font-size: 18px;
  color: #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .imagen-lateral,
  .formulario {
    flex: 100%;
    max-width: 100%;
  }

  .formulario {
    padding: 20px;
  }

  .opciones {
    flex-direction: column;
  }

  .preview {
    width: 100%;
    height: auto;
  }

  #total {
    text-align: left;
  }
}
