* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f7fa;
  color: #22313d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: #0b63ce;
}

.container {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.justify-content-center {
  justify-content: center;
}

.col-md-8 {
  width: min(100%, 680px);
}

.my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.w-100 {
  width: 100%;
}

.d-grid {
  display: grid;
}

.card {
  width: 100%;
  background: #fff;
  border: 1px solid #d9e2ea;
  border-radius: 16px;
}

.card-body,
.p-4 {
  padding: 1.5rem;
}

.shadow-sm {
  box-shadow: 0 12px 32px rgba(18, 32, 46, 0.08);
}

.card-title,
.calc-title,
.tituloCalculadora {
  margin: 0 0 1rem;
  line-height: 1.2;
}

.form-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #4d6172;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd6df;
  border-radius: 12px;
  background: #fff;
  color: #22313d;
  font: inherit;
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.close-btn:focus {
  outline: 3px solid rgba(11, 99, 206, 0.22);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #0b63ce;
  color: #fff;
}

.btn-primary:hover {
  background: #084d9f;
}

.btn-warning,
.btn-custom,
.calc-button,
.taxFormPEN input[type="button"],
.taxFormPEN .btn {
  background: #ff6a00;
  color: #fff;
}

.btn-warning:hover,
.btn-custom:hover,
.calc-button:hover,
.taxFormPEN input[type="button"]:hover,
.taxFormPEN .btn:hover {
  background: #d65800;
}

.list-group {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-group-item {
  border: 1px solid #d9e2ea;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #fff;
}

.total-purchase {
  background: #ff7b00;
  color: #fff;
}

.total-with-extras {
  background: #ffa000;
  color: #fff;
}

.warning,
.warning-text {
  border: 1px solid #f0cd78;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fff4d8;
  color: #7b5b14;
}

.warning {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.result-text,
.resulPEN,
.parrafo {
  color: #4d6172;
}

.highlight-iva {
  color: #c62828;
  font-size: 1.15rem;
  font-weight: 700;
}

#bannerOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.56);
}

.floating-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: 320px;
  padding: 1rem 1.1rem;
  border: 2px solid #3c7dfe;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
  text-align: center;
}

.floating-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #235cc6;
  text-decoration: none;
  font-weight: 700;
}

.play-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #0b63ce;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}

.close-btn {
  position: absolute;
  top: -0.55rem;
  right: -0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: #22313d;
  color: #fff;
  cursor: pointer;
}
