/* Apariencia del popup de Registro igual al popup global.
   Conserva la apertura y el cierre mediante #tyc-modal (:target). */
.registro-tyc-modal {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 18px;
    background: rgba(0, 15, 40, .76);
}
.registro-tyc-modal:target { display: flex; }
.registro-tyc-modal-dialog {
    display: flex;
    flex-direction: column;
    width: min(100%, 920px);
    height: auto;
    max-height: min(90dvh, 920px);
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 65px rgba(0,0,0,.35);
}
.registro-tyc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 16px;
    padding: 16px 22px;
    background: #001f47;
    color: #fff;
}
.registro-tyc-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
}
.registro-tyc-modal-close,
.registro-tyc-modal-close:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}
.registro-tyc-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 22px 28px;
    background: #fff;
}
@media (max-width: 767px) {
    .registro-tyc-modal { padding: 10px; }
    .registro-tyc-modal-dialog { width: 100%; height: auto; max-height: 92dvh; border-radius: 12px; }
    .registro-tyc-modal-header { padding: 12px 15px; }
    .registro-tyc-modal-header h2 { font-size: 17px; }
    .registro-tyc-modal-close { font-size: 32px; }
    .registro-tyc-modal-body { padding: 16px; }
}
