* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Nunito, "Segoe UI", sans-serif;
  color: #1c2b24;
  background: #163024 url("/fondo.jpg") center / cover no-repeat fixed;
}
.escena {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.5rem 1rem;
}
.colibri {
  position: absolute;
  left: max(-4vw, -40px);
  top: 6vh;
  width: min(48vw, 620px);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.tarjeta {
  position: relative;
  z-index: 2;
  width: min(26.5rem, 100%);
  max-width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(16, 40, 24, 0.22);
  padding: 1.7rem 1.7rem 1.35rem;
  text-align: center;
  overflow-wrap: break-word;
}
.tarjeta.larga { text-align: left; max-height: calc(100vh - 2rem); overflow: auto; }
.logo { width: 9.2rem; height: auto; display: block; margin: 0 auto 0.15rem; }
.marca { margin: 0; line-height: 0.9; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.logo { max-width: 100%; }
.viive { font-size: 2.55rem; color: #1b2a22; }
.el { font-size: 1.15rem; color: #2f9a34; margin: 0 0.12rem 0 0.2rem; position: relative; top: -0.85rem; font-weight: 800; }
.agro { font-size: 2.25rem; color: #2f9a34; }
.lema {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.55rem 0 1.15rem;
  color: #8b9690;
  font-size: 0.95rem;
  font-weight: 700;
}
.lema i { display: block; width: 1.7rem; height: 1px; background: #d5ddd8; }
h2 { margin: 0.2rem 0 0.8rem; font-size: 1.35rem; }
.aviso, .ok {
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  margin: 0 0 0.8rem;
  text-align: left;
  font-weight: 700;
}
.aviso { background: #fdecec; color: #8c2f2f; }
.ok { background: #e7f6ec; color: #1b7a3a; }
form { margin: 0; }
label { display: block; font-weight: 800; margin: 0.85rem 0 0.3rem; text-align: left; }
.campo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  border: 1.5px solid #e4e8ec;
  background: #fff;
  border-radius: 14px;
  padding: 0 0.85rem;
  margin-top: 0.75rem;
}
.campo svg { flex: 0 0 auto; color: #9aa3ab; }
.campo input, select, .tarjeta.larga input, .tarjeta.larga select {
  width: 100%;
  border: 1.5px solid #e4e8ec;
  background: #fff;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  color: #1c2b24;
  padding: 0.85rem 0.9rem;
}
.campo input {
  border: 0;
  min-width: 0;
  padding: 0.9rem 0;
  outline: none;
  background: transparent;
}
.ojo {
  border: 0;
  background: transparent;
  padding: 0.4rem;
  cursor: pointer;
  color: #8b949c;
  display: flex;
}
button, .boton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 1rem;
  border: 0;
  border-radius: 14px;
  background: #1f9a4d;
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  padding: 0.9rem 1rem;
  cursor: pointer;
}
.contorno {
  background: #fff;
  color: #1f9a4d;
  border: 1.5px solid #cfe3d4;
}
.portal {
  display: block;
  margin-top: 0.85rem;
  color: #1f9a4d;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.ayuda { margin: 0.9rem 0 0; color: #7dbe86; font-size: 0.92rem; font-weight: 700; }
.separa { display: flex; align-items: center; gap: 0.7rem; margin: 0.95rem 0 0.1rem; }
.separa::before, .separa::after { content: ""; height: 1px; flex: 1; background: #e5ece8; }
.separa span { width: 8px; height: 8px; border-radius: 50%; background: #d5ddd8; }
.nota { color: #667068; font-size: 0.95rem; font-weight: 700; }
dl { margin: 0; }
dt { color: #7b877f; font-size: 0.92rem; margin-top: 0.7rem; }
dd { margin: 0; font-weight: 800; }
/* Celular: 0–440 */
@media (max-width: 440px) {
  body { background-attachment: scroll; }
  .escena { align-items: start; padding: 3.2rem 0.7rem 0.75rem; }
  .colibri { width: 4.6rem; top: 0.2rem; left: -0.2rem; }
  .tarjeta {
    z-index: 3;
    width: 100%;
    border-radius: 22px;
    padding: 1.05rem 0.95rem 0.95rem;
  }
  .logo { width: 6.2rem; }
  .viive { font-size: 1.85rem; }
  .el { font-size: 0.95rem; top: -0.55rem; }
  .agro { font-size: 1.65rem; }
  .lema { gap: 0.35rem; margin: 0.4rem 0 0.8rem; font-size: 0.8rem; }
  .lema i { width: 0.85rem; }
  h2 { font-size: 1.15rem; }
  button, .boton { padding: 0.8rem 0.7rem; }
  .campo input, select, textarea { font-size: 16px; }
}
@media (max-width: 360px) {
  .lema i { display: none; }
  .logo { width: 5.4rem; }
  .viive { font-size: 1.65rem; }
  .agro { font-size: 1.45rem; }
}

/* Tablet: 441–918 */
@media (min-width: 441px) and (max-width: 918px) {
  body { background-attachment: scroll; }
  .escena { padding: 1.25rem 1.15rem; }
  .colibri { width: 11rem; top: 0.8rem; left: -1.4rem; }
  .tarjeta { width: min(24rem, 100%); padding: 1.45rem 1.35rem 1.15rem; }
  .logo { width: 8rem; }
  .viive { font-size: 2.25rem; }
  .agro { font-size: 2rem; }
  .campo input, select, textarea { font-size: 16px; }
}

/* Escritorio: 919+ */
@media (min-width: 919px) {
  .escena { padding: 2rem 1.5rem; }
  .colibri { width: min(42vw, 34rem); top: 8vh; left: max(-6vw, -4rem); }
  .tarjeta { width: 26.5rem; }
}

/* Pantalla baja, por ejemplo el celular horizontal */
@media (max-height: 520px) {
  .escena { align-items: start; padding-top: 0.45rem; padding-bottom: 0.45rem; }
  .colibri { width: 3.4rem; top: 0.1rem; }
  .logo { width: 4.2rem; }
  .tarjeta { padding: 0.7rem 0.95rem 0.65rem; }
  .viive { font-size: 1.65rem; }
  .agro { font-size: 1.45rem; }
  .el { font-size: 0.85rem; top: -0.42rem; }
  .lema { margin: 0.2rem 0 0.4rem; }
}
