* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f2f4f7;
  color: #333;
  line-height: 1.4;
}

:root {
  --verde: #2ecc71;
  --verde-oscuro: #27ae60;
  --azul: #2c3e50;
  --gris: #f4f6f8;
  --borde: #dcdcdc;
  --error: #c0392b;
}

/* ==============================
   HEADER / BANNER
================================ */

.header-banner {
    width: 100%;
    max-height: 420px;           /* 🔹 controla el alto en desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background: #000;             fallback elegante */
    position: relative;
}

.header-banner img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;           /* 🔹 mantiene proporción */
    border-radius: 14px;
  
}


/* ==============================
   TÍTULO
================================ */

.contenedor-centro h1 {
    margin-top: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

/* ==============================
   DESKTOP GRANDE
================================ */
@media (min-width: 1024px) {
    .header-banner {
        max-height: 360px;       /* aún más contenido visible */
    }

    .header-banner img {
        max-height: 360px;
    }

    .contenedor-centro h1 {
        font-size: 2rem;
    }
}

/* ==============================
   MÓVIL (NO TOCAR)
================================ */
@media (max-width: 768px) {
    .header-banner {
        max-height: none;
    }

    .header-banner img {
        max-height: none;
    }
}


.contenedor {
  width: 100%;
  background: #fff;
}

.contenedor-centro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  text-align: center;
}


.bg-blanco {
  background: #fff;
}

.sombra {
  box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

h2 {
  text-align: center;
  font-size: 1.9rem;
  color: var(--azul);
  margin-bottom: 5px;
}

.sub {
  text-align: center;
  font-size: .9rem;
  color: #777;
  margin-bottom: 30px;
}

.campos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-bottom: 20px;
}

.campo {
  display: flex;
  flex-direction: column;
}

label {
  font-size: .8rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

input,
select {
  padding: 12px 14px;
  font-size: .95rem;
  border-radius: 10px;
  border: 1px solid var(--borde);
  transition: border .2s, box-shadow .2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(46,204,113,.15);
}

#total {
  background: var(--gris);
  font-weight: bold;
  color: var(--verde-oscuro);
  text-align: center;
  font-size: 1.05rem;
  border: none;
}

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

.button {
  background: linear-gradient(135deg, var(--verde), var(--verde-oscuro));
  color: #fff;
  border: none;
  padding: 14px 45px;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(46,204,113,.35);
}

.button:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

#validaLbl {
  font-size: .85rem;
  margin-top: 8px;
  color: var(--error);
  display: none;
}

#verPayPal h3 {
  text-align: center;
  margin-bottom: 10px;
}

#paypal-button-container {
  max-width: 360px;
  margin: 25px auto;
}

.cargando {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fontfooter {
  font-size: .8rem;
  color: #777;
  text-align: center;
  padding: 25px 10px;
  margin-top: 40px;
  background: #fff;
}

.fontfooter a {
  color: var(--verde-oscuro);
  text-decoration: none;
  font-weight: 600;
}

.fontfooter a:hover {
  text-decoration: underline;
}

.fontfooter p {
  margin: 8px 0 0;
  font-size: .75rem;
  color: #aaa;
}

@media (max-width: 600px) {

  .contenedor-centro h1 {
    font-size: 1.4rem;
  }

  
  .button {
    width: 100%;
  }

}

.contenedor-pago {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 45px;
  background: #fff;
  border-radius: 20px;
}

.contenedor-pago h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--azul);
  margin-bottom: 30px;
}

.contenedor-pago h3 {
  text-align: center;
  font-weight: 500;
  margin: 12px 0;
  color: #444;
}

.contenedor-pago h3:first-of-type {
  color: var(--verde-oscuro);
  font-weight: 700;
}

.resultado {
  text-align: center;
  padding: 30px;
  border-radius: 14px;
  background: #fdecea;
  color: var(--error);
  margin: 20px 0;
}

.resultado h3 {
  margin: 8px 0;
  font-weight: 600;
}

.contenedor-pago table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px auto;
  font-size: .9rem;
}

.contenedor-pago td {
  padding: 12px 10px;
  border-bottom: 1px dashed #e0e0e0;
  vertical-align: middle;
}

.contenedor-pago td:first-child {
  font-weight: 600;
  color: #555;
}

.contenedor-pago img[src*="qr_"] {
  display: block;
  margin: 15px auto;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.contenedor-pago .campo.enviar {
  margin-top: 35px;
  text-align: center;
}

.contenedor-pago .btn.volver {
  background: var(--verde);
  color: #fff;
  padding: 12px 35px;
  border-radius: 50px;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
}

.contenedor-pago .btn.volver:hover {
  background: var(--verde-oscuro);
  box-shadow: 0 8px 20px rgba(46,204,113,.35);
}

.contenedor-pago hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #ccc, transparent);
  margin: 30px 0;
}

.contenedor-pago h3 em,
.contenedor-pago h3 strong {
  color: var(--verde-oscuro);
}

@media (max-width: 600px) {

  .contenedor-pago {
    margin: 25px 15px;
    padding: 30px 20px;
  }

  .contenedor-pago h2 {
    font-size: 1.6rem;
  }

  .contenedor-pago h3 {
    font-size: .95rem;
  }

  .contenedor-pago table {
    font-size: .85rem;
  }
}

