/* ODONTOTIP · Tipografía optimizada 2026
   Escala de peso reducida a 400 / 500 / 600 / 700.
   Diseño, layout, colores y comportamiento funcional preservados. */

:root {
    --registro-primary: #00a9b7;
    --registro-primary-dark: #087d89;
    --registro-secondary: #1461a7;

    --registro-text: #14213d;
    --registro-muted: #667085;
    --registro-border: #d9e2ec;
    --registro-background: #f3f7fa;
    --registro-white: #ffffff;

    --registro-danger: #b42318;
    --registro-danger-border: #f0b4ae;
    --registro-danger-background: #fff3f2;

    --registro-success: #027a48;
    --registro-success-border: #a6d8c1;
    --registro-success-background: #ecfdf3;
}

/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body.registro-body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    color: var(--registro-text);
    background: var(--registro-background);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input {
    font: inherit;
}

/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.registro-page {
    display: grid;
    grid-template-columns:
        minmax(390px, 46%)
        minmax(620px, 54%);
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* =========================================================
   PANEL IZQUIERDO
   ========================================================= */

.registro-info {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding:
        clamp(22px, 2.4vw, 38px)
        clamp(24px, 3vw, 48px);
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 12% 18%,
            rgba(255, 255, 255, 0.2),
            transparent 28%
        ),
        radial-gradient(
            circle at 82% 82%,
            rgba(33, 205, 220, 0.25),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #188b95 0%,
            #36a9b3 48%,
            #2589b2 100%
        );
}

.registro-info::before,
.registro-info::after {
    position: absolute;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.registro-info::before {
    top: -220px;
    right: -170px;
    width: 430px;
    height: 430px;
}

.registro-info::after {
    bottom: -190px;
    left: -130px;
    width: 350px;
    height: 350px;
}

.registro-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: max-content;
    color: #ffffff;
    font-size: clamp(22px, 1.7vw, 28px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    text-decoration: none;
}

.registro-info-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 610px;
    height: 100%;
    min-height: 0;
    padding: 18px 0 4px;
}

.registro-eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 32px;
    padding: 5px 13px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
}

.registro-info h1 {
    max-width: 620px;
    margin: clamp(16px, 2vh, 25px) 0 12px;
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.registro-info-content > p {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.55;
}

.registro-beneficios {
    display: grid;
    gap: 10px;
    margin-top: clamp(18px, 2.5vh, 32px);
}

.registro-beneficios article {
    display: grid;
    gap: 3px;
    padding: 12px 17px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.registro-beneficios strong {
    font-size: 14px;
    line-height: 1.3;
}

.registro-beneficios span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.4;
}

/* =========================================================
   PANEL DERECHO
   ========================================================= */

.registro-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    padding: 12px 24px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(0, 169, 183, 0.07),
            transparent 32%
        ),
        var(--registro-background);
}

.registro-card {
    width: 100%;
    max-width: 720px;
    max-height: calc(100dvh - 24px);
    padding: 18px 24px;
    overflow-y: auto;
    border: 1px solid rgba(210, 221, 232, 0.95);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 18px 55px rgba(21, 39, 68, 0.09);
    scrollbar-width: thin;
    scrollbar-color:
        rgba(0, 169, 183, 0.3)
        transparent;
}

.registro-card::-webkit-scrollbar {
    width: 5px;
}

.registro-card::-webkit-scrollbar-track {
    background: transparent;
}

.registro-card::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0, 169, 183, 0.3);
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.registro-heading {
    margin-bottom: 13px;
}

.registro-heading > span {
    display: block;
    margin-bottom: 4px;
    color: var(--registro-primary-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.registro-heading h2 {
    margin: 0;
    font-size: clamp(25px, 2vw, 31px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.registro-heading p {
    margin: 5px 0 0;
    color: var(--registro-muted);
    font-size: 12px;
    line-height: 1.45;
}

/* =========================================================
   ALERTAS
   ========================================================= */

.registro-alert-error {
    margin-bottom: 11px;
    padding: 10px 13px;
    border: 1px solid var(--registro-danger-border);
    border-radius: 13px;
    color: var(--registro-danger);
    background: var(--registro-danger-background);
    font-size: 12px;
    line-height: 1.4;
}

.registro-alert-error strong {
    display: block;
    margin-bottom: 3px;
}

.registro-alert-error ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

.registro-alert-error li + li {
    margin-top: 3px;
}

.registro-alert-success {
    margin-bottom: 11px;
    padding: 10px 13px;
    border: 1px solid var(--registro-success-border);
    border-radius: 13px;
    color: var(--registro-success);
    background: var(--registro-success-background);
    font-size: 12px;
    line-height: 1.45;
}

.registro-error-action {
    margin-top: 9px;
}

.registro-reenvio-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 9px;
    color: #ffffff;
    background: var(--registro-danger);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.registro-reenvio-button:hover {
    color: #ffffff;
    opacity: 0.9;
    transform: translateY(-1px);
}

/* =========================================================
   GRUPOS DE CAMPOS
   ========================================================= */

.registro-fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 0 0 10px;
    padding: 11px 14px 12px;
    border: 1px solid var(--registro-border);
    border-radius: 16px;
}

.registro-fieldset legend {
    padding: 0 8px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

/*
 * En el bloque de datos de la clínica, nombre y WhatsApp
 * se colocan uno al lado del otro para reducir altura.
 */
.registro-fieldset:first-of-type .registro-field-full {
    grid-column: auto;
}

.registro-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.registro-field-full {
    grid-column: 1 / -1;
}

.registro-field > span {
    color: #344054;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

.registro-field input {
    width: 100%;
    height: 40px;
    min-width: 0;
    padding: 0 13px;
    border: 1px solid var(--registro-border);
    border-radius: 11px;
    outline: none;
    color: var(--registro-text);
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.registro-field input::placeholder {
    color: #98a2b3;
    font-weight: 500;
}

.registro-field input:hover {
    border-color: #bdc9d6;
}

.registro-field input:focus {
    border-color: var(--registro-primary);
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(0, 169, 183, 0.11);
}

/* =========================================================
   HONEYPOT ANTISPAM
   ========================================================= */

.registro-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =========================================================
   TÉRMINOS
   ========================================================= */

.registro-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 1px 10px;
    color: var(--registro-muted);
    font-size: 11px;
    line-height: 1.4;
    cursor: pointer;
}

.registro-terms input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--registro-primary);
}

/* =========================================================
   BOTÓN PRINCIPAL
   ========================================================= */

.registro-submit {
    width: 100%;
    min-height: 43px;
    padding: 9px 16px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--registro-primary),
            var(--registro-primary-dark)
        );
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(0, 169, 183, 0.2);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}

.registro-submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 13px 25px rgba(0, 169, 183, 0.25);
}

.registro-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* =========================================================
   ENLACES INFERIORES
   ========================================================= */

.registro-login-link {
    margin: 9px 0 0;
    color: var(--registro-muted);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.registro-login-link a {
    color: var(--registro-primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.registro-login-link a:hover {
    text-decoration: underline;
}

.registro-secondary-action {
    margin-top: 6px;
    text-align: center;
}

.registro-secondary-action a {
    color: var(--registro-primary-dark);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.registro-secondary-action a:hover {
    text-decoration: underline;
}

/* =========================================================
   PANTALLAS CON POCA ALTURA
   ========================================================= */

@media (max-height: 780px) and (min-width: 901px) {
    .registro-info {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .registro-info h1 {
        margin-top: 14px;
        font-size: clamp(35px, 3.5vw, 51px);
    }

    .registro-info-content > p {
        font-size: 14px;
    }

    .registro-beneficios {
        gap: 7px;
        margin-top: 17px;
    }

    .registro-beneficios article {
        padding: 9px 14px;
    }

    .registro-beneficios span {
        font-size: 11px;
    }

    .registro-card {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .registro-heading {
        margin-bottom: 9px;
    }

    .registro-heading h2 {
        font-size: 25px;
    }

    .registro-fieldset {
        gap: 8px 12px;
        margin-bottom: 8px;
        padding-top: 8px;
        padding-bottom: 9px;
    }

    .registro-field input {
        height: 37px;
    }

    .registro-terms {
        margin-bottom: 7px;
    }

    .registro-submit {
        min-height: 39px;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
    body.registro-body {
        overflow-y: auto;
    }

    .registro-page {
        grid-template-columns: 38% 62%;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    .registro-info {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100dvh;
        padding: 26px 25px;
    }

    .registro-info h1 {
        font-size: clamp(34px, 4.5vw, 47px);
    }

    .registro-info-content > p {
        font-size: 14px;
    }

    .registro-beneficios article {
        padding: 11px 13px;
    }

    .registro-form-section {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 14px;
        overflow: visible;
    }

    .registro-card {
        max-height: none;
        overflow: visible;
    }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 820px) {
    body.registro-body {
        overflow-y: auto;
    }

    .registro-page {
        display: block;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .registro-info {
        position: relative;
        height: auto;
        min-height: auto;
        padding: 23px 18px 27px;
    }

    .registro-info-content {
        height: auto;
        padding: 38px 0 0;
    }

    .registro-info h1 {
        margin-top: 17px;
        font-size: clamp(33px, 10vw, 44px);
    }

    .registro-info-content > p {
        font-size: 15px;
    }

    .registro-beneficios {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 20px;
    }

    .registro-beneficios article {
        padding: 10px;
    }

    .registro-beneficios strong {
        font-size: 12px;
    }

    .registro-beneficios span {
        display: none;
    }

    .registro-form-section {
        display: block;
        min-height: auto;
        padding: 12px;
    }

    .registro-card {
        max-width: none;
        padding: 20px 16px;
        border-radius: 18px;
    }
}

/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 560px) {
    .registro-info {
        padding: 21px 16px 24px;
    }

    .registro-info-content {
        padding-top: 30px;
    }

    .registro-info h1 {
        font-size: 34px;
    }

    .registro-beneficios {
        grid-template-columns: 1fr;
    }

    .registro-beneficios article {
        padding: 10px 12px;
    }

    .registro-beneficios span {
        display: block;
    }

    .registro-card {
        padding: 19px 14px;
    }

    .registro-fieldset {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .registro-fieldset:first-of-type .registro-field-full,
    .registro-field-full {
        grid-column: auto;
    }

    .registro-field input {
        height: 43px;
        font-size: 13px;
    }

    .registro-submit {
        min-height: 46px;
    }
}

.registro-error-action {
    margin-top: 15px;
}

.registro-reenvio-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 11px;
    color: #ffffff;
    background: #b42318;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.registro-reenvio-button:hover {
    color: #ffffff;
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Jerarquía tipográfica clínica */
body.registro-body { font-weight: 400; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.registro-brand, .registro-info h1, .registro-heading h2 { font-weight: 700; }
.registro-eyebrow, .registro-heading > span, .registro-fieldset legend { font-weight: 600; }
.registro-info-content > p, .registro-beneficios span, .registro-heading p, .registro-login-link, .registro-terms { font-weight: 400; }
.registro-beneficios strong, .registro-field > span { font-weight: 500; }
.registro-field input { font-weight: 400; }
.registro-field input::placeholder { font-weight: 400; }
.registro-submit, .registro-reenvio-button, .registro-login-link a, .registro-secondary-action a { font-weight: 600; }
