:root {
  color-scheme: light;
  font-family: "Google Sans Flex", system-ui, sans-serif;
  --blanco: #ffffff;
  --fondo: #f6f4ef;
  --borde: #e9e2d6;
  --borde-interactivo: #a49a89;
  --muted: #635c51;
  --acento: #f8aa00;
  --texto: #0a0700;
  color: var(--texto);
  background: var(--fondo);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0, #ffedc7, transparent 36rem);
}
.marca {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 3vw, 1.75rem);
  max-width: 55rem;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.75rem) 1rem 1.4rem;
}
.marca a { min-width: 0; }
.marca img { display: block; max-width: 100%; height: auto; }
.marca a img { width: clamp(14rem, 28vw, 16rem); }
.marca-congreso {
  width: clamp(6rem, 24vw, 9rem);
  margin-inline-start: auto;
}
.panel {
  max-width: 53rem;
  margin: 0 auto 2rem;
  padding: clamp(1.25rem, 5vw, 3rem);
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-top: .3rem solid var(--acento);
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3rem #51360014;
}
.congreso {
  margin: 0 0 .55rem;
  color: #744500;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.congreso + h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
h1 { margin: 0; font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.12; }
.intro { margin: .9rem 0 1.5rem; color: var(--muted); line-height: 1.55; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.especialidades { grid-column: 1 / -1; }
label { display: block; margin-bottom: .4rem; font-weight: 650; }
label small { font-size: .875rem; font-weight: 400; }
input:not([type=hidden]), select {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid var(--borde-interactivo);
  border-radius: .65rem;
  padding: .6rem .75rem;
  font: inherit;
  color: inherit;
  background: var(--blanco);
}
:focus-visible { outline: 3px solid var(--texto); outline-offset: 3px; }
a { color: var(--texto); text-underline-offset: .15em; }
.privacidad { margin: 1.5rem 0 1rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }
button {
  min-height: 2.85rem;
  padding: .7rem 1.25rem;
  border: 0;
  border-radius: .5rem;
  background: var(--acento);
  color: var(--texto);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:disabled { opacity: .75; cursor: wait; }
button:hover:not(:disabled) { background: #ffbc31; }
.estado:empty { margin: 0; }
.errores { padding: .75rem 1rem; margin-bottom: 1.2rem; border-inline-start: .25rem solid var(--acento); background: var(--fondo); }
.errores h2 { font-size: 1rem; margin: 0; }
.errores ul { padding-left: 1.25rem; }
.error { font-weight: 600; margin: .35rem 0 0; font-size: .9rem; }
[aria-invalid=true] { border-color: var(--texto) !important; }
@media (max-width: 55rem) { .panel { margin-inline: 1rem; } }
@media (max-width: 37rem) {
  .marca { padding: 1.1rem .75rem .9rem; }
  .marca a img { width: clamp(9rem, 52vw, 14rem); }
  .panel {
    margin: 0 .75rem 1.25rem;
    padding: clamp(1rem, 4vw, 1.5rem);
    border-radius: 1rem;
  }
  .intro { margin-bottom: 1.25rem; }
  .campos {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .especialidades:has(#campo-otra:not([hidden])) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  input:not([type=hidden]), select, button {
    min-height: 3rem;
    font-size: max(1rem, 16px);
  }
  select { text-overflow: ellipsis; }
  button { width: 100%; }
  .errores, .error, .estado { overflow-wrap: anywhere; }
}
