/* Tu CSS original (omití repetir todo exactamente, pero conserva tu fichero completo). */
/* Asegúrate de mantener todo tu CSS actual y añade estas reglas al final del archivo. */
.help-modal-body img {
    max-width: 50%; /* Reduce el tamaño (ajusta 50%, 60%, etc.) */
    height: auto;
    display: block;
    margin: 0 auto; /* Centra la imagen */
    border-radius: 8px; /* Opcional, se ve más bonito */
}
/* Mensajes de error generados por JS */
.error-msg {
    color: #e83939;
    font-size: 13px;
    margin-top: 6px;
}

/* Borde/estilo cuando el campo es inválido */
.invalid-field {
    border-bottom-color: #e83939 !important;
    box-shadow: 0 1px 0 rgba(232,57,57,0.08);
}

/* Mensaje general en top (opcional si quieres mostrar un resumen) */
.form-errors-summary {
    background: #fff3f3;
    border: 1px solid #f2c1c1;
    color: #b33;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

/* Mantén el resto de tu CSS tal cual (header, login-container, inputs, etc.) */
/* ... (aquí va el resto de tu css original) ... */
/* registrate.css – versión final con fixes iOS + responsive mejorado */

/* ---------- Reset básico ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

html, body {
    height: 100%;
    height: -webkit-fill-available; /* iOS fix */
    background: #fff;
    color: #333;
    overflow-x: hidden; /* evita desplazamiento lateral */
    -webkit-text-size-adjust: 100%;
}

/* ---------- Header ---------- */
header {
    background: #EB0028;
    color: white;
    padding: 18px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 20;
    /* iOS sticky fix */
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
}

    header img {
        height: 44px;
        width: auto;
    }

    header strong {
        font-weight: 700;
        letter-spacing: .06em;
        font-size: 18px;
    }

/* ---------- Contenedor principal ---------- */
.login-container {
    width: 100%;
    max-width: 540px;
    margin: 38px auto 80px;
    padding: 28px 32px;
    background: #fff;
    /* iOS keyboard safe */
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    border-radius: 2px;
}

/* ---------- Título y textos ---------- */
.login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #2b2b2b;
}

.msj {
    color: #666;
    font-size: 14px;
    margin-bottom: 18px;
}

.response-message {
    margin: 8px 0 14px;
    font-weight: 600;
}

form > div {
    margin-bottom: 14px;
}

/* ---------- Labels ---------- */
label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

/* ---------- Inputs estilo underline ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="hidden"] {
    width: 100%;
    padding: 8px 6px 10px 6px;
    border: none;
    border-bottom: 1px solid #cfcfcf;
    background: transparent;
    /* iOS NO ZOOM */
    font-size: 16px !important;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

input::placeholder {
    color: #bfbfbf;
}

input:focus {
    border-bottom-color: #e1403f;
    box-shadow: 0 2px 0 rgba(225,64,63,0.05);
}

/* iOS autofill */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #333 !important;
}

/* ---------- Dos columnas ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* ---------- Notas ---------- */
.small-note {
    font-size: 12px;
    color: #8b8b8b;
    margin-top: 6px;
}

/* ---------- ReCaptcha / Chatbot ---------- */
.chatbot {
    margin: 12px 0 18px;
    display: flex;
    justify-content: center;
}

/* ---------- Botón principal ---------- */
button[type="submit"] {
    width: 100%;
    background: linear-gradient(#c92d2a, #b92220);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 2px 0 rgba(0,0,0,0.06);
    transition: transform .06s ease, box-shadow .06s ease, opacity .1s;
    /* iOS touch target mínimo */
    min-height: 44px;
}

    button[type="submit"]:hover {
        transform: translateY(-1px);
    }

    button[type="submit"]:active {
        transform: translateY(0);
    }

/* ---------- Link secundario ---------- */
a.center-registrate {
    display: block;
    text-align: center;
    margin: 12px auto 0;
    color: #c92d2a;
    text-decoration: none;
    font-size: 14px;
}

/* ---------- Términos ---------- */
.terms {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    line-height: 1.3;
}

/* ---------- Errores ---------- */
.error {
    color: #e83939;
    font-size: 13px;
    margin-top: 6px;
}

/* ---------- Footer ---------- */
.footer-contact {
    margin-top: 26px;
    font-size: 13px;
    color: #8b8b8b;
    text-align: center;
}

/* ---------- Divider ---------- */
.form-divider {
    height: 1px;
    background: #eee;
    margin: 16px 0;
}

/* ---------- Botón outline secundario ---------- */
.btn-outline {
    display: inline-block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e0a6a4;
    background: transparent;
    color: #c92d2a;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    margin-top: 12px;
    min-height: 44px; /* touch mínimo */
}

/* ---------- Ayuda de contraseña ---------- */
.password-help {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
    .login-container {
        padding: 20px;
        margin: 18px 12px 60px;
        max-width: 100%;
    }

    header img {
        height: 40px;
    }

    .login-title {
        font-size: 22px;
        text-align: center;
    }

    .msj, label {
        text-align: center;
    }

    .two-col {
        grid-template-columns: 1fr;
    }
}

/* Para pantallas extra pequeñas */
@media (max-width: 360px) {
    .login-container {
        margin-left: 8px;
        margin-right: 8px;
    }
}