:root{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* Fondo general */
body{
  margin:0;
  background:#ffffff;
  color:#111111;
}

/* Contenedor */
.wrap{
  max-width:900px;
  margin:40px auto;
  padding:0 16px;
}

/* Tarjeta */
.card{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:22px;
}

/* Títulos */
h1{
  margin:0 0 6px;
  font-size:22px;
  color:#111111;
}

.sub{
  margin:0 0 18px;
  color:#6b7280;
}

/* Grid */
.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

/* Labels */
label{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
  color:#374151;
}

/* Inputs */
input,
select,
textarea{
  background:#ffffff;
  border:1px solid #d1d5db;
  color:#111111;
  border-radius:12px;
  padding:12px;
  font-size:14px;
}

textarea{
  resize:vertical;
}

.full{
  grid-column:1/-1;
}

/* Botón */
button{
  margin-top:14px;
  width:100%;
  padding:12px 14px;
  border:0;
  border-radius:12px;
  background:#000000;
  color:#ffffff;
  font-weight:700;
  font-size:15px;
  cursor:pointer;
}

button:hover{
  background:#111111;
}

/* Texto inferior */
.foot{
  margin:12px 0 0;
  color:#6b7280;
  font-size:12px;
  text-align:center;
}

/* Honeypot */
.hp{
  display:none !important;
}

/* Responsive */
@media (max-width:720px){
  .grid{
    grid-template-columns:1fr;
  }
}
.logo{
  display:flex;
  justify-content:flex-end;
  margin-bottom:15px;
}

.logo img{
  width:110px;
  height:auto;
}
/* ===== Alinear encabezado (texto + logo) ===== */

.card{
  position: relative; /* referencia para el logo */
}

.logo{
  position: absolute;
  top: 28px;          /* AJUSTA ESTE VALOR */
  right: 22px;        /* alineado al borde de la card */
  margin: 0;
}

h1{
  margin-top: 0;
}

.sub{
  margin-top: 4px;
}

/* ===== SOLO pantalla final (submit) en CELULAR ===== */
@media (max-width: 600px) {

  body.page-confirm .logo{
    position: static;        /* deja de flotar */
    justify-content: center; /* centra el logo */
    margin-bottom: 16px;
  }

  body.page-confirm .logo img{
    width: 90px;
  }

  body.page-confirm h1{
    text-align: center;
  }

  body.page-confirm .sub{
    text-align: center;
  }

}

/* ===== Botón Finalizar pantalla confirmación ===== */

.finalizar-wrap{
  text-align:center;
  margin-top:25px;
}

.btn-finalizar{
  display:inline-block;
  padding:12px 28px;
  background:#002e57;
  color:#ffffff;
  text-decoration:none;
  font-weight:600;
  border-radius:8px;
  transition:all .25s ease;
}

.btn-finalizar:hover{
  background:#ed1f2a;
}