:root {
  color-scheme: only light;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #374151;
  background: #f4efe6;
  font-size: 17px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f4efe6; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.pantalla {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 48%) minmax(420px, 52%);
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(14px, 2.5vw, 34px);
  background: #f4efe6;
}

.presentacion {
  background: #eee5d7;
  border: 1px solid #e0d5c5;
  border-radius: 14px;
  box-shadow: 0 10px 30px -24px rgb(75 58 35 / 38%);
  padding: clamp(32px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
}

.foto {
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  border: 2px dashed #b8aa95;
  background: linear-gradient(135deg, #fbf7ef, #e5d7c3);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.foto > img { width: 100%; height: 100%; object-fit: contain; background: #fffdf9; }
.logo-marcador {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #6b5b45;
  font-weight: 700;
}
.logo-marcador svg {
  width: 86px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linejoin: round;
}

.centro { max-width: 580px; }
.etiqueta, .ceja {
  color: #1f65b5;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.centro h2 {
  margin: 12px 0; font-family: Newsreader, Georgia, serif;
  font-size: clamp(32px, 3.2vw, 46px); font-weight: 500; line-height: 1.08;
}
.centro p { font-size: 19px; line-height: 1.5; color: #655d52; }

.acceso {
  background: #fffdf9;
  border: 1px solid #e5ded3;
  border-radius: 14px;
  box-shadow: 0 10px 30px -24px rgb(75 58 35 / 32%);
  display: flex;
  flex-direction: column;
  padding: 30px clamp(26px, 7vw, 110px);
}
.marca { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: #435064; }
.marca-icono {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #1f6fc8;
  color: #fff;
}
.contenido { width: 100%; max-width: 430px; margin: auto; padding: 48px 0; }
h1 {
  margin: 12px 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(40px, 3.4vw, 54px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.04em;
}
.introduccion { margin: 0 0 32px; font-size: 19px; line-height: 1.55; color: #626b78; }
form { display: flex; flex-direction: column; }
.fila-etiqueta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
label { font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
input {
  min-height: 54px;
  border: 1.5px solid #c9c1b5;
  border-radius: 10px;
  padding: 0 16px;
  color: #374151;
  background: #fff;
  font-size: 19px;
}
input:focus-visible, button:focus-visible { outline: 3px solid #e7a436; outline-offset: 3px; }

.ayuda-codigo { position: relative; }
.boton-ayuda {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f6fc8;
  font-size: 20px;
  font-weight: 900;
}
.globo {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(290px, calc(100vw - 48px));
  padding: 12px 14px;
  border-radius: 9px;
  background: #34445a;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgb(20 50 35 / 20%);
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s;
}
.ayuda-codigo:hover .globo,
.ayuda-codigo:focus-within .globo,
.ayuda-codigo.abierta .globo {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.principal, .secundario {
  min-height: 58px;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: 800;
  margin-top: 26px;
}
.principal { border: 1px solid #1f6fc8; background: #1f6fc8; color: #fff; }
.principal:hover { background: #185ca8; }
.principal:disabled, .secundario:disabled { opacity: .6; cursor: wait; }
.secundario { background: #fff; border: 1.5px solid #1f6fc8; color: #1f6fc8; }
.aviso { padding: 14px 16px; border-radius: 9px; margin-top: 16px; line-height: 1.45; }
.error { background: #fff0ed; border: 1px solid #bd4a39; color: #842d22; }
.exito { background: #edf4ef; color: #245138; }
.pie { margin: 0; color: #6b7280; font-size: 17px; }

@media (max-width: 820px) {
  .pantalla { display: grid; grid-template-columns: 1fr; padding: 12px; }
  .presentacion { padding: 22px 24px; gap: 16px; }
  .foto { max-height: 170px; border-radius: 12px; }
  .logo-marcador svg { width: 50px; }
  .centro h2 { font-size: 23px; margin: 4px 0; }
  .centro p { margin: 8px 0 0; font-size: 16px; }
  .acceso { min-height: calc(100vh - 260px); padding: 24px; }
  .contenido { padding: 28px 0; }
  h1 { font-size: 40px; }
}

@media (max-width: 430px) {
  .presentacion { padding: 16px; }
  .foto { max-height: 120px; }
  .centro h2 { font-size: 20px; }
  .pantalla { padding: 8px; gap: 8px; }
  .acceso { padding: 20px 16px; }
  .contenido { padding: 24px 0; }
}
