/* ==============================================================
   Ventanas de la estación en CELULAR.
   Las reglas originales de modales_estacion.css para ≤599px se hicieron cuando los teléfonos
   mostraban la versión de escritorio achicada (textos de 24–26px, anchos del 40–60%).
   Aquí solo se corrigen tamaños y posición; se mantiene el mismo aspecto (azul translúcido,
   íconos y botones de imagen) para que coincida con las estaciones reales.
   ============================================================== */
@media (max-width: 599px) {
    .modal { background-color: rgba(6, 28, 48, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 70px 14px 20px; overflow-y: auto; }
    .modal[style*="flex"] { align-items: flex-start; }

    .modal-content,
    .modal-content-term,
    .modal-content-user-continuar,
    .modal-content-horarios-continuar,
    .modal-content-llamada {
        width: 100% !important; min-width: 0 !important; max-width: 420px;
        margin: 0 auto !important; padding: 48px 16px 14px !important;
        border-radius: 24px; background-color: rgba(30, 110, 160, 0.82);
        box-sizing: border-box;
    }
    .modal-content-llamada { margin-top: 8vh !important; }
    .modal-header img.modal-img { width: 84px; top: -42px; }

    /* Listas de aseguradoras / opciones */
    .modal-content ul { max-height: 58dvh; overflow-y: auto; padding: 0; margin: 0; }
    .modal-content ul li { margin: 6px 0; }
    .modal-content .list-icon { width: 100%; max-width: 230px; height: auto; margin: 0 auto; }

    /* Registro (nombre, teléfono y consentimiento) */
    .modal-form { width: 100%; }
    .form-label-inp { width: 100%; display: block; }
    .form-inp { display: block; box-sizing: border-box; width: 100% !important; min-width: 0 !important; margin: 0 0 10px !important; padding: 12px 14px !important; font-size: 16px !important; border-radius: 14px; }
    .form-error { margin: 0; }
    #error { font-size: 14px; margin: 0 0 8px; color: #fff; }
    #error:empty { display: none; }
    .form-check-p { display: flex; align-items: flex-start; gap: 10px; width: 100%; margin: 4px 0 0; }
    #inp-check { width: 24px !important; height: 24px !important; flex: 0 0 24px; margin: 6px 0 0 !important; }
    .section-p { height: auto !important; max-height: 34dvh; max-width: none !important; flex: 1; align-items: flex-start !important; overflow-y: auto; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.12); }
    .section-p p, .form-check-p p { display: block !important; max-width: none !important; margin: 0 0 8px !important; font-size: 13px !important; line-height: 1.45; color: #f2f7fb; text-align: left; }

    /* Texto de "continuar" y "fuera de horario" */
    #label-text, .form-text-horario p { display: block; font-size: 15px !important; line-height: 1.5; color: #fff; margin: 0; }

    /* Botones (✓ / ✗) */
    .modal-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 0 6px; }
    .modal-footer button { background: none; border: 0; padding: 0; }
    .modal-footer img, .img-modal_close-term, .img-modal, .img-modal_close { width: 46px !important; height: 46px !important; }
    #modal-horarios-continuar .modal-footer { justify-content: center; }

    /* Videollamada */
    #contenedorVideo, #contenedorVideo iframe { width: 100% !important; height: 62dvh !important; border-radius: 14px; }
    .modal-content-llamada .video { width: 100%; }
}
