* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f6fb;
  color: #1f2937;
}

.hero {
  background: #0f2f55;
}

.hero img {
  width: 100%;
  display: block;
}

.contenedor {
  width: min(1100px, 94%);
  margin: -40px auto 60px;
  position: relative;
  z-index: 2;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 12px 30px rgba(15, 47, 85, .12);
}

.intro {
  text-align: center;
}

h1, h2 {
  margin-top: 0;
  color: #0f2f55;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 22px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.campo label {
  font-weight: 700;
  font-size: 14px;
}

input,
select {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  background: #fff;
}

/* =========================
   CONSENTIMIENTOS
========================= */

input[type="checkbox"],
input[type="radio"] {
    width: auto !important;
    margin-right: 10px;
    vertical-align: middle;
    transform: scale(1.15);
    cursor: pointer;
}

.consentimiento {
    margin-bottom: 20px;
}

.consentimiento label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    font-weight: normal;
}

.consentimiento-opciones {
    margin-top: 10px;
}

.consentimiento-opciones label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: normal;
}

.consentimiento-box{
    background:#f0f7ff;
    border:1px solid #cfe7ff;
    border-radius:12px;
    padding:18px;
}

.consentimiento label,
.consentimiento-opciones label {
    cursor: pointer;
}

input:focus,
select:focus {
  outline: none;
  border-color: #0f7ac7;
  box-shadow: 0 0 0 3px rgba(15, 122, 199, .15);
}

small {
  font-size: 13px;
}

.ok {
  color: #17803b;
  font-weight: 700;
}

.error {
  color: #c62828;
  font-weight: 700;
}

.check label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check input {
  width: auto;
}

.oculto {
  display: none !important;
}

.pago {
  background: #f0f7ff;
  border: 1px solid #cfe7ff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.pago p {
  margin: 6px 0;
}

.acciones {
  text-align: center;
  margin-top: 30px;
}

button {
  border: 0;
  background: #0f7ac7;
  color: #fff;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

button:hover {
  background: #095f9e;
  transform: translateY(-1px);
}

button.secundario {
  background: #6b7280;
}

button.secundario:hover {
  background: #4b5563;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .72);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 20;
}

.modal-box {
  background: #fff;
  width: min(520px, 100%);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}

@media (max-width: 760px) {
  .contenedor {
    margin-top: -20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
    border-radius: 16px;
  }

  h1 {
    font-size: 26px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  button {
    width: 100%;
  }
}

.importe-box {
  background: linear-gradient(135deg, #0f2f55, #0f7ac7);
  color: #fff;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 12px 25px rgba(15, 47, 85, .22);
}

.importe-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .9;
  font-weight: 700;
}

.importe-numero {
  font-size: 36px;
  font-weight: 800;
  margin: 8px 0;
}

.importe-aviso {
  background: rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
}