body.registro {
    color: #182742;
    background: white;
    font: 1rem/1.35 "Segoe UI", Arial, sans-serif;
}

.registro main {
    max-width: 74rem;
    margin: 0 auto;
    padding: 2.5rem clamp(1rem, 2.6vw, 2.5rem) .75rem;
}

.registro header, .barra-participantes, .registro footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.registro header { margin-bottom: 1.85rem; }
.registro header img { width: min(27.5%, 17rem); height: auto; }
.registro h1, .registro h2 { margin: 0; color: var(--ima-azul); line-height: 1.2; text-transform: uppercase; }
.registro h1 { font-size: clamp(1.4rem, 3.1vw, 2rem); letter-spacing: 0; }
.registro h2 { font-size: 1.45rem; }

.datos-caso {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.35rem;
}

.campo-titulo { grid-column: 1 / -1; }
.datos-caso label { display: block; margin-bottom: .12rem; color: var(--ima-azul); font-weight: 650; }
.registro input, .registro select {
    display: block;
    width: 100%;
    height: 2.08rem;
    border: 1px solid #d4dce8;
    border-bottom-color: #98aacc;
    border-radius: .28rem;
    padding: .22rem .65rem;
    background: white;
    color: inherit;
    font: inherit;
}

.registro select:invalid, .registro input::placeholder { color: #667791; }
.registro :focus-visible { outline: 2px solid var(--ima-azul); outline-offset: 2px; }

.registro section { margin-top: 2rem; }
.barra-participantes { margin-bottom: 1rem; }
.registro button, .registro footer a { cursor: pointer; font: inherit; }
#agregar, .quitar { border: 0; background: transparent; color: inherit; }
#agregar { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; }
#agregar span, .volver span { font-size: 1.4rem; line-height: 1; }
.registro button:disabled { cursor: default; opacity: .55; }
#lider { margin: -.4rem 0 .6rem; color: #485c77; font-size: .875rem; }
#aviso-participantes { color: #942638; }
.registro table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.registro th, .registro td { padding: .85rem .9rem; border: 1px solid #d8dfeb; text-align: left; }
.registro th { font-weight: 550; }
.registro th:last-child { width: 4.3rem; text-align: center; }
#vacio td { height: 8.5rem; text-align: center; color: #435a7c; font-size: 1.12rem; }
#integrantes td { padding: .5rem .3rem; vertical-align: top; }
#integrantes label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.quitar { min-height: 2rem; color: #a42532; }

.registro footer { justify-content: flex-end; gap: .8rem; margin-top: 1.15rem; }
.registro footer button, .registro footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .35rem .75rem;
    border: 0;
    border-radius: .3rem;
    color: white;
    font-weight: 650;
    text-decoration: none;
}
.guardar { background: var(--ima-azul); }
.guardar svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.volver { background: #d72828; }
.registro footer :is(button, a):hover { filter: brightness(.92); }

@media (max-width: 44rem) {
    .registro main { padding-top: 1.5rem; }
    .registro header img { width: min(53%, 13rem); }
    .datos-caso { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
    .registro section { margin-top: 1.5rem; }
    .registro h2 { font-size: 1.18rem; }
    .registro table, #integrantes, #integrantes tr, #integrantes td, #vacio:not([hidden]), #vacio tr { display: block; }
    .registro thead { display: none; }
    #integrantes tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: .85rem; border: 1px solid #d8dfeb; }
    #integrantes tr + tr { margin-top: .65rem; }
    #integrantes td { padding: 0; border: 0; }
    #integrantes td:nth-last-child(2) { grid-column: 1 / -1; }
    #integrantes label { position: static; width: auto; height: auto; clip-path: none; display: block; font-size: .85rem; font-weight: 600; }
    #vacio td { display: grid; place-items: center; }
    .quitar { padding-left: 0; }
}
