/* Telemedicina Emerger - Registro responsive */

/* Computadoras */
.reg-wrap {
    width: calc(100% - 32px);
    max-width: 700px;
    margin: 20px auto;
}

.reg-wrap .card-header {
    padding: 20px 24px;
}

.reg-wrap .field {
    margin-bottom: 10px;
}

.reg-wrap .section-title {
    margin: 12px 0 10px;
}

.reg-wrap .step-indicator {
    margin-bottom: 14px;
}

.reg-wrap .registration-otp-section {
    margin: 8px 0 14px;
}

.reg-wrap .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.reg-wrap input,
.reg-wrap select,
.reg-wrap button {
    max-width: 100%;
}

.reg-wrap #email-otp-panel,
.reg-wrap #phone-otp-panel {
    min-width: 0;
    max-width: 100%;
}

/* Tablets */
@media (max-width: 768px) {
    .reg-wrap {
        width: calc(100% - 24px);
        margin: 12px auto;
    }

    .reg-wrap .card-header {
        padding: 18px;
    }
}

/* Celulares */
@media (max-width: 600px) {
    .reg-wrap {
        width: calc(100% - 16px);
        margin: 8px auto;
    }

    .reg-wrap .two-col {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .reg-wrap .card {
        border-radius: 12px;
    }

    .reg-wrap .card-header {
        padding: 16px;
    }

    .reg-wrap .field input,
    .reg-wrap .field select {
        font-size: 16px;
    }

    .reg-wrap #email-otp-panel,
    .reg-wrap #phone-otp-panel {
        padding: 12px !important;
    }
}


/* GLOBAL COMPACTO V3 */

/* Reducir espacios generales */
.reg-wrap .card > div[style*="padding:28px 32px"] {
    padding: 16px 24px !important;
}

.reg-wrap .card-header {
    padding: 14px 20px;
}

.reg-wrap .card-header img {
    height: 34px !important;
    margin-bottom: 6px !important;
}

.reg-wrap .step-indicator {
    margin-bottom: 8px;
}

.reg-wrap .step-indicator + div {
    margin-bottom: 10px !important;
}

.reg-wrap .step-indicator + div a {
    padding: 7px 12px !important;
}

/* Campos */
.reg-wrap .field {
    margin-bottom: 8px;
}

.reg-wrap .field label {
    margin-bottom: 3px;
}

.reg-wrap .field input,
.reg-wrap .field select {
    padding: 8px 12px;
}

.reg-wrap .section-title {
    margin: 8px 0;
}

/* Verificacion de contacto */
.reg-wrap .registration-otp-section {
    margin: 4px 0 10px;
}

.reg-wrap .registration-otp-section > div:first-child {
    margin-bottom: 6px !important;
}

.reg-wrap .registration-otp-section > div:nth-child(2) {
    margin-bottom: 8px !important;
}

.reg-wrap #email-otp-panel,
.reg-wrap #phone-otp-panel {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
}

.reg-wrap #email-otp-panel p,
.reg-wrap #phone-otp-panel p {
    margin: 4px 0 8px !important;
}

.reg-wrap #email-otp-panel .btn-green,
.reg-wrap #phone-otp-panel .btn-green {
    padding: 9px 12px;
}

.reg-wrap #email-otp-code,
.reg-wrap #phone-otp-code {
    flex: 1;
    min-width: 0;
}

.reg-wrap #email-otp-verify,
.reg-wrap #phone-otp-verify {
    width: auto;
    min-width: 110px;
    flex-shrink: 0;
}

/* Celulares */
@media (max-width: 600px) {
    .reg-wrap .card > div[style*="padding:28px 32px"] {
        padding: 14px !important;
    }

    .reg-wrap .card-header {
        padding: 14px;
    }

    .reg-wrap .field input,
    .reg-wrap .field select {
        font-size: 16px;
        min-height: 42px;
    }

    .reg-wrap #email-otp-verify,
    .reg-wrap #phone-otp-verify {
        min-width: 90px;
    }
}


/* GLOBAL DESKTOP V4 */

/* Aprovechar el espacio disponible en computadoras */
@media (min-width: 901px) {
    .reg-wrap {
        max-width: 900px;
    }

    .reg-wrap .two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Mantener el ancho original en tablets */
@media (min-width: 601px) and (max-width: 900px) {
    .reg-wrap {
        max-width: 700px;
    }
}


/* GLOBAL ANCHO DESKTOP V5 */

@media (min-width: 1100px) {
    .reg-wrap {
        width: calc(100% - 48px) !important;
        max-width: 1000px !important;
    }

    .reg-wrap .two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
